diff --git a/metastore/if/hive_metastore.thrift b/metastore/if/hive_metastore.thrift index d651195..99cbdee 100755 --- a/metastore/if/hive_metastore.thrift +++ b/metastore/if/hive_metastore.thrift @@ -986,6 +986,10 @@ service ThriftHiveMetastore extends fb303.FacebookService PartitionsByExprResult get_partitions_by_expr(1:PartitionsByExprRequest req) throws(1:MetaException o1, 2:NoSuchObjectException o2) + // get the partitions matching the given partition filter + i32 get_num_partitions_by_filter(1:string db_name 2:string tbl_name 3:string filter, 4:i16 max_parts=-1) + throws(1:MetaException o1, 2:NoSuchObjectException o2) + // get partitions give a list of partition names list get_partitions_by_names(1:string db_name 2:string tbl_name 3:list names) throws(1:MetaException o1, 2:NoSuchObjectException o2) diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 0354fe1..7461cf9 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -8,11 +8,6 @@ namespace Apache { namespace Hadoop { namespace Hive { - -ThriftHiveMetastore_getMetaConf_args::~ThriftHiveMetastore_getMetaConf_args() throw() { -} - - uint32_t ThriftHiveMetastore_getMetaConf_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -55,7 +50,6 @@ uint32_t ThriftHiveMetastore_getMetaConf_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_getMetaConf_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_getMetaConf_args"); xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1); @@ -64,18 +58,11 @@ uint32_t ThriftHiveMetastore_getMetaConf_args::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_getMetaConf_pargs::~ThriftHiveMetastore_getMetaConf_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_getMetaConf_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_getMetaConf_pargs"); xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1); @@ -84,15 +71,9 @@ uint32_t ThriftHiveMetastore_getMetaConf_pargs::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_getMetaConf_result::~ThriftHiveMetastore_getMetaConf_result() throw() { -} - - uint32_t ThriftHiveMetastore_getMetaConf_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -161,11 +142,6 @@ uint32_t ThriftHiveMetastore_getMetaConf_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_getMetaConf_presult::~ThriftHiveMetastore_getMetaConf_presult() throw() { -} - - uint32_t ThriftHiveMetastore_getMetaConf_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -214,11 +190,6 @@ uint32_t ThriftHiveMetastore_getMetaConf_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_setMetaConf_args::~ThriftHiveMetastore_setMetaConf_args() throw() { -} - - uint32_t ThriftHiveMetastore_setMetaConf_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -269,7 +240,6 @@ uint32_t ThriftHiveMetastore_setMetaConf_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_setMetaConf_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_setMetaConf_args"); xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1); @@ -282,18 +252,11 @@ uint32_t ThriftHiveMetastore_setMetaConf_args::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_setMetaConf_pargs::~ThriftHiveMetastore_setMetaConf_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_setMetaConf_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_setMetaConf_pargs"); xfer += oprot->writeFieldBegin("key", ::apache::thrift::protocol::T_STRING, 1); @@ -306,15 +269,9 @@ uint32_t ThriftHiveMetastore_setMetaConf_pargs::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_setMetaConf_result::~ThriftHiveMetastore_setMetaConf_result() throw() { -} - - uint32_t ThriftHiveMetastore_setMetaConf_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -371,11 +328,6 @@ uint32_t ThriftHiveMetastore_setMetaConf_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_setMetaConf_presult::~ThriftHiveMetastore_setMetaConf_presult() throw() { -} - - uint32_t ThriftHiveMetastore_setMetaConf_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -416,11 +368,6 @@ uint32_t ThriftHiveMetastore_setMetaConf_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_create_database_args::~ThriftHiveMetastore_create_database_args() throw() { -} - - uint32_t ThriftHiveMetastore_create_database_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -463,7 +410,6 @@ uint32_t ThriftHiveMetastore_create_database_args::read(::apache::thrift::protoc uint32_t ThriftHiveMetastore_create_database_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_database_args"); xfer += oprot->writeFieldBegin("database", ::apache::thrift::protocol::T_STRUCT, 1); @@ -472,18 +418,11 @@ uint32_t ThriftHiveMetastore_create_database_args::write(::apache::thrift::proto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_create_database_pargs::~ThriftHiveMetastore_create_database_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_create_database_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_database_pargs"); xfer += oprot->writeFieldBegin("database", ::apache::thrift::protocol::T_STRUCT, 1); @@ -492,15 +431,9 @@ uint32_t ThriftHiveMetastore_create_database_pargs::write(::apache::thrift::prot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_create_database_result::~ThriftHiveMetastore_create_database_result() throw() { -} - - uint32_t ThriftHiveMetastore_create_database_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -581,11 +514,6 @@ uint32_t ThriftHiveMetastore_create_database_result::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_create_database_presult::~ThriftHiveMetastore_create_database_presult() throw() { -} - - uint32_t ThriftHiveMetastore_create_database_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -642,11 +570,6 @@ uint32_t ThriftHiveMetastore_create_database_presult::read(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_get_database_args::~ThriftHiveMetastore_get_database_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_database_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -689,7 +612,6 @@ uint32_t ThriftHiveMetastore_get_database_args::read(::apache::thrift::protocol: uint32_t ThriftHiveMetastore_get_database_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_database_args"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -698,18 +620,11 @@ uint32_t ThriftHiveMetastore_get_database_args::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_database_pargs::~ThriftHiveMetastore_get_database_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_database_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_database_pargs"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -718,15 +633,9 @@ uint32_t ThriftHiveMetastore_get_database_pargs::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_database_result::~ThriftHiveMetastore_get_database_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_database_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -807,11 +716,6 @@ uint32_t ThriftHiveMetastore_get_database_result::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_database_presult::~ThriftHiveMetastore_get_database_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_database_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -868,11 +772,6 @@ uint32_t ThriftHiveMetastore_get_database_presult::read(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_drop_database_args::~ThriftHiveMetastore_drop_database_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_database_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -931,7 +830,6 @@ uint32_t ThriftHiveMetastore_drop_database_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_drop_database_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_database_args"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -948,18 +846,11 @@ uint32_t ThriftHiveMetastore_drop_database_args::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_database_pargs::~ThriftHiveMetastore_drop_database_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_database_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_database_pargs"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -976,15 +867,9 @@ uint32_t ThriftHiveMetastore_drop_database_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_database_result::~ThriftHiveMetastore_drop_database_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_database_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1065,11 +950,6 @@ uint32_t ThriftHiveMetastore_drop_database_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_drop_database_presult::~ThriftHiveMetastore_drop_database_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_database_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1126,11 +1006,6 @@ uint32_t ThriftHiveMetastore_drop_database_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_databases_args::~ThriftHiveMetastore_get_databases_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_databases_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1173,7 +1048,6 @@ uint32_t ThriftHiveMetastore_get_databases_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_get_databases_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_databases_args"); xfer += oprot->writeFieldBegin("pattern", ::apache::thrift::protocol::T_STRING, 1); @@ -1182,18 +1056,11 @@ uint32_t ThriftHiveMetastore_get_databases_args::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_databases_pargs::~ThriftHiveMetastore_get_databases_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_databases_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_databases_pargs"); xfer += oprot->writeFieldBegin("pattern", ::apache::thrift::protocol::T_STRING, 1); @@ -1202,15 +1069,9 @@ uint32_t ThriftHiveMetastore_get_databases_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_databases_result::~ThriftHiveMetastore_get_databases_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1235,14 +1096,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size649; - ::apache::thrift::protocol::TType _etype652; - xfer += iprot->readListBegin(_etype652, _size649); - this->success.resize(_size649); - uint32_t _i653; - for (_i653 = 0; _i653 < _size649; ++_i653) + uint32_t _size431; + ::apache::thrift::protocol::TType _etype434; + xfer += iprot->readListBegin(_etype434, _size431); + this->success.resize(_size431); + uint32_t _i435; + for (_i435 = 0; _i435 < _size431; ++_i435) { - xfer += iprot->readString(this->success[_i653]); + xfer += iprot->readString(this->success[_i435]); } xfer += iprot->readListEnd(); } @@ -1281,10 +1142,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 _iter654; - for (_iter654 = this->success.begin(); _iter654 != this->success.end(); ++_iter654) + std::vector ::const_iterator _iter436; + for (_iter436 = this->success.begin(); _iter436 != this->success.end(); ++_iter436) { - xfer += oprot->writeString((*_iter654)); + xfer += oprot->writeString((*_iter436)); } xfer += oprot->writeListEnd(); } @@ -1299,11 +1160,6 @@ uint32_t ThriftHiveMetastore_get_databases_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_databases_presult::~ThriftHiveMetastore_get_databases_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1328,14 +1184,14 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size655; - ::apache::thrift::protocol::TType _etype658; - xfer += iprot->readListBegin(_etype658, _size655); - (*(this->success)).resize(_size655); - uint32_t _i659; - for (_i659 = 0; _i659 < _size655; ++_i659) + uint32_t _size437; + ::apache::thrift::protocol::TType _etype440; + xfer += iprot->readListBegin(_etype440, _size437); + (*(this->success)).resize(_size437); + uint32_t _i441; + for (_i441 = 0; _i441 < _size437; ++_i441) { - xfer += iprot->readString((*(this->success))[_i659]); + xfer += iprot->readString((*(this->success))[_i441]); } xfer += iprot->readListEnd(); } @@ -1364,11 +1220,6 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_all_databases_args::~ThriftHiveMetastore_get_all_databases_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_databases_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1398,36 +1249,22 @@ uint32_t ThriftHiveMetastore_get_all_databases_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_get_all_databases_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_databases_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_all_databases_pargs::~ThriftHiveMetastore_get_all_databases_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_databases_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_databases_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_all_databases_result::~ThriftHiveMetastore_get_all_databases_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_databases_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1452,14 +1289,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size660; - ::apache::thrift::protocol::TType _etype663; - xfer += iprot->readListBegin(_etype663, _size660); - this->success.resize(_size660); - uint32_t _i664; - for (_i664 = 0; _i664 < _size660; ++_i664) + uint32_t _size442; + ::apache::thrift::protocol::TType _etype445; + xfer += iprot->readListBegin(_etype445, _size442); + this->success.resize(_size442); + uint32_t _i446; + for (_i446 = 0; _i446 < _size442; ++_i446) { - xfer += iprot->readString(this->success[_i664]); + xfer += iprot->readString(this->success[_i446]); } xfer += iprot->readListEnd(); } @@ -1498,10 +1335,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 _iter665; - for (_iter665 = this->success.begin(); _iter665 != this->success.end(); ++_iter665) + std::vector ::const_iterator _iter447; + for (_iter447 = this->success.begin(); _iter447 != this->success.end(); ++_iter447) { - xfer += oprot->writeString((*_iter665)); + xfer += oprot->writeString((*_iter447)); } xfer += oprot->writeListEnd(); } @@ -1516,11 +1353,6 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_all_databases_presult::~ThriftHiveMetastore_get_all_databases_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1545,14 +1377,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size666; - ::apache::thrift::protocol::TType _etype669; - xfer += iprot->readListBegin(_etype669, _size666); - (*(this->success)).resize(_size666); - uint32_t _i670; - for (_i670 = 0; _i670 < _size666; ++_i670) + uint32_t _size448; + ::apache::thrift::protocol::TType _etype451; + xfer += iprot->readListBegin(_etype451, _size448); + (*(this->success)).resize(_size448); + uint32_t _i452; + for (_i452 = 0; _i452 < _size448; ++_i452) { - xfer += iprot->readString((*(this->success))[_i670]); + xfer += iprot->readString((*(this->success))[_i452]); } xfer += iprot->readListEnd(); } @@ -1581,11 +1413,6 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_alter_database_args::~ThriftHiveMetastore_alter_database_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_database_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1636,7 +1463,6 @@ uint32_t ThriftHiveMetastore_alter_database_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_alter_database_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_database_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -1649,18 +1475,11 @@ uint32_t ThriftHiveMetastore_alter_database_args::write(::apache::thrift::protoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_database_pargs::~ThriftHiveMetastore_alter_database_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_database_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_database_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -1673,15 +1492,9 @@ uint32_t ThriftHiveMetastore_alter_database_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_database_result::~ThriftHiveMetastore_alter_database_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_database_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1750,11 +1563,6 @@ uint32_t ThriftHiveMetastore_alter_database_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_alter_database_presult::~ThriftHiveMetastore_alter_database_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_database_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1803,11 +1611,6 @@ uint32_t ThriftHiveMetastore_alter_database_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_type_args::~ThriftHiveMetastore_get_type_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_type_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1850,7 +1653,6 @@ uint32_t ThriftHiveMetastore_get_type_args::read(::apache::thrift::protocol::TPr uint32_t ThriftHiveMetastore_get_type_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_args"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -1859,18 +1661,11 @@ uint32_t ThriftHiveMetastore_get_type_args::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_type_pargs::~ThriftHiveMetastore_get_type_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_type_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_pargs"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -1879,15 +1674,9 @@ uint32_t ThriftHiveMetastore_get_type_pargs::write(::apache::thrift::protocol::T xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_type_result::~ThriftHiveMetastore_get_type_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_type_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1968,11 +1757,6 @@ uint32_t ThriftHiveMetastore_get_type_result::write(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_get_type_presult::~ThriftHiveMetastore_get_type_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_type_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2029,11 +1813,6 @@ uint32_t ThriftHiveMetastore_get_type_presult::read(::apache::thrift::protocol:: return xfer; } - -ThriftHiveMetastore_create_type_args::~ThriftHiveMetastore_create_type_args() throw() { -} - - uint32_t ThriftHiveMetastore_create_type_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2076,7 +1855,6 @@ uint32_t ThriftHiveMetastore_create_type_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_create_type_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_type_args"); xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2085,18 +1863,11 @@ uint32_t ThriftHiveMetastore_create_type_args::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_create_type_pargs::~ThriftHiveMetastore_create_type_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_create_type_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_type_pargs"); xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2105,15 +1876,9 @@ uint32_t ThriftHiveMetastore_create_type_pargs::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_create_type_result::~ThriftHiveMetastore_create_type_result() throw() { -} - - uint32_t ThriftHiveMetastore_create_type_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2206,11 +1971,6 @@ uint32_t ThriftHiveMetastore_create_type_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_create_type_presult::~ThriftHiveMetastore_create_type_presult() throw() { -} - - uint32_t ThriftHiveMetastore_create_type_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2275,11 +2035,6 @@ uint32_t ThriftHiveMetastore_create_type_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_drop_type_args::~ThriftHiveMetastore_drop_type_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_type_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2322,7 +2077,6 @@ uint32_t ThriftHiveMetastore_drop_type_args::read(::apache::thrift::protocol::TP uint32_t ThriftHiveMetastore_drop_type_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_type_args"); xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_STRING, 1); @@ -2331,18 +2085,11 @@ uint32_t ThriftHiveMetastore_drop_type_args::write(::apache::thrift::protocol::T xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_type_pargs::~ThriftHiveMetastore_drop_type_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_type_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_type_pargs"); xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_STRING, 1); @@ -2351,15 +2098,9 @@ uint32_t ThriftHiveMetastore_drop_type_pargs::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_type_result::~ThriftHiveMetastore_drop_type_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_type_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2440,11 +2181,6 @@ uint32_t ThriftHiveMetastore_drop_type_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_drop_type_presult::~ThriftHiveMetastore_drop_type_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_type_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2501,11 +2237,6 @@ uint32_t ThriftHiveMetastore_drop_type_presult::read(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_get_type_all_args::~ThriftHiveMetastore_get_type_all_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_type_all_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2548,7 +2279,6 @@ uint32_t ThriftHiveMetastore_get_type_all_args::read(::apache::thrift::protocol: uint32_t ThriftHiveMetastore_get_type_all_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_all_args"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -2557,18 +2287,11 @@ uint32_t ThriftHiveMetastore_get_type_all_args::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_type_all_pargs::~ThriftHiveMetastore_get_type_all_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_type_all_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_type_all_pargs"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -2577,15 +2300,9 @@ uint32_t ThriftHiveMetastore_get_type_all_pargs::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_type_all_result::~ThriftHiveMetastore_get_type_all_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_type_all_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2610,17 +2327,17 @@ uint32_t ThriftHiveMetastore_get_type_all_result::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size671; - ::apache::thrift::protocol::TType _ktype672; - ::apache::thrift::protocol::TType _vtype673; - xfer += iprot->readMapBegin(_ktype672, _vtype673, _size671); - uint32_t _i675; - for (_i675 = 0; _i675 < _size671; ++_i675) + uint32_t _size453; + ::apache::thrift::protocol::TType _ktype454; + ::apache::thrift::protocol::TType _vtype455; + xfer += iprot->readMapBegin(_ktype454, _vtype455, _size453); + uint32_t _i457; + for (_i457 = 0; _i457 < _size453; ++_i457) { - std::string _key676; - xfer += iprot->readString(_key676); - Type& _val677 = this->success[_key676]; - xfer += _val677.read(iprot); + std::string _key458; + xfer += iprot->readString(_key458); + Type& _val459 = this->success[_key458]; + xfer += _val459.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2659,11 +2376,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 _iter678; - for (_iter678 = this->success.begin(); _iter678 != this->success.end(); ++_iter678) + std::map ::const_iterator _iter460; + for (_iter460 = this->success.begin(); _iter460 != this->success.end(); ++_iter460) { - xfer += oprot->writeString(_iter678->first); - xfer += _iter678->second.write(oprot); + xfer += oprot->writeString(_iter460->first); + xfer += _iter460->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -2678,11 +2395,6 @@ uint32_t ThriftHiveMetastore_get_type_all_result::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_type_all_presult::~ThriftHiveMetastore_get_type_all_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2707,17 +2419,17 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size679; - ::apache::thrift::protocol::TType _ktype680; - ::apache::thrift::protocol::TType _vtype681; - xfer += iprot->readMapBegin(_ktype680, _vtype681, _size679); - uint32_t _i683; - for (_i683 = 0; _i683 < _size679; ++_i683) + uint32_t _size461; + ::apache::thrift::protocol::TType _ktype462; + ::apache::thrift::protocol::TType _vtype463; + xfer += iprot->readMapBegin(_ktype462, _vtype463, _size461); + uint32_t _i465; + for (_i465 = 0; _i465 < _size461; ++_i465) { - std::string _key684; - xfer += iprot->readString(_key684); - Type& _val685 = (*(this->success))[_key684]; - xfer += _val685.read(iprot); + std::string _key466; + xfer += iprot->readString(_key466); + Type& _val467 = (*(this->success))[_key466]; + xfer += _val467.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2746,11 +2458,6 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_fields_args::~ThriftHiveMetastore_get_fields_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2801,7 +2508,6 @@ uint32_t ThriftHiveMetastore_get_fields_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_get_fields_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_fields_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -2814,18 +2520,11 @@ uint32_t ThriftHiveMetastore_get_fields_args::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_fields_pargs::~ThriftHiveMetastore_get_fields_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_fields_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -2838,15 +2537,9 @@ uint32_t ThriftHiveMetastore_get_fields_pargs::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_fields_result::~ThriftHiveMetastore_get_fields_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2871,14 +2564,14 @@ uint32_t ThriftHiveMetastore_get_fields_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size686; - ::apache::thrift::protocol::TType _etype689; - xfer += iprot->readListBegin(_etype689, _size686); - this->success.resize(_size686); - uint32_t _i690; - for (_i690 = 0; _i690 < _size686; ++_i690) + uint32_t _size468; + ::apache::thrift::protocol::TType _etype471; + xfer += iprot->readListBegin(_etype471, _size468); + this->success.resize(_size468); + uint32_t _i472; + for (_i472 = 0; _i472 < _size468; ++_i472) { - xfer += this->success[_i690].read(iprot); + xfer += this->success[_i472].read(iprot); } xfer += iprot->readListEnd(); } @@ -2933,10 +2626,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 _iter691; - for (_iter691 = this->success.begin(); _iter691 != this->success.end(); ++_iter691) + std::vector ::const_iterator _iter473; + for (_iter473 = this->success.begin(); _iter473 != this->success.end(); ++_iter473) { - xfer += (*_iter691).write(oprot); + xfer += (*_iter473).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2959,11 +2652,6 @@ uint32_t ThriftHiveMetastore_get_fields_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_fields_presult::~ThriftHiveMetastore_get_fields_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2988,14 +2676,14 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size692; - ::apache::thrift::protocol::TType _etype695; - xfer += iprot->readListBegin(_etype695, _size692); - (*(this->success)).resize(_size692); - uint32_t _i696; - for (_i696 = 0; _i696 < _size692; ++_i696) + uint32_t _size474; + ::apache::thrift::protocol::TType _etype477; + xfer += iprot->readListBegin(_etype477, _size474); + (*(this->success)).resize(_size474); + uint32_t _i478; + for (_i478 = 0; _i478 < _size474; ++_i478) { - xfer += (*(this->success))[_i696].read(iprot); + xfer += (*(this->success))[_i478].read(iprot); } xfer += iprot->readListEnd(); } @@ -3040,11 +2728,6 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_fields_with_environment_context_args::~ThriftHiveMetastore_get_fields_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3103,7 +2786,6 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_args::read(::ap uint32_t ThriftHiveMetastore_get_fields_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_fields_with_environment_context_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -3120,18 +2802,11 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_args::write(::a xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_fields_with_environment_context_pargs::~ThriftHiveMetastore_get_fields_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_fields_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -3148,15 +2823,9 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_pargs::write(:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_fields_with_environment_context_result::~ThriftHiveMetastore_get_fields_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3181,14 +2850,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size697; - ::apache::thrift::protocol::TType _etype700; - xfer += iprot->readListBegin(_etype700, _size697); - this->success.resize(_size697); - uint32_t _i701; - for (_i701 = 0; _i701 < _size697; ++_i701) + uint32_t _size479; + ::apache::thrift::protocol::TType _etype482; + xfer += iprot->readListBegin(_etype482, _size479); + this->success.resize(_size479); + uint32_t _i483; + for (_i483 = 0; _i483 < _size479; ++_i483) { - xfer += this->success[_i701].read(iprot); + xfer += this->success[_i483].read(iprot); } xfer += iprot->readListEnd(); } @@ -3243,10 +2912,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 _iter702; - for (_iter702 = this->success.begin(); _iter702 != this->success.end(); ++_iter702) + std::vector ::const_iterator _iter484; + for (_iter484 = this->success.begin(); _iter484 != this->success.end(); ++_iter484) { - xfer += (*_iter702).write(oprot); + xfer += (*_iter484).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3269,11 +2938,6 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::write(: return xfer; } - -ThriftHiveMetastore_get_fields_with_environment_context_presult::~ThriftHiveMetastore_get_fields_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_fields_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3298,14 +2962,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_presult::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size703; - ::apache::thrift::protocol::TType _etype706; - xfer += iprot->readListBegin(_etype706, _size703); - (*(this->success)).resize(_size703); - uint32_t _i707; - for (_i707 = 0; _i707 < _size703; ++_i707) + uint32_t _size485; + ::apache::thrift::protocol::TType _etype488; + xfer += iprot->readListBegin(_etype488, _size485); + (*(this->success)).resize(_size485); + uint32_t _i489; + for (_i489 = 0; _i489 < _size485; ++_i489) { - xfer += (*(this->success))[_i707].read(iprot); + xfer += (*(this->success))[_i489].read(iprot); } xfer += iprot->readListEnd(); } @@ -3350,11 +3014,6 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_presult::read(: return xfer; } - -ThriftHiveMetastore_get_schema_args::~ThriftHiveMetastore_get_schema_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3405,7 +3064,6 @@ uint32_t ThriftHiveMetastore_get_schema_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_get_schema_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_schema_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -3418,18 +3076,11 @@ uint32_t ThriftHiveMetastore_get_schema_args::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_schema_pargs::~ThriftHiveMetastore_get_schema_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_schema_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -3442,15 +3093,9 @@ uint32_t ThriftHiveMetastore_get_schema_pargs::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_schema_result::~ThriftHiveMetastore_get_schema_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3475,14 +3120,14 @@ uint32_t ThriftHiveMetastore_get_schema_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size708; - ::apache::thrift::protocol::TType _etype711; - xfer += iprot->readListBegin(_etype711, _size708); - this->success.resize(_size708); - uint32_t _i712; - for (_i712 = 0; _i712 < _size708; ++_i712) + uint32_t _size490; + ::apache::thrift::protocol::TType _etype493; + xfer += iprot->readListBegin(_etype493, _size490); + this->success.resize(_size490); + uint32_t _i494; + for (_i494 = 0; _i494 < _size490; ++_i494) { - xfer += this->success[_i712].read(iprot); + xfer += this->success[_i494].read(iprot); } xfer += iprot->readListEnd(); } @@ -3537,10 +3182,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 _iter713; - for (_iter713 = this->success.begin(); _iter713 != this->success.end(); ++_iter713) + std::vector ::const_iterator _iter495; + for (_iter495 = this->success.begin(); _iter495 != this->success.end(); ++_iter495) { - xfer += (*_iter713).write(oprot); + xfer += (*_iter495).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3563,11 +3208,6 @@ uint32_t ThriftHiveMetastore_get_schema_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_schema_presult::~ThriftHiveMetastore_get_schema_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3592,14 +3232,14 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size714; - ::apache::thrift::protocol::TType _etype717; - xfer += iprot->readListBegin(_etype717, _size714); - (*(this->success)).resize(_size714); - uint32_t _i718; - for (_i718 = 0; _i718 < _size714; ++_i718) + uint32_t _size496; + ::apache::thrift::protocol::TType _etype499; + xfer += iprot->readListBegin(_etype499, _size496); + (*(this->success)).resize(_size496); + uint32_t _i500; + for (_i500 = 0; _i500 < _size496; ++_i500) { - xfer += (*(this->success))[_i718].read(iprot); + xfer += (*(this->success))[_i500].read(iprot); } xfer += iprot->readListEnd(); } @@ -3644,11 +3284,6 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_schema_with_environment_context_args::~ThriftHiveMetastore_get_schema_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3707,7 +3342,6 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_args::read(::ap uint32_t ThriftHiveMetastore_get_schema_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_schema_with_environment_context_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -3724,18 +3358,11 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_args::write(::a xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_schema_with_environment_context_pargs::~ThriftHiveMetastore_get_schema_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_schema_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -3752,15 +3379,9 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_pargs::write(:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_schema_with_environment_context_result::~ThriftHiveMetastore_get_schema_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3785,14 +3406,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size719; - ::apache::thrift::protocol::TType _etype722; - xfer += iprot->readListBegin(_etype722, _size719); - this->success.resize(_size719); - uint32_t _i723; - for (_i723 = 0; _i723 < _size719; ++_i723) + uint32_t _size501; + ::apache::thrift::protocol::TType _etype504; + xfer += iprot->readListBegin(_etype504, _size501); + this->success.resize(_size501); + uint32_t _i505; + for (_i505 = 0; _i505 < _size501; ++_i505) { - xfer += this->success[_i723].read(iprot); + xfer += this->success[_i505].read(iprot); } xfer += iprot->readListEnd(); } @@ -3847,10 +3468,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 _iter724; - for (_iter724 = this->success.begin(); _iter724 != this->success.end(); ++_iter724) + std::vector ::const_iterator _iter506; + for (_iter506 = this->success.begin(); _iter506 != this->success.end(); ++_iter506) { - xfer += (*_iter724).write(oprot); + xfer += (*_iter506).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3873,11 +3494,6 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::write(: return xfer; } - -ThriftHiveMetastore_get_schema_with_environment_context_presult::~ThriftHiveMetastore_get_schema_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_schema_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3902,14 +3518,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_presult::read(: 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 _size507; + ::apache::thrift::protocol::TType _etype510; + xfer += iprot->readListBegin(_etype510, _size507); + (*(this->success)).resize(_size507); + uint32_t _i511; + for (_i511 = 0; _i511 < _size507; ++_i511) { - xfer += (*(this->success))[_i729].read(iprot); + xfer += (*(this->success))[_i511].read(iprot); } xfer += iprot->readListEnd(); } @@ -3954,11 +3570,6 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_presult::read(: return xfer; } - -ThriftHiveMetastore_create_table_args::~ThriftHiveMetastore_create_table_args() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -4001,7 +3612,6 @@ uint32_t ThriftHiveMetastore_create_table_args::read(::apache::thrift::protocol: uint32_t ThriftHiveMetastore_create_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_table_args"); xfer += oprot->writeFieldBegin("tbl", ::apache::thrift::protocol::T_STRUCT, 1); @@ -4010,18 +3620,11 @@ uint32_t ThriftHiveMetastore_create_table_args::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_create_table_pargs::~ThriftHiveMetastore_create_table_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_table_pargs"); xfer += oprot->writeFieldBegin("tbl", ::apache::thrift::protocol::T_STRUCT, 1); @@ -4030,15 +3633,9 @@ uint32_t ThriftHiveMetastore_create_table_pargs::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_create_table_result::~ThriftHiveMetastore_create_table_result() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -4131,11 +3728,6 @@ uint32_t ThriftHiveMetastore_create_table_result::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_create_table_presult::~ThriftHiveMetastore_create_table_presult() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -4200,11 +3792,6 @@ uint32_t ThriftHiveMetastore_create_table_presult::read(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_create_table_with_environment_context_args::~ThriftHiveMetastore_create_table_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -4255,7 +3842,6 @@ uint32_t ThriftHiveMetastore_create_table_with_environment_context_args::read(:: uint32_t ThriftHiveMetastore_create_table_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_table_with_environment_context_args"); xfer += oprot->writeFieldBegin("tbl", ::apache::thrift::protocol::T_STRUCT, 1); @@ -4268,18 +3854,11 @@ uint32_t ThriftHiveMetastore_create_table_with_environment_context_args::write(: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_create_table_with_environment_context_pargs::~ThriftHiveMetastore_create_table_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_table_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("tbl", ::apache::thrift::protocol::T_STRUCT, 1); @@ -4292,15 +3871,9 @@ uint32_t ThriftHiveMetastore_create_table_with_environment_context_pargs::write( xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_create_table_with_environment_context_result::~ThriftHiveMetastore_create_table_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -4393,11 +3966,6 @@ uint32_t ThriftHiveMetastore_create_table_with_environment_context_result::write return xfer; } - -ThriftHiveMetastore_create_table_with_environment_context_presult::~ThriftHiveMetastore_create_table_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_create_table_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -4462,11 +4030,6 @@ uint32_t ThriftHiveMetastore_create_table_with_environment_context_presult::read return xfer; } - -ThriftHiveMetastore_drop_table_args::~ThriftHiveMetastore_drop_table_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -4525,7 +4088,6 @@ uint32_t ThriftHiveMetastore_drop_table_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_drop_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -4542,18 +4104,11 @@ uint32_t ThriftHiveMetastore_drop_table_args::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_table_pargs::~ThriftHiveMetastore_drop_table_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -4570,15 +4125,9 @@ uint32_t ThriftHiveMetastore_drop_table_pargs::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_table_result::~ThriftHiveMetastore_drop_table_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -4647,11 +4196,6 @@ uint32_t ThriftHiveMetastore_drop_table_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_drop_table_presult::~ThriftHiveMetastore_drop_table_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -4700,11 +4244,6 @@ uint32_t ThriftHiveMetastore_drop_table_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_drop_table_with_environment_context_args::~ThriftHiveMetastore_drop_table_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -4771,7 +4310,6 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::read(::ap uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_with_environment_context_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -4792,18 +4330,11 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_args::write(::a xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_table_with_environment_context_pargs::~ThriftHiveMetastore_drop_table_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -4824,15 +4355,9 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_pargs::write(:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_table_with_environment_context_result::~ThriftHiveMetastore_drop_table_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -4901,11 +4426,6 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_result::write(: return xfer; } - -ThriftHiveMetastore_drop_table_with_environment_context_presult::~ThriftHiveMetastore_drop_table_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_table_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -4954,11 +4474,6 @@ uint32_t ThriftHiveMetastore_drop_table_with_environment_context_presult::read(: return xfer; } - -ThriftHiveMetastore_get_tables_args::~ThriftHiveMetastore_get_tables_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_tables_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -5009,7 +4524,6 @@ uint32_t ThriftHiveMetastore_get_tables_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_get_tables_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -5022,18 +4536,11 @@ uint32_t ThriftHiveMetastore_get_tables_args::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_tables_pargs::~ThriftHiveMetastore_get_tables_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_tables_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_tables_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -5046,15 +4553,9 @@ uint32_t ThriftHiveMetastore_get_tables_pargs::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_tables_result::~ThriftHiveMetastore_get_tables_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -5079,14 +4580,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size730; - ::apache::thrift::protocol::TType _etype733; - xfer += iprot->readListBegin(_etype733, _size730); - this->success.resize(_size730); - uint32_t _i734; - for (_i734 = 0; _i734 < _size730; ++_i734) + uint32_t _size512; + ::apache::thrift::protocol::TType _etype515; + xfer += iprot->readListBegin(_etype515, _size512); + this->success.resize(_size512); + uint32_t _i516; + for (_i516 = 0; _i516 < _size512; ++_i516) { - xfer += iprot->readString(this->success[_i734]); + xfer += iprot->readString(this->success[_i516]); } xfer += iprot->readListEnd(); } @@ -5125,10 +4626,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 _iter735; - for (_iter735 = this->success.begin(); _iter735 != this->success.end(); ++_iter735) + std::vector ::const_iterator _iter517; + for (_iter517 = this->success.begin(); _iter517 != this->success.end(); ++_iter517) { - xfer += oprot->writeString((*_iter735)); + xfer += oprot->writeString((*_iter517)); } xfer += oprot->writeListEnd(); } @@ -5143,11 +4644,6 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_tables_presult::~ThriftHiveMetastore_get_tables_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -5172,14 +4668,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol 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 _size518; + ::apache::thrift::protocol::TType _etype521; + xfer += iprot->readListBegin(_etype521, _size518); + (*(this->success)).resize(_size518); + uint32_t _i522; + for (_i522 = 0; _i522 < _size518; ++_i522) { - xfer += iprot->readString((*(this->success))[_i740]); + xfer += iprot->readString((*(this->success))[_i522]); } xfer += iprot->readListEnd(); } @@ -5208,11 +4704,6 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_get_all_tables_args::~ThriftHiveMetastore_get_all_tables_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_tables_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -5255,7 +4746,6 @@ uint32_t ThriftHiveMetastore_get_all_tables_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_get_all_tables_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_tables_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -5264,18 +4754,11 @@ uint32_t ThriftHiveMetastore_get_all_tables_args::write(::apache::thrift::protoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_all_tables_pargs::~ThriftHiveMetastore_get_all_tables_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_tables_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_tables_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -5284,15 +4767,9 @@ uint32_t ThriftHiveMetastore_get_all_tables_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_all_tables_result::~ThriftHiveMetastore_get_all_tables_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -5317,14 +4794,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size741; - ::apache::thrift::protocol::TType _etype744; - xfer += iprot->readListBegin(_etype744, _size741); - this->success.resize(_size741); - uint32_t _i745; - for (_i745 = 0; _i745 < _size741; ++_i745) + uint32_t _size523; + ::apache::thrift::protocol::TType _etype526; + xfer += iprot->readListBegin(_etype526, _size523); + this->success.resize(_size523); + uint32_t _i527; + for (_i527 = 0; _i527 < _size523; ++_i527) { - xfer += iprot->readString(this->success[_i745]); + xfer += iprot->readString(this->success[_i527]); } xfer += iprot->readListEnd(); } @@ -5363,10 +4840,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 _iter746; - for (_iter746 = this->success.begin(); _iter746 != this->success.end(); ++_iter746) + std::vector ::const_iterator _iter528; + for (_iter528 = this->success.begin(); _iter528 != this->success.end(); ++_iter528) { - xfer += oprot->writeString((*_iter746)); + xfer += oprot->writeString((*_iter528)); } xfer += oprot->writeListEnd(); } @@ -5381,11 +4858,6 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_all_tables_presult::~ThriftHiveMetastore_get_all_tables_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -5410,14 +4882,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size747; - ::apache::thrift::protocol::TType _etype750; - xfer += iprot->readListBegin(_etype750, _size747); - (*(this->success)).resize(_size747); - uint32_t _i751; - for (_i751 = 0; _i751 < _size747; ++_i751) + uint32_t _size529; + ::apache::thrift::protocol::TType _etype532; + xfer += iprot->readListBegin(_etype532, _size529); + (*(this->success)).resize(_size529); + uint32_t _i533; + for (_i533 = 0; _i533 < _size529; ++_i533) { - xfer += iprot->readString((*(this->success))[_i751]); + xfer += iprot->readString((*(this->success))[_i533]); } xfer += iprot->readListEnd(); } @@ -5446,11 +4918,6 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_table_args::~ThriftHiveMetastore_get_table_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -5501,7 +4968,6 @@ uint32_t ThriftHiveMetastore_get_table_args::read(::apache::thrift::protocol::TP uint32_t ThriftHiveMetastore_get_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -5514,18 +4980,11 @@ uint32_t ThriftHiveMetastore_get_table_args::write(::apache::thrift::protocol::T xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_table_pargs::~ThriftHiveMetastore_get_table_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -5538,15 +4997,9 @@ uint32_t ThriftHiveMetastore_get_table_pargs::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_table_result::~ThriftHiveMetastore_get_table_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -5627,11 +5080,6 @@ uint32_t ThriftHiveMetastore_get_table_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_get_table_presult::~ThriftHiveMetastore_get_table_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -5688,11 +5136,6 @@ uint32_t ThriftHiveMetastore_get_table_presult::read(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_get_table_objects_by_name_args::~ThriftHiveMetastore_get_table_objects_by_name_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -5725,14 +5168,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 _size752; - ::apache::thrift::protocol::TType _etype755; - xfer += iprot->readListBegin(_etype755, _size752); - this->tbl_names.resize(_size752); - uint32_t _i756; - for (_i756 = 0; _i756 < _size752; ++_i756) + uint32_t _size534; + ::apache::thrift::protocol::TType _etype537; + xfer += iprot->readListBegin(_etype537, _size534); + this->tbl_names.resize(_size534); + uint32_t _i538; + for (_i538 = 0; _i538 < _size534; ++_i538) { - xfer += iprot->readString(this->tbl_names[_i756]); + xfer += iprot->readString(this->tbl_names[_i538]); } xfer += iprot->readListEnd(); } @@ -5755,7 +5198,6 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::read(::apache::thri uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_objects_by_name_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -5765,10 +5207,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 _iter757; - for (_iter757 = this->tbl_names.begin(); _iter757 != this->tbl_names.end(); ++_iter757) + std::vector ::const_iterator _iter539; + for (_iter539 = this->tbl_names.begin(); _iter539 != this->tbl_names.end(); ++_iter539) { - xfer += oprot->writeString((*_iter757)); + xfer += oprot->writeString((*_iter539)); } xfer += oprot->writeListEnd(); } @@ -5776,18 +5218,11 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_table_objects_by_name_pargs::~ThriftHiveMetastore_get_table_objects_by_name_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_objects_by_name_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -5797,10 +5232,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 _iter758; - for (_iter758 = (*(this->tbl_names)).begin(); _iter758 != (*(this->tbl_names)).end(); ++_iter758) + std::vector ::const_iterator _iter540; + for (_iter540 = (*(this->tbl_names)).begin(); _iter540 != (*(this->tbl_names)).end(); ++_iter540) { - xfer += oprot->writeString((*_iter758)); + xfer += oprot->writeString((*_iter540)); } xfer += oprot->writeListEnd(); } @@ -5808,15 +5243,9 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::th xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_table_objects_by_name_result::~ThriftHiveMetastore_get_table_objects_by_name_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -5841,14 +5270,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 _size759; - ::apache::thrift::protocol::TType _etype762; - xfer += iprot->readListBegin(_etype762, _size759); - this->success.resize(_size759); - uint32_t _i763; - for (_i763 = 0; _i763 < _size759; ++_i763) + uint32_t _size541; + ::apache::thrift::protocol::TType _etype544; + xfer += iprot->readListBegin(_etype544, _size541); + this->success.resize(_size541); + uint32_t _i545; + for (_i545 = 0; _i545 < _size541; ++_i545) { - xfer += this->success[_i763].read(iprot); + xfer += this->success[_i545].read(iprot); } xfer += iprot->readListEnd(); } @@ -5903,10 +5332,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 _iter764; - for (_iter764 = this->success.begin(); _iter764 != this->success.end(); ++_iter764) + std::vector
::const_iterator _iter546; + for (_iter546 = this->success.begin(); _iter546 != this->success.end(); ++_iter546) { - xfer += (*_iter764).write(oprot); + xfer += (*_iter546).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5929,11 +5358,6 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::write(::apache::t return xfer; } - -ThriftHiveMetastore_get_table_objects_by_name_presult::~ThriftHiveMetastore_get_table_objects_by_name_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_objects_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -5958,14 +5382,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 _size765; - ::apache::thrift::protocol::TType _etype768; - xfer += iprot->readListBegin(_etype768, _size765); - (*(this->success)).resize(_size765); - uint32_t _i769; - for (_i769 = 0; _i769 < _size765; ++_i769) + uint32_t _size547; + ::apache::thrift::protocol::TType _etype550; + xfer += iprot->readListBegin(_etype550, _size547); + (*(this->success)).resize(_size547); + uint32_t _i551; + for (_i551 = 0; _i551 < _size547; ++_i551) { - xfer += (*(this->success))[_i769].read(iprot); + xfer += (*(this->success))[_i551].read(iprot); } xfer += iprot->readListEnd(); } @@ -6010,11 +5434,6 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_presult::read(::apache::t return xfer; } - -ThriftHiveMetastore_get_table_names_by_filter_args::~ThriftHiveMetastore_get_table_names_by_filter_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_names_by_filter_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -6073,7 +5492,6 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_args::read(::apache::thri uint32_t ThriftHiveMetastore_get_table_names_by_filter_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_names_by_filter_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6090,18 +5508,11 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_args::write(::apache::thr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_table_names_by_filter_pargs::~ThriftHiveMetastore_get_table_names_by_filter_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_names_by_filter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_names_by_filter_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6118,15 +5529,9 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_pargs::write(::apache::th xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_table_names_by_filter_result::~ThriftHiveMetastore_get_table_names_by_filter_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -6151,14 +5556,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 _size770; - ::apache::thrift::protocol::TType _etype773; - xfer += iprot->readListBegin(_etype773, _size770); - this->success.resize(_size770); - uint32_t _i774; - for (_i774 = 0; _i774 < _size770; ++_i774) + uint32_t _size552; + ::apache::thrift::protocol::TType _etype555; + xfer += iprot->readListBegin(_etype555, _size552); + this->success.resize(_size552); + uint32_t _i556; + for (_i556 = 0; _i556 < _size552; ++_i556) { - xfer += iprot->readString(this->success[_i774]); + xfer += iprot->readString(this->success[_i556]); } xfer += iprot->readListEnd(); } @@ -6213,10 +5618,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 _iter775; - for (_iter775 = this->success.begin(); _iter775 != this->success.end(); ++_iter775) + std::vector ::const_iterator _iter557; + for (_iter557 = this->success.begin(); _iter557 != this->success.end(); ++_iter557) { - xfer += oprot->writeString((*_iter775)); + xfer += oprot->writeString((*_iter557)); } xfer += oprot->writeListEnd(); } @@ -6239,11 +5644,6 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::write(::apache::t return xfer; } - -ThriftHiveMetastore_get_table_names_by_filter_presult::~ThriftHiveMetastore_get_table_names_by_filter_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_names_by_filter_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -6268,14 +5668,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 _size776; - ::apache::thrift::protocol::TType _etype779; - xfer += iprot->readListBegin(_etype779, _size776); - (*(this->success)).resize(_size776); - uint32_t _i780; - for (_i780 = 0; _i780 < _size776; ++_i780) + uint32_t _size558; + ::apache::thrift::protocol::TType _etype561; + xfer += iprot->readListBegin(_etype561, _size558); + (*(this->success)).resize(_size558); + uint32_t _i562; + for (_i562 = 0; _i562 < _size558; ++_i562) { - xfer += iprot->readString((*(this->success))[_i780]); + xfer += iprot->readString((*(this->success))[_i562]); } xfer += iprot->readListEnd(); } @@ -6320,11 +5720,6 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_presult::read(::apache::t return xfer; } - -ThriftHiveMetastore_alter_table_args::~ThriftHiveMetastore_alter_table_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -6383,7 +5778,6 @@ uint32_t ThriftHiveMetastore_alter_table_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_alter_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6400,18 +5794,11 @@ uint32_t ThriftHiveMetastore_alter_table_args::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_table_pargs::~ThriftHiveMetastore_alter_table_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6428,15 +5815,9 @@ uint32_t ThriftHiveMetastore_alter_table_pargs::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_table_result::~ThriftHiveMetastore_alter_table_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -6505,11 +5886,6 @@ uint32_t ThriftHiveMetastore_alter_table_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_alter_table_presult::~ThriftHiveMetastore_alter_table_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -6558,11 +5934,6 @@ uint32_t ThriftHiveMetastore_alter_table_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_alter_table_with_environment_context_args::~ThriftHiveMetastore_alter_table_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -6629,7 +6000,6 @@ uint32_t ThriftHiveMetastore_alter_table_with_environment_context_args::read(::a uint32_t ThriftHiveMetastore_alter_table_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_with_environment_context_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6650,18 +6020,11 @@ uint32_t ThriftHiveMetastore_alter_table_with_environment_context_args::write(:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_table_with_environment_context_pargs::~ThriftHiveMetastore_alter_table_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6682,15 +6045,9 @@ uint32_t ThriftHiveMetastore_alter_table_with_environment_context_pargs::write(: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_table_with_environment_context_result::~ThriftHiveMetastore_alter_table_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -6759,11 +6116,6 @@ uint32_t ThriftHiveMetastore_alter_table_with_environment_context_result::write( return xfer; } - -ThriftHiveMetastore_alter_table_with_environment_context_presult::~ThriftHiveMetastore_alter_table_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -6812,11 +6164,6 @@ uint32_t ThriftHiveMetastore_alter_table_with_environment_context_presult::read( return xfer; } - -ThriftHiveMetastore_alter_table_with_cascade_args::~ThriftHiveMetastore_alter_table_with_cascade_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_cascade_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -6883,7 +6230,6 @@ uint32_t ThriftHiveMetastore_alter_table_with_cascade_args::read(::apache::thrif uint32_t ThriftHiveMetastore_alter_table_with_cascade_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_with_cascade_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6904,18 +6250,11 @@ uint32_t ThriftHiveMetastore_alter_table_with_cascade_args::write(::apache::thri xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_table_with_cascade_pargs::~ThriftHiveMetastore_alter_table_with_cascade_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_cascade_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_table_with_cascade_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -6936,15 +6275,9 @@ uint32_t ThriftHiveMetastore_alter_table_with_cascade_pargs::write(::apache::thr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_table_with_cascade_result::~ThriftHiveMetastore_alter_table_with_cascade_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_cascade_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -7013,11 +6346,6 @@ uint32_t ThriftHiveMetastore_alter_table_with_cascade_result::write(::apache::th return xfer; } - -ThriftHiveMetastore_alter_table_with_cascade_presult::~ThriftHiveMetastore_alter_table_with_cascade_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_table_with_cascade_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -7066,11 +6394,6 @@ uint32_t ThriftHiveMetastore_alter_table_with_cascade_presult::read(::apache::th return xfer; } - -ThriftHiveMetastore_add_partition_args::~ThriftHiveMetastore_add_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -7113,7 +6436,6 @@ uint32_t ThriftHiveMetastore_add_partition_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_add_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partition_args"); xfer += oprot->writeFieldBegin("new_part", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7122,18 +6444,11 @@ uint32_t ThriftHiveMetastore_add_partition_args::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_partition_pargs::~ThriftHiveMetastore_add_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partition_pargs"); xfer += oprot->writeFieldBegin("new_part", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7142,15 +6457,9 @@ uint32_t ThriftHiveMetastore_add_partition_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_partition_result::~ThriftHiveMetastore_add_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -7243,11 +6552,6 @@ uint32_t ThriftHiveMetastore_add_partition_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_add_partition_presult::~ThriftHiveMetastore_add_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -7312,11 +6616,6 @@ uint32_t ThriftHiveMetastore_add_partition_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_add_partition_with_environment_context_args::~ThriftHiveMetastore_add_partition_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -7367,7 +6666,6 @@ uint32_t ThriftHiveMetastore_add_partition_with_environment_context_args::read(: uint32_t ThriftHiveMetastore_add_partition_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partition_with_environment_context_args"); xfer += oprot->writeFieldBegin("new_part", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7380,18 +6678,11 @@ uint32_t ThriftHiveMetastore_add_partition_with_environment_context_args::write( xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_partition_with_environment_context_pargs::~ThriftHiveMetastore_add_partition_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partition_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("new_part", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7404,15 +6695,9 @@ uint32_t ThriftHiveMetastore_add_partition_with_environment_context_pargs::write xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_partition_with_environment_context_result::~ThriftHiveMetastore_add_partition_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -7505,11 +6790,6 @@ uint32_t ThriftHiveMetastore_add_partition_with_environment_context_result::writ return xfer; } - -ThriftHiveMetastore_add_partition_with_environment_context_presult::~ThriftHiveMetastore_add_partition_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_add_partition_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -7574,11 +6854,6 @@ uint32_t ThriftHiveMetastore_add_partition_with_environment_context_presult::rea return xfer; } - -ThriftHiveMetastore_add_partitions_args::~ThriftHiveMetastore_add_partitions_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -7603,14 +6878,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size781; - ::apache::thrift::protocol::TType _etype784; - xfer += iprot->readListBegin(_etype784, _size781); - this->new_parts.resize(_size781); - uint32_t _i785; - for (_i785 = 0; _i785 < _size781; ++_i785) + uint32_t _size563; + ::apache::thrift::protocol::TType _etype566; + xfer += iprot->readListBegin(_etype566, _size563); + this->new_parts.resize(_size563); + uint32_t _i567; + for (_i567 = 0; _i567 < _size563; ++_i567) { - xfer += this->new_parts[_i785].read(iprot); + xfer += this->new_parts[_i567].read(iprot); } xfer += iprot->readListEnd(); } @@ -7633,16 +6908,15 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_args"); 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 _iter786; - for (_iter786 = this->new_parts.begin(); _iter786 != this->new_parts.end(); ++_iter786) + std::vector ::const_iterator _iter568; + for (_iter568 = this->new_parts.begin(); _iter568 != this->new_parts.end(); ++_iter568) { - xfer += (*_iter786).write(oprot); + xfer += (*_iter568).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7650,27 +6924,20 @@ uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_partitions_pargs::~ThriftHiveMetastore_add_partitions_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_pargs"); 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 _iter787; - for (_iter787 = (*(this->new_parts)).begin(); _iter787 != (*(this->new_parts)).end(); ++_iter787) + std::vector ::const_iterator _iter569; + for (_iter569 = (*(this->new_parts)).begin(); _iter569 != (*(this->new_parts)).end(); ++_iter569) { - xfer += (*_iter787).write(oprot); + xfer += (*_iter569).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7678,15 +6945,9 @@ uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_partitions_result::~ThriftHiveMetastore_add_partitions_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -7779,11 +7040,6 @@ uint32_t ThriftHiveMetastore_add_partitions_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_add_partitions_presult::~ThriftHiveMetastore_add_partitions_presult() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -7848,11 +7104,6 @@ uint32_t ThriftHiveMetastore_add_partitions_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_add_partitions_pspec_args::~ThriftHiveMetastore_add_partitions_pspec_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_pspec_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -7877,14 +7128,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 _size788; - ::apache::thrift::protocol::TType _etype791; - xfer += iprot->readListBegin(_etype791, _size788); - this->new_parts.resize(_size788); - uint32_t _i792; - for (_i792 = 0; _i792 < _size788; ++_i792) + uint32_t _size570; + ::apache::thrift::protocol::TType _etype573; + xfer += iprot->readListBegin(_etype573, _size570); + this->new_parts.resize(_size570); + uint32_t _i574; + for (_i574 = 0; _i574 < _size570; ++_i574) { - xfer += this->new_parts[_i792].read(iprot); + xfer += this->new_parts[_i574].read(iprot); } xfer += iprot->readListEnd(); } @@ -7907,16 +7158,15 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::read(::apache::thrift::p uint32_t ThriftHiveMetastore_add_partitions_pspec_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_pspec_args"); 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 _iter793; - for (_iter793 = this->new_parts.begin(); _iter793 != this->new_parts.end(); ++_iter793) + std::vector ::const_iterator _iter575; + for (_iter575 = this->new_parts.begin(); _iter575 != this->new_parts.end(); ++_iter575) { - xfer += (*_iter793).write(oprot); + xfer += (*_iter575).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7924,27 +7174,20 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::write(::apache::thrift:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_partitions_pspec_pargs::~ThriftHiveMetastore_add_partitions_pspec_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_pspec_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_pspec_pargs"); 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 _iter794; - for (_iter794 = (*(this->new_parts)).begin(); _iter794 != (*(this->new_parts)).end(); ++_iter794) + std::vector ::const_iterator _iter576; + for (_iter576 = (*(this->new_parts)).begin(); _iter576 != (*(this->new_parts)).end(); ++_iter576) { - xfer += (*_iter794).write(oprot); + xfer += (*_iter576).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7952,15 +7195,9 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_pargs::write(::apache::thrift: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_partitions_pspec_result::~ThriftHiveMetastore_add_partitions_pspec_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_pspec_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -8053,11 +7290,6 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_result::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_add_partitions_pspec_presult::~ThriftHiveMetastore_add_partitions_pspec_presult() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_pspec_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -8122,11 +7354,6 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_presult::read(::apache::thrift return xfer; } - -ThriftHiveMetastore_append_partition_args::~ThriftHiveMetastore_append_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -8167,14 +7394,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size795; - ::apache::thrift::protocol::TType _etype798; - xfer += iprot->readListBegin(_etype798, _size795); - this->part_vals.resize(_size795); - uint32_t _i799; - for (_i799 = 0; _i799 < _size795; ++_i799) + uint32_t _size577; + ::apache::thrift::protocol::TType _etype580; + xfer += iprot->readListBegin(_etype580, _size577); + this->part_vals.resize(_size577); + uint32_t _i581; + for (_i581 = 0; _i581 < _size577; ++_i581) { - xfer += iprot->readString(this->part_vals[_i799]); + xfer += iprot->readString(this->part_vals[_i581]); } xfer += iprot->readListEnd(); } @@ -8197,7 +7424,6 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -8211,10 +7437,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 _iter800; - for (_iter800 = this->part_vals.begin(); _iter800 != this->part_vals.end(); ++_iter800) + std::vector ::const_iterator _iter582; + for (_iter582 = this->part_vals.begin(); _iter582 != this->part_vals.end(); ++_iter582) { - xfer += oprot->writeString((*_iter800)); + xfer += oprot->writeString((*_iter582)); } xfer += oprot->writeListEnd(); } @@ -8222,18 +7448,11 @@ uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_append_partition_pargs::~ThriftHiveMetastore_append_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -8247,10 +7466,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 _iter801; - for (_iter801 = (*(this->part_vals)).begin(); _iter801 != (*(this->part_vals)).end(); ++_iter801) + std::vector ::const_iterator _iter583; + for (_iter583 = (*(this->part_vals)).begin(); _iter583 != (*(this->part_vals)).end(); ++_iter583) { - xfer += oprot->writeString((*_iter801)); + xfer += oprot->writeString((*_iter583)); } xfer += oprot->writeListEnd(); } @@ -8258,15 +7477,9 @@ uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_append_partition_result::~ThriftHiveMetastore_append_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -8359,11 +7572,6 @@ uint32_t ThriftHiveMetastore_append_partition_result::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_append_partition_presult::~ThriftHiveMetastore_append_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -8428,11 +7636,6 @@ uint32_t ThriftHiveMetastore_append_partition_presult::read(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_add_partitions_req_args::~ThriftHiveMetastore_add_partitions_req_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_req_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -8475,7 +7678,6 @@ uint32_t ThriftHiveMetastore_add_partitions_req_args::read(::apache::thrift::pro uint32_t ThriftHiveMetastore_add_partitions_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_req_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8484,18 +7686,11 @@ uint32_t ThriftHiveMetastore_add_partitions_req_args::write(::apache::thrift::pr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_partitions_req_pargs::~ThriftHiveMetastore_add_partitions_req_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_partitions_req_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8504,15 +7699,9 @@ uint32_t ThriftHiveMetastore_add_partitions_req_pargs::write(::apache::thrift::p xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_partitions_req_result::~ThriftHiveMetastore_add_partitions_req_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_req_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -8605,11 +7794,6 @@ uint32_t ThriftHiveMetastore_add_partitions_req_result::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_add_partitions_req_presult::~ThriftHiveMetastore_add_partitions_req_presult() throw() { -} - - uint32_t ThriftHiveMetastore_add_partitions_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -8674,11 +7858,6 @@ uint32_t ThriftHiveMetastore_add_partitions_req_presult::read(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_append_partition_with_environment_context_args::~ThriftHiveMetastore_append_partition_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -8719,14 +7898,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size802; - ::apache::thrift::protocol::TType _etype805; - xfer += iprot->readListBegin(_etype805, _size802); - this->part_vals.resize(_size802); - uint32_t _i806; - for (_i806 = 0; _i806 < _size802; ++_i806) + uint32_t _size584; + ::apache::thrift::protocol::TType _etype587; + xfer += iprot->readListBegin(_etype587, _size584); + this->part_vals.resize(_size584); + uint32_t _i588; + for (_i588 = 0; _i588 < _size584; ++_i588) { - xfer += iprot->readString(this->part_vals[_i806]); + xfer += iprot->readString(this->part_vals[_i588]); } xfer += iprot->readListEnd(); } @@ -8757,7 +7936,6 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_with_environment_context_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -8771,10 +7949,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 _iter807; - for (_iter807 = this->part_vals.begin(); _iter807 != this->part_vals.end(); ++_iter807) + std::vector ::const_iterator _iter589; + for (_iter589 = this->part_vals.begin(); _iter589 != this->part_vals.end(); ++_iter589) { - xfer += oprot->writeString((*_iter807)); + xfer += oprot->writeString((*_iter589)); } xfer += oprot->writeListEnd(); } @@ -8786,18 +7964,11 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::wri xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_append_partition_with_environment_context_pargs::~ThriftHiveMetastore_append_partition_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -8811,10 +7982,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 _iter808; - for (_iter808 = (*(this->part_vals)).begin(); _iter808 != (*(this->part_vals)).end(); ++_iter808) + std::vector ::const_iterator _iter590; + for (_iter590 = (*(this->part_vals)).begin(); _iter590 != (*(this->part_vals)).end(); ++_iter590) { - xfer += oprot->writeString((*_iter808)); + xfer += oprot->writeString((*_iter590)); } xfer += oprot->writeListEnd(); } @@ -8826,15 +7997,9 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_pargs::wr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_append_partition_with_environment_context_result::~ThriftHiveMetastore_append_partition_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -8927,11 +8092,6 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_result::w return xfer; } - -ThriftHiveMetastore_append_partition_with_environment_context_presult::~ThriftHiveMetastore_append_partition_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -8996,11 +8156,6 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_presult:: return xfer; } - -ThriftHiveMetastore_append_partition_by_name_args::~ThriftHiveMetastore_append_partition_by_name_args() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -9059,7 +8214,6 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_args::read(::apache::thrif uint32_t ThriftHiveMetastore_append_partition_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_by_name_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -9076,18 +8230,11 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_args::write(::apache::thri xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_append_partition_by_name_pargs::~ThriftHiveMetastore_append_partition_by_name_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_by_name_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -9104,15 +8251,9 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_pargs::write(::apache::thr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_append_partition_by_name_result::~ThriftHiveMetastore_append_partition_by_name_result() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -9205,12 +8346,185 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_result::write(::apache::th return xfer; } +uint32_t ThriftHiveMetastore_append_partition_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) { -ThriftHiveMetastore_append_partition_by_name_presult::~ThriftHiveMetastore_append_partition_by_name_presult() throw() { + 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; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; } +uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; -uint32_t ThriftHiveMetastore_append_partition_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + 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_STRUCT) { + xfer += this->environment_context.read(iprot); + this->__isset.environment_context = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_by_name_with_environment_context_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->writeFieldBegin("environment_context", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->environment_context.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_by_name_with_environment_context_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->writeFieldBegin("environment_context", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += (*(this->environment_context)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -9232,204 +8546,7 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_presult::read(::apache::th { 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; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -ThriftHiveMetastore_append_partition_by_name_with_environment_context_args::~ThriftHiveMetastore_append_partition_by_name_with_environment_context_args() throw() { -} - - -uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->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_STRUCT) { - xfer += this->environment_context.read(iprot); - this->__isset.environment_context = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_by_name_with_environment_context_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->writeFieldBegin("environment_context", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->environment_context.write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs::~ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs() throw() { -} - - -uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_append_partition_by_name_with_environment_context_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->writeFieldBegin("environment_context", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += (*(this->environment_context)).write(oprot); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -ThriftHiveMetastore_append_partition_by_name_with_environment_context_result::~ThriftHiveMetastore_append_partition_by_name_with_environment_context_result() throw() { -} - - -uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -9499,11 +8616,6 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_r return xfer; } - -ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult::~ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -9568,11 +8680,6 @@ uint32_t ThriftHiveMetastore_append_partition_by_name_with_environment_context_p return xfer; } - -ThriftHiveMetastore_drop_partition_args::~ThriftHiveMetastore_drop_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -9613,14 +8720,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size809; - ::apache::thrift::protocol::TType _etype812; - xfer += iprot->readListBegin(_etype812, _size809); - this->part_vals.resize(_size809); - uint32_t _i813; - for (_i813 = 0; _i813 < _size809; ++_i813) + uint32_t _size591; + ::apache::thrift::protocol::TType _etype594; + xfer += iprot->readListBegin(_etype594, _size591); + this->part_vals.resize(_size591); + uint32_t _i595; + for (_i595 = 0; _i595 < _size591; ++_i595) { - xfer += iprot->readString(this->part_vals[_i813]); + xfer += iprot->readString(this->part_vals[_i595]); } xfer += iprot->readListEnd(); } @@ -9651,7 +8758,6 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -9665,10 +8771,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 _iter814; - for (_iter814 = this->part_vals.begin(); _iter814 != this->part_vals.end(); ++_iter814) + std::vector ::const_iterator _iter596; + for (_iter596 = this->part_vals.begin(); _iter596 != this->part_vals.end(); ++_iter596) { - xfer += oprot->writeString((*_iter814)); + xfer += oprot->writeString((*_iter596)); } xfer += oprot->writeListEnd(); } @@ -9680,18 +8786,11 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_partition_pargs::~ThriftHiveMetastore_drop_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -9705,10 +8804,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 _iter815; - for (_iter815 = (*(this->part_vals)).begin(); _iter815 != (*(this->part_vals)).end(); ++_iter815) + std::vector ::const_iterator _iter597; + for (_iter597 = (*(this->part_vals)).begin(); _iter597 != (*(this->part_vals)).end(); ++_iter597) { - xfer += oprot->writeString((*_iter815)); + xfer += oprot->writeString((*_iter597)); } xfer += oprot->writeListEnd(); } @@ -9720,15 +8819,9 @@ uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_partition_result::~ThriftHiveMetastore_drop_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -9809,11 +8902,6 @@ uint32_t ThriftHiveMetastore_drop_partition_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_drop_partition_presult::~ThriftHiveMetastore_drop_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -9870,11 +8958,6 @@ uint32_t ThriftHiveMetastore_drop_partition_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_drop_partition_with_environment_context_args::~ThriftHiveMetastore_drop_partition_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -9915,14 +8998,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size816; - ::apache::thrift::protocol::TType _etype819; - xfer += iprot->readListBegin(_etype819, _size816); - this->part_vals.resize(_size816); - uint32_t _i820; - for (_i820 = 0; _i820 < _size816; ++_i820) + uint32_t _size598; + ::apache::thrift::protocol::TType _etype601; + xfer += iprot->readListBegin(_etype601, _size598); + this->part_vals.resize(_size598); + uint32_t _i602; + for (_i602 = 0; _i602 < _size598; ++_i602) { - xfer += iprot->readString(this->part_vals[_i820]); + xfer += iprot->readString(this->part_vals[_i602]); } xfer += iprot->readListEnd(); } @@ -9961,7 +9044,6 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_with_environment_context_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -9975,10 +9057,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 _iter821; - for (_iter821 = this->part_vals.begin(); _iter821 != this->part_vals.end(); ++_iter821) + std::vector ::const_iterator _iter603; + for (_iter603 = this->part_vals.begin(); _iter603 != this->part_vals.end(); ++_iter603) { - xfer += oprot->writeString((*_iter821)); + xfer += oprot->writeString((*_iter603)); } xfer += oprot->writeListEnd(); } @@ -9994,18 +9076,11 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_partition_with_environment_context_pargs::~ThriftHiveMetastore_drop_partition_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -10019,10 +9094,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 _iter822; - for (_iter822 = (*(this->part_vals)).begin(); _iter822 != (*(this->part_vals)).end(); ++_iter822) + std::vector ::const_iterator _iter604; + for (_iter604 = (*(this->part_vals)).begin(); _iter604 != (*(this->part_vals)).end(); ++_iter604) { - xfer += oprot->writeString((*_iter822)); + xfer += oprot->writeString((*_iter604)); } xfer += oprot->writeListEnd(); } @@ -10038,15 +9113,9 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::writ xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_partition_with_environment_context_result::~ThriftHiveMetastore_drop_partition_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -10127,11 +9196,6 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_result::wri return xfer; } - -ThriftHiveMetastore_drop_partition_with_environment_context_presult::~ThriftHiveMetastore_drop_partition_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -10188,11 +9252,6 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_presult::re return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_args::~ThriftHiveMetastore_drop_partition_by_name_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -10259,7 +9318,6 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_drop_partition_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_by_name_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -10280,18 +9338,11 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_args::write(::apache::thrift xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_pargs::~ThriftHiveMetastore_drop_partition_by_name_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_by_name_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -10312,15 +9363,9 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_pargs::write(::apache::thrif xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_result::~ThriftHiveMetastore_drop_partition_by_name_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -10401,11 +9446,6 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_presult::~ThriftHiveMetastore_drop_partition_by_name_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -10462,11 +9502,6 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args::~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -10541,7 +9576,6 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_arg uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -10566,18 +9600,11 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_arg xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs::~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -10602,15 +9629,9 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_par xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result::~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -10691,11 +9712,6 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_res return xfer; } - -ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult::~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -10752,11 +9768,6 @@ uint32_t ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pre return xfer; } - -ThriftHiveMetastore_drop_partitions_req_args::~ThriftHiveMetastore_drop_partitions_req_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partitions_req_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -10799,7 +9810,6 @@ uint32_t ThriftHiveMetastore_drop_partitions_req_args::read(::apache::thrift::pr uint32_t ThriftHiveMetastore_drop_partitions_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partitions_req_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -10808,18 +9818,11 @@ uint32_t ThriftHiveMetastore_drop_partitions_req_args::write(::apache::thrift::p xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_partitions_req_pargs::~ThriftHiveMetastore_drop_partitions_req_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partitions_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_partitions_req_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -10828,15 +9831,9 @@ uint32_t ThriftHiveMetastore_drop_partitions_req_pargs::write(::apache::thrift:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_partitions_req_result::~ThriftHiveMetastore_drop_partitions_req_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partitions_req_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -10917,11 +9914,6 @@ uint32_t ThriftHiveMetastore_drop_partitions_req_result::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_drop_partitions_req_presult::~ThriftHiveMetastore_drop_partitions_req_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_partitions_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -10978,11 +9970,6 @@ uint32_t ThriftHiveMetastore_drop_partitions_req_presult::read(::apache::thrift: return xfer; } - -ThriftHiveMetastore_get_partition_args::~ThriftHiveMetastore_get_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -11023,14 +10010,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size823; - ::apache::thrift::protocol::TType _etype826; - xfer += iprot->readListBegin(_etype826, _size823); - this->part_vals.resize(_size823); - uint32_t _i827; - for (_i827 = 0; _i827 < _size823; ++_i827) + uint32_t _size605; + ::apache::thrift::protocol::TType _etype608; + xfer += iprot->readListBegin(_etype608, _size605); + this->part_vals.resize(_size605); + uint32_t _i609; + for (_i609 = 0; _i609 < _size605; ++_i609) { - xfer += iprot->readString(this->part_vals[_i827]); + xfer += iprot->readString(this->part_vals[_i609]); } xfer += iprot->readListEnd(); } @@ -11053,7 +10040,6 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -11067,10 +10053,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 _iter828; - for (_iter828 = this->part_vals.begin(); _iter828 != this->part_vals.end(); ++_iter828) + std::vector ::const_iterator _iter610; + for (_iter610 = this->part_vals.begin(); _iter610 != this->part_vals.end(); ++_iter610) { - xfer += oprot->writeString((*_iter828)); + xfer += oprot->writeString((*_iter610)); } xfer += oprot->writeListEnd(); } @@ -11078,18 +10064,11 @@ uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partition_pargs::~ThriftHiveMetastore_get_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -11103,10 +10082,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 _iter829; - for (_iter829 = (*(this->part_vals)).begin(); _iter829 != (*(this->part_vals)).end(); ++_iter829) + std::vector ::const_iterator _iter611; + for (_iter611 = (*(this->part_vals)).begin(); _iter611 != (*(this->part_vals)).end(); ++_iter611) { - xfer += oprot->writeString((*_iter829)); + xfer += oprot->writeString((*_iter611)); } xfer += oprot->writeListEnd(); } @@ -11114,15 +10093,9 @@ uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partition_result::~ThriftHiveMetastore_get_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -11203,11 +10176,6 @@ uint32_t ThriftHiveMetastore_get_partition_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_partition_presult::~ThriftHiveMetastore_get_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -11264,11 +10232,6 @@ uint32_t ThriftHiveMetastore_get_partition_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_exchange_partition_args::~ThriftHiveMetastore_exchange_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -11293,17 +10256,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size830; - ::apache::thrift::protocol::TType _ktype831; - ::apache::thrift::protocol::TType _vtype832; - xfer += iprot->readMapBegin(_ktype831, _vtype832, _size830); - uint32_t _i834; - for (_i834 = 0; _i834 < _size830; ++_i834) + uint32_t _size612; + ::apache::thrift::protocol::TType _ktype613; + ::apache::thrift::protocol::TType _vtype614; + xfer += iprot->readMapBegin(_ktype613, _vtype614, _size612); + uint32_t _i616; + for (_i616 = 0; _i616 < _size612; ++_i616) { - std::string _key835; - xfer += iprot->readString(_key835); - std::string& _val836 = this->partitionSpecs[_key835]; - xfer += iprot->readString(_val836); + std::string _key617; + xfer += iprot->readString(_key617); + std::string& _val618 = this->partitionSpecs[_key617]; + xfer += iprot->readString(_val618); } xfer += iprot->readMapEnd(); } @@ -11358,17 +10321,16 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro uint32_t ThriftHiveMetastore_exchange_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_exchange_partition_args"); 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 _iter837; - for (_iter837 = this->partitionSpecs.begin(); _iter837 != this->partitionSpecs.end(); ++_iter837) + std::map ::const_iterator _iter619; + for (_iter619 = this->partitionSpecs.begin(); _iter619 != this->partitionSpecs.end(); ++_iter619) { - xfer += oprot->writeString(_iter837->first); - xfer += oprot->writeString(_iter837->second); + xfer += oprot->writeString(_iter619->first); + xfer += oprot->writeString(_iter619->second); } xfer += oprot->writeMapEnd(); } @@ -11392,28 +10354,21 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::write(::apache::thrift::pr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_exchange_partition_pargs::~ThriftHiveMetastore_exchange_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_exchange_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_exchange_partition_pargs"); 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 _iter838; - for (_iter838 = (*(this->partitionSpecs)).begin(); _iter838 != (*(this->partitionSpecs)).end(); ++_iter838) + std::map ::const_iterator _iter620; + for (_iter620 = (*(this->partitionSpecs)).begin(); _iter620 != (*(this->partitionSpecs)).end(); ++_iter620) { - xfer += oprot->writeString(_iter838->first); - xfer += oprot->writeString(_iter838->second); + xfer += oprot->writeString(_iter620->first); + xfer += oprot->writeString(_iter620->second); } xfer += oprot->writeMapEnd(); } @@ -11437,15 +10392,9 @@ uint32_t ThriftHiveMetastore_exchange_partition_pargs::write(::apache::thrift::p xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_exchange_partition_result::~ThriftHiveMetastore_exchange_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_exchange_partition_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -11550,11 +10499,6 @@ uint32_t ThriftHiveMetastore_exchange_partition_result::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_exchange_partition_presult::~ThriftHiveMetastore_exchange_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_exchange_partition_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -11627,11 +10571,6 @@ uint32_t ThriftHiveMetastore_exchange_partition_presult::read(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_get_partition_with_auth_args::~ThriftHiveMetastore_get_partition_with_auth_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -11672,14 +10611,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 _size839; - ::apache::thrift::protocol::TType _etype842; - xfer += iprot->readListBegin(_etype842, _size839); - this->part_vals.resize(_size839); - uint32_t _i843; - for (_i843 = 0; _i843 < _size839; ++_i843) + uint32_t _size621; + ::apache::thrift::protocol::TType _etype624; + xfer += iprot->readListBegin(_etype624, _size621); + this->part_vals.resize(_size621); + uint32_t _i625; + for (_i625 = 0; _i625 < _size621; ++_i625) { - xfer += iprot->readString(this->part_vals[_i843]); + xfer += iprot->readString(this->part_vals[_i625]); } xfer += iprot->readListEnd(); } @@ -11700,14 +10639,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 _size844; - ::apache::thrift::protocol::TType _etype847; - xfer += iprot->readListBegin(_etype847, _size844); - this->group_names.resize(_size844); - uint32_t _i848; - for (_i848 = 0; _i848 < _size844; ++_i848) + uint32_t _size626; + ::apache::thrift::protocol::TType _etype629; + xfer += iprot->readListBegin(_etype629, _size626); + this->group_names.resize(_size626); + uint32_t _i630; + for (_i630 = 0; _i630 < _size626; ++_i630) { - xfer += iprot->readString(this->group_names[_i848]); + xfer += iprot->readString(this->group_names[_i630]); } xfer += iprot->readListEnd(); } @@ -11730,7 +10669,6 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_with_auth_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -11744,10 +10682,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 _iter849; - for (_iter849 = this->part_vals.begin(); _iter849 != this->part_vals.end(); ++_iter849) + std::vector ::const_iterator _iter631; + for (_iter631 = this->part_vals.begin(); _iter631 != this->part_vals.end(); ++_iter631) { - xfer += oprot->writeString((*_iter849)); + xfer += oprot->writeString((*_iter631)); } xfer += oprot->writeListEnd(); } @@ -11760,10 +10698,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 _iter850; - for (_iter850 = this->group_names.begin(); _iter850 != this->group_names.end(); ++_iter850) + std::vector ::const_iterator _iter632; + for (_iter632 = this->group_names.begin(); _iter632 != this->group_names.end(); ++_iter632) { - xfer += oprot->writeString((*_iter850)); + xfer += oprot->writeString((*_iter632)); } xfer += oprot->writeListEnd(); } @@ -11771,18 +10709,11 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partition_with_auth_pargs::~ThriftHiveMetastore_get_partition_with_auth_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_with_auth_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -11796,10 +10727,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 _iter851; - for (_iter851 = (*(this->part_vals)).begin(); _iter851 != (*(this->part_vals)).end(); ++_iter851) + std::vector ::const_iterator _iter633; + for (_iter633 = (*(this->part_vals)).begin(); _iter633 != (*(this->part_vals)).end(); ++_iter633) { - xfer += oprot->writeString((*_iter851)); + xfer += oprot->writeString((*_iter633)); } xfer += oprot->writeListEnd(); } @@ -11812,10 +10743,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 _iter852; - for (_iter852 = (*(this->group_names)).begin(); _iter852 != (*(this->group_names)).end(); ++_iter852) + std::vector ::const_iterator _iter634; + for (_iter634 = (*(this->group_names)).begin(); _iter634 != (*(this->group_names)).end(); ++_iter634) { - xfer += oprot->writeString((*_iter852)); + xfer += oprot->writeString((*_iter634)); } xfer += oprot->writeListEnd(); } @@ -11823,15 +10754,9 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partition_with_auth_result::~ThriftHiveMetastore_get_partition_with_auth_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_with_auth_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -11912,11 +10837,6 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_result::write(::apache::thr return xfer; } - -ThriftHiveMetastore_get_partition_with_auth_presult::~ThriftHiveMetastore_get_partition_with_auth_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_with_auth_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -11973,11 +10893,6 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_presult::read(::apache::thr return xfer; } - -ThriftHiveMetastore_get_partition_by_name_args::~ThriftHiveMetastore_get_partition_by_name_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -12036,7 +10951,6 @@ uint32_t ThriftHiveMetastore_get_partition_by_name_args::read(::apache::thrift:: uint32_t ThriftHiveMetastore_get_partition_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_by_name_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -12053,18 +10967,11 @@ uint32_t ThriftHiveMetastore_get_partition_by_name_args::write(::apache::thrift: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partition_by_name_pargs::~ThriftHiveMetastore_get_partition_by_name_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_by_name_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -12081,15 +10988,9 @@ uint32_t ThriftHiveMetastore_get_partition_by_name_pargs::write(::apache::thrift xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partition_by_name_result::~ThriftHiveMetastore_get_partition_by_name_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -12170,11 +11071,6 @@ uint32_t ThriftHiveMetastore_get_partition_by_name_result::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_get_partition_by_name_presult::~ThriftHiveMetastore_get_partition_by_name_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -12231,11 +11127,6 @@ uint32_t ThriftHiveMetastore_get_partition_by_name_presult::read(::apache::thrif return xfer; } - -ThriftHiveMetastore_get_partitions_args::~ThriftHiveMetastore_get_partitions_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -12294,7 +11185,6 @@ uint32_t ThriftHiveMetastore_get_partitions_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_get_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -12311,18 +11201,11 @@ uint32_t ThriftHiveMetastore_get_partitions_args::write(::apache::thrift::protoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_pargs::~ThriftHiveMetastore_get_partitions_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -12339,15 +11222,9 @@ uint32_t ThriftHiveMetastore_get_partitions_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_result::~ThriftHiveMetastore_get_partitions_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -12372,14 +11249,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto 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 _size635; + ::apache::thrift::protocol::TType _etype638; + xfer += iprot->readListBegin(_etype638, _size635); + this->success.resize(_size635); + uint32_t _i639; + for (_i639 = 0; _i639 < _size635; ++_i639) { - xfer += this->success[_i857].read(iprot); + xfer += this->success[_i639].read(iprot); } xfer += iprot->readListEnd(); } @@ -12426,10 +11303,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 _iter858; - for (_iter858 = this->success.begin(); _iter858 != this->success.end(); ++_iter858) + std::vector ::const_iterator _iter640; + for (_iter640 = this->success.begin(); _iter640 != this->success.end(); ++_iter640) { - xfer += (*_iter858).write(oprot); + xfer += (*_iter640).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12448,11 +11325,6 @@ uint32_t ThriftHiveMetastore_get_partitions_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_partitions_presult::~ThriftHiveMetastore_get_partitions_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -12477,14 +11349,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot 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 _size641; + ::apache::thrift::protocol::TType _etype644; + xfer += iprot->readListBegin(_etype644, _size641); + (*(this->success)).resize(_size641); + uint32_t _i645; + for (_i645 = 0; _i645 < _size641; ++_i645) { - xfer += (*(this->success))[_i863].read(iprot); + xfer += (*(this->success))[_i645].read(iprot); } xfer += iprot->readListEnd(); } @@ -12521,11 +11393,6 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_partitions_with_auth_args::~ThriftHiveMetastore_get_partitions_with_auth_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -12582,14 +11449,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 _size864; - ::apache::thrift::protocol::TType _etype867; - xfer += iprot->readListBegin(_etype867, _size864); - this->group_names.resize(_size864); - uint32_t _i868; - for (_i868 = 0; _i868 < _size864; ++_i868) + uint32_t _size646; + ::apache::thrift::protocol::TType _etype649; + xfer += iprot->readListBegin(_etype649, _size646); + this->group_names.resize(_size646); + uint32_t _i650; + for (_i650 = 0; _i650 < _size646; ++_i650) { - xfer += iprot->readString(this->group_names[_i868]); + xfer += iprot->readString(this->group_names[_i650]); } xfer += iprot->readListEnd(); } @@ -12612,7 +11479,6 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::read(::apache::thrif uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_with_auth_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -12634,10 +11500,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 _iter869; - for (_iter869 = this->group_names.begin(); _iter869 != this->group_names.end(); ++_iter869) + std::vector ::const_iterator _iter651; + for (_iter651 = this->group_names.begin(); _iter651 != this->group_names.end(); ++_iter651) { - xfer += oprot->writeString((*_iter869)); + xfer += oprot->writeString((*_iter651)); } xfer += oprot->writeListEnd(); } @@ -12645,18 +11511,11 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thri xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_with_auth_pargs::~ThriftHiveMetastore_get_partitions_with_auth_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_with_auth_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -12678,10 +11537,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 _iter870; - for (_iter870 = (*(this->group_names)).begin(); _iter870 != (*(this->group_names)).end(); ++_iter870) + std::vector ::const_iterator _iter652; + for (_iter652 = (*(this->group_names)).begin(); _iter652 != (*(this->group_names)).end(); ++_iter652) { - xfer += oprot->writeString((*_iter870)); + xfer += oprot->writeString((*_iter652)); } xfer += oprot->writeListEnd(); } @@ -12689,15 +11548,9 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_with_auth_result::~ThriftHiveMetastore_get_partitions_with_auth_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -12722,14 +11575,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size871; - ::apache::thrift::protocol::TType _etype874; - xfer += iprot->readListBegin(_etype874, _size871); - this->success.resize(_size871); - uint32_t _i875; - for (_i875 = 0; _i875 < _size871; ++_i875) + uint32_t _size653; + ::apache::thrift::protocol::TType _etype656; + xfer += iprot->readListBegin(_etype656, _size653); + this->success.resize(_size653); + uint32_t _i657; + for (_i657 = 0; _i657 < _size653; ++_i657) { - xfer += this->success[_i875].read(iprot); + xfer += this->success[_i657].read(iprot); } xfer += iprot->readListEnd(); } @@ -12776,10 +11629,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 _iter876; - for (_iter876 = this->success.begin(); _iter876 != this->success.end(); ++_iter876) + std::vector ::const_iterator _iter658; + for (_iter658 = this->success.begin(); _iter658 != this->success.end(); ++_iter658) { - xfer += (*_iter876).write(oprot); + xfer += (*_iter658).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12798,11 +11651,6 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::write(::apache::th return xfer; } - -ThriftHiveMetastore_get_partitions_with_auth_presult::~ThriftHiveMetastore_get_partitions_with_auth_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -12827,14 +11675,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size877; - ::apache::thrift::protocol::TType _etype880; - xfer += iprot->readListBegin(_etype880, _size877); - (*(this->success)).resize(_size877); - uint32_t _i881; - for (_i881 = 0; _i881 < _size877; ++_i881) + uint32_t _size659; + ::apache::thrift::protocol::TType _etype662; + xfer += iprot->readListBegin(_etype662, _size659); + (*(this->success)).resize(_size659); + uint32_t _i663; + for (_i663 = 0; _i663 < _size659; ++_i663) { - xfer += (*(this->success))[_i881].read(iprot); + xfer += (*(this->success))[_i663].read(iprot); } xfer += iprot->readListEnd(); } @@ -12871,11 +11719,6 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th return xfer; } - -ThriftHiveMetastore_get_partitions_pspec_args::~ThriftHiveMetastore_get_partitions_pspec_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_pspec_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -12934,7 +11777,6 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_args::read(::apache::thrift::p uint32_t ThriftHiveMetastore_get_partitions_pspec_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_pspec_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -12951,18 +11793,11 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_args::write(::apache::thrift:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_pspec_pargs::~ThriftHiveMetastore_get_partitions_pspec_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_pspec_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_pspec_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -12979,15 +11814,9 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_pargs::write(::apache::thrift: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_pspec_result::~ThriftHiveMetastore_get_partitions_pspec_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -13012,14 +11841,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size882; - ::apache::thrift::protocol::TType _etype885; - xfer += iprot->readListBegin(_etype885, _size882); - this->success.resize(_size882); - uint32_t _i886; - for (_i886 = 0; _i886 < _size882; ++_i886) + uint32_t _size664; + ::apache::thrift::protocol::TType _etype667; + xfer += iprot->readListBegin(_etype667, _size664); + this->success.resize(_size664); + uint32_t _i668; + for (_i668 = 0; _i668 < _size664; ++_i668) { - xfer += this->success[_i886].read(iprot); + xfer += this->success[_i668].read(iprot); } xfer += iprot->readListEnd(); } @@ -13066,10 +11895,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 _iter887; - for (_iter887 = this->success.begin(); _iter887 != this->success.end(); ++_iter887) + std::vector ::const_iterator _iter669; + for (_iter669 = this->success.begin(); _iter669 != this->success.end(); ++_iter669) { - xfer += (*_iter887).write(oprot); + xfer += (*_iter669).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13088,11 +11917,6 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_get_partitions_pspec_presult::~ThriftHiveMetastore_get_partitions_pspec_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -13117,14 +11941,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size888; - ::apache::thrift::protocol::TType _etype891; - xfer += iprot->readListBegin(_etype891, _size888); - (*(this->success)).resize(_size888); - uint32_t _i892; - for (_i892 = 0; _i892 < _size888; ++_i892) + uint32_t _size670; + ::apache::thrift::protocol::TType _etype673; + xfer += iprot->readListBegin(_etype673, _size670); + (*(this->success)).resize(_size670); + uint32_t _i674; + for (_i674 = 0; _i674 < _size670; ++_i674) { - xfer += (*(this->success))[_i892].read(iprot); + xfer += (*(this->success))[_i674].read(iprot); } xfer += iprot->readListEnd(); } @@ -13161,11 +11985,6 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift return xfer; } - -ThriftHiveMetastore_get_partition_names_args::~ThriftHiveMetastore_get_partition_names_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -13224,7 +12043,6 @@ uint32_t ThriftHiveMetastore_get_partition_names_args::read(::apache::thrift::pr uint32_t ThriftHiveMetastore_get_partition_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -13241,18 +12059,11 @@ uint32_t ThriftHiveMetastore_get_partition_names_args::write(::apache::thrift::p xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partition_names_pargs::~ThriftHiveMetastore_get_partition_names_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -13269,15 +12080,9 @@ uint32_t ThriftHiveMetastore_get_partition_names_pargs::write(::apache::thrift:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partition_names_result::~ThriftHiveMetastore_get_partition_names_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -13302,14 +12107,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size893; - ::apache::thrift::protocol::TType _etype896; - xfer += iprot->readListBegin(_etype896, _size893); - this->success.resize(_size893); - uint32_t _i897; - for (_i897 = 0; _i897 < _size893; ++_i897) + uint32_t _size675; + ::apache::thrift::protocol::TType _etype678; + xfer += iprot->readListBegin(_etype678, _size675); + this->success.resize(_size675); + uint32_t _i679; + for (_i679 = 0; _i679 < _size675; ++_i679) { - xfer += iprot->readString(this->success[_i897]); + xfer += iprot->readString(this->success[_i679]); } xfer += iprot->readListEnd(); } @@ -13348,10 +12153,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 _iter898; - for (_iter898 = this->success.begin(); _iter898 != this->success.end(); ++_iter898) + std::vector ::const_iterator _iter680; + for (_iter680 = this->success.begin(); _iter680 != this->success.end(); ++_iter680) { - xfer += oprot->writeString((*_iter898)); + xfer += oprot->writeString((*_iter680)); } xfer += oprot->writeListEnd(); } @@ -13366,11 +12171,6 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_get_partition_names_presult::~ThriftHiveMetastore_get_partition_names_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -13395,14 +12195,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size899; - ::apache::thrift::protocol::TType _etype902; - xfer += iprot->readListBegin(_etype902, _size899); - (*(this->success)).resize(_size899); - uint32_t _i903; - for (_i903 = 0; _i903 < _size899; ++_i903) + uint32_t _size681; + ::apache::thrift::protocol::TType _etype684; + xfer += iprot->readListBegin(_etype684, _size681); + (*(this->success)).resize(_size681); + uint32_t _i685; + for (_i685 = 0; _i685 < _size681; ++_i685) { - xfer += iprot->readString((*(this->success))[_i903]); + xfer += iprot->readString((*(this->success))[_i685]); } xfer += iprot->readListEnd(); } @@ -13431,11 +12231,6 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: return xfer; } - -ThriftHiveMetastore_get_partitions_ps_args::~ThriftHiveMetastore_get_partitions_ps_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -13476,14 +12271,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 _size904; - ::apache::thrift::protocol::TType _etype907; - xfer += iprot->readListBegin(_etype907, _size904); - this->part_vals.resize(_size904); - uint32_t _i908; - for (_i908 = 0; _i908 < _size904; ++_i908) + uint32_t _size686; + ::apache::thrift::protocol::TType _etype689; + xfer += iprot->readListBegin(_etype689, _size686); + this->part_vals.resize(_size686); + uint32_t _i690; + for (_i690 = 0; _i690 < _size686; ++_i690) { - xfer += iprot->readString(this->part_vals[_i908]); + xfer += iprot->readString(this->part_vals[_i690]); } xfer += iprot->readListEnd(); } @@ -13514,7 +12309,6 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -13528,10 +12322,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 _iter909; - for (_iter909 = this->part_vals.begin(); _iter909 != this->part_vals.end(); ++_iter909) + std::vector ::const_iterator _iter691; + for (_iter691 = this->part_vals.begin(); _iter691 != this->part_vals.end(); ++_iter691) { - xfer += oprot->writeString((*_iter909)); + xfer += oprot->writeString((*_iter691)); } xfer += oprot->writeListEnd(); } @@ -13543,18 +12337,11 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::pro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_ps_pargs::~ThriftHiveMetastore_get_partitions_ps_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -13568,10 +12355,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 _iter910; - for (_iter910 = (*(this->part_vals)).begin(); _iter910 != (*(this->part_vals)).end(); ++_iter910) + std::vector ::const_iterator _iter692; + for (_iter692 = (*(this->part_vals)).begin(); _iter692 != (*(this->part_vals)).end(); ++_iter692) { - xfer += oprot->writeString((*_iter910)); + xfer += oprot->writeString((*_iter692)); } xfer += oprot->writeListEnd(); } @@ -13583,15 +12370,9 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_ps_result::~ThriftHiveMetastore_get_partitions_ps_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -13616,14 +12397,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size911; - ::apache::thrift::protocol::TType _etype914; - xfer += iprot->readListBegin(_etype914, _size911); - this->success.resize(_size911); - uint32_t _i915; - for (_i915 = 0; _i915 < _size911; ++_i915) + uint32_t _size693; + ::apache::thrift::protocol::TType _etype696; + xfer += iprot->readListBegin(_etype696, _size693); + this->success.resize(_size693); + uint32_t _i697; + for (_i697 = 0; _i697 < _size693; ++_i697) { - xfer += this->success[_i915].read(iprot); + xfer += this->success[_i697].read(iprot); } xfer += iprot->readListEnd(); } @@ -13670,10 +12451,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 _iter916; - for (_iter916 = this->success.begin(); _iter916 != this->success.end(); ++_iter916) + std::vector ::const_iterator _iter698; + for (_iter698 = this->success.begin(); _iter698 != this->success.end(); ++_iter698) { - xfer += (*_iter916).write(oprot); + xfer += (*_iter698).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13692,11 +12473,6 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_partitions_ps_presult::~ThriftHiveMetastore_get_partitions_ps_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -13721,14 +12497,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size917; - ::apache::thrift::protocol::TType _etype920; - xfer += iprot->readListBegin(_etype920, _size917); - (*(this->success)).resize(_size917); - uint32_t _i921; - for (_i921 = 0; _i921 < _size917; ++_i921) + uint32_t _size699; + ::apache::thrift::protocol::TType _etype702; + xfer += iprot->readListBegin(_etype702, _size699); + (*(this->success)).resize(_size699); + uint32_t _i703; + for (_i703 = 0; _i703 < _size699; ++_i703) { - xfer += (*(this->success))[_i921].read(iprot); + xfer += (*(this->success))[_i703].read(iprot); } xfer += iprot->readListEnd(); } @@ -13765,11 +12541,6 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_partitions_ps_with_auth_args::~ThriftHiveMetastore_get_partitions_ps_with_auth_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -13810,14 +12581,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 _size922; - ::apache::thrift::protocol::TType _etype925; - xfer += iprot->readListBegin(_etype925, _size922); - this->part_vals.resize(_size922); - uint32_t _i926; - for (_i926 = 0; _i926 < _size922; ++_i926) + uint32_t _size704; + ::apache::thrift::protocol::TType _etype707; + xfer += iprot->readListBegin(_etype707, _size704); + this->part_vals.resize(_size704); + uint32_t _i708; + for (_i708 = 0; _i708 < _size704; ++_i708) { - xfer += iprot->readString(this->part_vals[_i926]); + xfer += iprot->readString(this->part_vals[_i708]); } xfer += iprot->readListEnd(); } @@ -13846,14 +12617,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 _size927; - ::apache::thrift::protocol::TType _etype930; - xfer += iprot->readListBegin(_etype930, _size927); - this->group_names.resize(_size927); - uint32_t _i931; - for (_i931 = 0; _i931 < _size927; ++_i931) + uint32_t _size709; + ::apache::thrift::protocol::TType _etype712; + xfer += iprot->readListBegin(_etype712, _size709); + this->group_names.resize(_size709); + uint32_t _i713; + for (_i713 = 0; _i713 < _size709; ++_i713) { - xfer += iprot->readString(this->group_names[_i931]); + xfer += iprot->readString(this->group_names[_i713]); } xfer += iprot->readListEnd(); } @@ -13876,7 +12647,6 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_with_auth_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -13890,10 +12660,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 _iter932; - for (_iter932 = this->part_vals.begin(); _iter932 != this->part_vals.end(); ++_iter932) + std::vector ::const_iterator _iter714; + for (_iter714 = this->part_vals.begin(); _iter714 != this->part_vals.end(); ++_iter714) { - xfer += oprot->writeString((*_iter932)); + xfer += oprot->writeString((*_iter714)); } xfer += oprot->writeListEnd(); } @@ -13910,10 +12680,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 _iter933; - for (_iter933 = this->group_names.begin(); _iter933 != this->group_names.end(); ++_iter933) + std::vector ::const_iterator _iter715; + for (_iter715 = this->group_names.begin(); _iter715 != this->group_names.end(); ++_iter715) { - xfer += oprot->writeString((*_iter933)); + xfer += oprot->writeString((*_iter715)); } xfer += oprot->writeListEnd(); } @@ -13921,18 +12691,11 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::~ThriftHiveMetastore_get_partitions_ps_with_auth_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_with_auth_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -13946,10 +12709,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 _iter934; - for (_iter934 = (*(this->part_vals)).begin(); _iter934 != (*(this->part_vals)).end(); ++_iter934) + std::vector ::const_iterator _iter716; + for (_iter716 = (*(this->part_vals)).begin(); _iter716 != (*(this->part_vals)).end(); ++_iter716) { - xfer += oprot->writeString((*_iter934)); + xfer += oprot->writeString((*_iter716)); } xfer += oprot->writeListEnd(); } @@ -13966,10 +12729,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 _iter935; - for (_iter935 = (*(this->group_names)).begin(); _iter935 != (*(this->group_names)).end(); ++_iter935) + std::vector ::const_iterator _iter717; + for (_iter717 = (*(this->group_names)).begin(); _iter717 != (*(this->group_names)).end(); ++_iter717) { - xfer += oprot->writeString((*_iter935)); + xfer += oprot->writeString((*_iter717)); } xfer += oprot->writeListEnd(); } @@ -13977,15 +12740,9 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_ps_with_auth_result::~ThriftHiveMetastore_get_partitions_ps_with_auth_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -14010,14 +12767,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size936; - ::apache::thrift::protocol::TType _etype939; - xfer += iprot->readListBegin(_etype939, _size936); - this->success.resize(_size936); - uint32_t _i940; - for (_i940 = 0; _i940 < _size936; ++_i940) + uint32_t _size718; + ::apache::thrift::protocol::TType _etype721; + xfer += iprot->readListBegin(_etype721, _size718); + this->success.resize(_size718); + uint32_t _i722; + for (_i722 = 0; _i722 < _size718; ++_i722) { - xfer += this->success[_i940].read(iprot); + xfer += this->success[_i722].read(iprot); } xfer += iprot->readListEnd(); } @@ -14064,10 +12821,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 _iter941; - for (_iter941 = this->success.begin(); _iter941 != this->success.end(); ++_iter941) + std::vector ::const_iterator _iter723; + for (_iter723 = this->success.begin(); _iter723 != this->success.end(); ++_iter723) { - xfer += (*_iter941).write(oprot); + xfer += (*_iter723).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14086,11 +12843,6 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::write(::apache: return xfer; } - -ThriftHiveMetastore_get_partitions_ps_with_auth_presult::~ThriftHiveMetastore_get_partitions_ps_with_auth_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -14115,14 +12867,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: 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 _size724; + ::apache::thrift::protocol::TType _etype727; + xfer += iprot->readListBegin(_etype727, _size724); + (*(this->success)).resize(_size724); + uint32_t _i728; + for (_i728 = 0; _i728 < _size724; ++_i728) { - xfer += (*(this->success))[_i946].read(iprot); + xfer += (*(this->success))[_i728].read(iprot); } xfer += iprot->readListEnd(); } @@ -14159,11 +12911,6 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: return xfer; } - -ThriftHiveMetastore_get_partition_names_ps_args::~ThriftHiveMetastore_get_partition_names_ps_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_ps_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -14204,14 +12951,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 _size947; - ::apache::thrift::protocol::TType _etype950; - xfer += iprot->readListBegin(_etype950, _size947); - this->part_vals.resize(_size947); - uint32_t _i951; - for (_i951 = 0; _i951 < _size947; ++_i951) + uint32_t _size729; + ::apache::thrift::protocol::TType _etype732; + xfer += iprot->readListBegin(_etype732, _size729); + this->part_vals.resize(_size729); + uint32_t _i733; + for (_i733 = 0; _i733 < _size729; ++_i733) { - xfer += iprot->readString(this->part_vals[_i951]); + xfer += iprot->readString(this->part_vals[_i733]); } xfer += iprot->readListEnd(); } @@ -14242,7 +12989,6 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_ps_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -14256,10 +13002,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 _iter952; - for (_iter952 = this->part_vals.begin(); _iter952 != this->part_vals.end(); ++_iter952) + std::vector ::const_iterator _iter734; + for (_iter734 = this->part_vals.begin(); _iter734 != this->part_vals.end(); ++_iter734) { - xfer += oprot->writeString((*_iter952)); + xfer += oprot->writeString((*_iter734)); } xfer += oprot->writeListEnd(); } @@ -14271,18 +13017,11 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partition_names_ps_pargs::~ThriftHiveMetastore_get_partition_names_ps_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_ps_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -14296,10 +13035,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 _iter953; - for (_iter953 = (*(this->part_vals)).begin(); _iter953 != (*(this->part_vals)).end(); ++_iter953) + std::vector ::const_iterator _iter735; + for (_iter735 = (*(this->part_vals)).begin(); _iter735 != (*(this->part_vals)).end(); ++_iter735) { - xfer += oprot->writeString((*_iter953)); + xfer += oprot->writeString((*_iter735)); } xfer += oprot->writeListEnd(); } @@ -14311,15 +13050,9 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrif xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partition_names_ps_result::~ThriftHiveMetastore_get_partition_names_ps_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -14344,14 +13077,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size954; - ::apache::thrift::protocol::TType _etype957; - xfer += iprot->readListBegin(_etype957, _size954); - this->success.resize(_size954); - uint32_t _i958; - for (_i958 = 0; _i958 < _size954; ++_i958) + 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) { - xfer += iprot->readString(this->success[_i958]); + xfer += iprot->readString(this->success[_i740]); } xfer += iprot->readListEnd(); } @@ -14398,10 +13131,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 _iter959; - for (_iter959 = this->success.begin(); _iter959 != this->success.end(); ++_iter959) + std::vector ::const_iterator _iter741; + for (_iter741 = this->success.begin(); _iter741 != this->success.end(); ++_iter741) { - xfer += oprot->writeString((*_iter959)); + xfer += oprot->writeString((*_iter741)); } xfer += oprot->writeListEnd(); } @@ -14420,11 +13153,6 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_get_partition_names_ps_presult::~ThriftHiveMetastore_get_partition_names_ps_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -14449,14 +13177,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size960; - ::apache::thrift::protocol::TType _etype963; - xfer += iprot->readListBegin(_etype963, _size960); - (*(this->success)).resize(_size960); - uint32_t _i964; - for (_i964 = 0; _i964 < _size960; ++_i964) + 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) { - xfer += iprot->readString((*(this->success))[_i964]); + xfer += iprot->readString((*(this->success))[_i746]); } xfer += iprot->readListEnd(); } @@ -14493,11 +13221,6 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_get_partitions_by_filter_args::~ThriftHiveMetastore_get_partitions_by_filter_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_filter_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -14564,7 +13287,6 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_args::read(::apache::thrif uint32_t ThriftHiveMetastore_get_partitions_by_filter_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_filter_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -14585,18 +13307,11 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_args::write(::apache::thri xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_by_filter_pargs::~ThriftHiveMetastore_get_partitions_by_filter_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_filter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_filter_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -14617,15 +13332,9 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_pargs::write(::apache::thr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_by_filter_result::~ThriftHiveMetastore_get_partitions_by_filter_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -14650,14 +13359,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size965; - ::apache::thrift::protocol::TType _etype968; - xfer += iprot->readListBegin(_etype968, _size965); - this->success.resize(_size965); - uint32_t _i969; - for (_i969 = 0; _i969 < _size965; ++_i969) + uint32_t _size747; + ::apache::thrift::protocol::TType _etype750; + xfer += iprot->readListBegin(_etype750, _size747); + this->success.resize(_size747); + uint32_t _i751; + for (_i751 = 0; _i751 < _size747; ++_i751) { - xfer += this->success[_i969].read(iprot); + xfer += this->success[_i751].read(iprot); } xfer += iprot->readListEnd(); } @@ -14704,10 +13413,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 _iter970; - for (_iter970 = this->success.begin(); _iter970 != this->success.end(); ++_iter970) + std::vector ::const_iterator _iter752; + for (_iter752 = this->success.begin(); _iter752 != this->success.end(); ++_iter752) { - xfer += (*_iter970).write(oprot); + xfer += (*_iter752).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14726,11 +13435,6 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::write(::apache::th return xfer; } - -ThriftHiveMetastore_get_partitions_by_filter_presult::~ThriftHiveMetastore_get_partitions_by_filter_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -14755,14 +13459,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size753; + ::apache::thrift::protocol::TType _etype756; + xfer += iprot->readListBegin(_etype756, _size753); + (*(this->success)).resize(_size753); + uint32_t _i757; + for (_i757 = 0; _i757 < _size753; ++_i757) { - xfer += (*(this->success))[_i975].read(iprot); + xfer += (*(this->success))[_i757].read(iprot); } xfer += iprot->readListEnd(); } @@ -14799,11 +13503,6 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th return xfer; } - -ThriftHiveMetastore_get_part_specs_by_filter_args::~ThriftHiveMetastore_get_part_specs_by_filter_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_part_specs_by_filter_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -14870,7 +13569,6 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_args::read(::apache::thrif uint32_t ThriftHiveMetastore_get_part_specs_by_filter_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_part_specs_by_filter_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -14891,18 +13589,11 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_args::write(::apache::thri xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_part_specs_by_filter_pargs::~ThriftHiveMetastore_get_part_specs_by_filter_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_part_specs_by_filter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_part_specs_by_filter_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -14923,15 +13614,9 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_pargs::write(::apache::thr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_part_specs_by_filter_result::~ThriftHiveMetastore_get_part_specs_by_filter_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -14956,14 +13641,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 _size976; - ::apache::thrift::protocol::TType _etype979; - xfer += iprot->readListBegin(_etype979, _size976); - this->success.resize(_size976); - uint32_t _i980; - for (_i980 = 0; _i980 < _size976; ++_i980) + uint32_t _size758; + ::apache::thrift::protocol::TType _etype761; + xfer += iprot->readListBegin(_etype761, _size758); + this->success.resize(_size758); + uint32_t _i762; + for (_i762 = 0; _i762 < _size758; ++_i762) { - xfer += this->success[_i980].read(iprot); + xfer += this->success[_i762].read(iprot); } xfer += iprot->readListEnd(); } @@ -15010,10 +13695,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 _iter981; - for (_iter981 = this->success.begin(); _iter981 != this->success.end(); ++_iter981) + std::vector ::const_iterator _iter763; + for (_iter763 = this->success.begin(); _iter763 != this->success.end(); ++_iter763) { - xfer += (*_iter981).write(oprot); + xfer += (*_iter763).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15032,11 +13717,6 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::write(::apache::th return xfer; } - -ThriftHiveMetastore_get_part_specs_by_filter_presult::~ThriftHiveMetastore_get_part_specs_by_filter_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_part_specs_by_filter_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -15061,14 +13741,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 _size982; - ::apache::thrift::protocol::TType _etype985; - xfer += iprot->readListBegin(_etype985, _size982); - (*(this->success)).resize(_size982); - uint32_t _i986; - for (_i986 = 0; _i986 < _size982; ++_i986) + uint32_t _size764; + ::apache::thrift::protocol::TType _etype767; + xfer += iprot->readListBegin(_etype767, _size764); + (*(this->success)).resize(_size764); + uint32_t _i768; + for (_i768 = 0; _i768 < _size764; ++_i768) { - xfer += (*(this->success))[_i986].read(iprot); + xfer += (*(this->success))[_i768].read(iprot); } xfer += iprot->readListEnd(); } @@ -15105,11 +13785,6 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_presult::read(::apache::th return xfer; } - -ThriftHiveMetastore_get_partitions_by_expr_args::~ThriftHiveMetastore_get_partitions_by_expr_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_expr_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -15152,7 +13827,6 @@ uint32_t ThriftHiveMetastore_get_partitions_by_expr_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_get_partitions_by_expr_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_expr_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -15161,18 +13835,11 @@ uint32_t ThriftHiveMetastore_get_partitions_by_expr_args::write(::apache::thrift xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_by_expr_pargs::~ThriftHiveMetastore_get_partitions_by_expr_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_expr_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_expr_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -15181,15 +13848,9 @@ uint32_t ThriftHiveMetastore_get_partitions_by_expr_pargs::write(::apache::thrif xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_by_expr_result::~ThriftHiveMetastore_get_partitions_by_expr_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_expr_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -15270,12 +13931,177 @@ uint32_t ThriftHiveMetastore_get_partitions_by_expr_result::write(::apache::thri return xfer; } +uint32_t ThriftHiveMetastore_get_partitions_by_expr_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; -ThriftHiveMetastore_get_partitions_by_expr_presult::~ThriftHiveMetastore_get_partitions_by_expr_presult() throw() { + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; } +uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_args::read(::apache::thrift::protocol::TProtocol* iprot) { -uint32_t ThriftHiveMetastore_get_partitions_by_expr_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 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->filter); + this->__isset.filter = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I16) { + xfer += iprot->readI16(this->max_parts); + this->__isset.max_parts = 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_num_partitions_by_filter_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_num_partitions_by_filter_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("filter", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->filter); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4); + xfer += oprot->writeI16(this->max_parts); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_num_partitions_by_filter_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("filter", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->filter))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4); + xfer += oprot->writeI16((*(this->max_parts))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -15296,8 +14122,8 @@ uint32_t ThriftHiveMetastore_get_partitions_by_expr_presult::read(::apache::thri switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -15331,10 +14157,85 @@ uint32_t ThriftHiveMetastore_get_partitions_by_expr_presult::read(::apache::thri return xfer; } +uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_num_partitions_by_filter_result"); -ThriftHiveMetastore_get_partitions_by_names_args::~ThriftHiveMetastore_get_partitions_by_names_args() throw() { + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_I32, 0); + xfer += oprot->writeI32(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(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } +uint32_t ThriftHiveMetastore_get_num_partitions_by_filter_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32((*(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; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift::protocol::TProtocol* iprot) { @@ -15376,14 +14277,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size987; - ::apache::thrift::protocol::TType _etype990; - xfer += iprot->readListBegin(_etype990, _size987); - this->names.resize(_size987); - uint32_t _i991; - for (_i991 = 0; _i991 < _size987; ++_i991) + uint32_t _size769; + ::apache::thrift::protocol::TType _etype772; + xfer += iprot->readListBegin(_etype772, _size769); + this->names.resize(_size769); + uint32_t _i773; + for (_i773 = 0; _i773 < _size769; ++_i773) { - xfer += iprot->readString(this->names[_i991]); + xfer += iprot->readString(this->names[_i773]); } xfer += iprot->readListEnd(); } @@ -15406,7 +14307,6 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift uint32_t ThriftHiveMetastore_get_partitions_by_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_names_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -15420,10 +14320,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 _iter992; - for (_iter992 = this->names.begin(); _iter992 != this->names.end(); ++_iter992) + std::vector ::const_iterator _iter774; + for (_iter774 = this->names.begin(); _iter774 != this->names.end(); ++_iter774) { - xfer += oprot->writeString((*_iter992)); + xfer += oprot->writeString((*_iter774)); } xfer += oprot->writeListEnd(); } @@ -15431,18 +14331,11 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::write(::apache::thrif xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_by_names_pargs::~ThriftHiveMetastore_get_partitions_by_names_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_names_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -15456,10 +14349,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 _iter993; - for (_iter993 = (*(this->names)).begin(); _iter993 != (*(this->names)).end(); ++_iter993) + std::vector ::const_iterator _iter775; + for (_iter775 = (*(this->names)).begin(); _iter775 != (*(this->names)).end(); ++_iter775) { - xfer += oprot->writeString((*_iter993)); + xfer += oprot->writeString((*_iter775)); } xfer += oprot->writeListEnd(); } @@ -15467,15 +14360,9 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_pargs::write(::apache::thri xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_by_names_result::~ThriftHiveMetastore_get_partitions_by_names_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -15500,14 +14387,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size994; - ::apache::thrift::protocol::TType _etype997; - xfer += iprot->readListBegin(_etype997, _size994); - this->success.resize(_size994); - uint32_t _i998; - for (_i998 = 0; _i998 < _size994; ++_i998) + uint32_t _size776; + ::apache::thrift::protocol::TType _etype779; + xfer += iprot->readListBegin(_etype779, _size776); + this->success.resize(_size776); + uint32_t _i780; + for (_i780 = 0; _i780 < _size776; ++_i780) { - xfer += this->success[_i998].read(iprot); + xfer += this->success[_i780].read(iprot); } xfer += iprot->readListEnd(); } @@ -15554,10 +14441,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 _iter999; - for (_iter999 = this->success.begin(); _iter999 != this->success.end(); ++_iter999) + std::vector ::const_iterator _iter781; + for (_iter781 = this->success.begin(); _iter781 != this->success.end(); ++_iter781) { - xfer += (*_iter999).write(oprot); + xfer += (*_iter781).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15576,11 +14463,6 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::write(::apache::thr return xfer; } - -ThriftHiveMetastore_get_partitions_by_names_presult::~ThriftHiveMetastore_get_partitions_by_names_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -15605,14 +14487,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size782; + ::apache::thrift::protocol::TType _etype785; + xfer += iprot->readListBegin(_etype785, _size782); + (*(this->success)).resize(_size782); + uint32_t _i786; + for (_i786 = 0; _i786 < _size782; ++_i786) { - xfer += (*(this->success))[_i1004].read(iprot); + xfer += (*(this->success))[_i786].read(iprot); } xfer += iprot->readListEnd(); } @@ -15649,11 +14531,6 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr return xfer; } - -ThriftHiveMetastore_alter_partition_args::~ThriftHiveMetastore_alter_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -15712,7 +14589,6 @@ uint32_t ThriftHiveMetastore_alter_partition_args::read(::apache::thrift::protoc uint32_t ThriftHiveMetastore_alter_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -15729,18 +14605,11 @@ uint32_t ThriftHiveMetastore_alter_partition_args::write(::apache::thrift::proto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_partition_pargs::~ThriftHiveMetastore_alter_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -15757,15 +14626,9 @@ uint32_t ThriftHiveMetastore_alter_partition_pargs::write(::apache::thrift::prot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_partition_result::~ThriftHiveMetastore_alter_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -15834,11 +14697,6 @@ uint32_t ThriftHiveMetastore_alter_partition_result::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_alter_partition_presult::~ThriftHiveMetastore_alter_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -15887,11 +14745,6 @@ uint32_t ThriftHiveMetastore_alter_partition_presult::read(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_alter_partitions_args::~ThriftHiveMetastore_alter_partitions_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -15932,14 +14785,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1005; - ::apache::thrift::protocol::TType _etype1008; - xfer += iprot->readListBegin(_etype1008, _size1005); - this->new_parts.resize(_size1005); - uint32_t _i1009; - for (_i1009 = 0; _i1009 < _size1005; ++_i1009) + uint32_t _size787; + ::apache::thrift::protocol::TType _etype790; + xfer += iprot->readListBegin(_etype790, _size787); + this->new_parts.resize(_size787); + uint32_t _i791; + for (_i791 = 0; _i791 < _size787; ++_i791) { - xfer += this->new_parts[_i1009].read(iprot); + xfer += this->new_parts[_i791].read(iprot); } xfer += iprot->readListEnd(); } @@ -15962,7 +14815,6 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto uint32_t ThriftHiveMetastore_alter_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partitions_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -15976,10 +14828,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 _iter1010; - for (_iter1010 = this->new_parts.begin(); _iter1010 != this->new_parts.end(); ++_iter1010) + std::vector ::const_iterator _iter792; + for (_iter792 = this->new_parts.begin(); _iter792 != this->new_parts.end(); ++_iter792) { - xfer += (*_iter1010).write(oprot); + xfer += (*_iter792).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15987,18 +14839,11 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::write(::apache::thrift::prot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_partitions_pargs::~ThriftHiveMetastore_alter_partitions_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partitions_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -16012,10 +14857,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 _iter1011; - for (_iter1011 = (*(this->new_parts)).begin(); _iter1011 != (*(this->new_parts)).end(); ++_iter1011) + std::vector ::const_iterator _iter793; + for (_iter793 = (*(this->new_parts)).begin(); _iter793 != (*(this->new_parts)).end(); ++_iter793) { - xfer += (*_iter1011).write(oprot); + xfer += (*_iter793).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16023,15 +14868,9 @@ uint32_t ThriftHiveMetastore_alter_partitions_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_partitions_result::~ThriftHiveMetastore_alter_partitions_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partitions_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -16100,11 +14939,6 @@ uint32_t ThriftHiveMetastore_alter_partitions_result::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_alter_partitions_presult::~ThriftHiveMetastore_alter_partitions_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partitions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -16153,11 +14987,6 @@ uint32_t ThriftHiveMetastore_alter_partitions_presult::read(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_alter_partition_with_environment_context_args::~ThriftHiveMetastore_alter_partition_with_environment_context_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -16224,7 +15053,6 @@ uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_args::read uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_with_environment_context_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -16245,18 +15073,11 @@ uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_args::writ xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_partition_with_environment_context_pargs::~ThriftHiveMetastore_alter_partition_with_environment_context_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_with_environment_context_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -16277,15 +15098,9 @@ uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_pargs::wri xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_partition_with_environment_context_result::~ThriftHiveMetastore_alter_partition_with_environment_context_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -16354,11 +15169,6 @@ uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_result::wr return xfer; } - -ThriftHiveMetastore_alter_partition_with_environment_context_presult::~ThriftHiveMetastore_alter_partition_with_environment_context_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -16407,11 +15217,6 @@ uint32_t ThriftHiveMetastore_alter_partition_with_environment_context_presult::r return xfer; } - -ThriftHiveMetastore_rename_partition_args::~ThriftHiveMetastore_rename_partition_args() throw() { -} - - uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -16452,14 +15257,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1012; - ::apache::thrift::protocol::TType _etype1015; - xfer += iprot->readListBegin(_etype1015, _size1012); - this->part_vals.resize(_size1012); - uint32_t _i1016; - for (_i1016 = 0; _i1016 < _size1012; ++_i1016) + uint32_t _size794; + ::apache::thrift::protocol::TType _etype797; + xfer += iprot->readListBegin(_etype797, _size794); + this->part_vals.resize(_size794); + uint32_t _i798; + for (_i798 = 0; _i798 < _size794; ++_i798) { - xfer += iprot->readString(this->part_vals[_i1016]); + xfer += iprot->readString(this->part_vals[_i798]); } xfer += iprot->readListEnd(); } @@ -16490,7 +15295,6 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto uint32_t ThriftHiveMetastore_rename_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_rename_partition_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -16504,10 +15308,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 _iter1017; - for (_iter1017 = this->part_vals.begin(); _iter1017 != this->part_vals.end(); ++_iter1017) + std::vector ::const_iterator _iter799; + for (_iter799 = this->part_vals.begin(); _iter799 != this->part_vals.end(); ++_iter799) { - xfer += oprot->writeString((*_iter1017)); + xfer += oprot->writeString((*_iter799)); } xfer += oprot->writeListEnd(); } @@ -16519,18 +15323,11 @@ uint32_t ThriftHiveMetastore_rename_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_rename_partition_pargs::~ThriftHiveMetastore_rename_partition_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_rename_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_rename_partition_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -16544,10 +15341,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 _iter1018; - for (_iter1018 = (*(this->part_vals)).begin(); _iter1018 != (*(this->part_vals)).end(); ++_iter1018) + std::vector ::const_iterator _iter800; + for (_iter800 = (*(this->part_vals)).begin(); _iter800 != (*(this->part_vals)).end(); ++_iter800) { - xfer += oprot->writeString((*_iter1018)); + xfer += oprot->writeString((*_iter800)); } xfer += oprot->writeListEnd(); } @@ -16559,15 +15356,9 @@ uint32_t ThriftHiveMetastore_rename_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_rename_partition_result::~ThriftHiveMetastore_rename_partition_result() throw() { -} - - uint32_t ThriftHiveMetastore_rename_partition_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -16636,11 +15427,6 @@ uint32_t ThriftHiveMetastore_rename_partition_result::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_rename_partition_presult::~ThriftHiveMetastore_rename_partition_presult() throw() { -} - - uint32_t ThriftHiveMetastore_rename_partition_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -16689,11 +15475,6 @@ uint32_t ThriftHiveMetastore_rename_partition_presult::read(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_partition_name_has_valid_characters_args::~ThriftHiveMetastore_partition_name_has_valid_characters_args() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -16718,14 +15499,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 _size1019; - ::apache::thrift::protocol::TType _etype1022; - xfer += iprot->readListBegin(_etype1022, _size1019); - this->part_vals.resize(_size1019); - uint32_t _i1023; - for (_i1023 = 0; _i1023 < _size1019; ++_i1023) + uint32_t _size801; + ::apache::thrift::protocol::TType _etype804; + xfer += iprot->readListBegin(_etype804, _size801); + this->part_vals.resize(_size801); + uint32_t _i805; + for (_i805 = 0; _i805 < _size801; ++_i805) { - xfer += iprot->readString(this->part_vals[_i1023]); + xfer += iprot->readString(this->part_vals[_i805]); } xfer += iprot->readListEnd(); } @@ -16756,16 +15537,15 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::read(::ap uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_has_valid_characters_args"); 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 _iter1024; - for (_iter1024 = this->part_vals.begin(); _iter1024 != this->part_vals.end(); ++_iter1024) + std::vector ::const_iterator _iter806; + for (_iter806 = this->part_vals.begin(); _iter806 != this->part_vals.end(); ++_iter806) { - xfer += oprot->writeString((*_iter1024)); + xfer += oprot->writeString((*_iter806)); } xfer += oprot->writeListEnd(); } @@ -16777,27 +15557,20 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::write(::a xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_partition_name_has_valid_characters_pargs::~ThriftHiveMetastore_partition_name_has_valid_characters_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_has_valid_characters_pargs"); 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 _iter1025; - for (_iter1025 = (*(this->part_vals)).begin(); _iter1025 != (*(this->part_vals)).end(); ++_iter1025) + std::vector ::const_iterator _iter807; + for (_iter807 = (*(this->part_vals)).begin(); _iter807 != (*(this->part_vals)).end(); ++_iter807) { - xfer += oprot->writeString((*_iter1025)); + xfer += oprot->writeString((*_iter807)); } xfer += oprot->writeListEnd(); } @@ -16809,15 +15582,9 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_pargs::write(:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_partition_name_has_valid_characters_result::~ThriftHiveMetastore_partition_name_has_valid_characters_result() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -16886,11 +15653,6 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_result::write(: return xfer; } - -ThriftHiveMetastore_partition_name_has_valid_characters_presult::~ThriftHiveMetastore_partition_name_has_valid_characters_presult() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -16939,11 +15701,6 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_presult::read(: return xfer; } - -ThriftHiveMetastore_get_config_value_args::~ThriftHiveMetastore_get_config_value_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_config_value_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -16994,7 +15751,6 @@ uint32_t ThriftHiveMetastore_get_config_value_args::read(::apache::thrift::proto uint32_t ThriftHiveMetastore_get_config_value_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_config_value_args"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -17007,18 +15763,11 @@ uint32_t ThriftHiveMetastore_get_config_value_args::write(::apache::thrift::prot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_config_value_pargs::~ThriftHiveMetastore_get_config_value_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_config_value_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_config_value_pargs"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -17031,15 +15780,9 @@ uint32_t ThriftHiveMetastore_get_config_value_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_config_value_result::~ThriftHiveMetastore_get_config_value_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_config_value_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -17108,11 +15851,6 @@ uint32_t ThriftHiveMetastore_get_config_value_result::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_get_config_value_presult::~ThriftHiveMetastore_get_config_value_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_config_value_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -17161,11 +15899,6 @@ uint32_t ThriftHiveMetastore_get_config_value_presult::read(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_partition_name_to_vals_args::~ThriftHiveMetastore_partition_name_to_vals_args() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_vals_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -17208,7 +15941,6 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_partition_name_to_vals_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_args"); xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1); @@ -17217,18 +15949,11 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_args::write(::apache::thrift xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_partition_name_to_vals_pargs::~ThriftHiveMetastore_partition_name_to_vals_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_vals_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_pargs"); xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1); @@ -17237,15 +15962,9 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_pargs::write(::apache::thrif xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_partition_name_to_vals_result::~ThriftHiveMetastore_partition_name_to_vals_result() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -17270,14 +15989,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1026; - ::apache::thrift::protocol::TType _etype1029; - xfer += iprot->readListBegin(_etype1029, _size1026); - this->success.resize(_size1026); - uint32_t _i1030; - for (_i1030 = 0; _i1030 < _size1026; ++_i1030) + uint32_t _size808; + ::apache::thrift::protocol::TType _etype811; + xfer += iprot->readListBegin(_etype811, _size808); + this->success.resize(_size808); + uint32_t _i812; + for (_i812 = 0; _i812 < _size808; ++_i812) { - xfer += iprot->readString(this->success[_i1030]); + xfer += iprot->readString(this->success[_i812]); } xfer += iprot->readListEnd(); } @@ -17316,10 +16035,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 _iter1031; - for (_iter1031 = this->success.begin(); _iter1031 != this->success.end(); ++_iter1031) + std::vector ::const_iterator _iter813; + for (_iter813 = this->success.begin(); _iter813 != this->success.end(); ++_iter813) { - xfer += oprot->writeString((*_iter1031)); + xfer += oprot->writeString((*_iter813)); } xfer += oprot->writeListEnd(); } @@ -17334,11 +16053,6 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_partition_name_to_vals_presult::~ThriftHiveMetastore_partition_name_to_vals_presult() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -17363,14 +16077,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1032; - ::apache::thrift::protocol::TType _etype1035; - xfer += iprot->readListBegin(_etype1035, _size1032); - (*(this->success)).resize(_size1032); - uint32_t _i1036; - for (_i1036 = 0; _i1036 < _size1032; ++_i1036) + uint32_t _size814; + ::apache::thrift::protocol::TType _etype817; + xfer += iprot->readListBegin(_etype817, _size814); + (*(this->success)).resize(_size814); + uint32_t _i818; + for (_i818 = 0; _i818 < _size814; ++_i818) { - xfer += iprot->readString((*(this->success))[_i1036]); + xfer += iprot->readString((*(this->success))[_i818]); } xfer += iprot->readListEnd(); } @@ -17399,11 +16113,6 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_partition_name_to_spec_args::~ThriftHiveMetastore_partition_name_to_spec_args() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_spec_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -17446,7 +16155,6 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_partition_name_to_spec_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_spec_args"); xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1); @@ -17455,18 +16163,11 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_args::write(::apache::thrift xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_partition_name_to_spec_pargs::~ThriftHiveMetastore_partition_name_to_spec_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_spec_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_spec_pargs"); xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1); @@ -17475,15 +16176,9 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_pargs::write(::apache::thrif xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_partition_name_to_spec_result::~ThriftHiveMetastore_partition_name_to_spec_result() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -17508,17 +16203,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1037; - ::apache::thrift::protocol::TType _ktype1038; - ::apache::thrift::protocol::TType _vtype1039; - xfer += iprot->readMapBegin(_ktype1038, _vtype1039, _size1037); - uint32_t _i1041; - for (_i1041 = 0; _i1041 < _size1037; ++_i1041) + uint32_t _size819; + ::apache::thrift::protocol::TType _ktype820; + ::apache::thrift::protocol::TType _vtype821; + xfer += iprot->readMapBegin(_ktype820, _vtype821, _size819); + uint32_t _i823; + for (_i823 = 0; _i823 < _size819; ++_i823) { - std::string _key1042; - xfer += iprot->readString(_key1042); - std::string& _val1043 = this->success[_key1042]; - xfer += iprot->readString(_val1043); + std::string _key824; + xfer += iprot->readString(_key824); + std::string& _val825 = this->success[_key824]; + xfer += iprot->readString(_val825); } xfer += iprot->readMapEnd(); } @@ -17557,11 +16252,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 _iter1044; - for (_iter1044 = this->success.begin(); _iter1044 != this->success.end(); ++_iter1044) + std::map ::const_iterator _iter826; + for (_iter826 = this->success.begin(); _iter826 != this->success.end(); ++_iter826) { - xfer += oprot->writeString(_iter1044->first); - xfer += oprot->writeString(_iter1044->second); + xfer += oprot->writeString(_iter826->first); + xfer += oprot->writeString(_iter826->second); } xfer += oprot->writeMapEnd(); } @@ -17576,11 +16271,6 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_partition_name_to_spec_presult::~ThriftHiveMetastore_partition_name_to_spec_presult() throw() { -} - - uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -17605,17 +16295,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1045; - ::apache::thrift::protocol::TType _ktype1046; - ::apache::thrift::protocol::TType _vtype1047; - xfer += iprot->readMapBegin(_ktype1046, _vtype1047, _size1045); - uint32_t _i1049; - for (_i1049 = 0; _i1049 < _size1045; ++_i1049) + uint32_t _size827; + ::apache::thrift::protocol::TType _ktype828; + ::apache::thrift::protocol::TType _vtype829; + xfer += iprot->readMapBegin(_ktype828, _vtype829, _size827); + uint32_t _i831; + for (_i831 = 0; _i831 < _size827; ++_i831) { - std::string _key1050; - xfer += iprot->readString(_key1050); - std::string& _val1051 = (*(this->success))[_key1050]; - xfer += iprot->readString(_val1051); + std::string _key832; + xfer += iprot->readString(_key832); + std::string& _val833 = (*(this->success))[_key832]; + xfer += iprot->readString(_val833); } xfer += iprot->readMapEnd(); } @@ -17644,11 +16334,6 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_markPartitionForEvent_args::~ThriftHiveMetastore_markPartitionForEvent_args() throw() { -} - - uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -17689,17 +16374,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1052; - ::apache::thrift::protocol::TType _ktype1053; - ::apache::thrift::protocol::TType _vtype1054; - xfer += iprot->readMapBegin(_ktype1053, _vtype1054, _size1052); - uint32_t _i1056; - for (_i1056 = 0; _i1056 < _size1052; ++_i1056) + uint32_t _size834; + ::apache::thrift::protocol::TType _ktype835; + ::apache::thrift::protocol::TType _vtype836; + xfer += iprot->readMapBegin(_ktype835, _vtype836, _size834); + uint32_t _i838; + for (_i838 = 0; _i838 < _size834; ++_i838) { - std::string _key1057; - xfer += iprot->readString(_key1057); - std::string& _val1058 = this->part_vals[_key1057]; - xfer += iprot->readString(_val1058); + std::string _key839; + xfer += iprot->readString(_key839); + std::string& _val840 = this->part_vals[_key839]; + xfer += iprot->readString(_val840); } xfer += iprot->readMapEnd(); } @@ -17710,9 +16395,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1059; - xfer += iprot->readI32(ecast1059); - this->eventType = (PartitionEventType::type)ecast1059; + int32_t ecast841; + xfer += iprot->readI32(ecast841); + this->eventType = (PartitionEventType::type)ecast841; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -17732,7 +16417,6 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: uint32_t ThriftHiveMetastore_markPartitionForEvent_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_markPartitionForEvent_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -17746,11 +16430,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 _iter1060; - for (_iter1060 = this->part_vals.begin(); _iter1060 != this->part_vals.end(); ++_iter1060) + std::map ::const_iterator _iter842; + for (_iter842 = this->part_vals.begin(); _iter842 != this->part_vals.end(); ++_iter842) { - xfer += oprot->writeString(_iter1060->first); - xfer += oprot->writeString(_iter1060->second); + xfer += oprot->writeString(_iter842->first); + xfer += oprot->writeString(_iter842->second); } xfer += oprot->writeMapEnd(); } @@ -17762,18 +16446,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::write(::apache::thrift: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_markPartitionForEvent_pargs::~ThriftHiveMetastore_markPartitionForEvent_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_markPartitionForEvent_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_markPartitionForEvent_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -17787,11 +16464,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 _iter1061; - for (_iter1061 = (*(this->part_vals)).begin(); _iter1061 != (*(this->part_vals)).end(); ++_iter1061) + std::map ::const_iterator _iter843; + for (_iter843 = (*(this->part_vals)).begin(); _iter843 != (*(this->part_vals)).end(); ++_iter843) { - xfer += oprot->writeString(_iter1061->first); - xfer += oprot->writeString(_iter1061->second); + xfer += oprot->writeString(_iter843->first); + xfer += oprot->writeString(_iter843->second); } xfer += oprot->writeMapEnd(); } @@ -17803,15 +16480,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_pargs::write(::apache::thrift xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_markPartitionForEvent_result::~ThriftHiveMetastore_markPartitionForEvent_result() throw() { -} - - uint32_t ThriftHiveMetastore_markPartitionForEvent_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -17928,11 +16599,6 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_result::write(::apache::thrif return xfer; } - -ThriftHiveMetastore_markPartitionForEvent_presult::~ThriftHiveMetastore_markPartitionForEvent_presult() throw() { -} - - uint32_t ThriftHiveMetastore_markPartitionForEvent_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -18013,11 +16679,6 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_presult::read(::apache::thrif return xfer; } - -ThriftHiveMetastore_isPartitionMarkedForEvent_args::~ThriftHiveMetastore_isPartitionMarkedForEvent_args() throw() { -} - - uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -18058,17 +16719,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1062; - ::apache::thrift::protocol::TType _ktype1063; - ::apache::thrift::protocol::TType _vtype1064; - xfer += iprot->readMapBegin(_ktype1063, _vtype1064, _size1062); - uint32_t _i1066; - for (_i1066 = 0; _i1066 < _size1062; ++_i1066) + uint32_t _size844; + ::apache::thrift::protocol::TType _ktype845; + ::apache::thrift::protocol::TType _vtype846; + xfer += iprot->readMapBegin(_ktype845, _vtype846, _size844); + uint32_t _i848; + for (_i848 = 0; _i848 < _size844; ++_i848) { - std::string _key1067; - xfer += iprot->readString(_key1067); - std::string& _val1068 = this->part_vals[_key1067]; - xfer += iprot->readString(_val1068); + std::string _key849; + xfer += iprot->readString(_key849); + std::string& _val850 = this->part_vals[_key849]; + xfer += iprot->readString(_val850); } xfer += iprot->readMapEnd(); } @@ -18079,9 +16740,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1069; - xfer += iprot->readI32(ecast1069); - this->eventType = (PartitionEventType::type)ecast1069; + int32_t ecast851; + xfer += iprot->readI32(ecast851); + this->eventType = (PartitionEventType::type)ecast851; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -18101,7 +16762,6 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_isPartitionMarkedForEvent_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -18115,11 +16775,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 _iter1070; - for (_iter1070 = this->part_vals.begin(); _iter1070 != this->part_vals.end(); ++_iter1070) + std::map ::const_iterator _iter852; + for (_iter852 = this->part_vals.begin(); _iter852 != this->part_vals.end(); ++_iter852) { - xfer += oprot->writeString(_iter1070->first); - xfer += oprot->writeString(_iter1070->second); + xfer += oprot->writeString(_iter852->first); + xfer += oprot->writeString(_iter852->second); } xfer += oprot->writeMapEnd(); } @@ -18131,18 +16791,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::write(::apache::thr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::~ThriftHiveMetastore_isPartitionMarkedForEvent_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_isPartitionMarkedForEvent_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -18156,11 +16809,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 _iter1071; - for (_iter1071 = (*(this->part_vals)).begin(); _iter1071 != (*(this->part_vals)).end(); ++_iter1071) + std::map ::const_iterator _iter853; + for (_iter853 = (*(this->part_vals)).begin(); _iter853 != (*(this->part_vals)).end(); ++_iter853) { - xfer += oprot->writeString(_iter1071->first); - xfer += oprot->writeString(_iter1071->second); + xfer += oprot->writeString(_iter853->first); + xfer += oprot->writeString(_iter853->second); } xfer += oprot->writeMapEnd(); } @@ -18172,15 +16825,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::write(::apache::th xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_isPartitionMarkedForEvent_result::~ThriftHiveMetastore_isPartitionMarkedForEvent_result() throw() { -} - - uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -18309,11 +16956,6 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_result::write(::apache::t return xfer; } - -ThriftHiveMetastore_isPartitionMarkedForEvent_presult::~ThriftHiveMetastore_isPartitionMarkedForEvent_presult() throw() { -} - - uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -18402,11 +17044,6 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_presult::read(::apache::t return xfer; } - -ThriftHiveMetastore_add_index_args::~ThriftHiveMetastore_add_index_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_index_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -18457,7 +17094,6 @@ uint32_t ThriftHiveMetastore_add_index_args::read(::apache::thrift::protocol::TP uint32_t ThriftHiveMetastore_add_index_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_index_args"); xfer += oprot->writeFieldBegin("new_index", ::apache::thrift::protocol::T_STRUCT, 1); @@ -18470,18 +17106,11 @@ uint32_t ThriftHiveMetastore_add_index_args::write(::apache::thrift::protocol::T xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_index_pargs::~ThriftHiveMetastore_add_index_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_index_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_index_pargs"); xfer += oprot->writeFieldBegin("new_index", ::apache::thrift::protocol::T_STRUCT, 1); @@ -18494,15 +17123,9 @@ uint32_t ThriftHiveMetastore_add_index_pargs::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_index_result::~ThriftHiveMetastore_add_index_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_index_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -18595,11 +17218,6 @@ uint32_t ThriftHiveMetastore_add_index_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_add_index_presult::~ThriftHiveMetastore_add_index_presult() throw() { -} - - uint32_t ThriftHiveMetastore_add_index_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -18664,11 +17282,6 @@ uint32_t ThriftHiveMetastore_add_index_presult::read(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_alter_index_args::~ThriftHiveMetastore_alter_index_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_index_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -18735,7 +17348,6 @@ uint32_t ThriftHiveMetastore_alter_index_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_alter_index_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_args"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -18756,18 +17368,11 @@ uint32_t ThriftHiveMetastore_alter_index_args::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_index_pargs::~ThriftHiveMetastore_alter_index_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_index_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_pargs"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -18788,15 +17393,9 @@ uint32_t ThriftHiveMetastore_alter_index_pargs::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_index_result::~ThriftHiveMetastore_alter_index_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_index_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -18865,11 +17464,6 @@ uint32_t ThriftHiveMetastore_alter_index_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_alter_index_presult::~ThriftHiveMetastore_alter_index_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_index_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -18918,11 +17512,6 @@ uint32_t ThriftHiveMetastore_alter_index_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_drop_index_by_name_args::~ThriftHiveMetastore_drop_index_by_name_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_index_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -18989,7 +17578,6 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_args::read(::apache::thrift::pro uint32_t ThriftHiveMetastore_drop_index_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -19010,18 +17598,11 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_args::write(::apache::thrift::pr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_index_by_name_pargs::~ThriftHiveMetastore_drop_index_by_name_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_index_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -19042,15 +17623,9 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_pargs::write(::apache::thrift::p xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_index_by_name_result::~ThriftHiveMetastore_drop_index_by_name_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_index_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -19131,11 +17706,6 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_result::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_drop_index_by_name_presult::~ThriftHiveMetastore_drop_index_by_name_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_index_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -19192,11 +17762,6 @@ uint32_t ThriftHiveMetastore_drop_index_by_name_presult::read(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_get_index_by_name_args::~ThriftHiveMetastore_get_index_by_name_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -19255,7 +17820,6 @@ uint32_t ThriftHiveMetastore_get_index_by_name_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_get_index_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -19272,18 +17836,11 @@ uint32_t ThriftHiveMetastore_get_index_by_name_args::write(::apache::thrift::pro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_index_by_name_pargs::~ThriftHiveMetastore_get_index_by_name_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -19300,15 +17857,9 @@ uint32_t ThriftHiveMetastore_get_index_by_name_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_index_by_name_result::~ThriftHiveMetastore_get_index_by_name_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -19389,11 +17940,6 @@ uint32_t ThriftHiveMetastore_get_index_by_name_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_index_by_name_presult::~ThriftHiveMetastore_get_index_by_name_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -19450,11 +17996,6 @@ uint32_t ThriftHiveMetastore_get_index_by_name_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_indexes_args::~ThriftHiveMetastore_get_indexes_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_indexes_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -19513,7 +18054,6 @@ uint32_t ThriftHiveMetastore_get_indexes_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_get_indexes_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -19530,18 +18070,11 @@ uint32_t ThriftHiveMetastore_get_indexes_args::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_indexes_pargs::~ThriftHiveMetastore_get_indexes_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_indexes_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -19558,15 +18091,9 @@ uint32_t ThriftHiveMetastore_get_indexes_pargs::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_indexes_result::~ThriftHiveMetastore_get_indexes_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -19591,14 +18118,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size854; + ::apache::thrift::protocol::TType _etype857; + xfer += iprot->readListBegin(_etype857, _size854); + this->success.resize(_size854); + uint32_t _i858; + for (_i858 = 0; _i858 < _size854; ++_i858) { - xfer += this->success[_i1076].read(iprot); + xfer += this->success[_i858].read(iprot); } xfer += iprot->readListEnd(); } @@ -19645,10 +18172,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 _iter1077; - for (_iter1077 = this->success.begin(); _iter1077 != this->success.end(); ++_iter1077) + std::vector ::const_iterator _iter859; + for (_iter859 = this->success.begin(); _iter859 != this->success.end(); ++_iter859) { - xfer += (*_iter1077).write(oprot); + xfer += (*_iter859).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19667,11 +18194,6 @@ uint32_t ThriftHiveMetastore_get_indexes_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_get_indexes_presult::~ThriftHiveMetastore_get_indexes_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -19696,14 +18218,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size860; + ::apache::thrift::protocol::TType _etype863; + xfer += iprot->readListBegin(_etype863, _size860); + (*(this->success)).resize(_size860); + uint32_t _i864; + for (_i864 = 0; _i864 < _size860; ++_i864) { - xfer += (*(this->success))[_i1082].read(iprot); + xfer += (*(this->success))[_i864].read(iprot); } xfer += iprot->readListEnd(); } @@ -19740,11 +18262,6 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_get_index_names_args::~ThriftHiveMetastore_get_index_names_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_names_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -19803,7 +18320,6 @@ uint32_t ThriftHiveMetastore_get_index_names_args::read(::apache::thrift::protoc uint32_t ThriftHiveMetastore_get_index_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -19820,18 +18336,11 @@ uint32_t ThriftHiveMetastore_get_index_names_args::write(::apache::thrift::proto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_index_names_pargs::~ThriftHiveMetastore_get_index_names_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -19848,15 +18357,9 @@ uint32_t ThriftHiveMetastore_get_index_names_pargs::write(::apache::thrift::prot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_index_names_result::~ThriftHiveMetastore_get_index_names_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -19881,14 +18384,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size865; + ::apache::thrift::protocol::TType _etype868; + xfer += iprot->readListBegin(_etype868, _size865); + this->success.resize(_size865); + uint32_t _i869; + for (_i869 = 0; _i869 < _size865; ++_i869) { - xfer += iprot->readString(this->success[_i1087]); + xfer += iprot->readString(this->success[_i869]); } xfer += iprot->readListEnd(); } @@ -19927,10 +18430,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 _iter1088; - for (_iter1088 = this->success.begin(); _iter1088 != this->success.end(); ++_iter1088) + std::vector ::const_iterator _iter870; + for (_iter870 = this->success.begin(); _iter870 != this->success.end(); ++_iter870) { - xfer += oprot->writeString((*_iter1088)); + xfer += oprot->writeString((*_iter870)); } xfer += oprot->writeListEnd(); } @@ -19945,11 +18448,6 @@ uint32_t ThriftHiveMetastore_get_index_names_result::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_get_index_names_presult::~ThriftHiveMetastore_get_index_names_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -19974,14 +18472,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size871; + ::apache::thrift::protocol::TType _etype874; + xfer += iprot->readListBegin(_etype874, _size871); + (*(this->success)).resize(_size871); + uint32_t _i875; + for (_i875 = 0; _i875 < _size871; ++_i875) { - xfer += iprot->readString((*(this->success))[_i1093]); + xfer += iprot->readString((*(this->success))[_i875]); } xfer += iprot->readListEnd(); } @@ -20010,11 +18508,6 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_update_table_column_statistics_args::~ThriftHiveMetastore_update_table_column_statistics_args() throw() { -} - - uint32_t ThriftHiveMetastore_update_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -20057,7 +18550,6 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_args::read(::apache: uint32_t ThriftHiveMetastore_update_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_args"); xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); @@ -20066,18 +18558,11 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_args::write(::apache xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_update_table_column_statistics_pargs::~ThriftHiveMetastore_update_table_column_statistics_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_update_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_pargs"); xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); @@ -20086,15 +18571,9 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_pargs::write(::apach xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_update_table_column_statistics_result::~ThriftHiveMetastore_update_table_column_statistics_result() throw() { -} - - uint32_t ThriftHiveMetastore_update_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -20199,11 +18678,6 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_result::write(::apac return xfer; } - -ThriftHiveMetastore_update_table_column_statistics_presult::~ThriftHiveMetastore_update_table_column_statistics_presult() throw() { -} - - uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -20276,11 +18750,6 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apac return xfer; } - -ThriftHiveMetastore_update_partition_column_statistics_args::~ThriftHiveMetastore_update_partition_column_statistics_args() throw() { -} - - uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -20323,7 +18792,6 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::read(::apa uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_args"); xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); @@ -20332,18 +18800,11 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::write(::ap xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_update_partition_column_statistics_pargs::~ThriftHiveMetastore_update_partition_column_statistics_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_update_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_pargs"); xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); @@ -20352,15 +18813,9 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_pargs::write(::a xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_update_partition_column_statistics_result::~ThriftHiveMetastore_update_partition_column_statistics_result() throw() { -} - - uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -20465,11 +18920,6 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::write(:: return xfer; } - -ThriftHiveMetastore_update_partition_column_statistics_presult::~ThriftHiveMetastore_update_partition_column_statistics_presult() throw() { -} - - uint32_t ThriftHiveMetastore_update_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -20542,11 +18992,6 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_presult::read(:: return xfer; } - -ThriftHiveMetastore_get_table_column_statistics_args::~ThriftHiveMetastore_get_table_column_statistics_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -20605,7 +19050,6 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_args::read(::apache::th uint32_t ThriftHiveMetastore_get_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -20622,18 +19066,11 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_args::write(::apache::t xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_table_column_statistics_pargs::~ThriftHiveMetastore_get_table_column_statistics_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -20650,15 +19087,9 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_pargs::write(::apache:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_table_column_statistics_result::~ThriftHiveMetastore_get_table_column_statistics_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -20763,11 +19194,6 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_result::write(::apache: return xfer; } - -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) { uint32_t xfer = 0; @@ -20840,11 +19266,6 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_presult::read(::apache: return xfer; } - -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) { uint32_t xfer = 0; @@ -20911,7 +19332,6 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::read(::apache uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -20932,18 +19352,11 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::write(::apach xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partition_column_statistics_pargs::~ThriftHiveMetastore_get_partition_column_statistics_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -20964,15 +19377,9 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_pargs::write(::apac xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partition_column_statistics_result::~ThriftHiveMetastore_get_partition_column_statistics_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -21077,11 +19484,6 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::write(::apa return xfer; } - -ThriftHiveMetastore_get_partition_column_statistics_presult::~ThriftHiveMetastore_get_partition_column_statistics_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -21154,11 +19556,6 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_presult::read(::apa return xfer; } - -ThriftHiveMetastore_get_table_statistics_req_args::~ThriftHiveMetastore_get_table_statistics_req_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_statistics_req_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -21201,7 +19598,6 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_args::read(::apache::thrif uint32_t ThriftHiveMetastore_get_table_statistics_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21210,18 +19606,11 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_args::write(::apache::thri xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); 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; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21230,15 +19619,9 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_pargs::write(::apache::thr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_table_statistics_req_result::~ThriftHiveMetastore_get_table_statistics_req_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_statistics_req_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -21319,11 +19702,6 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_result::write(::apache::th return xfer; } - -ThriftHiveMetastore_get_table_statistics_req_presult::~ThriftHiveMetastore_get_table_statistics_req_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_table_statistics_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -21380,11 +19758,6 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_presult::read(::apache::th return xfer; } - -ThriftHiveMetastore_get_partitions_statistics_req_args::~ThriftHiveMetastore_get_partitions_statistics_req_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -21427,7 +19800,6 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::read(::apache:: uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21436,18 +19808,11 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::write(::apache: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_statistics_req_pargs::~ThriftHiveMetastore_get_partitions_statistics_req_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_statistics_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21456,15 +19821,9 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_pargs::write(::apache xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_partitions_statistics_req_result::~ThriftHiveMetastore_get_partitions_statistics_req_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -21545,11 +19904,6 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::write(::apach return xfer; } - -ThriftHiveMetastore_get_partitions_statistics_req_presult::~ThriftHiveMetastore_get_partitions_statistics_req_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_partitions_statistics_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -21606,11 +19960,6 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_presult::read(::apach return xfer; } - -ThriftHiveMetastore_get_aggr_stats_for_args::~ThriftHiveMetastore_get_aggr_stats_for_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -21653,7 +20002,6 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::read(::apache::thrift::pro uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21662,18 +20010,11 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::write(::apache::thrift::pr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_aggr_stats_for_pargs::~ThriftHiveMetastore_get_aggr_stats_for_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_aggr_stats_for_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21682,15 +20023,9 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_pargs::write(::apache::thrift::p xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_aggr_stats_for_result::~ThriftHiveMetastore_get_aggr_stats_for_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -21771,11 +20106,6 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_get_aggr_stats_for_presult::~ThriftHiveMetastore_get_aggr_stats_for_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_aggr_stats_for_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -21832,11 +20162,6 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_presult::read(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_set_aggr_stats_for_args::~ThriftHiveMetastore_set_aggr_stats_for_args() throw() { -} - - uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -21879,7 +20204,6 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::read(::apache::thrift::pro uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21888,18 +20212,11 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::write(::apache::thrift::pr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_set_aggr_stats_for_pargs::~ThriftHiveMetastore_set_aggr_stats_for_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_set_aggr_stats_for_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21908,15 +20225,9 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_pargs::write(::apache::thrift::p xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_set_aggr_stats_for_result::~ThriftHiveMetastore_set_aggr_stats_for_result() throw() { -} - - uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -22021,11 +20332,6 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_set_aggr_stats_for_presult::~ThriftHiveMetastore_set_aggr_stats_for_presult() throw() { -} - - uint32_t ThriftHiveMetastore_set_aggr_stats_for_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -22098,11 +20404,6 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_presult::read(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_delete_partition_column_statistics_args::~ThriftHiveMetastore_delete_partition_column_statistics_args() throw() { -} - - uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -22169,7 +20470,6 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::read(::apa uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -22190,18 +20490,11 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::write(::ap xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_delete_partition_column_statistics_pargs::~ThriftHiveMetastore_delete_partition_column_statistics_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_delete_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -22222,15 +20515,9 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_pargs::write(::a xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_delete_partition_column_statistics_result::~ThriftHiveMetastore_delete_partition_column_statistics_result() throw() { -} - - uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -22335,11 +20622,6 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::write(:: return xfer; } - -ThriftHiveMetastore_delete_partition_column_statistics_presult::~ThriftHiveMetastore_delete_partition_column_statistics_presult() throw() { -} - - uint32_t ThriftHiveMetastore_delete_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -22412,11 +20694,6 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_presult::read(:: return xfer; } - -ThriftHiveMetastore_delete_table_column_statistics_args::~ThriftHiveMetastore_delete_table_column_statistics_args() throw() { -} - - uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -22475,7 +20752,6 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::read(::apache: uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_args"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -22492,18 +20768,11 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::write(::apache xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_delete_table_column_statistics_pargs::~ThriftHiveMetastore_delete_table_column_statistics_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_delete_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_pargs"); xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); @@ -22520,15 +20789,9 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_pargs::write(::apach xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_delete_table_column_statistics_result::~ThriftHiveMetastore_delete_table_column_statistics_result() throw() { -} - - uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -22633,11 +20896,6 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::write(::apac return xfer; } - -ThriftHiveMetastore_delete_table_column_statistics_presult::~ThriftHiveMetastore_delete_table_column_statistics_presult() throw() { -} - - uint32_t ThriftHiveMetastore_delete_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -22710,11 +20968,6 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_presult::read(::apac return xfer; } - -ThriftHiveMetastore_create_function_args::~ThriftHiveMetastore_create_function_args() throw() { -} - - uint32_t ThriftHiveMetastore_create_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -22757,7 +21010,6 @@ uint32_t ThriftHiveMetastore_create_function_args::read(::apache::thrift::protoc uint32_t ThriftHiveMetastore_create_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_args"); xfer += oprot->writeFieldBegin("func", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22766,18 +21018,11 @@ uint32_t ThriftHiveMetastore_create_function_args::write(::apache::thrift::proto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_create_function_pargs::~ThriftHiveMetastore_create_function_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_create_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_pargs"); xfer += oprot->writeFieldBegin("func", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22786,15 +21031,9 @@ uint32_t ThriftHiveMetastore_create_function_pargs::write(::apache::thrift::prot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_create_function_result::~ThriftHiveMetastore_create_function_result() throw() { -} - - uint32_t ThriftHiveMetastore_create_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -22887,11 +21126,6 @@ uint32_t ThriftHiveMetastore_create_function_result::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_create_function_presult::~ThriftHiveMetastore_create_function_presult() throw() { -} - - uint32_t ThriftHiveMetastore_create_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -22956,11 +21190,6 @@ uint32_t ThriftHiveMetastore_create_function_presult::read(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_drop_function_args::~ThriftHiveMetastore_drop_function_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -23011,7 +21240,6 @@ uint32_t ThriftHiveMetastore_drop_function_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_drop_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_args"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -23024,18 +21252,11 @@ uint32_t ThriftHiveMetastore_drop_function_args::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_function_pargs::~ThriftHiveMetastore_drop_function_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_drop_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_pargs"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -23048,15 +21269,9 @@ uint32_t ThriftHiveMetastore_drop_function_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_function_result::~ThriftHiveMetastore_drop_function_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -23125,11 +21340,6 @@ uint32_t ThriftHiveMetastore_drop_function_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_drop_function_presult::~ThriftHiveMetastore_drop_function_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -23178,11 +21388,6 @@ uint32_t ThriftHiveMetastore_drop_function_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_alter_function_args::~ThriftHiveMetastore_alter_function_args() throw() { -} - - uint32_t ThriftHiveMetastore_alter_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -23241,7 +21446,6 @@ uint32_t ThriftHiveMetastore_alter_function_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_alter_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_args"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -23258,18 +21462,11 @@ uint32_t ThriftHiveMetastore_alter_function_args::write(::apache::thrift::protoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_function_pargs::~ThriftHiveMetastore_alter_function_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_alter_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_pargs"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -23286,15 +21483,9 @@ uint32_t ThriftHiveMetastore_alter_function_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_alter_function_result::~ThriftHiveMetastore_alter_function_result() throw() { -} - - uint32_t ThriftHiveMetastore_alter_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -23363,11 +21554,6 @@ uint32_t ThriftHiveMetastore_alter_function_result::write(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_alter_function_presult::~ThriftHiveMetastore_alter_function_presult() throw() { -} - - uint32_t ThriftHiveMetastore_alter_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -23416,11 +21602,6 @@ uint32_t ThriftHiveMetastore_alter_function_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_get_functions_args::~ThriftHiveMetastore_get_functions_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_functions_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -23471,7 +21652,6 @@ uint32_t ThriftHiveMetastore_get_functions_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_get_functions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_functions_args"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -23484,18 +21664,11 @@ uint32_t ThriftHiveMetastore_get_functions_args::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_functions_pargs::~ThriftHiveMetastore_get_functions_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_functions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_functions_pargs"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -23508,15 +21681,9 @@ uint32_t ThriftHiveMetastore_get_functions_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_functions_result::~ThriftHiveMetastore_get_functions_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -23541,14 +21708,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1094; - ::apache::thrift::protocol::TType _etype1097; - xfer += iprot->readListBegin(_etype1097, _size1094); - this->success.resize(_size1094); - uint32_t _i1098; - for (_i1098 = 0; _i1098 < _size1094; ++_i1098) + uint32_t _size876; + ::apache::thrift::protocol::TType _etype879; + xfer += iprot->readListBegin(_etype879, _size876); + this->success.resize(_size876); + uint32_t _i880; + for (_i880 = 0; _i880 < _size876; ++_i880) { - xfer += iprot->readString(this->success[_i1098]); + xfer += iprot->readString(this->success[_i880]); } xfer += iprot->readListEnd(); } @@ -23587,10 +21754,10 @@ uint32_t ThriftHiveMetastore_get_functions_result::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1099; - for (_iter1099 = this->success.begin(); _iter1099 != this->success.end(); ++_iter1099) + std::vector ::const_iterator _iter881; + for (_iter881 = this->success.begin(); _iter881 != this->success.end(); ++_iter881) { - xfer += oprot->writeString((*_iter1099)); + xfer += oprot->writeString((*_iter881)); } xfer += oprot->writeListEnd(); } @@ -23605,11 +21772,6 @@ uint32_t ThriftHiveMetastore_get_functions_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_functions_presult::~ThriftHiveMetastore_get_functions_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -23634,14 +21796,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1100; - ::apache::thrift::protocol::TType _etype1103; - xfer += iprot->readListBegin(_etype1103, _size1100); - (*(this->success)).resize(_size1100); - uint32_t _i1104; - for (_i1104 = 0; _i1104 < _size1100; ++_i1104) + uint32_t _size882; + ::apache::thrift::protocol::TType _etype885; + xfer += iprot->readListBegin(_etype885, _size882); + (*(this->success)).resize(_size882); + uint32_t _i886; + for (_i886 = 0; _i886 < _size882; ++_i886) { - xfer += iprot->readString((*(this->success))[_i1104]); + xfer += iprot->readString((*(this->success))[_i886]); } xfer += iprot->readListEnd(); } @@ -23670,11 +21832,6 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_function_args::~ThriftHiveMetastore_get_function_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -23725,7 +21882,6 @@ uint32_t ThriftHiveMetastore_get_function_args::read(::apache::thrift::protocol: uint32_t ThriftHiveMetastore_get_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_function_args"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -23738,18 +21894,11 @@ uint32_t ThriftHiveMetastore_get_function_args::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_function_pargs::~ThriftHiveMetastore_get_function_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_function_pargs"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -23762,15 +21911,9 @@ uint32_t ThriftHiveMetastore_get_function_pargs::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_function_result::~ThriftHiveMetastore_get_function_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -23851,11 +21994,6 @@ uint32_t ThriftHiveMetastore_get_function_result::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_function_presult::~ThriftHiveMetastore_get_function_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -23912,11 +22050,6 @@ uint32_t ThriftHiveMetastore_get_function_presult::read(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_get_all_functions_args::~ThriftHiveMetastore_get_all_functions_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_functions_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -23946,36 +22079,22 @@ uint32_t ThriftHiveMetastore_get_all_functions_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_get_all_functions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_functions_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_all_functions_pargs::~ThriftHiveMetastore_get_all_functions_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_functions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_functions_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_all_functions_result::~ThriftHiveMetastore_get_all_functions_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_functions_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -24044,11 +22163,6 @@ uint32_t ThriftHiveMetastore_get_all_functions_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_all_functions_presult::~ThriftHiveMetastore_get_all_functions_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_all_functions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -24097,11 +22211,6 @@ uint32_t ThriftHiveMetastore_get_all_functions_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_create_role_args::~ThriftHiveMetastore_create_role_args() throw() { -} - - uint32_t ThriftHiveMetastore_create_role_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -24144,7 +22253,6 @@ uint32_t ThriftHiveMetastore_create_role_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_create_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_args"); xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1); @@ -24153,18 +22261,11 @@ uint32_t ThriftHiveMetastore_create_role_args::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_create_role_pargs::~ThriftHiveMetastore_create_role_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_create_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_pargs"); xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1); @@ -24173,15 +22274,9 @@ uint32_t ThriftHiveMetastore_create_role_pargs::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_create_role_result::~ThriftHiveMetastore_create_role_result() throw() { -} - - uint32_t ThriftHiveMetastore_create_role_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -24250,11 +22345,6 @@ uint32_t ThriftHiveMetastore_create_role_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_create_role_presult::~ThriftHiveMetastore_create_role_presult() throw() { -} - - uint32_t ThriftHiveMetastore_create_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -24303,11 +22393,6 @@ uint32_t ThriftHiveMetastore_create_role_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_drop_role_args::~ThriftHiveMetastore_drop_role_args() throw() { -} - - uint32_t ThriftHiveMetastore_drop_role_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -24350,7 +22435,6 @@ uint32_t ThriftHiveMetastore_drop_role_args::read(::apache::thrift::protocol::TP uint32_t ThriftHiveMetastore_drop_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_args"); xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); @@ -24359,18 +22443,11 @@ uint32_t ThriftHiveMetastore_drop_role_args::write(::apache::thrift::protocol::T xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); 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; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_pargs"); xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); @@ -24379,15 +22456,9 @@ uint32_t ThriftHiveMetastore_drop_role_pargs::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_drop_role_result::~ThriftHiveMetastore_drop_role_result() throw() { -} - - uint32_t ThriftHiveMetastore_drop_role_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -24456,11 +22527,6 @@ uint32_t ThriftHiveMetastore_drop_role_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_drop_role_presult::~ThriftHiveMetastore_drop_role_presult() throw() { -} - - uint32_t ThriftHiveMetastore_drop_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -24509,11 +22575,6 @@ uint32_t ThriftHiveMetastore_drop_role_presult::read(::apache::thrift::protocol: 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) { uint32_t xfer = 0; @@ -24543,36 +22604,22 @@ uint32_t ThriftHiveMetastore_get_role_names_args::read(::apache::thrift::protoco uint32_t ThriftHiveMetastore_get_role_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); 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; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); 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) { uint32_t xfer = 0; @@ -24597,14 +22644,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1105; - ::apache::thrift::protocol::TType _etype1108; - xfer += iprot->readListBegin(_etype1108, _size1105); - this->success.resize(_size1105); - uint32_t _i1109; - for (_i1109 = 0; _i1109 < _size1105; ++_i1109) + uint32_t _size887; + ::apache::thrift::protocol::TType _etype890; + xfer += iprot->readListBegin(_etype890, _size887); + this->success.resize(_size887); + uint32_t _i891; + for (_i891 = 0; _i891 < _size887; ++_i891) { - xfer += iprot->readString(this->success[_i1109]); + xfer += iprot->readString(this->success[_i891]); } xfer += iprot->readListEnd(); } @@ -24643,10 +22690,10 @@ uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1110; - for (_iter1110 = this->success.begin(); _iter1110 != this->success.end(); ++_iter1110) + std::vector ::const_iterator _iter892; + for (_iter892 = this->success.begin(); _iter892 != this->success.end(); ++_iter892) { - xfer += oprot->writeString((*_iter1110)); + xfer += oprot->writeString((*_iter892)); } xfer += oprot->writeListEnd(); } @@ -24661,11 +22708,6 @@ uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::prot 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) { uint32_t xfer = 0; @@ -24690,14 +22732,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1111; - ::apache::thrift::protocol::TType _etype1114; - xfer += iprot->readListBegin(_etype1114, _size1111); - (*(this->success)).resize(_size1111); - uint32_t _i1115; - for (_i1115 = 0; _i1115 < _size1111; ++_i1115) + uint32_t _size893; + ::apache::thrift::protocol::TType _etype896; + xfer += iprot->readListBegin(_etype896, _size893); + (*(this->success)).resize(_size893); + uint32_t _i897; + for (_i897 = 0; _i897 < _size893; ++_i897) { - xfer += iprot->readString((*(this->success))[_i1115]); + xfer += iprot->readString((*(this->success))[_i897]); } xfer += iprot->readListEnd(); } @@ -24726,11 +22768,6 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot return xfer; } - -ThriftHiveMetastore_grant_role_args::~ThriftHiveMetastore_grant_role_args() throw() { -} - - uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -24769,9 +22806,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1116; - xfer += iprot->readI32(ecast1116); - this->principal_type = (PrincipalType::type)ecast1116; + int32_t ecast898; + xfer += iprot->readI32(ecast898); + this->principal_type = (PrincipalType::type)ecast898; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -24787,9 +22824,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1117; - xfer += iprot->readI32(ecast1117); - this->grantorType = (PrincipalType::type)ecast1117; + int32_t ecast899; + xfer += iprot->readI32(ecast899); + this->grantorType = (PrincipalType::type)ecast899; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -24817,7 +22854,6 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_grant_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_role_args"); xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); @@ -24846,18 +22882,11 @@ uint32_t ThriftHiveMetastore_grant_role_args::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_grant_role_pargs::~ThriftHiveMetastore_grant_role_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_grant_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_role_pargs"); xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); @@ -24886,15 +22915,9 @@ uint32_t ThriftHiveMetastore_grant_role_pargs::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_grant_role_result::~ThriftHiveMetastore_grant_role_result() throw() { -} - - uint32_t ThriftHiveMetastore_grant_role_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -24963,11 +22986,6 @@ uint32_t ThriftHiveMetastore_grant_role_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_grant_role_presult::~ThriftHiveMetastore_grant_role_presult() throw() { -} - - uint32_t ThriftHiveMetastore_grant_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25016,11 +23034,6 @@ uint32_t ThriftHiveMetastore_grant_role_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_revoke_role_args::~ThriftHiveMetastore_revoke_role_args() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25059,9 +23072,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1118; - xfer += iprot->readI32(ecast1118); - this->principal_type = (PrincipalType::type)ecast1118; + int32_t ecast900; + xfer += iprot->readI32(ecast900); + this->principal_type = (PrincipalType::type)ecast900; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -25081,7 +23094,6 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: uint32_t ThriftHiveMetastore_revoke_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_args"); xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); @@ -25098,18 +23110,11 @@ uint32_t ThriftHiveMetastore_revoke_role_args::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_revoke_role_pargs::~ThriftHiveMetastore_revoke_role_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_pargs"); xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); @@ -25126,15 +23131,9 @@ uint32_t ThriftHiveMetastore_revoke_role_pargs::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_revoke_role_result::~ThriftHiveMetastore_revoke_role_result() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_role_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25203,11 +23202,6 @@ uint32_t ThriftHiveMetastore_revoke_role_result::write(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_revoke_role_presult::~ThriftHiveMetastore_revoke_role_presult() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25256,11 +23250,6 @@ uint32_t ThriftHiveMetastore_revoke_role_presult::read(::apache::thrift::protoco return xfer; } - -ThriftHiveMetastore_list_roles_args::~ThriftHiveMetastore_list_roles_args() throw() { -} - - uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25291,9 +23280,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1119; - xfer += iprot->readI32(ecast1119); - this->principal_type = (PrincipalType::type)ecast1119; + int32_t ecast901; + xfer += iprot->readI32(ecast901); + this->principal_type = (PrincipalType::type)ecast901; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -25313,7 +23302,6 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_list_roles_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_args"); xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1); @@ -25326,18 +23314,11 @@ uint32_t ThriftHiveMetastore_list_roles_args::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_list_roles_pargs::~ThriftHiveMetastore_list_roles_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_list_roles_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_pargs"); xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1); @@ -25350,15 +23331,9 @@ uint32_t ThriftHiveMetastore_list_roles_pargs::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_list_roles_result::~ThriftHiveMetastore_list_roles_result() throw() { -} - - uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25383,14 +23358,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1120; - ::apache::thrift::protocol::TType _etype1123; - xfer += iprot->readListBegin(_etype1123, _size1120); - this->success.resize(_size1120); - uint32_t _i1124; - for (_i1124 = 0; _i1124 < _size1120; ++_i1124) + uint32_t _size902; + ::apache::thrift::protocol::TType _etype905; + xfer += iprot->readListBegin(_etype905, _size902); + this->success.resize(_size902); + uint32_t _i906; + for (_i906 = 0; _i906 < _size902; ++_i906) { - xfer += this->success[_i1124].read(iprot); + xfer += this->success[_i906].read(iprot); } xfer += iprot->readListEnd(); } @@ -25429,10 +23404,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 _iter1125; - for (_iter1125 = this->success.begin(); _iter1125 != this->success.end(); ++_iter1125) + std::vector ::const_iterator _iter907; + for (_iter907 = this->success.begin(); _iter907 != this->success.end(); ++_iter907) { - xfer += (*_iter1125).write(oprot); + xfer += (*_iter907).write(oprot); } xfer += oprot->writeListEnd(); } @@ -25447,11 +23422,6 @@ uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_list_roles_presult::~ThriftHiveMetastore_list_roles_presult() throw() { -} - - uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25476,14 +23446,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1126; - ::apache::thrift::protocol::TType _etype1129; - xfer += iprot->readListBegin(_etype1129, _size1126); - (*(this->success)).resize(_size1126); - uint32_t _i1130; - for (_i1130 = 0; _i1130 < _size1126; ++_i1130) + uint32_t _size908; + ::apache::thrift::protocol::TType _etype911; + xfer += iprot->readListBegin(_etype911, _size908); + (*(this->success)).resize(_size908); + uint32_t _i912; + for (_i912 = 0; _i912 < _size908; ++_i912) { - xfer += (*(this->success))[_i1130].read(iprot); + xfer += (*(this->success))[_i912].read(iprot); } xfer += iprot->readListEnd(); } @@ -25512,11 +23482,6 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_grant_revoke_role_args::~ThriftHiveMetastore_grant_revoke_role_args() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_role_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25559,7 +23524,6 @@ uint32_t ThriftHiveMetastore_grant_revoke_role_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_grant_revoke_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_revoke_role_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -25568,18 +23532,11 @@ uint32_t ThriftHiveMetastore_grant_revoke_role_args::write(::apache::thrift::pro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_grant_revoke_role_pargs::~ThriftHiveMetastore_grant_revoke_role_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_revoke_role_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -25588,15 +23545,9 @@ uint32_t ThriftHiveMetastore_grant_revoke_role_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_grant_revoke_role_result::~ThriftHiveMetastore_grant_revoke_role_result() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_role_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25665,11 +23616,6 @@ uint32_t ThriftHiveMetastore_grant_revoke_role_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_grant_revoke_role_presult::~ThriftHiveMetastore_grant_revoke_role_presult() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25718,11 +23664,6 @@ uint32_t ThriftHiveMetastore_grant_revoke_role_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_principals_in_role_args::~ThriftHiveMetastore_get_principals_in_role_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_principals_in_role_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25765,7 +23706,6 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_get_principals_in_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_principals_in_role_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -25774,18 +23714,11 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_args::write(::apache::thrift xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_principals_in_role_pargs::~ThriftHiveMetastore_get_principals_in_role_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_principals_in_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_principals_in_role_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -25794,15 +23727,9 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_pargs::write(::apache::thrif xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_principals_in_role_result::~ThriftHiveMetastore_get_principals_in_role_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_principals_in_role_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25871,11 +23798,6 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_get_principals_in_role_presult::~ThriftHiveMetastore_get_principals_in_role_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_principals_in_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25924,11 +23846,6 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_get_role_grants_for_principal_args::~ThriftHiveMetastore_get_role_grants_for_principal_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_role_grants_for_principal_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -25971,7 +23888,6 @@ uint32_t ThriftHiveMetastore_get_role_grants_for_principal_args::read(::apache:: uint32_t ThriftHiveMetastore_get_role_grants_for_principal_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_grants_for_principal_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -25980,18 +23896,11 @@ uint32_t ThriftHiveMetastore_get_role_grants_for_principal_args::write(::apache: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_role_grants_for_principal_pargs::~ThriftHiveMetastore_get_role_grants_for_principal_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_role_grants_for_principal_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_grants_for_principal_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26000,15 +23909,9 @@ uint32_t ThriftHiveMetastore_get_role_grants_for_principal_pargs::write(::apache xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_role_grants_for_principal_result::~ThriftHiveMetastore_get_role_grants_for_principal_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_role_grants_for_principal_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -26077,11 +23980,6 @@ uint32_t ThriftHiveMetastore_get_role_grants_for_principal_result::write(::apach return xfer; } - -ThriftHiveMetastore_get_role_grants_for_principal_presult::~ThriftHiveMetastore_get_role_grants_for_principal_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_role_grants_for_principal_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -26130,11 +24028,6 @@ uint32_t ThriftHiveMetastore_get_role_grants_for_principal_presult::read(::apach return xfer; } - -ThriftHiveMetastore_get_privilege_set_args::~ThriftHiveMetastore_get_privilege_set_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -26175,14 +24068,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 _size1131; - ::apache::thrift::protocol::TType _etype1134; - xfer += iprot->readListBegin(_etype1134, _size1131); - this->group_names.resize(_size1131); - uint32_t _i1135; - for (_i1135 = 0; _i1135 < _size1131; ++_i1135) + uint32_t _size913; + ::apache::thrift::protocol::TType _etype916; + xfer += iprot->readListBegin(_etype916, _size913); + this->group_names.resize(_size913); + uint32_t _i917; + for (_i917 = 0; _i917 < _size913; ++_i917) { - xfer += iprot->readString(this->group_names[_i1135]); + xfer += iprot->readString(this->group_names[_i917]); } xfer += iprot->readListEnd(); } @@ -26205,7 +24098,6 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_privilege_set_args"); xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26219,10 +24111,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 _iter1136; - for (_iter1136 = this->group_names.begin(); _iter1136 != this->group_names.end(); ++_iter1136) + std::vector ::const_iterator _iter918; + for (_iter918 = this->group_names.begin(); _iter918 != this->group_names.end(); ++_iter918) { - xfer += oprot->writeString((*_iter1136)); + xfer += oprot->writeString((*_iter918)); } xfer += oprot->writeListEnd(); } @@ -26230,18 +24122,11 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::pro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_privilege_set_pargs::~ThriftHiveMetastore_get_privilege_set_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_privilege_set_pargs"); xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26255,10 +24140,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 _iter1137; - for (_iter1137 = (*(this->group_names)).begin(); _iter1137 != (*(this->group_names)).end(); ++_iter1137) + std::vector ::const_iterator _iter919; + for (_iter919 = (*(this->group_names)).begin(); _iter919 != (*(this->group_names)).end(); ++_iter919) { - xfer += oprot->writeString((*_iter1137)); + xfer += oprot->writeString((*_iter919)); } xfer += oprot->writeListEnd(); } @@ -26266,15 +24151,9 @@ uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_privilege_set_result::~ThriftHiveMetastore_get_privilege_set_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_privilege_set_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -26343,11 +24222,6 @@ uint32_t ThriftHiveMetastore_get_privilege_set_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_get_privilege_set_presult::~ThriftHiveMetastore_get_privilege_set_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_privilege_set_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -26396,11 +24270,6 @@ uint32_t ThriftHiveMetastore_get_privilege_set_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_list_privileges_args::~ThriftHiveMetastore_list_privileges_args() throw() { -} - - uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -26431,9 +24300,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1138; - xfer += iprot->readI32(ecast1138); - this->principal_type = (PrincipalType::type)ecast1138; + int32_t ecast920; + xfer += iprot->readI32(ecast920); + this->principal_type = (PrincipalType::type)ecast920; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -26461,7 +24330,6 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc uint32_t ThriftHiveMetastore_list_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_privileges_args"); xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1); @@ -26478,18 +24346,11 @@ uint32_t ThriftHiveMetastore_list_privileges_args::write(::apache::thrift::proto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_list_privileges_pargs::~ThriftHiveMetastore_list_privileges_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_list_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_privileges_pargs"); xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1); @@ -26506,15 +24367,9 @@ uint32_t ThriftHiveMetastore_list_privileges_pargs::write(::apache::thrift::prot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_list_privileges_result::~ThriftHiveMetastore_list_privileges_result() throw() { -} - - uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -26539,14 +24394,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1139; - ::apache::thrift::protocol::TType _etype1142; - xfer += iprot->readListBegin(_etype1142, _size1139); - this->success.resize(_size1139); - uint32_t _i1143; - for (_i1143 = 0; _i1143 < _size1139; ++_i1143) + uint32_t _size921; + ::apache::thrift::protocol::TType _etype924; + xfer += iprot->readListBegin(_etype924, _size921); + this->success.resize(_size921); + uint32_t _i925; + for (_i925 = 0; _i925 < _size921; ++_i925) { - xfer += this->success[_i1143].read(iprot); + xfer += this->success[_i925].read(iprot); } xfer += iprot->readListEnd(); } @@ -26585,10 +24440,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 _iter1144; - for (_iter1144 = this->success.begin(); _iter1144 != this->success.end(); ++_iter1144) + std::vector ::const_iterator _iter926; + for (_iter926 = this->success.begin(); _iter926 != this->success.end(); ++_iter926) { - xfer += (*_iter1144).write(oprot); + xfer += (*_iter926).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26603,11 +24458,6 @@ uint32_t ThriftHiveMetastore_list_privileges_result::write(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_list_privileges_presult::~ThriftHiveMetastore_list_privileges_presult() throw() { -} - - uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -26632,14 +24482,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1145; - ::apache::thrift::protocol::TType _etype1148; - xfer += iprot->readListBegin(_etype1148, _size1145); - (*(this->success)).resize(_size1145); - uint32_t _i1149; - for (_i1149 = 0; _i1149 < _size1145; ++_i1149) + uint32_t _size927; + ::apache::thrift::protocol::TType _etype930; + xfer += iprot->readListBegin(_etype930, _size927); + (*(this->success)).resize(_size927); + uint32_t _i931; + for (_i931 = 0; _i931 < _size927; ++_i931) { - xfer += (*(this->success))[_i1149].read(iprot); + xfer += (*(this->success))[_i931].read(iprot); } xfer += iprot->readListEnd(); } @@ -26668,11 +24518,6 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro return xfer; } - -ThriftHiveMetastore_grant_privileges_args::~ThriftHiveMetastore_grant_privileges_args() throw() { -} - - uint32_t ThriftHiveMetastore_grant_privileges_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -26715,7 +24560,6 @@ uint32_t ThriftHiveMetastore_grant_privileges_args::read(::apache::thrift::proto uint32_t ThriftHiveMetastore_grant_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_privileges_args"); xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26724,18 +24568,11 @@ uint32_t ThriftHiveMetastore_grant_privileges_args::write(::apache::thrift::prot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_grant_privileges_pargs::~ThriftHiveMetastore_grant_privileges_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_grant_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_privileges_pargs"); xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26744,15 +24581,9 @@ uint32_t ThriftHiveMetastore_grant_privileges_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_grant_privileges_result::~ThriftHiveMetastore_grant_privileges_result() throw() { -} - - uint32_t ThriftHiveMetastore_grant_privileges_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -26821,11 +24652,6 @@ uint32_t ThriftHiveMetastore_grant_privileges_result::write(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_grant_privileges_presult::~ThriftHiveMetastore_grant_privileges_presult() throw() { -} - - uint32_t ThriftHiveMetastore_grant_privileges_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -26874,11 +24700,6 @@ uint32_t ThriftHiveMetastore_grant_privileges_presult::read(::apache::thrift::pr return xfer; } - -ThriftHiveMetastore_revoke_privileges_args::~ThriftHiveMetastore_revoke_privileges_args() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_privileges_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -26921,7 +24742,6 @@ uint32_t ThriftHiveMetastore_revoke_privileges_args::read(::apache::thrift::prot uint32_t ThriftHiveMetastore_revoke_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_privileges_args"); xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26930,18 +24750,11 @@ uint32_t ThriftHiveMetastore_revoke_privileges_args::write(::apache::thrift::pro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_revoke_privileges_pargs::~ThriftHiveMetastore_revoke_privileges_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_privileges_pargs"); xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1); @@ -26950,15 +24763,9 @@ uint32_t ThriftHiveMetastore_revoke_privileges_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_revoke_privileges_result::~ThriftHiveMetastore_revoke_privileges_result() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_privileges_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27027,11 +24834,6 @@ uint32_t ThriftHiveMetastore_revoke_privileges_result::write(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_revoke_privileges_presult::~ThriftHiveMetastore_revoke_privileges_presult() throw() { -} - - uint32_t ThriftHiveMetastore_revoke_privileges_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27080,11 +24882,6 @@ uint32_t ThriftHiveMetastore_revoke_privileges_presult::read(::apache::thrift::p return xfer; } - -ThriftHiveMetastore_grant_revoke_privileges_args::~ThriftHiveMetastore_grant_revoke_privileges_args() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_privileges_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27127,7 +24924,6 @@ uint32_t ThriftHiveMetastore_grant_revoke_privileges_args::read(::apache::thrift uint32_t ThriftHiveMetastore_grant_revoke_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_revoke_privileges_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -27136,18 +24932,11 @@ uint32_t ThriftHiveMetastore_grant_revoke_privileges_args::write(::apache::thrif xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_grant_revoke_privileges_pargs::~ThriftHiveMetastore_grant_revoke_privileges_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_revoke_privileges_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); @@ -27156,15 +24945,9 @@ uint32_t ThriftHiveMetastore_grant_revoke_privileges_pargs::write(::apache::thri xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_grant_revoke_privileges_result::~ThriftHiveMetastore_grant_revoke_privileges_result() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_privileges_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27233,11 +25016,6 @@ uint32_t ThriftHiveMetastore_grant_revoke_privileges_result::write(::apache::thr return xfer; } - -ThriftHiveMetastore_grant_revoke_privileges_presult::~ThriftHiveMetastore_grant_revoke_privileges_presult() throw() { -} - - uint32_t ThriftHiveMetastore_grant_revoke_privileges_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27286,11 +25064,6 @@ uint32_t ThriftHiveMetastore_grant_revoke_privileges_presult::read(::apache::thr return xfer; } - -ThriftHiveMetastore_set_ugi_args::~ThriftHiveMetastore_set_ugi_args() throw() { -} - - uint32_t ThriftHiveMetastore_set_ugi_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27323,14 +25096,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 _size1150; - ::apache::thrift::protocol::TType _etype1153; - xfer += iprot->readListBegin(_etype1153, _size1150); - this->group_names.resize(_size1150); - uint32_t _i1154; - for (_i1154 = 0; _i1154 < _size1150; ++_i1154) + uint32_t _size932; + ::apache::thrift::protocol::TType _etype935; + xfer += iprot->readListBegin(_etype935, _size932); + this->group_names.resize(_size932); + uint32_t _i936; + for (_i936 = 0; _i936 < _size932; ++_i936) { - xfer += iprot->readString(this->group_names[_i1154]); + xfer += iprot->readString(this->group_names[_i936]); } xfer += iprot->readListEnd(); } @@ -27353,7 +25126,6 @@ uint32_t ThriftHiveMetastore_set_ugi_args::read(::apache::thrift::protocol::TPro uint32_t ThriftHiveMetastore_set_ugi_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_ugi_args"); xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 1); @@ -27363,10 +25135,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 _iter1155; - for (_iter1155 = this->group_names.begin(); _iter1155 != this->group_names.end(); ++_iter1155) + std::vector ::const_iterator _iter937; + for (_iter937 = this->group_names.begin(); _iter937 != this->group_names.end(); ++_iter937) { - xfer += oprot->writeString((*_iter1155)); + xfer += oprot->writeString((*_iter937)); } xfer += oprot->writeListEnd(); } @@ -27374,18 +25146,11 @@ uint32_t ThriftHiveMetastore_set_ugi_args::write(::apache::thrift::protocol::TPr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_set_ugi_pargs::~ThriftHiveMetastore_set_ugi_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_set_ugi_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_ugi_pargs"); xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 1); @@ -27395,10 +25160,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 _iter1156; - for (_iter1156 = (*(this->group_names)).begin(); _iter1156 != (*(this->group_names)).end(); ++_iter1156) + std::vector ::const_iterator _iter938; + for (_iter938 = (*(this->group_names)).begin(); _iter938 != (*(this->group_names)).end(); ++_iter938) { - xfer += oprot->writeString((*_iter1156)); + xfer += oprot->writeString((*_iter938)); } xfer += oprot->writeListEnd(); } @@ -27406,15 +25171,9 @@ uint32_t ThriftHiveMetastore_set_ugi_pargs::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_set_ugi_result::~ThriftHiveMetastore_set_ugi_result() throw() { -} - - uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27439,14 +25198,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size939; + ::apache::thrift::protocol::TType _etype942; + xfer += iprot->readListBegin(_etype942, _size939); + this->success.resize(_size939); + uint32_t _i943; + for (_i943 = 0; _i943 < _size939; ++_i943) { - xfer += iprot->readString(this->success[_i1161]); + xfer += iprot->readString(this->success[_i943]); } xfer += iprot->readListEnd(); } @@ -27485,10 +25244,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 _iter1162; - for (_iter1162 = this->success.begin(); _iter1162 != this->success.end(); ++_iter1162) + std::vector ::const_iterator _iter944; + for (_iter944 = this->success.begin(); _iter944 != this->success.end(); ++_iter944) { - xfer += oprot->writeString((*_iter1162)); + xfer += oprot->writeString((*_iter944)); } xfer += oprot->writeListEnd(); } @@ -27503,11 +25262,6 @@ uint32_t ThriftHiveMetastore_set_ugi_result::write(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_set_ugi_presult::~ThriftHiveMetastore_set_ugi_presult() throw() { -} - - uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27532,14 +25286,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1163; - ::apache::thrift::protocol::TType _etype1166; - xfer += iprot->readListBegin(_etype1166, _size1163); - (*(this->success)).resize(_size1163); - uint32_t _i1167; - for (_i1167 = 0; _i1167 < _size1163; ++_i1167) + uint32_t _size945; + ::apache::thrift::protocol::TType _etype948; + xfer += iprot->readListBegin(_etype948, _size945); + (*(this->success)).resize(_size945); + uint32_t _i949; + for (_i949 = 0; _i949 < _size945; ++_i949) { - xfer += iprot->readString((*(this->success))[_i1167]); + xfer += iprot->readString((*(this->success))[_i949]); } xfer += iprot->readListEnd(); } @@ -27568,11 +25322,6 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_get_delegation_token_args::~ThriftHiveMetastore_get_delegation_token_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_delegation_token_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27623,7 +25372,6 @@ uint32_t ThriftHiveMetastore_get_delegation_token_args::read(::apache::thrift::p uint32_t ThriftHiveMetastore_get_delegation_token_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_delegation_token_args"); xfer += oprot->writeFieldBegin("token_owner", ::apache::thrift::protocol::T_STRING, 1); @@ -27636,18 +25384,11 @@ uint32_t ThriftHiveMetastore_get_delegation_token_args::write(::apache::thrift:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_delegation_token_pargs::~ThriftHiveMetastore_get_delegation_token_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_delegation_token_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_delegation_token_pargs"); xfer += oprot->writeFieldBegin("token_owner", ::apache::thrift::protocol::T_STRING, 1); @@ -27660,15 +25401,9 @@ uint32_t ThriftHiveMetastore_get_delegation_token_pargs::write(::apache::thrift: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_delegation_token_result::~ThriftHiveMetastore_get_delegation_token_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_delegation_token_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27737,11 +25472,6 @@ uint32_t ThriftHiveMetastore_get_delegation_token_result::write(::apache::thrift return xfer; } - -ThriftHiveMetastore_get_delegation_token_presult::~ThriftHiveMetastore_get_delegation_token_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_delegation_token_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27790,11 +25520,6 @@ uint32_t ThriftHiveMetastore_get_delegation_token_presult::read(::apache::thrift return xfer; } - -ThriftHiveMetastore_renew_delegation_token_args::~ThriftHiveMetastore_renew_delegation_token_args() throw() { -} - - uint32_t ThriftHiveMetastore_renew_delegation_token_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27837,7 +25562,6 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_renew_delegation_token_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_renew_delegation_token_args"); xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1); @@ -27846,18 +25570,11 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_args::write(::apache::thrift xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_renew_delegation_token_pargs::~ThriftHiveMetastore_renew_delegation_token_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_renew_delegation_token_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_renew_delegation_token_pargs"); xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1); @@ -27866,15 +25583,9 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_pargs::write(::apache::thrif xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_renew_delegation_token_result::~ThriftHiveMetastore_renew_delegation_token_result() throw() { -} - - uint32_t ThriftHiveMetastore_renew_delegation_token_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27943,11 +25654,6 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_renew_delegation_token_presult::~ThriftHiveMetastore_renew_delegation_token_presult() throw() { -} - - uint32_t ThriftHiveMetastore_renew_delegation_token_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -27996,11 +25702,6 @@ uint32_t ThriftHiveMetastore_renew_delegation_token_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_cancel_delegation_token_args::~ThriftHiveMetastore_cancel_delegation_token_args() throw() { -} - - uint32_t ThriftHiveMetastore_cancel_delegation_token_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28043,7 +25744,6 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_args::read(::apache::thrift uint32_t ThriftHiveMetastore_cancel_delegation_token_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_cancel_delegation_token_args"); xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1); @@ -28052,18 +25752,11 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_args::write(::apache::thrif xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_cancel_delegation_token_pargs::~ThriftHiveMetastore_cancel_delegation_token_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_cancel_delegation_token_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_cancel_delegation_token_pargs"); xfer += oprot->writeFieldBegin("token_str_form", ::apache::thrift::protocol::T_STRING, 1); @@ -28072,15 +25765,9 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_pargs::write(::apache::thri xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_cancel_delegation_token_result::~ThriftHiveMetastore_cancel_delegation_token_result() throw() { -} - - uint32_t ThriftHiveMetastore_cancel_delegation_token_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28137,11 +25824,6 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_result::write(::apache::thr return xfer; } - -ThriftHiveMetastore_cancel_delegation_token_presult::~ThriftHiveMetastore_cancel_delegation_token_presult() throw() { -} - - uint32_t ThriftHiveMetastore_cancel_delegation_token_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28182,11 +25864,6 @@ uint32_t ThriftHiveMetastore_cancel_delegation_token_presult::read(::apache::thr return xfer; } - -ThriftHiveMetastore_get_open_txns_args::~ThriftHiveMetastore_get_open_txns_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28216,36 +25893,22 @@ uint32_t ThriftHiveMetastore_get_open_txns_args::read(::apache::thrift::protocol uint32_t ThriftHiveMetastore_get_open_txns_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_open_txns_pargs::~ThriftHiveMetastore_get_open_txns_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_open_txns_result::~ThriftHiveMetastore_get_open_txns_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28302,11 +25965,6 @@ uint32_t ThriftHiveMetastore_get_open_txns_result::write(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_open_txns_presult::~ThriftHiveMetastore_get_open_txns_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28347,11 +26005,6 @@ uint32_t ThriftHiveMetastore_get_open_txns_presult::read(::apache::thrift::proto return xfer; } - -ThriftHiveMetastore_get_open_txns_info_args::~ThriftHiveMetastore_get_open_txns_info_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_info_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28381,36 +26034,22 @@ uint32_t ThriftHiveMetastore_get_open_txns_info_args::read(::apache::thrift::pro uint32_t ThriftHiveMetastore_get_open_txns_info_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_info_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_open_txns_info_pargs::~ThriftHiveMetastore_get_open_txns_info_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_info_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_open_txns_info_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_open_txns_info_result::~ThriftHiveMetastore_get_open_txns_info_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_info_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28467,11 +26106,6 @@ uint32_t ThriftHiveMetastore_get_open_txns_info_result::write(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_get_open_txns_info_presult::~ThriftHiveMetastore_get_open_txns_info_presult() throw() { -} - - uint32_t ThriftHiveMetastore_get_open_txns_info_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28512,11 +26146,6 @@ uint32_t ThriftHiveMetastore_get_open_txns_info_presult::read(::apache::thrift:: return xfer; } - -ThriftHiveMetastore_open_txns_args::~ThriftHiveMetastore_open_txns_args() throw() { -} - - uint32_t ThriftHiveMetastore_open_txns_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28559,7 +26188,6 @@ uint32_t ThriftHiveMetastore_open_txns_args::read(::apache::thrift::protocol::TP uint32_t ThriftHiveMetastore_open_txns_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_open_txns_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -28568,18 +26196,11 @@ uint32_t ThriftHiveMetastore_open_txns_args::write(::apache::thrift::protocol::T xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_open_txns_pargs::~ThriftHiveMetastore_open_txns_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_open_txns_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_open_txns_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -28588,15 +26209,9 @@ uint32_t ThriftHiveMetastore_open_txns_pargs::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_open_txns_result::~ThriftHiveMetastore_open_txns_result() throw() { -} - - uint32_t ThriftHiveMetastore_open_txns_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28653,11 +26268,6 @@ uint32_t ThriftHiveMetastore_open_txns_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_open_txns_presult::~ThriftHiveMetastore_open_txns_presult() throw() { -} - - uint32_t ThriftHiveMetastore_open_txns_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28698,11 +26308,6 @@ uint32_t ThriftHiveMetastore_open_txns_presult::read(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_abort_txn_args::~ThriftHiveMetastore_abort_txn_args() throw() { -} - - uint32_t ThriftHiveMetastore_abort_txn_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28745,7 +26350,6 @@ uint32_t ThriftHiveMetastore_abort_txn_args::read(::apache::thrift::protocol::TP uint32_t ThriftHiveMetastore_abort_txn_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txn_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -28754,18 +26358,11 @@ uint32_t ThriftHiveMetastore_abort_txn_args::write(::apache::thrift::protocol::T xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_abort_txn_pargs::~ThriftHiveMetastore_abort_txn_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_abort_txn_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_abort_txn_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -28774,15 +26371,9 @@ uint32_t ThriftHiveMetastore_abort_txn_pargs::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_abort_txn_result::~ThriftHiveMetastore_abort_txn_result() throw() { -} - - uint32_t ThriftHiveMetastore_abort_txn_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28839,11 +26430,6 @@ uint32_t ThriftHiveMetastore_abort_txn_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_abort_txn_presult::~ThriftHiveMetastore_abort_txn_presult() throw() { -} - - uint32_t ThriftHiveMetastore_abort_txn_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28884,11 +26470,6 @@ uint32_t ThriftHiveMetastore_abort_txn_presult::read(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_commit_txn_args::~ThriftHiveMetastore_commit_txn_args() throw() { -} - - uint32_t ThriftHiveMetastore_commit_txn_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -28931,7 +26512,6 @@ uint32_t ThriftHiveMetastore_commit_txn_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_commit_txn_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_commit_txn_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -28940,18 +26520,11 @@ uint32_t ThriftHiveMetastore_commit_txn_args::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_commit_txn_pargs::~ThriftHiveMetastore_commit_txn_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_commit_txn_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_commit_txn_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -28960,15 +26533,9 @@ uint32_t ThriftHiveMetastore_commit_txn_pargs::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_commit_txn_result::~ThriftHiveMetastore_commit_txn_result() throw() { -} - - uint32_t ThriftHiveMetastore_commit_txn_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29037,11 +26604,6 @@ uint32_t ThriftHiveMetastore_commit_txn_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_commit_txn_presult::~ThriftHiveMetastore_commit_txn_presult() throw() { -} - - uint32_t ThriftHiveMetastore_commit_txn_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29090,11 +26652,6 @@ uint32_t ThriftHiveMetastore_commit_txn_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_lock_args::~ThriftHiveMetastore_lock_args() throw() { -} - - uint32_t ThriftHiveMetastore_lock_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29137,7 +26694,6 @@ uint32_t ThriftHiveMetastore_lock_args::read(::apache::thrift::protocol::TProtoc uint32_t ThriftHiveMetastore_lock_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_lock_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -29146,18 +26702,11 @@ uint32_t ThriftHiveMetastore_lock_args::write(::apache::thrift::protocol::TProto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_lock_pargs::~ThriftHiveMetastore_lock_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_lock_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_lock_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -29166,15 +26715,9 @@ uint32_t ThriftHiveMetastore_lock_pargs::write(::apache::thrift::protocol::TProt xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_lock_result::~ThriftHiveMetastore_lock_result() throw() { -} - - uint32_t ThriftHiveMetastore_lock_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29255,11 +26798,6 @@ uint32_t ThriftHiveMetastore_lock_result::write(::apache::thrift::protocol::TPro return xfer; } - -ThriftHiveMetastore_lock_presult::~ThriftHiveMetastore_lock_presult() throw() { -} - - uint32_t ThriftHiveMetastore_lock_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29316,11 +26854,6 @@ uint32_t ThriftHiveMetastore_lock_presult::read(::apache::thrift::protocol::TPro return xfer; } - -ThriftHiveMetastore_check_lock_args::~ThriftHiveMetastore_check_lock_args() throw() { -} - - uint32_t ThriftHiveMetastore_check_lock_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29363,7 +26896,6 @@ uint32_t ThriftHiveMetastore_check_lock_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_check_lock_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_check_lock_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -29372,18 +26904,11 @@ uint32_t ThriftHiveMetastore_check_lock_args::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_check_lock_pargs::~ThriftHiveMetastore_check_lock_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_check_lock_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_check_lock_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -29392,15 +26917,9 @@ uint32_t ThriftHiveMetastore_check_lock_pargs::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_check_lock_result::~ThriftHiveMetastore_check_lock_result() throw() { -} - - uint32_t ThriftHiveMetastore_check_lock_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29493,11 +27012,6 @@ uint32_t ThriftHiveMetastore_check_lock_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_check_lock_presult::~ThriftHiveMetastore_check_lock_presult() throw() { -} - - uint32_t ThriftHiveMetastore_check_lock_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29562,11 +27076,6 @@ uint32_t ThriftHiveMetastore_check_lock_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_unlock_args::~ThriftHiveMetastore_unlock_args() throw() { -} - - uint32_t ThriftHiveMetastore_unlock_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29609,7 +27118,6 @@ uint32_t ThriftHiveMetastore_unlock_args::read(::apache::thrift::protocol::TProt uint32_t ThriftHiveMetastore_unlock_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_unlock_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -29618,18 +27126,11 @@ uint32_t ThriftHiveMetastore_unlock_args::write(::apache::thrift::protocol::TPro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_unlock_pargs::~ThriftHiveMetastore_unlock_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_unlock_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_unlock_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -29638,15 +27139,9 @@ uint32_t ThriftHiveMetastore_unlock_pargs::write(::apache::thrift::protocol::TPr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_unlock_result::~ThriftHiveMetastore_unlock_result() throw() { -} - - uint32_t ThriftHiveMetastore_unlock_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29715,11 +27210,6 @@ uint32_t ThriftHiveMetastore_unlock_result::write(::apache::thrift::protocol::TP return xfer; } - -ThriftHiveMetastore_unlock_presult::~ThriftHiveMetastore_unlock_presult() throw() { -} - - uint32_t ThriftHiveMetastore_unlock_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29768,11 +27258,6 @@ uint32_t ThriftHiveMetastore_unlock_presult::read(::apache::thrift::protocol::TP return xfer; } - -ThriftHiveMetastore_show_locks_args::~ThriftHiveMetastore_show_locks_args() throw() { -} - - uint32_t ThriftHiveMetastore_show_locks_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29815,7 +27300,6 @@ uint32_t ThriftHiveMetastore_show_locks_args::read(::apache::thrift::protocol::T uint32_t ThriftHiveMetastore_show_locks_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_locks_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -29824,18 +27308,11 @@ uint32_t ThriftHiveMetastore_show_locks_args::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_show_locks_pargs::~ThriftHiveMetastore_show_locks_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_show_locks_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_locks_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -29844,15 +27321,9 @@ uint32_t ThriftHiveMetastore_show_locks_pargs::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_show_locks_result::~ThriftHiveMetastore_show_locks_result() throw() { -} - - uint32_t ThriftHiveMetastore_show_locks_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29909,11 +27380,6 @@ uint32_t ThriftHiveMetastore_show_locks_result::write(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_show_locks_presult::~ThriftHiveMetastore_show_locks_presult() throw() { -} - - uint32_t ThriftHiveMetastore_show_locks_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -29954,11 +27420,6 @@ uint32_t ThriftHiveMetastore_show_locks_presult::read(::apache::thrift::protocol return xfer; } - -ThriftHiveMetastore_heartbeat_args::~ThriftHiveMetastore_heartbeat_args() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30001,7 +27462,6 @@ uint32_t ThriftHiveMetastore_heartbeat_args::read(::apache::thrift::protocol::TP uint32_t ThriftHiveMetastore_heartbeat_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_args"); xfer += oprot->writeFieldBegin("ids", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30010,18 +27470,11 @@ uint32_t ThriftHiveMetastore_heartbeat_args::write(::apache::thrift::protocol::T xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_heartbeat_pargs::~ThriftHiveMetastore_heartbeat_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_pargs"); xfer += oprot->writeFieldBegin("ids", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30030,15 +27483,9 @@ uint32_t ThriftHiveMetastore_heartbeat_pargs::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_heartbeat_result::~ThriftHiveMetastore_heartbeat_result() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30119,11 +27566,6 @@ uint32_t ThriftHiveMetastore_heartbeat_result::write(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_heartbeat_presult::~ThriftHiveMetastore_heartbeat_presult() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30180,11 +27622,6 @@ uint32_t ThriftHiveMetastore_heartbeat_presult::read(::apache::thrift::protocol: return xfer; } - -ThriftHiveMetastore_heartbeat_txn_range_args::~ThriftHiveMetastore_heartbeat_txn_range_args() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30227,7 +27664,6 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::read(::apache::thrift::pr uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_txn_range_args"); xfer += oprot->writeFieldBegin("txns", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30236,18 +27672,11 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_args::write(::apache::thrift::p xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_heartbeat_txn_range_pargs::~ThriftHiveMetastore_heartbeat_txn_range_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_txn_range_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_heartbeat_txn_range_pargs"); xfer += oprot->writeFieldBegin("txns", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30256,15 +27685,9 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_pargs::write(::apache::thrift:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_heartbeat_txn_range_result::~ThriftHiveMetastore_heartbeat_txn_range_result() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_txn_range_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30321,11 +27744,6 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_result::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_heartbeat_txn_range_presult::~ThriftHiveMetastore_heartbeat_txn_range_presult() throw() { -} - - uint32_t ThriftHiveMetastore_heartbeat_txn_range_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30366,11 +27784,6 @@ uint32_t ThriftHiveMetastore_heartbeat_txn_range_presult::read(::apache::thrift: return xfer; } - -ThriftHiveMetastore_compact_args::~ThriftHiveMetastore_compact_args() throw() { -} - - uint32_t ThriftHiveMetastore_compact_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30413,7 +27826,6 @@ uint32_t ThriftHiveMetastore_compact_args::read(::apache::thrift::protocol::TPro uint32_t ThriftHiveMetastore_compact_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30422,18 +27834,11 @@ uint32_t ThriftHiveMetastore_compact_args::write(::apache::thrift::protocol::TPr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_compact_pargs::~ThriftHiveMetastore_compact_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_compact_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_compact_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30442,15 +27847,9 @@ uint32_t ThriftHiveMetastore_compact_pargs::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_compact_result::~ThriftHiveMetastore_compact_result() throw() { -} - - uint32_t ThriftHiveMetastore_compact_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30489,11 +27888,6 @@ uint32_t ThriftHiveMetastore_compact_result::write(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_compact_presult::~ThriftHiveMetastore_compact_presult() throw() { -} - - uint32_t ThriftHiveMetastore_compact_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30521,11 +27915,6 @@ uint32_t ThriftHiveMetastore_compact_presult::read(::apache::thrift::protocol::T return xfer; } - -ThriftHiveMetastore_show_compact_args::~ThriftHiveMetastore_show_compact_args() throw() { -} - - uint32_t ThriftHiveMetastore_show_compact_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30568,7 +27957,6 @@ uint32_t ThriftHiveMetastore_show_compact_args::read(::apache::thrift::protocol: uint32_t ThriftHiveMetastore_show_compact_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_compact_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30577,18 +27965,11 @@ uint32_t ThriftHiveMetastore_show_compact_args::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_show_compact_pargs::~ThriftHiveMetastore_show_compact_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_show_compact_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_show_compact_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30597,15 +27978,9 @@ uint32_t ThriftHiveMetastore_show_compact_pargs::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_show_compact_result::~ThriftHiveMetastore_show_compact_result() throw() { -} - - uint32_t ThriftHiveMetastore_show_compact_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30662,11 +28037,6 @@ uint32_t ThriftHiveMetastore_show_compact_result::write(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_show_compact_presult::~ThriftHiveMetastore_show_compact_presult() throw() { -} - - uint32_t ThriftHiveMetastore_show_compact_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30707,11 +28077,6 @@ uint32_t ThriftHiveMetastore_show_compact_presult::read(::apache::thrift::protoc return xfer; } - -ThriftHiveMetastore_add_dynamic_partitions_args::~ThriftHiveMetastore_add_dynamic_partitions_args() throw() { -} - - uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30754,7 +28119,6 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::read(::apache::thrift: uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_dynamic_partitions_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30763,18 +28127,11 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_args::write(::apache::thrift xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_dynamic_partitions_pargs::~ThriftHiveMetastore_add_dynamic_partitions_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_add_dynamic_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_dynamic_partitions_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30783,15 +28140,9 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_pargs::write(::apache::thrif xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_add_dynamic_partitions_result::~ThriftHiveMetastore_add_dynamic_partitions_result() throw() { -} - - uint32_t ThriftHiveMetastore_add_dynamic_partitions_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30860,11 +28211,6 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_result::write(::apache::thri return xfer; } - -ThriftHiveMetastore_add_dynamic_partitions_presult::~ThriftHiveMetastore_add_dynamic_partitions_presult() throw() { -} - - uint32_t ThriftHiveMetastore_add_dynamic_partitions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30913,11 +28259,6 @@ uint32_t ThriftHiveMetastore_add_dynamic_partitions_presult::read(::apache::thri return xfer; } - -ThriftHiveMetastore_get_next_notification_args::~ThriftHiveMetastore_get_next_notification_args() throw() { -} - - uint32_t ThriftHiveMetastore_get_next_notification_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -30960,7 +28301,6 @@ uint32_t ThriftHiveMetastore_get_next_notification_args::read(::apache::thrift:: uint32_t ThriftHiveMetastore_get_next_notification_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_notification_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30969,18 +28309,11 @@ uint32_t ThriftHiveMetastore_get_next_notification_args::write(::apache::thrift: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_next_notification_pargs::~ThriftHiveMetastore_get_next_notification_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_get_next_notification_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_notification_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -30989,15 +28322,9 @@ uint32_t ThriftHiveMetastore_get_next_notification_pargs::write(::apache::thrift xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_get_next_notification_result::~ThriftHiveMetastore_get_next_notification_result() throw() { -} - - uint32_t ThriftHiveMetastore_get_next_notification_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -31038,176 +28365,11 @@ uint32_t ThriftHiveMetastore_get_next_notification_result::read(::apache::thrift return xfer; } -uint32_t ThriftHiveMetastore_get_next_notification_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_notification_result"); - - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_get_next_notification_presult::~ThriftHiveMetastore_get_next_notification_presult() throw() { -} - - -uint32_t ThriftHiveMetastore_get_next_notification_presult::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - - -ThriftHiveMetastore_get_current_notificationEventId_args::~ThriftHiveMetastore_get_current_notificationEventId_args() throw() { -} - - -uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - xfer += iprot->skip(ftype); - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_args"); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -ThriftHiveMetastore_get_current_notificationEventId_pargs::~ThriftHiveMetastore_get_current_notificationEventId_pargs() throw() { -} - - -uint32_t ThriftHiveMetastore_get_current_notificationEventId_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - oprot->incrementRecursionDepth(); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_pargs"); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - - -ThriftHiveMetastore_get_current_notificationEventId_result::~ThriftHiveMetastore_get_current_notificationEventId_result() throw() { -} - - -uint32_t ThriftHiveMetastore_get_current_notificationEventId_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t ThriftHiveMetastore_get_current_notificationEventId_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_next_notification_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_next_notification_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -31219,12 +28381,92 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_result::write(::apa return xfer; } +uint32_t ThriftHiveMetastore_get_next_notification_presult::read(::apache::thrift::protocol::TProtocol* iprot) { -ThriftHiveMetastore_get_current_notificationEventId_presult::~ThriftHiveMetastore_get_current_notificationEventId_presult() throw() { + 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; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; } +uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::read(::apache::thrift::protocol::TProtocol* iprot) { -uint32_t ThriftHiveMetastore_get_current_notificationEventId_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + xfer += iprot->skip(ftype); + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_current_notificationEventId_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_args"); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_get_current_notificationEventId_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_pargs"); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_get_current_notificationEventId_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -31246,7 +28488,7 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_presult::read(::apa { 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); @@ -31264,10 +28506,61 @@ uint32_t ThriftHiveMetastore_get_current_notificationEventId_presult::read(::apa return xfer; } +uint32_t ThriftHiveMetastore_get_current_notificationEventId_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_current_notificationEventId_result"); -ThriftHiveMetastore_fire_listener_event_args::~ThriftHiveMetastore_fire_listener_event_args() throw() { + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } +uint32_t ThriftHiveMetastore_get_current_notificationEventId_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} uint32_t ThriftHiveMetastore_fire_listener_event_args::read(::apache::thrift::protocol::TProtocol* iprot) { @@ -31311,7 +28604,6 @@ uint32_t ThriftHiveMetastore_fire_listener_event_args::read(::apache::thrift::pr uint32_t ThriftHiveMetastore_fire_listener_event_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_fire_listener_event_args"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -31320,18 +28612,11 @@ uint32_t ThriftHiveMetastore_fire_listener_event_args::write(::apache::thrift::p xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_fire_listener_event_pargs::~ThriftHiveMetastore_fire_listener_event_pargs() throw() { -} - - uint32_t ThriftHiveMetastore_fire_listener_event_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHiveMetastore_fire_listener_event_pargs"); xfer += oprot->writeFieldBegin("rqst", ::apache::thrift::protocol::T_STRUCT, 1); @@ -31340,15 +28625,9 @@ uint32_t ThriftHiveMetastore_fire_listener_event_pargs::write(::apache::thrift:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHiveMetastore_fire_listener_event_result::~ThriftHiveMetastore_fire_listener_event_result() throw() { -} - - uint32_t ThriftHiveMetastore_fire_listener_event_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -31405,11 +28684,6 @@ uint32_t ThriftHiveMetastore_fire_listener_event_result::write(::apache::thrift: return xfer; } - -ThriftHiveMetastore_fire_listener_event_presult::~ThriftHiveMetastore_fire_listener_event_presult() throw() { -} - - uint32_t ThriftHiveMetastore_fire_listener_event_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -35119,6 +32393,73 @@ void ThriftHiveMetastoreClient::recv_get_partitions_by_expr(PartitionsByExprResu throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_by_expr failed: unknown result"); } +int32_t ThriftHiveMetastoreClient::get_num_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts) +{ + send_get_num_partitions_by_filter(db_name, tbl_name, filter, max_parts); + return recv_get_num_partitions_by_filter(); +} + +void ThriftHiveMetastoreClient::send_get_num_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_num_partitions_by_filter", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_num_partitions_by_filter_pargs args; + args.db_name = &db_name; + args.tbl_name = &tbl_name; + args.filter = &filter; + args.max_parts = &max_parts; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +int32_t ThriftHiveMetastoreClient::recv_get_num_partitions_by_filter() +{ + + 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_num_partitions_by_filter") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + int32_t _return; + ThriftHiveMetastore_get_num_partitions_by_filter_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + return _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_num_partitions_by_filter failed: unknown result"); +} + void ThriftHiveMetastoreClient::get_partitions_by_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & names) { send_get_partitions_by_names(db_name, tbl_name, names); @@ -42798,6 +40139,66 @@ void ThriftHiveMetastoreProcessor::process_get_partitions_by_expr(int32_t seqid, } } +void ThriftHiveMetastoreProcessor::process_get_num_partitions_by_filter(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_num_partitions_by_filter", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_num_partitions_by_filter"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_num_partitions_by_filter"); + } + + ThriftHiveMetastore_get_num_partitions_by_filter_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_num_partitions_by_filter", bytes); + } + + ThriftHiveMetastore_get_num_partitions_by_filter_result result; + try { + result.success = iface_->get_num_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts); + 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_num_partitions_by_filter"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_num_partitions_by_filter", ::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_num_partitions_by_filter"); + } + + oprot->writeMessageBegin("get_num_partitions_by_filter", ::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_num_partitions_by_filter", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_get_partitions_by_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index 520c6e3..8ad70b3 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -72,6 +72,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void get_partitions_by_filter(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts) = 0; virtual void get_part_specs_by_filter(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int32_t max_parts) = 0; virtual void get_partitions_by_expr(PartitionsByExprResult& _return, const PartitionsByExprRequest& req) = 0; + virtual int32_t get_num_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts) = 0; virtual void get_partitions_by_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & names) = 0; virtual void alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part) = 0; virtual void alter_partitions(const std::string& db_name, const std::string& tbl_name, const std::vector & new_parts) = 0; @@ -345,6 +346,10 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void get_partitions_by_expr(PartitionsByExprResult& /* _return */, const PartitionsByExprRequest& /* req */) { return; } + int32_t get_num_partitions_by_filter(const std::string& /* db_name */, const std::string& /* tbl_name */, const std::string& /* filter */, const int16_t /* max_parts */) { + int32_t _return = 0; + return _return; + } void get_partitions_by_names(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* names */) { return; } @@ -568,26 +573,24 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p typedef struct _ThriftHiveMetastore_getMetaConf_args__isset { _ThriftHiveMetastore_getMetaConf_args__isset() : key(false) {} - bool key :1; + bool key; } _ThriftHiveMetastore_getMetaConf_args__isset; class ThriftHiveMetastore_getMetaConf_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - ThriftHiveMetastore_getMetaConf_args(const ThriftHiveMetastore_getMetaConf_args&); - ThriftHiveMetastore_getMetaConf_args& operator=(const ThriftHiveMetastore_getMetaConf_args&); ThriftHiveMetastore_getMetaConf_args() : key() { } - virtual ~ThriftHiveMetastore_getMetaConf_args() throw(); + virtual ~ThriftHiveMetastore_getMetaConf_args() throw() {} + std::string key; _ThriftHiveMetastore_getMetaConf_args__isset __isset; - void __set_key(const std::string& val); + void __set_key(const std::string& val) { + key = val; + } bool operator == (const ThriftHiveMetastore_getMetaConf_args & rhs) const { @@ -604,51 +607,47 @@ class ThriftHiveMetastore_getMetaConf_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_getMetaConf_args& obj); }; class ThriftHiveMetastore_getMetaConf_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + virtual ~ThriftHiveMetastore_getMetaConf_pargs() throw() {} - virtual ~ThriftHiveMetastore_getMetaConf_pargs() throw(); const std::string* key; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_getMetaConf_pargs& obj); }; typedef struct _ThriftHiveMetastore_getMetaConf_result__isset { _ThriftHiveMetastore_getMetaConf_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_getMetaConf_result__isset; class ThriftHiveMetastore_getMetaConf_result { public: - static const char* ascii_fingerprint; // = "FB3D66E547AE5D7F8EB046D752ECF5C1"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3D,0x66,0xE5,0x47,0xAE,0x5D,0x7F,0x8E,0xB0,0x46,0xD7,0x52,0xEC,0xF5,0xC1}; - - ThriftHiveMetastore_getMetaConf_result(const ThriftHiveMetastore_getMetaConf_result&); - ThriftHiveMetastore_getMetaConf_result& operator=(const ThriftHiveMetastore_getMetaConf_result&); ThriftHiveMetastore_getMetaConf_result() : success() { } - virtual ~ThriftHiveMetastore_getMetaConf_result() throw(); + virtual ~ThriftHiveMetastore_getMetaConf_result() throw() {} + std::string success; MetaException o1; _ThriftHiveMetastore_getMetaConf_result__isset __isset; - void __set_success(const std::string& val); + void __set_success(const std::string& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_getMetaConf_result & rhs) const { @@ -667,23 +666,20 @@ class ThriftHiveMetastore_getMetaConf_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_getMetaConf_result& obj); }; typedef struct _ThriftHiveMetastore_getMetaConf_presult__isset { _ThriftHiveMetastore_getMetaConf_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_getMetaConf_presult__isset; class ThriftHiveMetastore_getMetaConf_presult { public: - static const char* ascii_fingerprint; // = "FB3D66E547AE5D7F8EB046D752ECF5C1"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3D,0x66,0xE5,0x47,0xAE,0x5D,0x7F,0x8E,0xB0,0x46,0xD7,0x52,0xEC,0xF5,0xC1}; + virtual ~ThriftHiveMetastore_getMetaConf_presult() throw() {} - virtual ~ThriftHiveMetastore_getMetaConf_presult() throw(); std::string* success; MetaException o1; @@ -691,35 +687,34 @@ class ThriftHiveMetastore_getMetaConf_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_getMetaConf_presult& obj); }; typedef struct _ThriftHiveMetastore_setMetaConf_args__isset { _ThriftHiveMetastore_setMetaConf_args__isset() : key(false), value(false) {} - bool key :1; - bool value :1; + bool key; + bool value; } _ThriftHiveMetastore_setMetaConf_args__isset; class ThriftHiveMetastore_setMetaConf_args { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; - - ThriftHiveMetastore_setMetaConf_args(const ThriftHiveMetastore_setMetaConf_args&); - ThriftHiveMetastore_setMetaConf_args& operator=(const ThriftHiveMetastore_setMetaConf_args&); ThriftHiveMetastore_setMetaConf_args() : key(), value() { } - virtual ~ThriftHiveMetastore_setMetaConf_args() throw(); + virtual ~ThriftHiveMetastore_setMetaConf_args() throw() {} + std::string key; std::string value; _ThriftHiveMetastore_setMetaConf_args__isset __isset; - void __set_key(const std::string& val); + void __set_key(const std::string& val) { + key = val; + } - void __set_value(const std::string& val); + void __set_value(const std::string& val) { + value = val; + } bool operator == (const ThriftHiveMetastore_setMetaConf_args & rhs) const { @@ -738,48 +733,42 @@ class ThriftHiveMetastore_setMetaConf_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_setMetaConf_args& obj); }; class ThriftHiveMetastore_setMetaConf_pargs { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + virtual ~ThriftHiveMetastore_setMetaConf_pargs() throw() {} - virtual ~ThriftHiveMetastore_setMetaConf_pargs() throw(); const std::string* key; const std::string* value; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_setMetaConf_pargs& obj); }; typedef struct _ThriftHiveMetastore_setMetaConf_result__isset { _ThriftHiveMetastore_setMetaConf_result__isset() : o1(false) {} - bool o1 :1; + bool o1; } _ThriftHiveMetastore_setMetaConf_result__isset; class ThriftHiveMetastore_setMetaConf_result { public: - static const char* ascii_fingerprint; // = "771E7EF40B572D2BFAB12C49547ADCBF"; - static const uint8_t binary_fingerprint[16]; // = {0x77,0x1E,0x7E,0xF4,0x0B,0x57,0x2D,0x2B,0xFA,0xB1,0x2C,0x49,0x54,0x7A,0xDC,0xBF}; - - ThriftHiveMetastore_setMetaConf_result(const ThriftHiveMetastore_setMetaConf_result&); - ThriftHiveMetastore_setMetaConf_result& operator=(const ThriftHiveMetastore_setMetaConf_result&); ThriftHiveMetastore_setMetaConf_result() { } - virtual ~ThriftHiveMetastore_setMetaConf_result() throw(); + virtual ~ThriftHiveMetastore_setMetaConf_result() throw() {} + MetaException o1; _ThriftHiveMetastore_setMetaConf_result__isset __isset; - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_setMetaConf_result & rhs) const { @@ -796,53 +785,47 @@ class ThriftHiveMetastore_setMetaConf_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_setMetaConf_result& obj); }; typedef struct _ThriftHiveMetastore_setMetaConf_presult__isset { _ThriftHiveMetastore_setMetaConf_presult__isset() : o1(false) {} - bool o1 :1; + bool o1; } _ThriftHiveMetastore_setMetaConf_presult__isset; class ThriftHiveMetastore_setMetaConf_presult { public: - static const char* ascii_fingerprint; // = "771E7EF40B572D2BFAB12C49547ADCBF"; - static const uint8_t binary_fingerprint[16]; // = {0x77,0x1E,0x7E,0xF4,0x0B,0x57,0x2D,0x2B,0xFA,0xB1,0x2C,0x49,0x54,0x7A,0xDC,0xBF}; + virtual ~ThriftHiveMetastore_setMetaConf_presult() throw() {} - virtual ~ThriftHiveMetastore_setMetaConf_presult() throw(); MetaException o1; _ThriftHiveMetastore_setMetaConf_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_setMetaConf_presult& obj); }; typedef struct _ThriftHiveMetastore_create_database_args__isset { _ThriftHiveMetastore_create_database_args__isset() : database(false) {} - bool database :1; + bool database; } _ThriftHiveMetastore_create_database_args__isset; class ThriftHiveMetastore_create_database_args { public: - static const char* ascii_fingerprint; // = "BAA173319AAB1B660ECE7D895D8F1A31"; - static const uint8_t binary_fingerprint[16]; // = {0xBA,0xA1,0x73,0x31,0x9A,0xAB,0x1B,0x66,0x0E,0xCE,0x7D,0x89,0x5D,0x8F,0x1A,0x31}; - - ThriftHiveMetastore_create_database_args(const ThriftHiveMetastore_create_database_args&); - ThriftHiveMetastore_create_database_args& operator=(const ThriftHiveMetastore_create_database_args&); ThriftHiveMetastore_create_database_args() { } - virtual ~ThriftHiveMetastore_create_database_args() throw(); + virtual ~ThriftHiveMetastore_create_database_args() throw() {} + Database database; _ThriftHiveMetastore_create_database_args__isset __isset; - void __set_database(const Database& val); + void __set_database(const Database& val) { + database = val; + } bool operator == (const ThriftHiveMetastore_create_database_args & rhs) const { @@ -859,55 +842,53 @@ class ThriftHiveMetastore_create_database_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_database_args& obj); }; class ThriftHiveMetastore_create_database_pargs { public: - static const char* ascii_fingerprint; // = "BAA173319AAB1B660ECE7D895D8F1A31"; - static const uint8_t binary_fingerprint[16]; // = {0xBA,0xA1,0x73,0x31,0x9A,0xAB,0x1B,0x66,0x0E,0xCE,0x7D,0x89,0x5D,0x8F,0x1A,0x31}; + virtual ~ThriftHiveMetastore_create_database_pargs() throw() {} - virtual ~ThriftHiveMetastore_create_database_pargs() throw(); const Database* database; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_database_pargs& obj); }; typedef struct _ThriftHiveMetastore_create_database_result__isset { _ThriftHiveMetastore_create_database_result__isset() : o1(false), o2(false), o3(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_create_database_result__isset; class ThriftHiveMetastore_create_database_result { public: - static const char* ascii_fingerprint; // = "2E72786EE0F17DA00FC5BDED362FE255"; - static const uint8_t binary_fingerprint[16]; // = {0x2E,0x72,0x78,0x6E,0xE0,0xF1,0x7D,0xA0,0x0F,0xC5,0xBD,0xED,0x36,0x2F,0xE2,0x55}; - - ThriftHiveMetastore_create_database_result(const ThriftHiveMetastore_create_database_result&); - ThriftHiveMetastore_create_database_result& operator=(const ThriftHiveMetastore_create_database_result&); ThriftHiveMetastore_create_database_result() { } - virtual ~ThriftHiveMetastore_create_database_result() throw(); + virtual ~ThriftHiveMetastore_create_database_result() throw() {} + AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; _ThriftHiveMetastore_create_database_result__isset __isset; - void __set_o1(const AlreadyExistsException& val); + void __set_o1(const AlreadyExistsException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_create_database_result & rhs) const { @@ -928,24 +909,21 @@ class ThriftHiveMetastore_create_database_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_database_result& obj); }; typedef struct _ThriftHiveMetastore_create_database_presult__isset { _ThriftHiveMetastore_create_database_presult__isset() : o1(false), o2(false), o3(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_create_database_presult__isset; class ThriftHiveMetastore_create_database_presult { public: - static const char* ascii_fingerprint; // = "2E72786EE0F17DA00FC5BDED362FE255"; - static const uint8_t binary_fingerprint[16]; // = {0x2E,0x72,0x78,0x6E,0xE0,0xF1,0x7D,0xA0,0x0F,0xC5,0xBD,0xED,0x36,0x2F,0xE2,0x55}; + virtual ~ThriftHiveMetastore_create_database_presult() throw() {} - virtual ~ThriftHiveMetastore_create_database_presult() throw(); AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -954,31 +932,28 @@ class ThriftHiveMetastore_create_database_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_database_presult& obj); }; typedef struct _ThriftHiveMetastore_get_database_args__isset { _ThriftHiveMetastore_get_database_args__isset() : name(false) {} - bool name :1; + bool name; } _ThriftHiveMetastore_get_database_args__isset; class ThriftHiveMetastore_get_database_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - ThriftHiveMetastore_get_database_args(const ThriftHiveMetastore_get_database_args&); - ThriftHiveMetastore_get_database_args& operator=(const ThriftHiveMetastore_get_database_args&); ThriftHiveMetastore_get_database_args() : name() { } - virtual ~ThriftHiveMetastore_get_database_args() throw(); + virtual ~ThriftHiveMetastore_get_database_args() throw() {} + std::string name; _ThriftHiveMetastore_get_database_args__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } bool operator == (const ThriftHiveMetastore_get_database_args & rhs) const { @@ -995,55 +970,53 @@ class ThriftHiveMetastore_get_database_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_database_args& obj); }; class ThriftHiveMetastore_get_database_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + virtual ~ThriftHiveMetastore_get_database_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_database_pargs() throw(); const std::string* name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_database_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_database_result__isset { _ThriftHiveMetastore_get_database_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_database_result__isset; class ThriftHiveMetastore_get_database_result { public: - static const char* ascii_fingerprint; // = "C73ECEC4971924DCA9053333CB4A89A0"; - static const uint8_t binary_fingerprint[16]; // = {0xC7,0x3E,0xCE,0xC4,0x97,0x19,0x24,0xDC,0xA9,0x05,0x33,0x33,0xCB,0x4A,0x89,0xA0}; - - ThriftHiveMetastore_get_database_result(const ThriftHiveMetastore_get_database_result&); - ThriftHiveMetastore_get_database_result& operator=(const ThriftHiveMetastore_get_database_result&); ThriftHiveMetastore_get_database_result() { } - virtual ~ThriftHiveMetastore_get_database_result() throw(); + virtual ~ThriftHiveMetastore_get_database_result() throw() {} + Database success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_database_result__isset __isset; - void __set_success(const Database& val); + void __set_success(const Database& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_database_result & rhs) const { @@ -1064,24 +1037,21 @@ class ThriftHiveMetastore_get_database_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_database_result& obj); }; typedef struct _ThriftHiveMetastore_get_database_presult__isset { _ThriftHiveMetastore_get_database_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_database_presult__isset; class ThriftHiveMetastore_get_database_presult { public: - static const char* ascii_fingerprint; // = "C73ECEC4971924DCA9053333CB4A89A0"; - static const uint8_t binary_fingerprint[16]; // = {0xC7,0x3E,0xCE,0xC4,0x97,0x19,0x24,0xDC,0xA9,0x05,0x33,0x33,0xCB,0x4A,0x89,0xA0}; + virtual ~ThriftHiveMetastore_get_database_presult() throw() {} - virtual ~ThriftHiveMetastore_get_database_presult() throw(); Database* success; NoSuchObjectException o1; MetaException o2; @@ -1090,39 +1060,40 @@ class ThriftHiveMetastore_get_database_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_database_presult& obj); }; typedef struct _ThriftHiveMetastore_drop_database_args__isset { _ThriftHiveMetastore_drop_database_args__isset() : name(false), deleteData(false), cascade(false) {} - bool name :1; - bool deleteData :1; - bool cascade :1; + bool name; + bool deleteData; + bool cascade; } _ThriftHiveMetastore_drop_database_args__isset; class ThriftHiveMetastore_drop_database_args { public: - static const char* ascii_fingerprint; // = "B8E1E91B0E4D1772237E387EEB23B1B0"; - static const uint8_t binary_fingerprint[16]; // = {0xB8,0xE1,0xE9,0x1B,0x0E,0x4D,0x17,0x72,0x23,0x7E,0x38,0x7E,0xEB,0x23,0xB1,0xB0}; - - ThriftHiveMetastore_drop_database_args(const ThriftHiveMetastore_drop_database_args&); - ThriftHiveMetastore_drop_database_args& operator=(const ThriftHiveMetastore_drop_database_args&); ThriftHiveMetastore_drop_database_args() : name(), deleteData(0), cascade(0) { } - virtual ~ThriftHiveMetastore_drop_database_args() throw(); + virtual ~ThriftHiveMetastore_drop_database_args() throw() {} + std::string name; bool deleteData; bool cascade; _ThriftHiveMetastore_drop_database_args__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } - void __set_cascade(const bool val); + void __set_cascade(const bool val) { + cascade = val; + } bool operator == (const ThriftHiveMetastore_drop_database_args & rhs) const { @@ -1143,57 +1114,55 @@ class ThriftHiveMetastore_drop_database_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_database_args& obj); }; class ThriftHiveMetastore_drop_database_pargs { public: - static const char* ascii_fingerprint; // = "B8E1E91B0E4D1772237E387EEB23B1B0"; - static const uint8_t binary_fingerprint[16]; // = {0xB8,0xE1,0xE9,0x1B,0x0E,0x4D,0x17,0x72,0x23,0x7E,0x38,0x7E,0xEB,0x23,0xB1,0xB0}; + virtual ~ThriftHiveMetastore_drop_database_pargs() throw() {} - virtual ~ThriftHiveMetastore_drop_database_pargs() throw(); const std::string* name; const bool* deleteData; const bool* cascade; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_database_pargs& obj); }; typedef struct _ThriftHiveMetastore_drop_database_result__isset { _ThriftHiveMetastore_drop_database_result__isset() : o1(false), o2(false), o3(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_drop_database_result__isset; class ThriftHiveMetastore_drop_database_result { public: - static const char* ascii_fingerprint; // = "2E72786EE0F17DA00FC5BDED362FE255"; - static const uint8_t binary_fingerprint[16]; // = {0x2E,0x72,0x78,0x6E,0xE0,0xF1,0x7D,0xA0,0x0F,0xC5,0xBD,0xED,0x36,0x2F,0xE2,0x55}; - - ThriftHiveMetastore_drop_database_result(const ThriftHiveMetastore_drop_database_result&); - ThriftHiveMetastore_drop_database_result& operator=(const ThriftHiveMetastore_drop_database_result&); ThriftHiveMetastore_drop_database_result() { } - virtual ~ThriftHiveMetastore_drop_database_result() throw(); + virtual ~ThriftHiveMetastore_drop_database_result() throw() {} + NoSuchObjectException o1; InvalidOperationException o2; MetaException o3; _ThriftHiveMetastore_drop_database_result__isset __isset; - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const InvalidOperationException& val); + void __set_o2(const InvalidOperationException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_drop_database_result & rhs) const { @@ -1214,24 +1183,21 @@ class ThriftHiveMetastore_drop_database_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_database_result& obj); }; typedef struct _ThriftHiveMetastore_drop_database_presult__isset { _ThriftHiveMetastore_drop_database_presult__isset() : o1(false), o2(false), o3(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_drop_database_presult__isset; class ThriftHiveMetastore_drop_database_presult { public: - static const char* ascii_fingerprint; // = "2E72786EE0F17DA00FC5BDED362FE255"; - static const uint8_t binary_fingerprint[16]; // = {0x2E,0x72,0x78,0x6E,0xE0,0xF1,0x7D,0xA0,0x0F,0xC5,0xBD,0xED,0x36,0x2F,0xE2,0x55}; + virtual ~ThriftHiveMetastore_drop_database_presult() throw() {} - virtual ~ThriftHiveMetastore_drop_database_presult() throw(); NoSuchObjectException o1; InvalidOperationException o2; MetaException o3; @@ -1240,31 +1206,28 @@ class ThriftHiveMetastore_drop_database_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_database_presult& obj); }; typedef struct _ThriftHiveMetastore_get_databases_args__isset { _ThriftHiveMetastore_get_databases_args__isset() : pattern(false) {} - bool pattern :1; + bool pattern; } _ThriftHiveMetastore_get_databases_args__isset; class ThriftHiveMetastore_get_databases_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - ThriftHiveMetastore_get_databases_args(const ThriftHiveMetastore_get_databases_args&); - ThriftHiveMetastore_get_databases_args& operator=(const ThriftHiveMetastore_get_databases_args&); ThriftHiveMetastore_get_databases_args() : pattern() { } - virtual ~ThriftHiveMetastore_get_databases_args() throw(); + virtual ~ThriftHiveMetastore_get_databases_args() throw() {} + std::string pattern; _ThriftHiveMetastore_get_databases_args__isset __isset; - void __set_pattern(const std::string& val); + void __set_pattern(const std::string& val) { + pattern = val; + } bool operator == (const ThriftHiveMetastore_get_databases_args & rhs) const { @@ -1281,51 +1244,47 @@ class ThriftHiveMetastore_get_databases_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_databases_args& obj); }; class ThriftHiveMetastore_get_databases_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + virtual ~ThriftHiveMetastore_get_databases_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_databases_pargs() throw(); const std::string* pattern; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_databases_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_databases_result__isset { _ThriftHiveMetastore_get_databases_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_databases_result__isset; class ThriftHiveMetastore_get_databases_result { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; - - ThriftHiveMetastore_get_databases_result(const ThriftHiveMetastore_get_databases_result&); - ThriftHiveMetastore_get_databases_result& operator=(const ThriftHiveMetastore_get_databases_result&); ThriftHiveMetastore_get_databases_result() { } - virtual ~ThriftHiveMetastore_get_databases_result() throw(); + virtual ~ThriftHiveMetastore_get_databases_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_get_databases_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_databases_result & rhs) const { @@ -1344,23 +1303,20 @@ class ThriftHiveMetastore_get_databases_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_databases_result& obj); }; typedef struct _ThriftHiveMetastore_get_databases_presult__isset { _ThriftHiveMetastore_get_databases_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_databases_presult__isset; class ThriftHiveMetastore_get_databases_presult { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; + virtual ~ThriftHiveMetastore_get_databases_presult() throw() {} - virtual ~ThriftHiveMetastore_get_databases_presult() throw(); std::vector * success; MetaException o1; @@ -1368,22 +1324,17 @@ class ThriftHiveMetastore_get_databases_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_databases_presult& obj); }; class ThriftHiveMetastore_get_all_databases_args { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHiveMetastore_get_all_databases_args(const ThriftHiveMetastore_get_all_databases_args&); - ThriftHiveMetastore_get_all_databases_args& operator=(const ThriftHiveMetastore_get_all_databases_args&); ThriftHiveMetastore_get_all_databases_args() { } - virtual ~ThriftHiveMetastore_get_all_databases_args() throw(); + virtual ~ThriftHiveMetastore_get_all_databases_args() throw() {} + bool operator == (const ThriftHiveMetastore_get_all_databases_args & /* rhs */) const { @@ -1398,50 +1349,46 @@ class ThriftHiveMetastore_get_all_databases_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_all_databases_args& obj); }; class ThriftHiveMetastore_get_all_databases_pargs { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHiveMetastore_get_all_databases_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_all_databases_pargs() throw(); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_all_databases_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_all_databases_result__isset { _ThriftHiveMetastore_get_all_databases_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_all_databases_result__isset; class ThriftHiveMetastore_get_all_databases_result { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; - - ThriftHiveMetastore_get_all_databases_result(const ThriftHiveMetastore_get_all_databases_result&); - ThriftHiveMetastore_get_all_databases_result& operator=(const ThriftHiveMetastore_get_all_databases_result&); ThriftHiveMetastore_get_all_databases_result() { } - virtual ~ThriftHiveMetastore_get_all_databases_result() throw(); + virtual ~ThriftHiveMetastore_get_all_databases_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_get_all_databases_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_all_databases_result & rhs) const { @@ -1460,23 +1407,20 @@ class ThriftHiveMetastore_get_all_databases_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_all_databases_result& obj); }; typedef struct _ThriftHiveMetastore_get_all_databases_presult__isset { _ThriftHiveMetastore_get_all_databases_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_all_databases_presult__isset; class ThriftHiveMetastore_get_all_databases_presult { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; + virtual ~ThriftHiveMetastore_get_all_databases_presult() throw() {} - virtual ~ThriftHiveMetastore_get_all_databases_presult() throw(); std::vector * success; MetaException o1; @@ -1484,35 +1428,34 @@ class ThriftHiveMetastore_get_all_databases_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_all_databases_presult& obj); }; typedef struct _ThriftHiveMetastore_alter_database_args__isset { _ThriftHiveMetastore_alter_database_args__isset() : dbname(false), db(false) {} - bool dbname :1; - bool db :1; + bool dbname; + bool db; } _ThriftHiveMetastore_alter_database_args__isset; class ThriftHiveMetastore_alter_database_args { public: - static const char* ascii_fingerprint; // = "B314C1FCA7295CFE5872A037139333A5"; - static const uint8_t binary_fingerprint[16]; // = {0xB3,0x14,0xC1,0xFC,0xA7,0x29,0x5C,0xFE,0x58,0x72,0xA0,0x37,0x13,0x93,0x33,0xA5}; - - ThriftHiveMetastore_alter_database_args(const ThriftHiveMetastore_alter_database_args&); - ThriftHiveMetastore_alter_database_args& operator=(const ThriftHiveMetastore_alter_database_args&); ThriftHiveMetastore_alter_database_args() : dbname() { } - virtual ~ThriftHiveMetastore_alter_database_args() throw(); + virtual ~ThriftHiveMetastore_alter_database_args() throw() {} + std::string dbname; Database db; _ThriftHiveMetastore_alter_database_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_db(const Database& val); + void __set_db(const Database& val) { + db = val; + } bool operator == (const ThriftHiveMetastore_alter_database_args & rhs) const { @@ -1531,52 +1474,48 @@ class ThriftHiveMetastore_alter_database_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_database_args& obj); }; class ThriftHiveMetastore_alter_database_pargs { public: - static const char* ascii_fingerprint; // = "B314C1FCA7295CFE5872A037139333A5"; - static const uint8_t binary_fingerprint[16]; // = {0xB3,0x14,0xC1,0xFC,0xA7,0x29,0x5C,0xFE,0x58,0x72,0xA0,0x37,0x13,0x93,0x33,0xA5}; + virtual ~ThriftHiveMetastore_alter_database_pargs() throw() {} - virtual ~ThriftHiveMetastore_alter_database_pargs() throw(); const std::string* dbname; const Database* db; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_database_pargs& obj); }; typedef struct _ThriftHiveMetastore_alter_database_result__isset { _ThriftHiveMetastore_alter_database_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_database_result__isset; class ThriftHiveMetastore_alter_database_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_alter_database_result(const ThriftHiveMetastore_alter_database_result&); - ThriftHiveMetastore_alter_database_result& operator=(const ThriftHiveMetastore_alter_database_result&); ThriftHiveMetastore_alter_database_result() { } - virtual ~ThriftHiveMetastore_alter_database_result() throw(); + virtual ~ThriftHiveMetastore_alter_database_result() throw() {} + MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_alter_database_result__isset __isset; - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_database_result & rhs) const { @@ -1595,23 +1534,20 @@ class ThriftHiveMetastore_alter_database_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_database_result& obj); }; typedef struct _ThriftHiveMetastore_alter_database_presult__isset { _ThriftHiveMetastore_alter_database_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_database_presult__isset; class ThriftHiveMetastore_alter_database_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_alter_database_presult() throw() {} - virtual ~ThriftHiveMetastore_alter_database_presult() throw(); MetaException o1; NoSuchObjectException o2; @@ -1619,31 +1555,28 @@ class ThriftHiveMetastore_alter_database_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_database_presult& obj); }; typedef struct _ThriftHiveMetastore_get_type_args__isset { _ThriftHiveMetastore_get_type_args__isset() : name(false) {} - bool name :1; + bool name; } _ThriftHiveMetastore_get_type_args__isset; class ThriftHiveMetastore_get_type_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - ThriftHiveMetastore_get_type_args(const ThriftHiveMetastore_get_type_args&); - ThriftHiveMetastore_get_type_args& operator=(const ThriftHiveMetastore_get_type_args&); ThriftHiveMetastore_get_type_args() : name() { } - virtual ~ThriftHiveMetastore_get_type_args() throw(); + virtual ~ThriftHiveMetastore_get_type_args() throw() {} + std::string name; _ThriftHiveMetastore_get_type_args__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } bool operator == (const ThriftHiveMetastore_get_type_args & rhs) const { @@ -1660,55 +1593,53 @@ class ThriftHiveMetastore_get_type_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_type_args& obj); }; class ThriftHiveMetastore_get_type_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + virtual ~ThriftHiveMetastore_get_type_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_type_pargs() throw(); const std::string* name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_type_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_type_result__isset { _ThriftHiveMetastore_get_type_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_type_result__isset; class ThriftHiveMetastore_get_type_result { public: - static const char* ascii_fingerprint; // = "FB3C6A03581A125ACD392DBF486E3393"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x6A,0x03,0x58,0x1A,0x12,0x5A,0xCD,0x39,0x2D,0xBF,0x48,0x6E,0x33,0x93}; - - ThriftHiveMetastore_get_type_result(const ThriftHiveMetastore_get_type_result&); - ThriftHiveMetastore_get_type_result& operator=(const ThriftHiveMetastore_get_type_result&); ThriftHiveMetastore_get_type_result() { } - virtual ~ThriftHiveMetastore_get_type_result() throw(); + virtual ~ThriftHiveMetastore_get_type_result() throw() {} + Type success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_type_result__isset __isset; - void __set_success(const Type& val); + void __set_success(const Type& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_type_result & rhs) const { @@ -1729,24 +1660,21 @@ class ThriftHiveMetastore_get_type_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_type_result& obj); }; typedef struct _ThriftHiveMetastore_get_type_presult__isset { _ThriftHiveMetastore_get_type_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_type_presult__isset; class ThriftHiveMetastore_get_type_presult { public: - static const char* ascii_fingerprint; // = "FB3C6A03581A125ACD392DBF486E3393"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x6A,0x03,0x58,0x1A,0x12,0x5A,0xCD,0x39,0x2D,0xBF,0x48,0x6E,0x33,0x93}; + virtual ~ThriftHiveMetastore_get_type_presult() throw() {} - virtual ~ThriftHiveMetastore_get_type_presult() throw(); Type* success; MetaException o1; NoSuchObjectException o2; @@ -1755,31 +1683,28 @@ class ThriftHiveMetastore_get_type_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_type_presult& obj); }; typedef struct _ThriftHiveMetastore_create_type_args__isset { _ThriftHiveMetastore_create_type_args__isset() : type(false) {} - bool type :1; + bool type; } _ThriftHiveMetastore_create_type_args__isset; class ThriftHiveMetastore_create_type_args { public: - static const char* ascii_fingerprint; // = "9A5D4BC8553C4C253DA189914EB026F0"; - static const uint8_t binary_fingerprint[16]; // = {0x9A,0x5D,0x4B,0xC8,0x55,0x3C,0x4C,0x25,0x3D,0xA1,0x89,0x91,0x4E,0xB0,0x26,0xF0}; - - ThriftHiveMetastore_create_type_args(const ThriftHiveMetastore_create_type_args&); - ThriftHiveMetastore_create_type_args& operator=(const ThriftHiveMetastore_create_type_args&); ThriftHiveMetastore_create_type_args() { } - virtual ~ThriftHiveMetastore_create_type_args() throw(); + virtual ~ThriftHiveMetastore_create_type_args() throw() {} + Type type; _ThriftHiveMetastore_create_type_args__isset __isset; - void __set_type(const Type& val); + void __set_type(const Type& val) { + type = val; + } bool operator == (const ThriftHiveMetastore_create_type_args & rhs) const { @@ -1796,45 +1721,37 @@ class ThriftHiveMetastore_create_type_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_type_args& obj); }; class ThriftHiveMetastore_create_type_pargs { public: - static const char* ascii_fingerprint; // = "9A5D4BC8553C4C253DA189914EB026F0"; - static const uint8_t binary_fingerprint[16]; // = {0x9A,0x5D,0x4B,0xC8,0x55,0x3C,0x4C,0x25,0x3D,0xA1,0x89,0x91,0x4E,0xB0,0x26,0xF0}; + virtual ~ThriftHiveMetastore_create_type_pargs() throw() {} - virtual ~ThriftHiveMetastore_create_type_pargs() throw(); const Type* type; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_type_pargs& obj); }; typedef struct _ThriftHiveMetastore_create_type_result__isset { _ThriftHiveMetastore_create_type_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_create_type_result__isset; class ThriftHiveMetastore_create_type_result { public: - static const char* ascii_fingerprint; // = "BEFA80ACD0D12B069F160582E1F44215"; - static const uint8_t binary_fingerprint[16]; // = {0xBE,0xFA,0x80,0xAC,0xD0,0xD1,0x2B,0x06,0x9F,0x16,0x05,0x82,0xE1,0xF4,0x42,0x15}; - - ThriftHiveMetastore_create_type_result(const ThriftHiveMetastore_create_type_result&); - ThriftHiveMetastore_create_type_result& operator=(const ThriftHiveMetastore_create_type_result&); ThriftHiveMetastore_create_type_result() : success(0) { } - virtual ~ThriftHiveMetastore_create_type_result() throw(); + virtual ~ThriftHiveMetastore_create_type_result() throw() {} + bool success; AlreadyExistsException o1; InvalidObjectException o2; @@ -1842,13 +1759,21 @@ class ThriftHiveMetastore_create_type_result { _ThriftHiveMetastore_create_type_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const AlreadyExistsException& val); + void __set_o1(const AlreadyExistsException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_create_type_result & rhs) const { @@ -1871,25 +1796,22 @@ class ThriftHiveMetastore_create_type_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_type_result& obj); }; typedef struct _ThriftHiveMetastore_create_type_presult__isset { _ThriftHiveMetastore_create_type_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_create_type_presult__isset; class ThriftHiveMetastore_create_type_presult { public: - static const char* ascii_fingerprint; // = "BEFA80ACD0D12B069F160582E1F44215"; - static const uint8_t binary_fingerprint[16]; // = {0xBE,0xFA,0x80,0xAC,0xD0,0xD1,0x2B,0x06,0x9F,0x16,0x05,0x82,0xE1,0xF4,0x42,0x15}; + virtual ~ThriftHiveMetastore_create_type_presult() throw() {} - virtual ~ThriftHiveMetastore_create_type_presult() throw(); bool* success; AlreadyExistsException o1; InvalidObjectException o2; @@ -1899,31 +1821,28 @@ class ThriftHiveMetastore_create_type_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_type_presult& obj); }; typedef struct _ThriftHiveMetastore_drop_type_args__isset { _ThriftHiveMetastore_drop_type_args__isset() : type(false) {} - bool type :1; + bool type; } _ThriftHiveMetastore_drop_type_args__isset; class ThriftHiveMetastore_drop_type_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - ThriftHiveMetastore_drop_type_args(const ThriftHiveMetastore_drop_type_args&); - ThriftHiveMetastore_drop_type_args& operator=(const ThriftHiveMetastore_drop_type_args&); ThriftHiveMetastore_drop_type_args() : type() { } - virtual ~ThriftHiveMetastore_drop_type_args() throw(); + virtual ~ThriftHiveMetastore_drop_type_args() throw() {} + std::string type; _ThriftHiveMetastore_drop_type_args__isset __isset; - void __set_type(const std::string& val); + void __set_type(const std::string& val) { + type = val; + } bool operator == (const ThriftHiveMetastore_drop_type_args & rhs) const { @@ -1940,55 +1859,53 @@ class ThriftHiveMetastore_drop_type_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_type_args& obj); }; class ThriftHiveMetastore_drop_type_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + virtual ~ThriftHiveMetastore_drop_type_pargs() throw() {} - virtual ~ThriftHiveMetastore_drop_type_pargs() throw(); const std::string* type; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_type_pargs& obj); }; typedef struct _ThriftHiveMetastore_drop_type_result__isset { _ThriftHiveMetastore_drop_type_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_type_result__isset; class ThriftHiveMetastore_drop_type_result { public: - static const char* ascii_fingerprint; // = "3499095F5992356B85332339F1B55814"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x99,0x09,0x5F,0x59,0x92,0x35,0x6B,0x85,0x33,0x23,0x39,0xF1,0xB5,0x58,0x14}; - - ThriftHiveMetastore_drop_type_result(const ThriftHiveMetastore_drop_type_result&); - ThriftHiveMetastore_drop_type_result& operator=(const ThriftHiveMetastore_drop_type_result&); ThriftHiveMetastore_drop_type_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_type_result() throw(); + virtual ~ThriftHiveMetastore_drop_type_result() throw() {} + bool success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_drop_type_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_type_result & rhs) const { @@ -2009,24 +1926,21 @@ class ThriftHiveMetastore_drop_type_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_type_result& obj); }; typedef struct _ThriftHiveMetastore_drop_type_presult__isset { _ThriftHiveMetastore_drop_type_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_type_presult__isset; class ThriftHiveMetastore_drop_type_presult { public: - static const char* ascii_fingerprint; // = "3499095F5992356B85332339F1B55814"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x99,0x09,0x5F,0x59,0x92,0x35,0x6B,0x85,0x33,0x23,0x39,0xF1,0xB5,0x58,0x14}; + virtual ~ThriftHiveMetastore_drop_type_presult() throw() {} - virtual ~ThriftHiveMetastore_drop_type_presult() throw(); bool* success; MetaException o1; NoSuchObjectException o2; @@ -2035,31 +1949,28 @@ class ThriftHiveMetastore_drop_type_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_type_presult& obj); }; typedef struct _ThriftHiveMetastore_get_type_all_args__isset { _ThriftHiveMetastore_get_type_all_args__isset() : name(false) {} - bool name :1; + bool name; } _ThriftHiveMetastore_get_type_all_args__isset; class ThriftHiveMetastore_get_type_all_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - ThriftHiveMetastore_get_type_all_args(const ThriftHiveMetastore_get_type_all_args&); - ThriftHiveMetastore_get_type_all_args& operator=(const ThriftHiveMetastore_get_type_all_args&); ThriftHiveMetastore_get_type_all_args() : name() { } - virtual ~ThriftHiveMetastore_get_type_all_args() throw(); + virtual ~ThriftHiveMetastore_get_type_all_args() throw() {} + std::string name; _ThriftHiveMetastore_get_type_all_args__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } bool operator == (const ThriftHiveMetastore_get_type_all_args & rhs) const { @@ -2076,51 +1987,47 @@ class ThriftHiveMetastore_get_type_all_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_type_all_args& obj); }; class ThriftHiveMetastore_get_type_all_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + virtual ~ThriftHiveMetastore_get_type_all_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_type_all_pargs() throw(); const std::string* name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_type_all_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_type_all_result__isset { _ThriftHiveMetastore_get_type_all_result__isset() : success(false), o2(false) {} - bool success :1; - bool o2 :1; + bool success; + bool o2; } _ThriftHiveMetastore_get_type_all_result__isset; class ThriftHiveMetastore_get_type_all_result { public: - static const char* ascii_fingerprint; // = "4AD9FFB783428C996DEB713D38DA38C4"; - static const uint8_t binary_fingerprint[16]; // = {0x4A,0xD9,0xFF,0xB7,0x83,0x42,0x8C,0x99,0x6D,0xEB,0x71,0x3D,0x38,0xDA,0x38,0xC4}; - - ThriftHiveMetastore_get_type_all_result(const ThriftHiveMetastore_get_type_all_result&); - ThriftHiveMetastore_get_type_all_result& operator=(const ThriftHiveMetastore_get_type_all_result&); ThriftHiveMetastore_get_type_all_result() { } - virtual ~ThriftHiveMetastore_get_type_all_result() throw(); + virtual ~ThriftHiveMetastore_get_type_all_result() throw() {} + std::map success; MetaException o2; _ThriftHiveMetastore_get_type_all_result__isset __isset; - void __set_success(const std::map & val); + void __set_success(const std::map & val) { + success = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_type_all_result & rhs) const { @@ -2139,23 +2046,20 @@ class ThriftHiveMetastore_get_type_all_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_type_all_result& obj); }; typedef struct _ThriftHiveMetastore_get_type_all_presult__isset { _ThriftHiveMetastore_get_type_all_presult__isset() : success(false), o2(false) {} - bool success :1; - bool o2 :1; + bool success; + bool o2; } _ThriftHiveMetastore_get_type_all_presult__isset; class ThriftHiveMetastore_get_type_all_presult { public: - static const char* ascii_fingerprint; // = "4AD9FFB783428C996DEB713D38DA38C4"; - static const uint8_t binary_fingerprint[16]; // = {0x4A,0xD9,0xFF,0xB7,0x83,0x42,0x8C,0x99,0x6D,0xEB,0x71,0x3D,0x38,0xDA,0x38,0xC4}; + virtual ~ThriftHiveMetastore_get_type_all_presult() throw() {} - virtual ~ThriftHiveMetastore_get_type_all_presult() throw(); std::map * success; MetaException o2; @@ -2163,35 +2067,34 @@ class ThriftHiveMetastore_get_type_all_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_type_all_presult& obj); }; typedef struct _ThriftHiveMetastore_get_fields_args__isset { _ThriftHiveMetastore_get_fields_args__isset() : db_name(false), table_name(false) {} - bool db_name :1; - bool table_name :1; + bool db_name; + bool table_name; } _ThriftHiveMetastore_get_fields_args__isset; class ThriftHiveMetastore_get_fields_args { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; - - ThriftHiveMetastore_get_fields_args(const ThriftHiveMetastore_get_fields_args&); - ThriftHiveMetastore_get_fields_args& operator=(const ThriftHiveMetastore_get_fields_args&); ThriftHiveMetastore_get_fields_args() : db_name(), table_name() { } - virtual ~ThriftHiveMetastore_get_fields_args() throw(); + virtual ~ThriftHiveMetastore_get_fields_args() throw() {} + std::string db_name; std::string table_name; _ThriftHiveMetastore_get_fields_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_table_name(const std::string& val); + void __set_table_name(const std::string& val) { + table_name = val; + } bool operator == (const ThriftHiveMetastore_get_fields_args & rhs) const { @@ -2210,46 +2113,38 @@ class ThriftHiveMetastore_get_fields_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_fields_args& obj); }; class ThriftHiveMetastore_get_fields_pargs { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + virtual ~ThriftHiveMetastore_get_fields_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_fields_pargs() throw(); const std::string* db_name; const std::string* table_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_fields_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_fields_result__isset { _ThriftHiveMetastore_get_fields_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_fields_result__isset; class ThriftHiveMetastore_get_fields_result { public: - static const char* ascii_fingerprint; // = "B736CA8B9EACE5EE093DF8D460EE0F4E"; - static const uint8_t binary_fingerprint[16]; // = {0xB7,0x36,0xCA,0x8B,0x9E,0xAC,0xE5,0xEE,0x09,0x3D,0xF8,0xD4,0x60,0xEE,0x0F,0x4E}; - - ThriftHiveMetastore_get_fields_result(const ThriftHiveMetastore_get_fields_result&); - ThriftHiveMetastore_get_fields_result& operator=(const ThriftHiveMetastore_get_fields_result&); ThriftHiveMetastore_get_fields_result() { } - virtual ~ThriftHiveMetastore_get_fields_result() throw(); + virtual ~ThriftHiveMetastore_get_fields_result() throw() {} + std::vector success; MetaException o1; UnknownTableException o2; @@ -2257,13 +2152,21 @@ class ThriftHiveMetastore_get_fields_result { _ThriftHiveMetastore_get_fields_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const UnknownTableException& val); + void __set_o2(const UnknownTableException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_get_fields_result & rhs) const { @@ -2286,25 +2189,22 @@ class ThriftHiveMetastore_get_fields_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_fields_result& obj); }; typedef struct _ThriftHiveMetastore_get_fields_presult__isset { _ThriftHiveMetastore_get_fields_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_fields_presult__isset; class ThriftHiveMetastore_get_fields_presult { public: - static const char* ascii_fingerprint; // = "B736CA8B9EACE5EE093DF8D460EE0F4E"; - static const uint8_t binary_fingerprint[16]; // = {0xB7,0x36,0xCA,0x8B,0x9E,0xAC,0xE5,0xEE,0x09,0x3D,0xF8,0xD4,0x60,0xEE,0x0F,0x4E}; + virtual ~ThriftHiveMetastore_get_fields_presult() throw() {} - virtual ~ThriftHiveMetastore_get_fields_presult() throw(); std::vector * success; MetaException o1; UnknownTableException o2; @@ -2314,39 +2214,40 @@ class ThriftHiveMetastore_get_fields_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_fields_presult& obj); }; typedef struct _ThriftHiveMetastore_get_fields_with_environment_context_args__isset { _ThriftHiveMetastore_get_fields_with_environment_context_args__isset() : db_name(false), table_name(false), environment_context(false) {} - bool db_name :1; - bool table_name :1; - bool environment_context :1; + bool db_name; + bool table_name; + bool environment_context; } _ThriftHiveMetastore_get_fields_with_environment_context_args__isset; class ThriftHiveMetastore_get_fields_with_environment_context_args { public: - static const char* ascii_fingerprint; // = "AE0D6195F9A2D9B00B409A0B58C4F0AE"; - static const uint8_t binary_fingerprint[16]; // = {0xAE,0x0D,0x61,0x95,0xF9,0xA2,0xD9,0xB0,0x0B,0x40,0x9A,0x0B,0x58,0xC4,0xF0,0xAE}; - - ThriftHiveMetastore_get_fields_with_environment_context_args(const ThriftHiveMetastore_get_fields_with_environment_context_args&); - ThriftHiveMetastore_get_fields_with_environment_context_args& operator=(const ThriftHiveMetastore_get_fields_with_environment_context_args&); ThriftHiveMetastore_get_fields_with_environment_context_args() : db_name(), table_name() { } - virtual ~ThriftHiveMetastore_get_fields_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_get_fields_with_environment_context_args() throw() {} + std::string db_name; std::string table_name; EnvironmentContext environment_context; _ThriftHiveMetastore_get_fields_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_table_name(const std::string& val); + void __set_table_name(const std::string& val) { + table_name = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_get_fields_with_environment_context_args & rhs) const { @@ -2367,47 +2268,39 @@ class ThriftHiveMetastore_get_fields_with_environment_context_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_fields_with_environment_context_args& obj); }; class ThriftHiveMetastore_get_fields_with_environment_context_pargs { public: - static const char* ascii_fingerprint; // = "AE0D6195F9A2D9B00B409A0B58C4F0AE"; - static const uint8_t binary_fingerprint[16]; // = {0xAE,0x0D,0x61,0x95,0xF9,0xA2,0xD9,0xB0,0x0B,0x40,0x9A,0x0B,0x58,0xC4,0xF0,0xAE}; + virtual ~ThriftHiveMetastore_get_fields_with_environment_context_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_fields_with_environment_context_pargs() throw(); const std::string* db_name; const std::string* table_name; const EnvironmentContext* environment_context; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_fields_with_environment_context_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_fields_with_environment_context_result__isset { _ThriftHiveMetastore_get_fields_with_environment_context_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_fields_with_environment_context_result__isset; class ThriftHiveMetastore_get_fields_with_environment_context_result { public: - static const char* ascii_fingerprint; // = "B736CA8B9EACE5EE093DF8D460EE0F4E"; - static const uint8_t binary_fingerprint[16]; // = {0xB7,0x36,0xCA,0x8B,0x9E,0xAC,0xE5,0xEE,0x09,0x3D,0xF8,0xD4,0x60,0xEE,0x0F,0x4E}; - - ThriftHiveMetastore_get_fields_with_environment_context_result(const ThriftHiveMetastore_get_fields_with_environment_context_result&); - ThriftHiveMetastore_get_fields_with_environment_context_result& operator=(const ThriftHiveMetastore_get_fields_with_environment_context_result&); ThriftHiveMetastore_get_fields_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_get_fields_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_get_fields_with_environment_context_result() throw() {} + std::vector success; MetaException o1; UnknownTableException o2; @@ -2415,13 +2308,21 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { _ThriftHiveMetastore_get_fields_with_environment_context_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const UnknownTableException& val); + void __set_o2(const UnknownTableException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_get_fields_with_environment_context_result & rhs) const { @@ -2444,25 +2345,22 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_fields_with_environment_context_result& obj); }; typedef struct _ThriftHiveMetastore_get_fields_with_environment_context_presult__isset { _ThriftHiveMetastore_get_fields_with_environment_context_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_fields_with_environment_context_presult__isset; class ThriftHiveMetastore_get_fields_with_environment_context_presult { public: - static const char* ascii_fingerprint; // = "B736CA8B9EACE5EE093DF8D460EE0F4E"; - static const uint8_t binary_fingerprint[16]; // = {0xB7,0x36,0xCA,0x8B,0x9E,0xAC,0xE5,0xEE,0x09,0x3D,0xF8,0xD4,0x60,0xEE,0x0F,0x4E}; + virtual ~ThriftHiveMetastore_get_fields_with_environment_context_presult() throw() {} - virtual ~ThriftHiveMetastore_get_fields_with_environment_context_presult() throw(); std::vector * success; MetaException o1; UnknownTableException o2; @@ -2472,35 +2370,34 @@ class ThriftHiveMetastore_get_fields_with_environment_context_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_fields_with_environment_context_presult& obj); }; typedef struct _ThriftHiveMetastore_get_schema_args__isset { _ThriftHiveMetastore_get_schema_args__isset() : db_name(false), table_name(false) {} - bool db_name :1; - bool table_name :1; + bool db_name; + bool table_name; } _ThriftHiveMetastore_get_schema_args__isset; class ThriftHiveMetastore_get_schema_args { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; - - ThriftHiveMetastore_get_schema_args(const ThriftHiveMetastore_get_schema_args&); - ThriftHiveMetastore_get_schema_args& operator=(const ThriftHiveMetastore_get_schema_args&); ThriftHiveMetastore_get_schema_args() : db_name(), table_name() { } - virtual ~ThriftHiveMetastore_get_schema_args() throw(); + virtual ~ThriftHiveMetastore_get_schema_args() throw() {} + std::string db_name; std::string table_name; _ThriftHiveMetastore_get_schema_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_table_name(const std::string& val); + void __set_table_name(const std::string& val) { + table_name = val; + } bool operator == (const ThriftHiveMetastore_get_schema_args & rhs) const { @@ -2519,46 +2416,38 @@ class ThriftHiveMetastore_get_schema_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_schema_args& obj); }; class ThriftHiveMetastore_get_schema_pargs { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + virtual ~ThriftHiveMetastore_get_schema_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_schema_pargs() throw(); const std::string* db_name; const std::string* table_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_schema_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_schema_result__isset { _ThriftHiveMetastore_get_schema_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_schema_result__isset; class ThriftHiveMetastore_get_schema_result { public: - static const char* ascii_fingerprint; // = "B736CA8B9EACE5EE093DF8D460EE0F4E"; - static const uint8_t binary_fingerprint[16]; // = {0xB7,0x36,0xCA,0x8B,0x9E,0xAC,0xE5,0xEE,0x09,0x3D,0xF8,0xD4,0x60,0xEE,0x0F,0x4E}; - - ThriftHiveMetastore_get_schema_result(const ThriftHiveMetastore_get_schema_result&); - ThriftHiveMetastore_get_schema_result& operator=(const ThriftHiveMetastore_get_schema_result&); ThriftHiveMetastore_get_schema_result() { } - virtual ~ThriftHiveMetastore_get_schema_result() throw(); + virtual ~ThriftHiveMetastore_get_schema_result() throw() {} + std::vector success; MetaException o1; UnknownTableException o2; @@ -2566,13 +2455,21 @@ class ThriftHiveMetastore_get_schema_result { _ThriftHiveMetastore_get_schema_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const UnknownTableException& val); + void __set_o2(const UnknownTableException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_get_schema_result & rhs) const { @@ -2595,25 +2492,22 @@ class ThriftHiveMetastore_get_schema_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_schema_result& obj); }; typedef struct _ThriftHiveMetastore_get_schema_presult__isset { _ThriftHiveMetastore_get_schema_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_schema_presult__isset; class ThriftHiveMetastore_get_schema_presult { public: - static const char* ascii_fingerprint; // = "B736CA8B9EACE5EE093DF8D460EE0F4E"; - static const uint8_t binary_fingerprint[16]; // = {0xB7,0x36,0xCA,0x8B,0x9E,0xAC,0xE5,0xEE,0x09,0x3D,0xF8,0xD4,0x60,0xEE,0x0F,0x4E}; + virtual ~ThriftHiveMetastore_get_schema_presult() throw() {} - virtual ~ThriftHiveMetastore_get_schema_presult() throw(); std::vector * success; MetaException o1; UnknownTableException o2; @@ -2623,39 +2517,40 @@ class ThriftHiveMetastore_get_schema_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_schema_presult& obj); }; typedef struct _ThriftHiveMetastore_get_schema_with_environment_context_args__isset { _ThriftHiveMetastore_get_schema_with_environment_context_args__isset() : db_name(false), table_name(false), environment_context(false) {} - bool db_name :1; - bool table_name :1; - bool environment_context :1; + bool db_name; + bool table_name; + bool environment_context; } _ThriftHiveMetastore_get_schema_with_environment_context_args__isset; class ThriftHiveMetastore_get_schema_with_environment_context_args { public: - static const char* ascii_fingerprint; // = "AE0D6195F9A2D9B00B409A0B58C4F0AE"; - static const uint8_t binary_fingerprint[16]; // = {0xAE,0x0D,0x61,0x95,0xF9,0xA2,0xD9,0xB0,0x0B,0x40,0x9A,0x0B,0x58,0xC4,0xF0,0xAE}; - - ThriftHiveMetastore_get_schema_with_environment_context_args(const ThriftHiveMetastore_get_schema_with_environment_context_args&); - ThriftHiveMetastore_get_schema_with_environment_context_args& operator=(const ThriftHiveMetastore_get_schema_with_environment_context_args&); ThriftHiveMetastore_get_schema_with_environment_context_args() : db_name(), table_name() { } - virtual ~ThriftHiveMetastore_get_schema_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_get_schema_with_environment_context_args() throw() {} + std::string db_name; std::string table_name; EnvironmentContext environment_context; _ThriftHiveMetastore_get_schema_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_table_name(const std::string& val); + void __set_table_name(const std::string& val) { + table_name = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_get_schema_with_environment_context_args & rhs) const { @@ -2676,47 +2571,39 @@ class ThriftHiveMetastore_get_schema_with_environment_context_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_schema_with_environment_context_args& obj); }; class ThriftHiveMetastore_get_schema_with_environment_context_pargs { public: - static const char* ascii_fingerprint; // = "AE0D6195F9A2D9B00B409A0B58C4F0AE"; - static const uint8_t binary_fingerprint[16]; // = {0xAE,0x0D,0x61,0x95,0xF9,0xA2,0xD9,0xB0,0x0B,0x40,0x9A,0x0B,0x58,0xC4,0xF0,0xAE}; + virtual ~ThriftHiveMetastore_get_schema_with_environment_context_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_schema_with_environment_context_pargs() throw(); const std::string* db_name; const std::string* table_name; const EnvironmentContext* environment_context; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_schema_with_environment_context_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_schema_with_environment_context_result__isset { _ThriftHiveMetastore_get_schema_with_environment_context_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_schema_with_environment_context_result__isset; class ThriftHiveMetastore_get_schema_with_environment_context_result { public: - static const char* ascii_fingerprint; // = "B736CA8B9EACE5EE093DF8D460EE0F4E"; - static const uint8_t binary_fingerprint[16]; // = {0xB7,0x36,0xCA,0x8B,0x9E,0xAC,0xE5,0xEE,0x09,0x3D,0xF8,0xD4,0x60,0xEE,0x0F,0x4E}; - - ThriftHiveMetastore_get_schema_with_environment_context_result(const ThriftHiveMetastore_get_schema_with_environment_context_result&); - ThriftHiveMetastore_get_schema_with_environment_context_result& operator=(const ThriftHiveMetastore_get_schema_with_environment_context_result&); ThriftHiveMetastore_get_schema_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_get_schema_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_get_schema_with_environment_context_result() throw() {} + std::vector success; MetaException o1; UnknownTableException o2; @@ -2724,13 +2611,21 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { _ThriftHiveMetastore_get_schema_with_environment_context_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const UnknownTableException& val); + void __set_o2(const UnknownTableException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_get_schema_with_environment_context_result & rhs) const { @@ -2753,25 +2648,22 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_schema_with_environment_context_result& obj); }; typedef struct _ThriftHiveMetastore_get_schema_with_environment_context_presult__isset { _ThriftHiveMetastore_get_schema_with_environment_context_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_schema_with_environment_context_presult__isset; class ThriftHiveMetastore_get_schema_with_environment_context_presult { public: - static const char* ascii_fingerprint; // = "B736CA8B9EACE5EE093DF8D460EE0F4E"; - static const uint8_t binary_fingerprint[16]; // = {0xB7,0x36,0xCA,0x8B,0x9E,0xAC,0xE5,0xEE,0x09,0x3D,0xF8,0xD4,0x60,0xEE,0x0F,0x4E}; + virtual ~ThriftHiveMetastore_get_schema_with_environment_context_presult() throw() {} - virtual ~ThriftHiveMetastore_get_schema_with_environment_context_presult() throw(); std::vector * success; MetaException o1; UnknownTableException o2; @@ -2781,31 +2673,28 @@ class ThriftHiveMetastore_get_schema_with_environment_context_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_schema_with_environment_context_presult& obj); }; typedef struct _ThriftHiveMetastore_create_table_args__isset { _ThriftHiveMetastore_create_table_args__isset() : tbl(false) {} - bool tbl :1; + bool tbl; } _ThriftHiveMetastore_create_table_args__isset; class ThriftHiveMetastore_create_table_args { public: - static const char* ascii_fingerprint; // = "BD1951DCA22A23C9A7B1CD46ACAE54DB"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0x19,0x51,0xDC,0xA2,0x2A,0x23,0xC9,0xA7,0xB1,0xCD,0x46,0xAC,0xAE,0x54,0xDB}; - - ThriftHiveMetastore_create_table_args(const ThriftHiveMetastore_create_table_args&); - ThriftHiveMetastore_create_table_args& operator=(const ThriftHiveMetastore_create_table_args&); ThriftHiveMetastore_create_table_args() { } - virtual ~ThriftHiveMetastore_create_table_args() throw(); + virtual ~ThriftHiveMetastore_create_table_args() throw() {} + Table tbl; _ThriftHiveMetastore_create_table_args__isset __isset; - void __set_tbl(const Table& val); + void __set_tbl(const Table& val) { + tbl = val; + } bool operator == (const ThriftHiveMetastore_create_table_args & rhs) const { @@ -2822,45 +2711,37 @@ class ThriftHiveMetastore_create_table_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_table_args& obj); }; class ThriftHiveMetastore_create_table_pargs { public: - static const char* ascii_fingerprint; // = "BD1951DCA22A23C9A7B1CD46ACAE54DB"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0x19,0x51,0xDC,0xA2,0x2A,0x23,0xC9,0xA7,0xB1,0xCD,0x46,0xAC,0xAE,0x54,0xDB}; + virtual ~ThriftHiveMetastore_create_table_pargs() throw() {} - virtual ~ThriftHiveMetastore_create_table_pargs() throw(); const Table* tbl; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_table_pargs& obj); }; typedef struct _ThriftHiveMetastore_create_table_result__isset { _ThriftHiveMetastore_create_table_result__isset() : o1(false), o2(false), o3(false), o4(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_create_table_result__isset; class ThriftHiveMetastore_create_table_result { public: - static const char* ascii_fingerprint; // = "F9EF8E19A6AC2C4E08D282524B9828EB"; - static const uint8_t binary_fingerprint[16]; // = {0xF9,0xEF,0x8E,0x19,0xA6,0xAC,0x2C,0x4E,0x08,0xD2,0x82,0x52,0x4B,0x98,0x28,0xEB}; - - ThriftHiveMetastore_create_table_result(const ThriftHiveMetastore_create_table_result&); - ThriftHiveMetastore_create_table_result& operator=(const ThriftHiveMetastore_create_table_result&); ThriftHiveMetastore_create_table_result() { } - virtual ~ThriftHiveMetastore_create_table_result() throw(); + virtual ~ThriftHiveMetastore_create_table_result() throw() {} + AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -2868,13 +2749,21 @@ class ThriftHiveMetastore_create_table_result { _ThriftHiveMetastore_create_table_result__isset __isset; - void __set_o1(const AlreadyExistsException& val); + void __set_o1(const AlreadyExistsException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } - void __set_o4(const NoSuchObjectException& val); + void __set_o4(const NoSuchObjectException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_create_table_result & rhs) const { @@ -2897,25 +2786,22 @@ class ThriftHiveMetastore_create_table_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_table_result& obj); }; typedef struct _ThriftHiveMetastore_create_table_presult__isset { _ThriftHiveMetastore_create_table_presult__isset() : o1(false), o2(false), o3(false), o4(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_create_table_presult__isset; class ThriftHiveMetastore_create_table_presult { public: - static const char* ascii_fingerprint; // = "F9EF8E19A6AC2C4E08D282524B9828EB"; - static const uint8_t binary_fingerprint[16]; // = {0xF9,0xEF,0x8E,0x19,0xA6,0xAC,0x2C,0x4E,0x08,0xD2,0x82,0x52,0x4B,0x98,0x28,0xEB}; + virtual ~ThriftHiveMetastore_create_table_presult() throw() {} - virtual ~ThriftHiveMetastore_create_table_presult() throw(); AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -2925,35 +2811,34 @@ class ThriftHiveMetastore_create_table_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_table_presult& obj); }; typedef struct _ThriftHiveMetastore_create_table_with_environment_context_args__isset { _ThriftHiveMetastore_create_table_with_environment_context_args__isset() : tbl(false), environment_context(false) {} - bool tbl :1; - bool environment_context :1; + bool tbl; + bool environment_context; } _ThriftHiveMetastore_create_table_with_environment_context_args__isset; class ThriftHiveMetastore_create_table_with_environment_context_args { public: - static const char* ascii_fingerprint; // = "095040B2E2E4564E171FB653FDCE0B95"; - static const uint8_t binary_fingerprint[16]; // = {0x09,0x50,0x40,0xB2,0xE2,0xE4,0x56,0x4E,0x17,0x1F,0xB6,0x53,0xFD,0xCE,0x0B,0x95}; - - ThriftHiveMetastore_create_table_with_environment_context_args(const ThriftHiveMetastore_create_table_with_environment_context_args&); - ThriftHiveMetastore_create_table_with_environment_context_args& operator=(const ThriftHiveMetastore_create_table_with_environment_context_args&); ThriftHiveMetastore_create_table_with_environment_context_args() { } - virtual ~ThriftHiveMetastore_create_table_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_create_table_with_environment_context_args() throw() {} + Table tbl; EnvironmentContext environment_context; _ThriftHiveMetastore_create_table_with_environment_context_args__isset __isset; - void __set_tbl(const Table& val); + void __set_tbl(const Table& val) { + tbl = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_create_table_with_environment_context_args & rhs) const { @@ -2972,46 +2857,38 @@ class ThriftHiveMetastore_create_table_with_environment_context_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_table_with_environment_context_args& obj); }; class ThriftHiveMetastore_create_table_with_environment_context_pargs { public: - static const char* ascii_fingerprint; // = "095040B2E2E4564E171FB653FDCE0B95"; - static const uint8_t binary_fingerprint[16]; // = {0x09,0x50,0x40,0xB2,0xE2,0xE4,0x56,0x4E,0x17,0x1F,0xB6,0x53,0xFD,0xCE,0x0B,0x95}; + virtual ~ThriftHiveMetastore_create_table_with_environment_context_pargs() throw() {} - virtual ~ThriftHiveMetastore_create_table_with_environment_context_pargs() throw(); const Table* tbl; const EnvironmentContext* environment_context; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_table_with_environment_context_pargs& obj); }; typedef struct _ThriftHiveMetastore_create_table_with_environment_context_result__isset { _ThriftHiveMetastore_create_table_with_environment_context_result__isset() : o1(false), o2(false), o3(false), o4(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_create_table_with_environment_context_result__isset; class ThriftHiveMetastore_create_table_with_environment_context_result { public: - static const char* ascii_fingerprint; // = "F9EF8E19A6AC2C4E08D282524B9828EB"; - static const uint8_t binary_fingerprint[16]; // = {0xF9,0xEF,0x8E,0x19,0xA6,0xAC,0x2C,0x4E,0x08,0xD2,0x82,0x52,0x4B,0x98,0x28,0xEB}; - - ThriftHiveMetastore_create_table_with_environment_context_result(const ThriftHiveMetastore_create_table_with_environment_context_result&); - ThriftHiveMetastore_create_table_with_environment_context_result& operator=(const ThriftHiveMetastore_create_table_with_environment_context_result&); ThriftHiveMetastore_create_table_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_create_table_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_create_table_with_environment_context_result() throw() {} + AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -3019,13 +2896,21 @@ class ThriftHiveMetastore_create_table_with_environment_context_result { _ThriftHiveMetastore_create_table_with_environment_context_result__isset __isset; - void __set_o1(const AlreadyExistsException& val); + void __set_o1(const AlreadyExistsException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } - void __set_o4(const NoSuchObjectException& val); + void __set_o4(const NoSuchObjectException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_create_table_with_environment_context_result & rhs) const { @@ -3048,25 +2933,22 @@ class ThriftHiveMetastore_create_table_with_environment_context_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_table_with_environment_context_result& obj); }; typedef struct _ThriftHiveMetastore_create_table_with_environment_context_presult__isset { _ThriftHiveMetastore_create_table_with_environment_context_presult__isset() : o1(false), o2(false), o3(false), o4(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_create_table_with_environment_context_presult__isset; class ThriftHiveMetastore_create_table_with_environment_context_presult { public: - static const char* ascii_fingerprint; // = "F9EF8E19A6AC2C4E08D282524B9828EB"; - static const uint8_t binary_fingerprint[16]; // = {0xF9,0xEF,0x8E,0x19,0xA6,0xAC,0x2C,0x4E,0x08,0xD2,0x82,0x52,0x4B,0x98,0x28,0xEB}; + virtual ~ThriftHiveMetastore_create_table_with_environment_context_presult() throw() {} - virtual ~ThriftHiveMetastore_create_table_with_environment_context_presult() throw(); AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -3076,39 +2958,40 @@ class ThriftHiveMetastore_create_table_with_environment_context_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_table_with_environment_context_presult& obj); }; typedef struct _ThriftHiveMetastore_drop_table_args__isset { _ThriftHiveMetastore_drop_table_args__isset() : dbname(false), name(false), deleteData(false) {} - bool dbname :1; - bool name :1; - bool deleteData :1; + bool dbname; + bool name; + bool deleteData; } _ThriftHiveMetastore_drop_table_args__isset; class ThriftHiveMetastore_drop_table_args { public: - static const char* ascii_fingerprint; // = "7F21FB535884165D6350077C7B970E93"; - static const uint8_t binary_fingerprint[16]; // = {0x7F,0x21,0xFB,0x53,0x58,0x84,0x16,0x5D,0x63,0x50,0x07,0x7C,0x7B,0x97,0x0E,0x93}; - - ThriftHiveMetastore_drop_table_args(const ThriftHiveMetastore_drop_table_args&); - ThriftHiveMetastore_drop_table_args& operator=(const ThriftHiveMetastore_drop_table_args&); ThriftHiveMetastore_drop_table_args() : dbname(), name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_table_args() throw(); + virtual ~ThriftHiveMetastore_drop_table_args() throw() {} + std::string dbname; std::string name; bool deleteData; _ThriftHiveMetastore_drop_table_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } bool operator == (const ThriftHiveMetastore_drop_table_args & rhs) const { @@ -3129,53 +3012,49 @@ class ThriftHiveMetastore_drop_table_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_table_args& obj); }; class ThriftHiveMetastore_drop_table_pargs { public: - static const char* ascii_fingerprint; // = "7F21FB535884165D6350077C7B970E93"; - static const uint8_t binary_fingerprint[16]; // = {0x7F,0x21,0xFB,0x53,0x58,0x84,0x16,0x5D,0x63,0x50,0x07,0x7C,0x7B,0x97,0x0E,0x93}; + virtual ~ThriftHiveMetastore_drop_table_pargs() throw() {} - virtual ~ThriftHiveMetastore_drop_table_pargs() throw(); const std::string* dbname; const std::string* name; const bool* deleteData; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_table_pargs& obj); }; typedef struct _ThriftHiveMetastore_drop_table_result__isset { _ThriftHiveMetastore_drop_table_result__isset() : o1(false), o3(false) {} - bool o1 :1; - bool o3 :1; + bool o1; + bool o3; } _ThriftHiveMetastore_drop_table_result__isset; class ThriftHiveMetastore_drop_table_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_drop_table_result(const ThriftHiveMetastore_drop_table_result&); - ThriftHiveMetastore_drop_table_result& operator=(const ThriftHiveMetastore_drop_table_result&); ThriftHiveMetastore_drop_table_result() { } - virtual ~ThriftHiveMetastore_drop_table_result() throw(); + virtual ~ThriftHiveMetastore_drop_table_result() throw() {} + NoSuchObjectException o1; MetaException o3; _ThriftHiveMetastore_drop_table_result__isset __isset; - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_drop_table_result & rhs) const { @@ -3194,23 +3073,20 @@ class ThriftHiveMetastore_drop_table_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_table_result& obj); }; typedef struct _ThriftHiveMetastore_drop_table_presult__isset { _ThriftHiveMetastore_drop_table_presult__isset() : o1(false), o3(false) {} - bool o1 :1; - bool o3 :1; + bool o1; + bool o3; } _ThriftHiveMetastore_drop_table_presult__isset; class ThriftHiveMetastore_drop_table_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_drop_table_presult() throw() {} - virtual ~ThriftHiveMetastore_drop_table_presult() throw(); NoSuchObjectException o1; MetaException o3; @@ -3218,29 +3094,24 @@ class ThriftHiveMetastore_drop_table_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_table_presult& obj); }; typedef struct _ThriftHiveMetastore_drop_table_with_environment_context_args__isset { _ThriftHiveMetastore_drop_table_with_environment_context_args__isset() : dbname(false), name(false), deleteData(false), environment_context(false) {} - bool dbname :1; - bool name :1; - bool deleteData :1; - bool environment_context :1; + bool dbname; + bool name; + bool deleteData; + bool environment_context; } _ThriftHiveMetastore_drop_table_with_environment_context_args__isset; class ThriftHiveMetastore_drop_table_with_environment_context_args { public: - static const char* ascii_fingerprint; // = "0ED75AC6CEC5A207447A701578264DA4"; - static const uint8_t binary_fingerprint[16]; // = {0x0E,0xD7,0x5A,0xC6,0xCE,0xC5,0xA2,0x07,0x44,0x7A,0x70,0x15,0x78,0x26,0x4D,0xA4}; - - ThriftHiveMetastore_drop_table_with_environment_context_args(const ThriftHiveMetastore_drop_table_with_environment_context_args&); - ThriftHiveMetastore_drop_table_with_environment_context_args& operator=(const ThriftHiveMetastore_drop_table_with_environment_context_args&); ThriftHiveMetastore_drop_table_with_environment_context_args() : dbname(), name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_table_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_drop_table_with_environment_context_args() throw() {} + std::string dbname; std::string name; bool deleteData; @@ -3248,13 +3119,21 @@ class ThriftHiveMetastore_drop_table_with_environment_context_args { _ThriftHiveMetastore_drop_table_with_environment_context_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_drop_table_with_environment_context_args & rhs) const { @@ -3277,18 +3156,15 @@ class ThriftHiveMetastore_drop_table_with_environment_context_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_table_with_environment_context_args& obj); }; class ThriftHiveMetastore_drop_table_with_environment_context_pargs { public: - static const char* ascii_fingerprint; // = "0ED75AC6CEC5A207447A701578264DA4"; - static const uint8_t binary_fingerprint[16]; // = {0x0E,0xD7,0x5A,0xC6,0xCE,0xC5,0xA2,0x07,0x44,0x7A,0x70,0x15,0x78,0x26,0x4D,0xA4}; + virtual ~ThriftHiveMetastore_drop_table_with_environment_context_pargs() throw() {} - virtual ~ThriftHiveMetastore_drop_table_with_environment_context_pargs() throw(); const std::string* dbname; const std::string* name; const bool* deleteData; @@ -3296,35 +3172,34 @@ class ThriftHiveMetastore_drop_table_with_environment_context_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_table_with_environment_context_pargs& obj); }; typedef struct _ThriftHiveMetastore_drop_table_with_environment_context_result__isset { _ThriftHiveMetastore_drop_table_with_environment_context_result__isset() : o1(false), o3(false) {} - bool o1 :1; - bool o3 :1; + bool o1; + bool o3; } _ThriftHiveMetastore_drop_table_with_environment_context_result__isset; class ThriftHiveMetastore_drop_table_with_environment_context_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_drop_table_with_environment_context_result(const ThriftHiveMetastore_drop_table_with_environment_context_result&); - ThriftHiveMetastore_drop_table_with_environment_context_result& operator=(const ThriftHiveMetastore_drop_table_with_environment_context_result&); ThriftHiveMetastore_drop_table_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_drop_table_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_drop_table_with_environment_context_result() throw() {} + NoSuchObjectException o1; MetaException o3; _ThriftHiveMetastore_drop_table_with_environment_context_result__isset __isset; - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_drop_table_with_environment_context_result & rhs) const { @@ -3343,23 +3218,20 @@ class ThriftHiveMetastore_drop_table_with_environment_context_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_table_with_environment_context_result& obj); }; typedef struct _ThriftHiveMetastore_drop_table_with_environment_context_presult__isset { _ThriftHiveMetastore_drop_table_with_environment_context_presult__isset() : o1(false), o3(false) {} - bool o1 :1; - bool o3 :1; + bool o1; + bool o3; } _ThriftHiveMetastore_drop_table_with_environment_context_presult__isset; class ThriftHiveMetastore_drop_table_with_environment_context_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_drop_table_with_environment_context_presult() throw() {} - virtual ~ThriftHiveMetastore_drop_table_with_environment_context_presult() throw(); NoSuchObjectException o1; MetaException o3; @@ -3367,35 +3239,34 @@ class ThriftHiveMetastore_drop_table_with_environment_context_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_table_with_environment_context_presult& obj); }; typedef struct _ThriftHiveMetastore_get_tables_args__isset { _ThriftHiveMetastore_get_tables_args__isset() : db_name(false), pattern(false) {} - bool db_name :1; - bool pattern :1; + bool db_name; + bool pattern; } _ThriftHiveMetastore_get_tables_args__isset; class ThriftHiveMetastore_get_tables_args { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; - - ThriftHiveMetastore_get_tables_args(const ThriftHiveMetastore_get_tables_args&); - ThriftHiveMetastore_get_tables_args& operator=(const ThriftHiveMetastore_get_tables_args&); ThriftHiveMetastore_get_tables_args() : db_name(), pattern() { } - virtual ~ThriftHiveMetastore_get_tables_args() throw(); + virtual ~ThriftHiveMetastore_get_tables_args() throw() {} + std::string db_name; std::string pattern; _ThriftHiveMetastore_get_tables_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_pattern(const std::string& val); + void __set_pattern(const std::string& val) { + pattern = val; + } bool operator == (const ThriftHiveMetastore_get_tables_args & rhs) const { @@ -3414,52 +3285,48 @@ class ThriftHiveMetastore_get_tables_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_tables_args& obj); }; class ThriftHiveMetastore_get_tables_pargs { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + virtual ~ThriftHiveMetastore_get_tables_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_tables_pargs() throw(); const std::string* db_name; const std::string* pattern; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_tables_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_tables_result__isset { _ThriftHiveMetastore_get_tables_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_tables_result__isset; class ThriftHiveMetastore_get_tables_result { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; - - ThriftHiveMetastore_get_tables_result(const ThriftHiveMetastore_get_tables_result&); - ThriftHiveMetastore_get_tables_result& operator=(const ThriftHiveMetastore_get_tables_result&); ThriftHiveMetastore_get_tables_result() { } - virtual ~ThriftHiveMetastore_get_tables_result() throw(); + virtual ~ThriftHiveMetastore_get_tables_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_get_tables_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_tables_result & rhs) const { @@ -3478,23 +3345,20 @@ class ThriftHiveMetastore_get_tables_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_tables_result& obj); }; typedef struct _ThriftHiveMetastore_get_tables_presult__isset { _ThriftHiveMetastore_get_tables_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_tables_presult__isset; class ThriftHiveMetastore_get_tables_presult { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; + virtual ~ThriftHiveMetastore_get_tables_presult() throw() {} - virtual ~ThriftHiveMetastore_get_tables_presult() throw(); std::vector * success; MetaException o1; @@ -3502,31 +3366,28 @@ class ThriftHiveMetastore_get_tables_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_tables_presult& obj); }; typedef struct _ThriftHiveMetastore_get_all_tables_args__isset { _ThriftHiveMetastore_get_all_tables_args__isset() : db_name(false) {} - bool db_name :1; + bool db_name; } _ThriftHiveMetastore_get_all_tables_args__isset; class ThriftHiveMetastore_get_all_tables_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - ThriftHiveMetastore_get_all_tables_args(const ThriftHiveMetastore_get_all_tables_args&); - ThriftHiveMetastore_get_all_tables_args& operator=(const ThriftHiveMetastore_get_all_tables_args&); ThriftHiveMetastore_get_all_tables_args() : db_name() { } - virtual ~ThriftHiveMetastore_get_all_tables_args() throw(); + virtual ~ThriftHiveMetastore_get_all_tables_args() throw() {} + std::string db_name; _ThriftHiveMetastore_get_all_tables_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } bool operator == (const ThriftHiveMetastore_get_all_tables_args & rhs) const { @@ -3543,51 +3404,47 @@ class ThriftHiveMetastore_get_all_tables_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_all_tables_args& obj); }; class ThriftHiveMetastore_get_all_tables_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + virtual ~ThriftHiveMetastore_get_all_tables_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_all_tables_pargs() throw(); const std::string* db_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_all_tables_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_all_tables_result__isset { _ThriftHiveMetastore_get_all_tables_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_all_tables_result__isset; class ThriftHiveMetastore_get_all_tables_result { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; - - ThriftHiveMetastore_get_all_tables_result(const ThriftHiveMetastore_get_all_tables_result&); - ThriftHiveMetastore_get_all_tables_result& operator=(const ThriftHiveMetastore_get_all_tables_result&); ThriftHiveMetastore_get_all_tables_result() { } - virtual ~ThriftHiveMetastore_get_all_tables_result() throw(); + virtual ~ThriftHiveMetastore_get_all_tables_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_get_all_tables_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_all_tables_result & rhs) const { @@ -3606,23 +3463,20 @@ class ThriftHiveMetastore_get_all_tables_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_all_tables_result& obj); }; typedef struct _ThriftHiveMetastore_get_all_tables_presult__isset { _ThriftHiveMetastore_get_all_tables_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_all_tables_presult__isset; class ThriftHiveMetastore_get_all_tables_presult { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; + virtual ~ThriftHiveMetastore_get_all_tables_presult() throw() {} - virtual ~ThriftHiveMetastore_get_all_tables_presult() throw(); std::vector * success; MetaException o1; @@ -3630,35 +3484,34 @@ class ThriftHiveMetastore_get_all_tables_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_all_tables_presult& obj); }; typedef struct _ThriftHiveMetastore_get_table_args__isset { _ThriftHiveMetastore_get_table_args__isset() : dbname(false), tbl_name(false) {} - bool dbname :1; - bool tbl_name :1; + bool dbname; + bool tbl_name; } _ThriftHiveMetastore_get_table_args__isset; class ThriftHiveMetastore_get_table_args { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; - - ThriftHiveMetastore_get_table_args(const ThriftHiveMetastore_get_table_args&); - ThriftHiveMetastore_get_table_args& operator=(const ThriftHiveMetastore_get_table_args&); ThriftHiveMetastore_get_table_args() : dbname(), tbl_name() { } - virtual ~ThriftHiveMetastore_get_table_args() throw(); + virtual ~ThriftHiveMetastore_get_table_args() throw() {} + std::string dbname; std::string tbl_name; _ThriftHiveMetastore_get_table_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } bool operator == (const ThriftHiveMetastore_get_table_args & rhs) const { @@ -3677,56 +3530,54 @@ class ThriftHiveMetastore_get_table_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_args& obj); }; class ThriftHiveMetastore_get_table_pargs { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + virtual ~ThriftHiveMetastore_get_table_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_table_pargs() throw(); const std::string* dbname; const std::string* tbl_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_table_result__isset { _ThriftHiveMetastore_get_table_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_table_result__isset; class ThriftHiveMetastore_get_table_result { public: - static const char* ascii_fingerprint; // = "5A4F58BE0D70BCECE999677432BFE5A4"; - static const uint8_t binary_fingerprint[16]; // = {0x5A,0x4F,0x58,0xBE,0x0D,0x70,0xBC,0xEC,0xE9,0x99,0x67,0x74,0x32,0xBF,0xE5,0xA4}; - - ThriftHiveMetastore_get_table_result(const ThriftHiveMetastore_get_table_result&); - ThriftHiveMetastore_get_table_result& operator=(const ThriftHiveMetastore_get_table_result&); ThriftHiveMetastore_get_table_result() { } - virtual ~ThriftHiveMetastore_get_table_result() throw(); + virtual ~ThriftHiveMetastore_get_table_result() throw() {} + Table success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_table_result__isset __isset; - void __set_success(const Table& val); + void __set_success(const Table& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_table_result & rhs) const { @@ -3747,24 +3598,21 @@ class ThriftHiveMetastore_get_table_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_result& obj); }; typedef struct _ThriftHiveMetastore_get_table_presult__isset { _ThriftHiveMetastore_get_table_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_table_presult__isset; class ThriftHiveMetastore_get_table_presult { public: - static const char* ascii_fingerprint; // = "5A4F58BE0D70BCECE999677432BFE5A4"; - static const uint8_t binary_fingerprint[16]; // = {0x5A,0x4F,0x58,0xBE,0x0D,0x70,0xBC,0xEC,0xE9,0x99,0x67,0x74,0x32,0xBF,0xE5,0xA4}; + virtual ~ThriftHiveMetastore_get_table_presult() throw() {} - virtual ~ThriftHiveMetastore_get_table_presult() throw(); Table* success; MetaException o1; NoSuchObjectException o2; @@ -3773,35 +3621,34 @@ class ThriftHiveMetastore_get_table_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_presult& obj); }; typedef struct _ThriftHiveMetastore_get_table_objects_by_name_args__isset { _ThriftHiveMetastore_get_table_objects_by_name_args__isset() : dbname(false), tbl_names(false) {} - bool dbname :1; - bool tbl_names :1; + bool dbname; + bool tbl_names; } _ThriftHiveMetastore_get_table_objects_by_name_args__isset; class ThriftHiveMetastore_get_table_objects_by_name_args { public: - static const char* ascii_fingerprint; // = "25702B8D5E28AA39160F267DABBC8446"; - static const uint8_t binary_fingerprint[16]; // = {0x25,0x70,0x2B,0x8D,0x5E,0x28,0xAA,0x39,0x16,0x0F,0x26,0x7D,0xAB,0xBC,0x84,0x46}; - - ThriftHiveMetastore_get_table_objects_by_name_args(const ThriftHiveMetastore_get_table_objects_by_name_args&); - ThriftHiveMetastore_get_table_objects_by_name_args& operator=(const ThriftHiveMetastore_get_table_objects_by_name_args&); ThriftHiveMetastore_get_table_objects_by_name_args() : dbname() { } - virtual ~ThriftHiveMetastore_get_table_objects_by_name_args() throw(); + virtual ~ThriftHiveMetastore_get_table_objects_by_name_args() throw() {} + std::string dbname; std::vector tbl_names; _ThriftHiveMetastore_get_table_objects_by_name_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tbl_names(const std::vector & val); + void __set_tbl_names(const std::vector & val) { + tbl_names = val; + } bool operator == (const ThriftHiveMetastore_get_table_objects_by_name_args & rhs) const { @@ -3820,46 +3667,38 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_objects_by_name_args& obj); }; class ThriftHiveMetastore_get_table_objects_by_name_pargs { public: - static const char* ascii_fingerprint; // = "25702B8D5E28AA39160F267DABBC8446"; - static const uint8_t binary_fingerprint[16]; // = {0x25,0x70,0x2B,0x8D,0x5E,0x28,0xAA,0x39,0x16,0x0F,0x26,0x7D,0xAB,0xBC,0x84,0x46}; + virtual ~ThriftHiveMetastore_get_table_objects_by_name_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_table_objects_by_name_pargs() throw(); const std::string* dbname; const std::vector * tbl_names; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_objects_by_name_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_table_objects_by_name_result__isset { _ThriftHiveMetastore_get_table_objects_by_name_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_table_objects_by_name_result__isset; class ThriftHiveMetastore_get_table_objects_by_name_result { public: - static const char* ascii_fingerprint; // = "CE94435B55EBFD9CDCC30B61FBCA4E92"; - static const uint8_t binary_fingerprint[16]; // = {0xCE,0x94,0x43,0x5B,0x55,0xEB,0xFD,0x9C,0xDC,0xC3,0x0B,0x61,0xFB,0xCA,0x4E,0x92}; - - ThriftHiveMetastore_get_table_objects_by_name_result(const ThriftHiveMetastore_get_table_objects_by_name_result&); - ThriftHiveMetastore_get_table_objects_by_name_result& operator=(const ThriftHiveMetastore_get_table_objects_by_name_result&); ThriftHiveMetastore_get_table_objects_by_name_result() { } - virtual ~ThriftHiveMetastore_get_table_objects_by_name_result() throw(); + virtual ~ThriftHiveMetastore_get_table_objects_by_name_result() throw() {} + std::vector
success; MetaException o1; InvalidOperationException o2; @@ -3867,13 +3706,21 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { _ThriftHiveMetastore_get_table_objects_by_name_result__isset __isset; - void __set_success(const std::vector
& val); + void __set_success(const std::vector
& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const InvalidOperationException& val); + void __set_o2(const InvalidOperationException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_get_table_objects_by_name_result & rhs) const { @@ -3896,25 +3743,22 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_objects_by_name_result& obj); }; typedef struct _ThriftHiveMetastore_get_table_objects_by_name_presult__isset { _ThriftHiveMetastore_get_table_objects_by_name_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_table_objects_by_name_presult__isset; class ThriftHiveMetastore_get_table_objects_by_name_presult { public: - static const char* ascii_fingerprint; // = "CE94435B55EBFD9CDCC30B61FBCA4E92"; - static const uint8_t binary_fingerprint[16]; // = {0xCE,0x94,0x43,0x5B,0x55,0xEB,0xFD,0x9C,0xDC,0xC3,0x0B,0x61,0xFB,0xCA,0x4E,0x92}; + virtual ~ThriftHiveMetastore_get_table_objects_by_name_presult() throw() {} - virtual ~ThriftHiveMetastore_get_table_objects_by_name_presult() throw(); std::vector
* success; MetaException o1; InvalidOperationException o2; @@ -3924,39 +3768,40 @@ class ThriftHiveMetastore_get_table_objects_by_name_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_objects_by_name_presult& obj); }; typedef struct _ThriftHiveMetastore_get_table_names_by_filter_args__isset { _ThriftHiveMetastore_get_table_names_by_filter_args__isset() : dbname(false), filter(false), max_tables(true) {} - bool dbname :1; - bool filter :1; - bool max_tables :1; + bool dbname; + bool filter; + bool max_tables; } _ThriftHiveMetastore_get_table_names_by_filter_args__isset; class ThriftHiveMetastore_get_table_names_by_filter_args { public: - static const char* ascii_fingerprint; // = "52F7D5E8217C4B8FC14F1F30BF2EB41C"; - static const uint8_t binary_fingerprint[16]; // = {0x52,0xF7,0xD5,0xE8,0x21,0x7C,0x4B,0x8F,0xC1,0x4F,0x1F,0x30,0xBF,0x2E,0xB4,0x1C}; - - ThriftHiveMetastore_get_table_names_by_filter_args(const ThriftHiveMetastore_get_table_names_by_filter_args&); - ThriftHiveMetastore_get_table_names_by_filter_args& operator=(const ThriftHiveMetastore_get_table_names_by_filter_args&); ThriftHiveMetastore_get_table_names_by_filter_args() : dbname(), filter(), max_tables(-1) { } - virtual ~ThriftHiveMetastore_get_table_names_by_filter_args() throw(); + virtual ~ThriftHiveMetastore_get_table_names_by_filter_args() throw() {} + std::string dbname; std::string filter; int16_t max_tables; _ThriftHiveMetastore_get_table_names_by_filter_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_filter(const std::string& val); + void __set_filter(const std::string& val) { + filter = val; + } - void __set_max_tables(const int16_t val); + void __set_max_tables(const int16_t val) { + max_tables = val; + } bool operator == (const ThriftHiveMetastore_get_table_names_by_filter_args & rhs) const { @@ -3977,47 +3822,39 @@ class ThriftHiveMetastore_get_table_names_by_filter_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_names_by_filter_args& obj); }; class ThriftHiveMetastore_get_table_names_by_filter_pargs { public: - static const char* ascii_fingerprint; // = "52F7D5E8217C4B8FC14F1F30BF2EB41C"; - static const uint8_t binary_fingerprint[16]; // = {0x52,0xF7,0xD5,0xE8,0x21,0x7C,0x4B,0x8F,0xC1,0x4F,0x1F,0x30,0xBF,0x2E,0xB4,0x1C}; + virtual ~ThriftHiveMetastore_get_table_names_by_filter_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_table_names_by_filter_pargs() throw(); const std::string* dbname; const std::string* filter; const int16_t* max_tables; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_names_by_filter_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_table_names_by_filter_result__isset { _ThriftHiveMetastore_get_table_names_by_filter_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_table_names_by_filter_result__isset; class ThriftHiveMetastore_get_table_names_by_filter_result { public: - static const char* ascii_fingerprint; // = "1A22B93AE2F8EC65600D067A19CEEE95"; - static const uint8_t binary_fingerprint[16]; // = {0x1A,0x22,0xB9,0x3A,0xE2,0xF8,0xEC,0x65,0x60,0x0D,0x06,0x7A,0x19,0xCE,0xEE,0x95}; - - ThriftHiveMetastore_get_table_names_by_filter_result(const ThriftHiveMetastore_get_table_names_by_filter_result&); - ThriftHiveMetastore_get_table_names_by_filter_result& operator=(const ThriftHiveMetastore_get_table_names_by_filter_result&); ThriftHiveMetastore_get_table_names_by_filter_result() { } - virtual ~ThriftHiveMetastore_get_table_names_by_filter_result() throw(); + virtual ~ThriftHiveMetastore_get_table_names_by_filter_result() throw() {} + std::vector success; MetaException o1; InvalidOperationException o2; @@ -4025,13 +3862,21 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { _ThriftHiveMetastore_get_table_names_by_filter_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const InvalidOperationException& val); + void __set_o2(const InvalidOperationException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_get_table_names_by_filter_result & rhs) const { @@ -4054,25 +3899,22 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_names_by_filter_result& obj); }; typedef struct _ThriftHiveMetastore_get_table_names_by_filter_presult__isset { _ThriftHiveMetastore_get_table_names_by_filter_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_get_table_names_by_filter_presult__isset; class ThriftHiveMetastore_get_table_names_by_filter_presult { public: - static const char* ascii_fingerprint; // = "1A22B93AE2F8EC65600D067A19CEEE95"; - static const uint8_t binary_fingerprint[16]; // = {0x1A,0x22,0xB9,0x3A,0xE2,0xF8,0xEC,0x65,0x60,0x0D,0x06,0x7A,0x19,0xCE,0xEE,0x95}; + virtual ~ThriftHiveMetastore_get_table_names_by_filter_presult() throw() {} - virtual ~ThriftHiveMetastore_get_table_names_by_filter_presult() throw(); std::vector * success; MetaException o1; InvalidOperationException o2; @@ -4082,39 +3924,40 @@ class ThriftHiveMetastore_get_table_names_by_filter_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_names_by_filter_presult& obj); }; typedef struct _ThriftHiveMetastore_alter_table_args__isset { _ThriftHiveMetastore_alter_table_args__isset() : dbname(false), tbl_name(false), new_tbl(false) {} - bool dbname :1; - bool tbl_name :1; - bool new_tbl :1; + bool dbname; + bool tbl_name; + bool new_tbl; } _ThriftHiveMetastore_alter_table_args__isset; class ThriftHiveMetastore_alter_table_args { public: - static const char* ascii_fingerprint; // = "45DE8DCE89D06DFF84837CFEB78A1302"; - static const uint8_t binary_fingerprint[16]; // = {0x45,0xDE,0x8D,0xCE,0x89,0xD0,0x6D,0xFF,0x84,0x83,0x7C,0xFE,0xB7,0x8A,0x13,0x02}; - - ThriftHiveMetastore_alter_table_args(const ThriftHiveMetastore_alter_table_args&); - ThriftHiveMetastore_alter_table_args& operator=(const ThriftHiveMetastore_alter_table_args&); ThriftHiveMetastore_alter_table_args() : dbname(), tbl_name() { } - virtual ~ThriftHiveMetastore_alter_table_args() throw(); + virtual ~ThriftHiveMetastore_alter_table_args() throw() {} + std::string dbname; std::string tbl_name; Table new_tbl; _ThriftHiveMetastore_alter_table_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_new_tbl(const Table& val); + void __set_new_tbl(const Table& val) { + new_tbl = val; + } bool operator == (const ThriftHiveMetastore_alter_table_args & rhs) const { @@ -4135,53 +3978,49 @@ class ThriftHiveMetastore_alter_table_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_table_args& obj); }; class ThriftHiveMetastore_alter_table_pargs { public: - static const char* ascii_fingerprint; // = "45DE8DCE89D06DFF84837CFEB78A1302"; - static const uint8_t binary_fingerprint[16]; // = {0x45,0xDE,0x8D,0xCE,0x89,0xD0,0x6D,0xFF,0x84,0x83,0x7C,0xFE,0xB7,0x8A,0x13,0x02}; + virtual ~ThriftHiveMetastore_alter_table_pargs() throw() {} - virtual ~ThriftHiveMetastore_alter_table_pargs() throw(); const std::string* dbname; const std::string* tbl_name; const Table* new_tbl; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_table_pargs& obj); }; typedef struct _ThriftHiveMetastore_alter_table_result__isset { _ThriftHiveMetastore_alter_table_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_table_result__isset; class ThriftHiveMetastore_alter_table_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_alter_table_result(const ThriftHiveMetastore_alter_table_result&); - ThriftHiveMetastore_alter_table_result& operator=(const ThriftHiveMetastore_alter_table_result&); ThriftHiveMetastore_alter_table_result() { } - virtual ~ThriftHiveMetastore_alter_table_result() throw(); + virtual ~ThriftHiveMetastore_alter_table_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_table_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_table_result & rhs) const { @@ -4200,23 +4039,20 @@ class ThriftHiveMetastore_alter_table_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_table_result& obj); }; typedef struct _ThriftHiveMetastore_alter_table_presult__isset { _ThriftHiveMetastore_alter_table_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_table_presult__isset; class ThriftHiveMetastore_alter_table_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_alter_table_presult() throw() {} - virtual ~ThriftHiveMetastore_alter_table_presult() throw(); InvalidOperationException o1; MetaException o2; @@ -4224,29 +4060,24 @@ class ThriftHiveMetastore_alter_table_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_table_presult& obj); }; typedef struct _ThriftHiveMetastore_alter_table_with_environment_context_args__isset { _ThriftHiveMetastore_alter_table_with_environment_context_args__isset() : dbname(false), tbl_name(false), new_tbl(false), environment_context(false) {} - bool dbname :1; - bool tbl_name :1; - bool new_tbl :1; - bool environment_context :1; + bool dbname; + bool tbl_name; + bool new_tbl; + bool environment_context; } _ThriftHiveMetastore_alter_table_with_environment_context_args__isset; class ThriftHiveMetastore_alter_table_with_environment_context_args { public: - static const char* ascii_fingerprint; // = "EB4DBB36F7C55D5ACD7A5DEB3C443E72"; - static const uint8_t binary_fingerprint[16]; // = {0xEB,0x4D,0xBB,0x36,0xF7,0xC5,0x5D,0x5A,0xCD,0x7A,0x5D,0xEB,0x3C,0x44,0x3E,0x72}; - - ThriftHiveMetastore_alter_table_with_environment_context_args(const ThriftHiveMetastore_alter_table_with_environment_context_args&); - ThriftHiveMetastore_alter_table_with_environment_context_args& operator=(const ThriftHiveMetastore_alter_table_with_environment_context_args&); ThriftHiveMetastore_alter_table_with_environment_context_args() : dbname(), tbl_name() { } - virtual ~ThriftHiveMetastore_alter_table_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_alter_table_with_environment_context_args() throw() {} + std::string dbname; std::string tbl_name; Table new_tbl; @@ -4254,13 +4085,21 @@ class ThriftHiveMetastore_alter_table_with_environment_context_args { _ThriftHiveMetastore_alter_table_with_environment_context_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_new_tbl(const Table& val); + void __set_new_tbl(const Table& val) { + new_tbl = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_alter_table_with_environment_context_args & rhs) const { @@ -4283,18 +4122,15 @@ class ThriftHiveMetastore_alter_table_with_environment_context_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_table_with_environment_context_args& obj); }; class ThriftHiveMetastore_alter_table_with_environment_context_pargs { public: - static const char* ascii_fingerprint; // = "EB4DBB36F7C55D5ACD7A5DEB3C443E72"; - static const uint8_t binary_fingerprint[16]; // = {0xEB,0x4D,0xBB,0x36,0xF7,0xC5,0x5D,0x5A,0xCD,0x7A,0x5D,0xEB,0x3C,0x44,0x3E,0x72}; + virtual ~ThriftHiveMetastore_alter_table_with_environment_context_pargs() throw() {} - virtual ~ThriftHiveMetastore_alter_table_with_environment_context_pargs() throw(); const std::string* dbname; const std::string* tbl_name; const Table* new_tbl; @@ -4302,35 +4138,34 @@ class ThriftHiveMetastore_alter_table_with_environment_context_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_table_with_environment_context_pargs& obj); }; typedef struct _ThriftHiveMetastore_alter_table_with_environment_context_result__isset { _ThriftHiveMetastore_alter_table_with_environment_context_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_table_with_environment_context_result__isset; class ThriftHiveMetastore_alter_table_with_environment_context_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_alter_table_with_environment_context_result(const ThriftHiveMetastore_alter_table_with_environment_context_result&); - ThriftHiveMetastore_alter_table_with_environment_context_result& operator=(const ThriftHiveMetastore_alter_table_with_environment_context_result&); ThriftHiveMetastore_alter_table_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_alter_table_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_alter_table_with_environment_context_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_table_with_environment_context_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_table_with_environment_context_result & rhs) const { @@ -4349,23 +4184,20 @@ class ThriftHiveMetastore_alter_table_with_environment_context_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_table_with_environment_context_result& obj); }; typedef struct _ThriftHiveMetastore_alter_table_with_environment_context_presult__isset { _ThriftHiveMetastore_alter_table_with_environment_context_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_table_with_environment_context_presult__isset; class ThriftHiveMetastore_alter_table_with_environment_context_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_alter_table_with_environment_context_presult() throw() {} - virtual ~ThriftHiveMetastore_alter_table_with_environment_context_presult() throw(); InvalidOperationException o1; MetaException o2; @@ -4373,29 +4205,24 @@ class ThriftHiveMetastore_alter_table_with_environment_context_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_table_with_environment_context_presult& obj); }; typedef struct _ThriftHiveMetastore_alter_table_with_cascade_args__isset { _ThriftHiveMetastore_alter_table_with_cascade_args__isset() : dbname(false), tbl_name(false), new_tbl(false), cascade(false) {} - bool dbname :1; - bool tbl_name :1; - bool new_tbl :1; - bool cascade :1; + bool dbname; + bool tbl_name; + bool new_tbl; + bool cascade; } _ThriftHiveMetastore_alter_table_with_cascade_args__isset; class ThriftHiveMetastore_alter_table_with_cascade_args { public: - static const char* ascii_fingerprint; // = "BC478AB940893784952049DAF4B368A1"; - static const uint8_t binary_fingerprint[16]; // = {0xBC,0x47,0x8A,0xB9,0x40,0x89,0x37,0x84,0x95,0x20,0x49,0xDA,0xF4,0xB3,0x68,0xA1}; - - ThriftHiveMetastore_alter_table_with_cascade_args(const ThriftHiveMetastore_alter_table_with_cascade_args&); - ThriftHiveMetastore_alter_table_with_cascade_args& operator=(const ThriftHiveMetastore_alter_table_with_cascade_args&); ThriftHiveMetastore_alter_table_with_cascade_args() : dbname(), tbl_name(), cascade(0) { } - virtual ~ThriftHiveMetastore_alter_table_with_cascade_args() throw(); + virtual ~ThriftHiveMetastore_alter_table_with_cascade_args() throw() {} + std::string dbname; std::string tbl_name; Table new_tbl; @@ -4403,13 +4230,21 @@ class ThriftHiveMetastore_alter_table_with_cascade_args { _ThriftHiveMetastore_alter_table_with_cascade_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_new_tbl(const Table& val); + void __set_new_tbl(const Table& val) { + new_tbl = val; + } - void __set_cascade(const bool val); + void __set_cascade(const bool val) { + cascade = val; + } bool operator == (const ThriftHiveMetastore_alter_table_with_cascade_args & rhs) const { @@ -4432,18 +4267,15 @@ class ThriftHiveMetastore_alter_table_with_cascade_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_table_with_cascade_args& obj); }; class ThriftHiveMetastore_alter_table_with_cascade_pargs { public: - static const char* ascii_fingerprint; // = "BC478AB940893784952049DAF4B368A1"; - static const uint8_t binary_fingerprint[16]; // = {0xBC,0x47,0x8A,0xB9,0x40,0x89,0x37,0x84,0x95,0x20,0x49,0xDA,0xF4,0xB3,0x68,0xA1}; + virtual ~ThriftHiveMetastore_alter_table_with_cascade_pargs() throw() {} - virtual ~ThriftHiveMetastore_alter_table_with_cascade_pargs() throw(); const std::string* dbname; const std::string* tbl_name; const Table* new_tbl; @@ -4451,35 +4283,34 @@ class ThriftHiveMetastore_alter_table_with_cascade_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_table_with_cascade_pargs& obj); }; typedef struct _ThriftHiveMetastore_alter_table_with_cascade_result__isset { _ThriftHiveMetastore_alter_table_with_cascade_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_table_with_cascade_result__isset; class ThriftHiveMetastore_alter_table_with_cascade_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_alter_table_with_cascade_result(const ThriftHiveMetastore_alter_table_with_cascade_result&); - ThriftHiveMetastore_alter_table_with_cascade_result& operator=(const ThriftHiveMetastore_alter_table_with_cascade_result&); ThriftHiveMetastore_alter_table_with_cascade_result() { } - virtual ~ThriftHiveMetastore_alter_table_with_cascade_result() throw(); + virtual ~ThriftHiveMetastore_alter_table_with_cascade_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_table_with_cascade_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_table_with_cascade_result & rhs) const { @@ -4498,23 +4329,20 @@ class ThriftHiveMetastore_alter_table_with_cascade_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_table_with_cascade_result& obj); }; typedef struct _ThriftHiveMetastore_alter_table_with_cascade_presult__isset { _ThriftHiveMetastore_alter_table_with_cascade_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_table_with_cascade_presult__isset; class ThriftHiveMetastore_alter_table_with_cascade_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_alter_table_with_cascade_presult() throw() {} - virtual ~ThriftHiveMetastore_alter_table_with_cascade_presult() throw(); InvalidOperationException o1; MetaException o2; @@ -4522,31 +4350,28 @@ class ThriftHiveMetastore_alter_table_with_cascade_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_table_with_cascade_presult& obj); }; typedef struct _ThriftHiveMetastore_add_partition_args__isset { _ThriftHiveMetastore_add_partition_args__isset() : new_part(false) {} - bool new_part :1; + bool new_part; } _ThriftHiveMetastore_add_partition_args__isset; class ThriftHiveMetastore_add_partition_args { public: - static const char* ascii_fingerprint; // = "F5444A7689497C86E64C580BAEB32527"; - static const uint8_t binary_fingerprint[16]; // = {0xF5,0x44,0x4A,0x76,0x89,0x49,0x7C,0x86,0xE6,0x4C,0x58,0x0B,0xAE,0xB3,0x25,0x27}; - - ThriftHiveMetastore_add_partition_args(const ThriftHiveMetastore_add_partition_args&); - ThriftHiveMetastore_add_partition_args& operator=(const ThriftHiveMetastore_add_partition_args&); ThriftHiveMetastore_add_partition_args() { } - virtual ~ThriftHiveMetastore_add_partition_args() throw(); + virtual ~ThriftHiveMetastore_add_partition_args() throw() {} + Partition new_part; _ThriftHiveMetastore_add_partition_args__isset __isset; - void __set_new_part(const Partition& val); + void __set_new_part(const Partition& val) { + new_part = val; + } bool operator == (const ThriftHiveMetastore_add_partition_args & rhs) const { @@ -4563,45 +4388,37 @@ class ThriftHiveMetastore_add_partition_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partition_args& obj); }; class ThriftHiveMetastore_add_partition_pargs { public: - static const char* ascii_fingerprint; // = "F5444A7689497C86E64C580BAEB32527"; - static const uint8_t binary_fingerprint[16]; // = {0xF5,0x44,0x4A,0x76,0x89,0x49,0x7C,0x86,0xE6,0x4C,0x58,0x0B,0xAE,0xB3,0x25,0x27}; + virtual ~ThriftHiveMetastore_add_partition_pargs() throw() {} - virtual ~ThriftHiveMetastore_add_partition_pargs() throw(); const Partition* new_part; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partition_pargs& obj); }; typedef struct _ThriftHiveMetastore_add_partition_result__isset { _ThriftHiveMetastore_add_partition_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partition_result__isset; class ThriftHiveMetastore_add_partition_result { public: - static const char* ascii_fingerprint; // = "3F4DFAAB8B93880DD939F610024AF1BF"; - static const uint8_t binary_fingerprint[16]; // = {0x3F,0x4D,0xFA,0xAB,0x8B,0x93,0x88,0x0D,0xD9,0x39,0xF6,0x10,0x02,0x4A,0xF1,0xBF}; - - ThriftHiveMetastore_add_partition_result(const ThriftHiveMetastore_add_partition_result&); - ThriftHiveMetastore_add_partition_result& operator=(const ThriftHiveMetastore_add_partition_result&); ThriftHiveMetastore_add_partition_result() { } - virtual ~ThriftHiveMetastore_add_partition_result() throw(); + virtual ~ThriftHiveMetastore_add_partition_result() throw() {} + Partition success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4609,13 +4426,21 @@ class ThriftHiveMetastore_add_partition_result { _ThriftHiveMetastore_add_partition_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_add_partition_result & rhs) const { @@ -4638,25 +4463,22 @@ class ThriftHiveMetastore_add_partition_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partition_result& obj); }; typedef struct _ThriftHiveMetastore_add_partition_presult__isset { _ThriftHiveMetastore_add_partition_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partition_presult__isset; class ThriftHiveMetastore_add_partition_presult { public: - static const char* ascii_fingerprint; // = "3F4DFAAB8B93880DD939F610024AF1BF"; - static const uint8_t binary_fingerprint[16]; // = {0x3F,0x4D,0xFA,0xAB,0x8B,0x93,0x88,0x0D,0xD9,0x39,0xF6,0x10,0x02,0x4A,0xF1,0xBF}; + virtual ~ThriftHiveMetastore_add_partition_presult() throw() {} - virtual ~ThriftHiveMetastore_add_partition_presult() throw(); Partition* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4666,35 +4488,34 @@ class ThriftHiveMetastore_add_partition_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partition_presult& obj); }; typedef struct _ThriftHiveMetastore_add_partition_with_environment_context_args__isset { _ThriftHiveMetastore_add_partition_with_environment_context_args__isset() : new_part(false), environment_context(false) {} - bool new_part :1; - bool environment_context :1; + bool new_part; + bool environment_context; } _ThriftHiveMetastore_add_partition_with_environment_context_args__isset; class ThriftHiveMetastore_add_partition_with_environment_context_args { public: - static const char* ascii_fingerprint; // = "24928BFE56AA2AF75431FDB106AACAB2"; - static const uint8_t binary_fingerprint[16]; // = {0x24,0x92,0x8B,0xFE,0x56,0xAA,0x2A,0xF7,0x54,0x31,0xFD,0xB1,0x06,0xAA,0xCA,0xB2}; - - ThriftHiveMetastore_add_partition_with_environment_context_args(const ThriftHiveMetastore_add_partition_with_environment_context_args&); - ThriftHiveMetastore_add_partition_with_environment_context_args& operator=(const ThriftHiveMetastore_add_partition_with_environment_context_args&); ThriftHiveMetastore_add_partition_with_environment_context_args() { } - virtual ~ThriftHiveMetastore_add_partition_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_add_partition_with_environment_context_args() throw() {} + Partition new_part; EnvironmentContext environment_context; _ThriftHiveMetastore_add_partition_with_environment_context_args__isset __isset; - void __set_new_part(const Partition& val); + void __set_new_part(const Partition& val) { + new_part = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_add_partition_with_environment_context_args & rhs) const { @@ -4713,46 +4534,38 @@ class ThriftHiveMetastore_add_partition_with_environment_context_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partition_with_environment_context_args& obj); }; class ThriftHiveMetastore_add_partition_with_environment_context_pargs { public: - static const char* ascii_fingerprint; // = "24928BFE56AA2AF75431FDB106AACAB2"; - static const uint8_t binary_fingerprint[16]; // = {0x24,0x92,0x8B,0xFE,0x56,0xAA,0x2A,0xF7,0x54,0x31,0xFD,0xB1,0x06,0xAA,0xCA,0xB2}; + virtual ~ThriftHiveMetastore_add_partition_with_environment_context_pargs() throw() {} - virtual ~ThriftHiveMetastore_add_partition_with_environment_context_pargs() throw(); const Partition* new_part; const EnvironmentContext* environment_context; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partition_with_environment_context_pargs& obj); }; typedef struct _ThriftHiveMetastore_add_partition_with_environment_context_result__isset { _ThriftHiveMetastore_add_partition_with_environment_context_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partition_with_environment_context_result__isset; class ThriftHiveMetastore_add_partition_with_environment_context_result { public: - static const char* ascii_fingerprint; // = "3F4DFAAB8B93880DD939F610024AF1BF"; - static const uint8_t binary_fingerprint[16]; // = {0x3F,0x4D,0xFA,0xAB,0x8B,0x93,0x88,0x0D,0xD9,0x39,0xF6,0x10,0x02,0x4A,0xF1,0xBF}; - - ThriftHiveMetastore_add_partition_with_environment_context_result(const ThriftHiveMetastore_add_partition_with_environment_context_result&); - ThriftHiveMetastore_add_partition_with_environment_context_result& operator=(const ThriftHiveMetastore_add_partition_with_environment_context_result&); ThriftHiveMetastore_add_partition_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_add_partition_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_add_partition_with_environment_context_result() throw() {} + Partition success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4760,13 +4573,21 @@ class ThriftHiveMetastore_add_partition_with_environment_context_result { _ThriftHiveMetastore_add_partition_with_environment_context_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_add_partition_with_environment_context_result & rhs) const { @@ -4789,25 +4610,22 @@ class ThriftHiveMetastore_add_partition_with_environment_context_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partition_with_environment_context_result& obj); }; typedef struct _ThriftHiveMetastore_add_partition_with_environment_context_presult__isset { _ThriftHiveMetastore_add_partition_with_environment_context_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partition_with_environment_context_presult__isset; class ThriftHiveMetastore_add_partition_with_environment_context_presult { public: - static const char* ascii_fingerprint; // = "3F4DFAAB8B93880DD939F610024AF1BF"; - static const uint8_t binary_fingerprint[16]; // = {0x3F,0x4D,0xFA,0xAB,0x8B,0x93,0x88,0x0D,0xD9,0x39,0xF6,0x10,0x02,0x4A,0xF1,0xBF}; + virtual ~ThriftHiveMetastore_add_partition_with_environment_context_presult() throw() {} - virtual ~ThriftHiveMetastore_add_partition_with_environment_context_presult() throw(); Partition* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4817,31 +4635,28 @@ class ThriftHiveMetastore_add_partition_with_environment_context_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partition_with_environment_context_presult& obj); }; typedef struct _ThriftHiveMetastore_add_partitions_args__isset { _ThriftHiveMetastore_add_partitions_args__isset() : new_parts(false) {} - bool new_parts :1; + bool new_parts; } _ThriftHiveMetastore_add_partitions_args__isset; class ThriftHiveMetastore_add_partitions_args { public: - static const char* ascii_fingerprint; // = "A048235CB9A257C8A74E3691BEFE0674"; - static const uint8_t binary_fingerprint[16]; // = {0xA0,0x48,0x23,0x5C,0xB9,0xA2,0x57,0xC8,0xA7,0x4E,0x36,0x91,0xBE,0xFE,0x06,0x74}; - - ThriftHiveMetastore_add_partitions_args(const ThriftHiveMetastore_add_partitions_args&); - ThriftHiveMetastore_add_partitions_args& operator=(const ThriftHiveMetastore_add_partitions_args&); ThriftHiveMetastore_add_partitions_args() { } - virtual ~ThriftHiveMetastore_add_partitions_args() throw(); + virtual ~ThriftHiveMetastore_add_partitions_args() throw() {} + std::vector new_parts; _ThriftHiveMetastore_add_partitions_args__isset __isset; - void __set_new_parts(const std::vector & val); + void __set_new_parts(const std::vector & val) { + new_parts = val; + } bool operator == (const ThriftHiveMetastore_add_partitions_args & rhs) const { @@ -4858,45 +4673,37 @@ class ThriftHiveMetastore_add_partitions_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partitions_args& obj); }; class ThriftHiveMetastore_add_partitions_pargs { public: - static const char* ascii_fingerprint; // = "A048235CB9A257C8A74E3691BEFE0674"; - static const uint8_t binary_fingerprint[16]; // = {0xA0,0x48,0x23,0x5C,0xB9,0xA2,0x57,0xC8,0xA7,0x4E,0x36,0x91,0xBE,0xFE,0x06,0x74}; + virtual ~ThriftHiveMetastore_add_partitions_pargs() throw() {} - virtual ~ThriftHiveMetastore_add_partitions_pargs() throw(); const std::vector * new_parts; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partitions_pargs& obj); }; typedef struct _ThriftHiveMetastore_add_partitions_result__isset { _ThriftHiveMetastore_add_partitions_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partitions_result__isset; class ThriftHiveMetastore_add_partitions_result { public: - static const char* ascii_fingerprint; // = "A8DF404A59E14B5F23CD3B54D6A25FB2"; - static const uint8_t binary_fingerprint[16]; // = {0xA8,0xDF,0x40,0x4A,0x59,0xE1,0x4B,0x5F,0x23,0xCD,0x3B,0x54,0xD6,0xA2,0x5F,0xB2}; - - ThriftHiveMetastore_add_partitions_result(const ThriftHiveMetastore_add_partitions_result&); - ThriftHiveMetastore_add_partitions_result& operator=(const ThriftHiveMetastore_add_partitions_result&); ThriftHiveMetastore_add_partitions_result() : success(0) { } - virtual ~ThriftHiveMetastore_add_partitions_result() throw(); + virtual ~ThriftHiveMetastore_add_partitions_result() throw() {} + int32_t success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4904,13 +4711,21 @@ class ThriftHiveMetastore_add_partitions_result { _ThriftHiveMetastore_add_partitions_result__isset __isset; - void __set_success(const int32_t val); + void __set_success(const int32_t val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_add_partitions_result & rhs) const { @@ -4933,25 +4748,22 @@ class ThriftHiveMetastore_add_partitions_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partitions_result& obj); }; typedef struct _ThriftHiveMetastore_add_partitions_presult__isset { _ThriftHiveMetastore_add_partitions_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partitions_presult__isset; class ThriftHiveMetastore_add_partitions_presult { public: - static const char* ascii_fingerprint; // = "A8DF404A59E14B5F23CD3B54D6A25FB2"; - static const uint8_t binary_fingerprint[16]; // = {0xA8,0xDF,0x40,0x4A,0x59,0xE1,0x4B,0x5F,0x23,0xCD,0x3B,0x54,0xD6,0xA2,0x5F,0xB2}; + virtual ~ThriftHiveMetastore_add_partitions_presult() throw() {} - virtual ~ThriftHiveMetastore_add_partitions_presult() throw(); int32_t* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -4961,31 +4773,28 @@ class ThriftHiveMetastore_add_partitions_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partitions_presult& obj); }; typedef struct _ThriftHiveMetastore_add_partitions_pspec_args__isset { _ThriftHiveMetastore_add_partitions_pspec_args__isset() : new_parts(false) {} - bool new_parts :1; + bool new_parts; } _ThriftHiveMetastore_add_partitions_pspec_args__isset; class ThriftHiveMetastore_add_partitions_pspec_args { public: - static const char* ascii_fingerprint; // = "2ECEF55070C86971F609ED920B644E09"; - static const uint8_t binary_fingerprint[16]; // = {0x2E,0xCE,0xF5,0x50,0x70,0xC8,0x69,0x71,0xF6,0x09,0xED,0x92,0x0B,0x64,0x4E,0x09}; - - ThriftHiveMetastore_add_partitions_pspec_args(const ThriftHiveMetastore_add_partitions_pspec_args&); - ThriftHiveMetastore_add_partitions_pspec_args& operator=(const ThriftHiveMetastore_add_partitions_pspec_args&); ThriftHiveMetastore_add_partitions_pspec_args() { } - virtual ~ThriftHiveMetastore_add_partitions_pspec_args() throw(); + virtual ~ThriftHiveMetastore_add_partitions_pspec_args() throw() {} + std::vector new_parts; _ThriftHiveMetastore_add_partitions_pspec_args__isset __isset; - void __set_new_parts(const std::vector & val); + void __set_new_parts(const std::vector & val) { + new_parts = val; + } bool operator == (const ThriftHiveMetastore_add_partitions_pspec_args & rhs) const { @@ -5002,45 +4811,37 @@ class ThriftHiveMetastore_add_partitions_pspec_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partitions_pspec_args& obj); }; class ThriftHiveMetastore_add_partitions_pspec_pargs { public: - static const char* ascii_fingerprint; // = "2ECEF55070C86971F609ED920B644E09"; - static const uint8_t binary_fingerprint[16]; // = {0x2E,0xCE,0xF5,0x50,0x70,0xC8,0x69,0x71,0xF6,0x09,0xED,0x92,0x0B,0x64,0x4E,0x09}; + virtual ~ThriftHiveMetastore_add_partitions_pspec_pargs() throw() {} - virtual ~ThriftHiveMetastore_add_partitions_pspec_pargs() throw(); const std::vector * new_parts; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partitions_pspec_pargs& obj); }; typedef struct _ThriftHiveMetastore_add_partitions_pspec_result__isset { _ThriftHiveMetastore_add_partitions_pspec_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partitions_pspec_result__isset; class ThriftHiveMetastore_add_partitions_pspec_result { public: - static const char* ascii_fingerprint; // = "A8DF404A59E14B5F23CD3B54D6A25FB2"; - static const uint8_t binary_fingerprint[16]; // = {0xA8,0xDF,0x40,0x4A,0x59,0xE1,0x4B,0x5F,0x23,0xCD,0x3B,0x54,0xD6,0xA2,0x5F,0xB2}; - - ThriftHiveMetastore_add_partitions_pspec_result(const ThriftHiveMetastore_add_partitions_pspec_result&); - ThriftHiveMetastore_add_partitions_pspec_result& operator=(const ThriftHiveMetastore_add_partitions_pspec_result&); ThriftHiveMetastore_add_partitions_pspec_result() : success(0) { } - virtual ~ThriftHiveMetastore_add_partitions_pspec_result() throw(); + virtual ~ThriftHiveMetastore_add_partitions_pspec_result() throw() {} + int32_t success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5048,13 +4849,21 @@ class ThriftHiveMetastore_add_partitions_pspec_result { _ThriftHiveMetastore_add_partitions_pspec_result__isset __isset; - void __set_success(const int32_t val); + void __set_success(const int32_t val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_add_partitions_pspec_result & rhs) const { @@ -5077,25 +4886,22 @@ class ThriftHiveMetastore_add_partitions_pspec_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partitions_pspec_result& obj); }; typedef struct _ThriftHiveMetastore_add_partitions_pspec_presult__isset { _ThriftHiveMetastore_add_partitions_pspec_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partitions_pspec_presult__isset; class ThriftHiveMetastore_add_partitions_pspec_presult { public: - static const char* ascii_fingerprint; // = "A8DF404A59E14B5F23CD3B54D6A25FB2"; - static const uint8_t binary_fingerprint[16]; // = {0xA8,0xDF,0x40,0x4A,0x59,0xE1,0x4B,0x5F,0x23,0xCD,0x3B,0x54,0xD6,0xA2,0x5F,0xB2}; + virtual ~ThriftHiveMetastore_add_partitions_pspec_presult() throw() {} - virtual ~ThriftHiveMetastore_add_partitions_pspec_presult() throw(); int32_t* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5105,39 +4911,40 @@ class ThriftHiveMetastore_add_partitions_pspec_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partitions_pspec_presult& obj); }; typedef struct _ThriftHiveMetastore_append_partition_args__isset { _ThriftHiveMetastore_append_partition_args__isset() : db_name(false), tbl_name(false), part_vals(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; + bool db_name; + bool tbl_name; + bool part_vals; } _ThriftHiveMetastore_append_partition_args__isset; class ThriftHiveMetastore_append_partition_args { public: - static const char* ascii_fingerprint; // = "8E2AD6401E83558ECFD6A13D74DD0A3F"; - static const uint8_t binary_fingerprint[16]; // = {0x8E,0x2A,0xD6,0x40,0x1E,0x83,0x55,0x8E,0xCF,0xD6,0xA1,0x3D,0x74,0xDD,0x0A,0x3F}; - - ThriftHiveMetastore_append_partition_args(const ThriftHiveMetastore_append_partition_args&); - ThriftHiveMetastore_append_partition_args& operator=(const ThriftHiveMetastore_append_partition_args&); ThriftHiveMetastore_append_partition_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_append_partition_args() throw(); + virtual ~ThriftHiveMetastore_append_partition_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; _ThriftHiveMetastore_append_partition_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } bool operator == (const ThriftHiveMetastore_append_partition_args & rhs) const { @@ -5158,47 +4965,39 @@ class ThriftHiveMetastore_append_partition_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_args& obj); }; class ThriftHiveMetastore_append_partition_pargs { public: - static const char* ascii_fingerprint; // = "8E2AD6401E83558ECFD6A13D74DD0A3F"; - static const uint8_t binary_fingerprint[16]; // = {0x8E,0x2A,0xD6,0x40,0x1E,0x83,0x55,0x8E,0xCF,0xD6,0xA1,0x3D,0x74,0xDD,0x0A,0x3F}; + virtual ~ThriftHiveMetastore_append_partition_pargs() throw() {} - virtual ~ThriftHiveMetastore_append_partition_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_pargs& obj); }; typedef struct _ThriftHiveMetastore_append_partition_result__isset { _ThriftHiveMetastore_append_partition_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_result__isset; class ThriftHiveMetastore_append_partition_result { public: - static const char* ascii_fingerprint; // = "3F4DFAAB8B93880DD939F610024AF1BF"; - static const uint8_t binary_fingerprint[16]; // = {0x3F,0x4D,0xFA,0xAB,0x8B,0x93,0x88,0x0D,0xD9,0x39,0xF6,0x10,0x02,0x4A,0xF1,0xBF}; - - ThriftHiveMetastore_append_partition_result(const ThriftHiveMetastore_append_partition_result&); - ThriftHiveMetastore_append_partition_result& operator=(const ThriftHiveMetastore_append_partition_result&); ThriftHiveMetastore_append_partition_result() { } - virtual ~ThriftHiveMetastore_append_partition_result() throw(); + virtual ~ThriftHiveMetastore_append_partition_result() throw() {} + Partition success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5206,13 +5005,21 @@ class ThriftHiveMetastore_append_partition_result { _ThriftHiveMetastore_append_partition_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_append_partition_result & rhs) const { @@ -5235,25 +5042,22 @@ class ThriftHiveMetastore_append_partition_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_result& obj); }; typedef struct _ThriftHiveMetastore_append_partition_presult__isset { _ThriftHiveMetastore_append_partition_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_presult__isset; class ThriftHiveMetastore_append_partition_presult { public: - static const char* ascii_fingerprint; // = "3F4DFAAB8B93880DD939F610024AF1BF"; - static const uint8_t binary_fingerprint[16]; // = {0x3F,0x4D,0xFA,0xAB,0x8B,0x93,0x88,0x0D,0xD9,0x39,0xF6,0x10,0x02,0x4A,0xF1,0xBF}; + virtual ~ThriftHiveMetastore_append_partition_presult() throw() {} - virtual ~ThriftHiveMetastore_append_partition_presult() throw(); Partition* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5263,31 +5067,28 @@ class ThriftHiveMetastore_append_partition_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_presult& obj); }; typedef struct _ThriftHiveMetastore_add_partitions_req_args__isset { _ThriftHiveMetastore_add_partitions_req_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_add_partitions_req_args__isset; class ThriftHiveMetastore_add_partitions_req_args { public: - static const char* ascii_fingerprint; // = "3EA418BCD4759F81DF13C49A7F8E9A4A"; - static const uint8_t binary_fingerprint[16]; // = {0x3E,0xA4,0x18,0xBC,0xD4,0x75,0x9F,0x81,0xDF,0x13,0xC4,0x9A,0x7F,0x8E,0x9A,0x4A}; - - ThriftHiveMetastore_add_partitions_req_args(const ThriftHiveMetastore_add_partitions_req_args&); - ThriftHiveMetastore_add_partitions_req_args& operator=(const ThriftHiveMetastore_add_partitions_req_args&); ThriftHiveMetastore_add_partitions_req_args() { } - virtual ~ThriftHiveMetastore_add_partitions_req_args() throw(); + virtual ~ThriftHiveMetastore_add_partitions_req_args() throw() {} + AddPartitionsRequest request; _ThriftHiveMetastore_add_partitions_req_args__isset __isset; - void __set_request(const AddPartitionsRequest& val); + void __set_request(const AddPartitionsRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_add_partitions_req_args & rhs) const { @@ -5304,45 +5105,37 @@ class ThriftHiveMetastore_add_partitions_req_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partitions_req_args& obj); }; class ThriftHiveMetastore_add_partitions_req_pargs { public: - static const char* ascii_fingerprint; // = "3EA418BCD4759F81DF13C49A7F8E9A4A"; - static const uint8_t binary_fingerprint[16]; // = {0x3E,0xA4,0x18,0xBC,0xD4,0x75,0x9F,0x81,0xDF,0x13,0xC4,0x9A,0x7F,0x8E,0x9A,0x4A}; + virtual ~ThriftHiveMetastore_add_partitions_req_pargs() throw() {} - virtual ~ThriftHiveMetastore_add_partitions_req_pargs() throw(); const AddPartitionsRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partitions_req_pargs& obj); }; typedef struct _ThriftHiveMetastore_add_partitions_req_result__isset { _ThriftHiveMetastore_add_partitions_req_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partitions_req_result__isset; class ThriftHiveMetastore_add_partitions_req_result { public: - static const char* ascii_fingerprint; // = "AB3E87CB19D96319B6FFA521E7ADE781"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x3E,0x87,0xCB,0x19,0xD9,0x63,0x19,0xB6,0xFF,0xA5,0x21,0xE7,0xAD,0xE7,0x81}; - - ThriftHiveMetastore_add_partitions_req_result(const ThriftHiveMetastore_add_partitions_req_result&); - ThriftHiveMetastore_add_partitions_req_result& operator=(const ThriftHiveMetastore_add_partitions_req_result&); ThriftHiveMetastore_add_partitions_req_result() { } - virtual ~ThriftHiveMetastore_add_partitions_req_result() throw(); + virtual ~ThriftHiveMetastore_add_partitions_req_result() throw() {} + AddPartitionsResult success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5350,13 +5143,21 @@ class ThriftHiveMetastore_add_partitions_req_result { _ThriftHiveMetastore_add_partitions_req_result__isset __isset; - void __set_success(const AddPartitionsResult& val); + void __set_success(const AddPartitionsResult& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_add_partitions_req_result & rhs) const { @@ -5379,25 +5180,22 @@ class ThriftHiveMetastore_add_partitions_req_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partitions_req_result& obj); }; typedef struct _ThriftHiveMetastore_add_partitions_req_presult__isset { _ThriftHiveMetastore_add_partitions_req_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_partitions_req_presult__isset; class ThriftHiveMetastore_add_partitions_req_presult { public: - static const char* ascii_fingerprint; // = "AB3E87CB19D96319B6FFA521E7ADE781"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x3E,0x87,0xCB,0x19,0xD9,0x63,0x19,0xB6,0xFF,0xA5,0x21,0xE7,0xAD,0xE7,0x81}; + virtual ~ThriftHiveMetastore_add_partitions_req_presult() throw() {} - virtual ~ThriftHiveMetastore_add_partitions_req_presult() throw(); AddPartitionsResult* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5407,29 +5205,24 @@ class ThriftHiveMetastore_add_partitions_req_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_partitions_req_presult& obj); }; typedef struct _ThriftHiveMetastore_append_partition_with_environment_context_args__isset { _ThriftHiveMetastore_append_partition_with_environment_context_args__isset() : db_name(false), tbl_name(false), part_vals(false), environment_context(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool environment_context :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool environment_context; } _ThriftHiveMetastore_append_partition_with_environment_context_args__isset; class ThriftHiveMetastore_append_partition_with_environment_context_args { public: - static const char* ascii_fingerprint; // = "592145D593BCF8C09E7E04A61124F80C"; - static const uint8_t binary_fingerprint[16]; // = {0x59,0x21,0x45,0xD5,0x93,0xBC,0xF8,0xC0,0x9E,0x7E,0x04,0xA6,0x11,0x24,0xF8,0x0C}; - - ThriftHiveMetastore_append_partition_with_environment_context_args(const ThriftHiveMetastore_append_partition_with_environment_context_args&); - ThriftHiveMetastore_append_partition_with_environment_context_args& operator=(const ThriftHiveMetastore_append_partition_with_environment_context_args&); ThriftHiveMetastore_append_partition_with_environment_context_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_append_partition_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_append_partition_with_environment_context_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -5437,13 +5230,21 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { _ThriftHiveMetastore_append_partition_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_append_partition_with_environment_context_args & rhs) const { @@ -5466,18 +5267,15 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_with_environment_context_args& obj); }; class ThriftHiveMetastore_append_partition_with_environment_context_pargs { public: - static const char* ascii_fingerprint; // = "592145D593BCF8C09E7E04A61124F80C"; - static const uint8_t binary_fingerprint[16]; // = {0x59,0x21,0x45,0xD5,0x93,0xBC,0xF8,0xC0,0x9E,0x7E,0x04,0xA6,0x11,0x24,0xF8,0x0C}; + virtual ~ThriftHiveMetastore_append_partition_with_environment_context_pargs() throw() {} - virtual ~ThriftHiveMetastore_append_partition_with_environment_context_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -5485,29 +5283,24 @@ class ThriftHiveMetastore_append_partition_with_environment_context_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_with_environment_context_pargs& obj); }; typedef struct _ThriftHiveMetastore_append_partition_with_environment_context_result__isset { _ThriftHiveMetastore_append_partition_with_environment_context_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_with_environment_context_result__isset; class ThriftHiveMetastore_append_partition_with_environment_context_result { public: - static const char* ascii_fingerprint; // = "3F4DFAAB8B93880DD939F610024AF1BF"; - static const uint8_t binary_fingerprint[16]; // = {0x3F,0x4D,0xFA,0xAB,0x8B,0x93,0x88,0x0D,0xD9,0x39,0xF6,0x10,0x02,0x4A,0xF1,0xBF}; - - ThriftHiveMetastore_append_partition_with_environment_context_result(const ThriftHiveMetastore_append_partition_with_environment_context_result&); - ThriftHiveMetastore_append_partition_with_environment_context_result& operator=(const ThriftHiveMetastore_append_partition_with_environment_context_result&); ThriftHiveMetastore_append_partition_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_append_partition_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_append_partition_with_environment_context_result() throw() {} + Partition success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5515,13 +5308,21 @@ class ThriftHiveMetastore_append_partition_with_environment_context_result { _ThriftHiveMetastore_append_partition_with_environment_context_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_append_partition_with_environment_context_result & rhs) const { @@ -5544,25 +5345,22 @@ class ThriftHiveMetastore_append_partition_with_environment_context_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_with_environment_context_result& obj); }; typedef struct _ThriftHiveMetastore_append_partition_with_environment_context_presult__isset { _ThriftHiveMetastore_append_partition_with_environment_context_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_with_environment_context_presult__isset; class ThriftHiveMetastore_append_partition_with_environment_context_presult { public: - static const char* ascii_fingerprint; // = "3F4DFAAB8B93880DD939F610024AF1BF"; - static const uint8_t binary_fingerprint[16]; // = {0x3F,0x4D,0xFA,0xAB,0x8B,0x93,0x88,0x0D,0xD9,0x39,0xF6,0x10,0x02,0x4A,0xF1,0xBF}; + virtual ~ThriftHiveMetastore_append_partition_with_environment_context_presult() throw() {} - virtual ~ThriftHiveMetastore_append_partition_with_environment_context_presult() throw(); Partition* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5572,39 +5370,40 @@ class ThriftHiveMetastore_append_partition_with_environment_context_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_with_environment_context_presult& obj); }; typedef struct _ThriftHiveMetastore_append_partition_by_name_args__isset { _ThriftHiveMetastore_append_partition_by_name_args__isset() : db_name(false), tbl_name(false), part_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; + bool db_name; + bool tbl_name; + bool part_name; } _ThriftHiveMetastore_append_partition_by_name_args__isset; class ThriftHiveMetastore_append_partition_by_name_args { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; - - ThriftHiveMetastore_append_partition_by_name_args(const ThriftHiveMetastore_append_partition_by_name_args&); - ThriftHiveMetastore_append_partition_by_name_args& operator=(const ThriftHiveMetastore_append_partition_by_name_args&); ThriftHiveMetastore_append_partition_by_name_args() : db_name(), tbl_name(), part_name() { } - virtual ~ThriftHiveMetastore_append_partition_by_name_args() throw(); + virtual ~ThriftHiveMetastore_append_partition_by_name_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; _ThriftHiveMetastore_append_partition_by_name_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } bool operator == (const ThriftHiveMetastore_append_partition_by_name_args & rhs) const { @@ -5625,47 +5424,39 @@ class ThriftHiveMetastore_append_partition_by_name_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_by_name_args& obj); }; class ThriftHiveMetastore_append_partition_by_name_pargs { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + virtual ~ThriftHiveMetastore_append_partition_by_name_pargs() throw() {} - virtual ~ThriftHiveMetastore_append_partition_by_name_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::string* part_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_by_name_pargs& obj); }; typedef struct _ThriftHiveMetastore_append_partition_by_name_result__isset { _ThriftHiveMetastore_append_partition_by_name_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_by_name_result__isset; class ThriftHiveMetastore_append_partition_by_name_result { public: - static const char* ascii_fingerprint; // = "3F4DFAAB8B93880DD939F610024AF1BF"; - static const uint8_t binary_fingerprint[16]; // = {0x3F,0x4D,0xFA,0xAB,0x8B,0x93,0x88,0x0D,0xD9,0x39,0xF6,0x10,0x02,0x4A,0xF1,0xBF}; - - ThriftHiveMetastore_append_partition_by_name_result(const ThriftHiveMetastore_append_partition_by_name_result&); - ThriftHiveMetastore_append_partition_by_name_result& operator=(const ThriftHiveMetastore_append_partition_by_name_result&); ThriftHiveMetastore_append_partition_by_name_result() { } - virtual ~ThriftHiveMetastore_append_partition_by_name_result() throw(); + virtual ~ThriftHiveMetastore_append_partition_by_name_result() throw() {} + Partition success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5673,13 +5464,21 @@ class ThriftHiveMetastore_append_partition_by_name_result { _ThriftHiveMetastore_append_partition_by_name_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_append_partition_by_name_result & rhs) const { @@ -5702,25 +5501,22 @@ class ThriftHiveMetastore_append_partition_by_name_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_by_name_result& obj); }; typedef struct _ThriftHiveMetastore_append_partition_by_name_presult__isset { _ThriftHiveMetastore_append_partition_by_name_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_by_name_presult__isset; class ThriftHiveMetastore_append_partition_by_name_presult { public: - static const char* ascii_fingerprint; // = "3F4DFAAB8B93880DD939F610024AF1BF"; - static const uint8_t binary_fingerprint[16]; // = {0x3F,0x4D,0xFA,0xAB,0x8B,0x93,0x88,0x0D,0xD9,0x39,0xF6,0x10,0x02,0x4A,0xF1,0xBF}; + virtual ~ThriftHiveMetastore_append_partition_by_name_presult() throw() {} - virtual ~ThriftHiveMetastore_append_partition_by_name_presult() throw(); Partition* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5730,29 +5526,24 @@ class ThriftHiveMetastore_append_partition_by_name_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_by_name_presult& obj); }; typedef struct _ThriftHiveMetastore_append_partition_by_name_with_environment_context_args__isset { _ThriftHiveMetastore_append_partition_by_name_with_environment_context_args__isset() : db_name(false), tbl_name(false), part_name(false), environment_context(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; - bool environment_context :1; + bool db_name; + bool tbl_name; + bool part_name; + bool environment_context; } _ThriftHiveMetastore_append_partition_by_name_with_environment_context_args__isset; class ThriftHiveMetastore_append_partition_by_name_with_environment_context_args { public: - static const char* ascii_fingerprint; // = "4C7C33DADFC48E61680A3964D657CB87"; - static const uint8_t binary_fingerprint[16]; // = {0x4C,0x7C,0x33,0xDA,0xDF,0xC4,0x8E,0x61,0x68,0x0A,0x39,0x64,0xD6,0x57,0xCB,0x87}; - - ThriftHiveMetastore_append_partition_by_name_with_environment_context_args(const ThriftHiveMetastore_append_partition_by_name_with_environment_context_args&); - ThriftHiveMetastore_append_partition_by_name_with_environment_context_args& operator=(const ThriftHiveMetastore_append_partition_by_name_with_environment_context_args&); ThriftHiveMetastore_append_partition_by_name_with_environment_context_args() : db_name(), tbl_name(), part_name() { } - virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; @@ -5760,13 +5551,21 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_args _ThriftHiveMetastore_append_partition_by_name_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_append_partition_by_name_with_environment_context_args & rhs) const { @@ -5789,18 +5588,15 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_args uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_by_name_with_environment_context_args& obj); }; class ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs { public: - static const char* ascii_fingerprint; // = "4C7C33DADFC48E61680A3964D657CB87"; - static const uint8_t binary_fingerprint[16]; // = {0x4C,0x7C,0x33,0xDA,0xDF,0xC4,0x8E,0x61,0x68,0x0A,0x39,0x64,0xD6,0x57,0xCB,0x87}; + virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs() throw() {} - virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::string* part_name; @@ -5808,29 +5604,24 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_parg uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_by_name_with_environment_context_pargs& obj); }; typedef struct _ThriftHiveMetastore_append_partition_by_name_with_environment_context_result__isset { _ThriftHiveMetastore_append_partition_by_name_with_environment_context_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_by_name_with_environment_context_result__isset; class ThriftHiveMetastore_append_partition_by_name_with_environment_context_result { public: - static const char* ascii_fingerprint; // = "3F4DFAAB8B93880DD939F610024AF1BF"; - static const uint8_t binary_fingerprint[16]; // = {0x3F,0x4D,0xFA,0xAB,0x8B,0x93,0x88,0x0D,0xD9,0x39,0xF6,0x10,0x02,0x4A,0xF1,0xBF}; - - ThriftHiveMetastore_append_partition_by_name_with_environment_context_result(const ThriftHiveMetastore_append_partition_by_name_with_environment_context_result&); - ThriftHiveMetastore_append_partition_by_name_with_environment_context_result& operator=(const ThriftHiveMetastore_append_partition_by_name_with_environment_context_result&); ThriftHiveMetastore_append_partition_by_name_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_result() throw() {} + Partition success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5838,13 +5629,21 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_resu _ThriftHiveMetastore_append_partition_by_name_with_environment_context_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_append_partition_by_name_with_environment_context_result & rhs) const { @@ -5867,25 +5666,22 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_resu uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_by_name_with_environment_context_result& obj); }; typedef struct _ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult__isset { _ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult__isset; class ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult { public: - static const char* ascii_fingerprint; // = "3F4DFAAB8B93880DD939F610024AF1BF"; - static const uint8_t binary_fingerprint[16]; // = {0x3F,0x4D,0xFA,0xAB,0x8B,0x93,0x88,0x0D,0xD9,0x39,0xF6,0x10,0x02,0x4A,0xF1,0xBF}; + virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult() throw() {} - virtual ~ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult() throw(); Partition* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -5895,29 +5691,24 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_pres uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_append_partition_by_name_with_environment_context_presult& obj); }; typedef struct _ThriftHiveMetastore_drop_partition_args__isset { _ThriftHiveMetastore_drop_partition_args__isset() : db_name(false), tbl_name(false), part_vals(false), deleteData(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool deleteData :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool deleteData; } _ThriftHiveMetastore_drop_partition_args__isset; class ThriftHiveMetastore_drop_partition_args { public: - static const char* ascii_fingerprint; // = "8222263D6AD664C570FA0215EE8D26A0"; - static const uint8_t binary_fingerprint[16]; // = {0x82,0x22,0x26,0x3D,0x6A,0xD6,0x64,0xC5,0x70,0xFA,0x02,0x15,0xEE,0x8D,0x26,0xA0}; - - ThriftHiveMetastore_drop_partition_args(const ThriftHiveMetastore_drop_partition_args&); - ThriftHiveMetastore_drop_partition_args& operator=(const ThriftHiveMetastore_drop_partition_args&); ThriftHiveMetastore_drop_partition_args() : db_name(), tbl_name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_partition_args() throw(); + virtual ~ThriftHiveMetastore_drop_partition_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -5925,13 +5716,21 @@ class ThriftHiveMetastore_drop_partition_args { _ThriftHiveMetastore_drop_partition_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_args & rhs) const { @@ -5954,18 +5753,15 @@ class ThriftHiveMetastore_drop_partition_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_args& obj); }; class ThriftHiveMetastore_drop_partition_pargs { public: - static const char* ascii_fingerprint; // = "8222263D6AD664C570FA0215EE8D26A0"; - static const uint8_t binary_fingerprint[16]; // = {0x82,0x22,0x26,0x3D,0x6A,0xD6,0x64,0xC5,0x70,0xFA,0x02,0x15,0xEE,0x8D,0x26,0xA0}; + virtual ~ThriftHiveMetastore_drop_partition_pargs() throw() {} - virtual ~ThriftHiveMetastore_drop_partition_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -5973,39 +5769,40 @@ class ThriftHiveMetastore_drop_partition_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_pargs& obj); }; typedef struct _ThriftHiveMetastore_drop_partition_result__isset { _ThriftHiveMetastore_drop_partition_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_result__isset; class ThriftHiveMetastore_drop_partition_result { public: - static const char* ascii_fingerprint; // = "3499095F5992356B85332339F1B55814"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x99,0x09,0x5F,0x59,0x92,0x35,0x6B,0x85,0x33,0x23,0x39,0xF1,0xB5,0x58,0x14}; - - ThriftHiveMetastore_drop_partition_result(const ThriftHiveMetastore_drop_partition_result&); - ThriftHiveMetastore_drop_partition_result& operator=(const ThriftHiveMetastore_drop_partition_result&); ThriftHiveMetastore_drop_partition_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_partition_result() throw(); + virtual ~ThriftHiveMetastore_drop_partition_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_drop_partition_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_result & rhs) const { @@ -6026,24 +5823,21 @@ class ThriftHiveMetastore_drop_partition_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_result& obj); }; typedef struct _ThriftHiveMetastore_drop_partition_presult__isset { _ThriftHiveMetastore_drop_partition_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_presult__isset; class ThriftHiveMetastore_drop_partition_presult { public: - static const char* ascii_fingerprint; // = "3499095F5992356B85332339F1B55814"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x99,0x09,0x5F,0x59,0x92,0x35,0x6B,0x85,0x33,0x23,0x39,0xF1,0xB5,0x58,0x14}; + virtual ~ThriftHiveMetastore_drop_partition_presult() throw() {} - virtual ~ThriftHiveMetastore_drop_partition_presult() throw(); bool* success; NoSuchObjectException o1; MetaException o2; @@ -6052,30 +5846,25 @@ class ThriftHiveMetastore_drop_partition_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_presult& obj); }; typedef struct _ThriftHiveMetastore_drop_partition_with_environment_context_args__isset { _ThriftHiveMetastore_drop_partition_with_environment_context_args__isset() : db_name(false), tbl_name(false), part_vals(false), deleteData(false), environment_context(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool deleteData :1; - bool environment_context :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool deleteData; + bool environment_context; } _ThriftHiveMetastore_drop_partition_with_environment_context_args__isset; class ThriftHiveMetastore_drop_partition_with_environment_context_args { public: - static const char* ascii_fingerprint; // = "718899EA1E33D9DB4318A4E3743041B5"; - static const uint8_t binary_fingerprint[16]; // = {0x71,0x88,0x99,0xEA,0x1E,0x33,0xD9,0xDB,0x43,0x18,0xA4,0xE3,0x74,0x30,0x41,0xB5}; - - ThriftHiveMetastore_drop_partition_with_environment_context_args(const ThriftHiveMetastore_drop_partition_with_environment_context_args&); - ThriftHiveMetastore_drop_partition_with_environment_context_args& operator=(const ThriftHiveMetastore_drop_partition_with_environment_context_args&); ThriftHiveMetastore_drop_partition_with_environment_context_args() : db_name(), tbl_name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -6084,15 +5873,25 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { _ThriftHiveMetastore_drop_partition_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_with_environment_context_args & rhs) const { @@ -6117,18 +5916,15 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_with_environment_context_args& obj); }; class ThriftHiveMetastore_drop_partition_with_environment_context_pargs { public: - static const char* ascii_fingerprint; // = "718899EA1E33D9DB4318A4E3743041B5"; - static const uint8_t binary_fingerprint[16]; // = {0x71,0x88,0x99,0xEA,0x1E,0x33,0xD9,0xDB,0x43,0x18,0xA4,0xE3,0x74,0x30,0x41,0xB5}; + virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_pargs() throw() {} - virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -6137,39 +5933,40 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_with_environment_context_pargs& obj); }; typedef struct _ThriftHiveMetastore_drop_partition_with_environment_context_result__isset { _ThriftHiveMetastore_drop_partition_with_environment_context_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_with_environment_context_result__isset; class ThriftHiveMetastore_drop_partition_with_environment_context_result { public: - static const char* ascii_fingerprint; // = "3499095F5992356B85332339F1B55814"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x99,0x09,0x5F,0x59,0x92,0x35,0x6B,0x85,0x33,0x23,0x39,0xF1,0xB5,0x58,0x14}; - - ThriftHiveMetastore_drop_partition_with_environment_context_result(const ThriftHiveMetastore_drop_partition_with_environment_context_result&); - ThriftHiveMetastore_drop_partition_with_environment_context_result& operator=(const ThriftHiveMetastore_drop_partition_with_environment_context_result&); ThriftHiveMetastore_drop_partition_with_environment_context_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_drop_partition_with_environment_context_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_with_environment_context_result & rhs) const { @@ -6190,24 +5987,21 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_with_environment_context_result& obj); }; typedef struct _ThriftHiveMetastore_drop_partition_with_environment_context_presult__isset { _ThriftHiveMetastore_drop_partition_with_environment_context_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_with_environment_context_presult__isset; class ThriftHiveMetastore_drop_partition_with_environment_context_presult { public: - static const char* ascii_fingerprint; // = "3499095F5992356B85332339F1B55814"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x99,0x09,0x5F,0x59,0x92,0x35,0x6B,0x85,0x33,0x23,0x39,0xF1,0xB5,0x58,0x14}; + virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_presult() throw() {} - virtual ~ThriftHiveMetastore_drop_partition_with_environment_context_presult() throw(); bool* success; NoSuchObjectException o1; MetaException o2; @@ -6216,29 +6010,24 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_with_environment_context_presult& obj); }; typedef struct _ThriftHiveMetastore_drop_partition_by_name_args__isset { _ThriftHiveMetastore_drop_partition_by_name_args__isset() : db_name(false), tbl_name(false), part_name(false), deleteData(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; - bool deleteData :1; + bool db_name; + bool tbl_name; + bool part_name; + bool deleteData; } _ThriftHiveMetastore_drop_partition_by_name_args__isset; class ThriftHiveMetastore_drop_partition_by_name_args { public: - static const char* ascii_fingerprint; // = "557CE3E1F35DD5D74A3999FB1200CAB8"; - static const uint8_t binary_fingerprint[16]; // = {0x55,0x7C,0xE3,0xE1,0xF3,0x5D,0xD5,0xD7,0x4A,0x39,0x99,0xFB,0x12,0x00,0xCA,0xB8}; - - ThriftHiveMetastore_drop_partition_by_name_args(const ThriftHiveMetastore_drop_partition_by_name_args&); - ThriftHiveMetastore_drop_partition_by_name_args& operator=(const ThriftHiveMetastore_drop_partition_by_name_args&); ThriftHiveMetastore_drop_partition_by_name_args() : db_name(), tbl_name(), part_name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_partition_by_name_args() throw(); + virtual ~ThriftHiveMetastore_drop_partition_by_name_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; @@ -6246,13 +6035,21 @@ class ThriftHiveMetastore_drop_partition_by_name_args { _ThriftHiveMetastore_drop_partition_by_name_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_by_name_args & rhs) const { @@ -6275,18 +6072,15 @@ class ThriftHiveMetastore_drop_partition_by_name_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_by_name_args& obj); }; class ThriftHiveMetastore_drop_partition_by_name_pargs { public: - static const char* ascii_fingerprint; // = "557CE3E1F35DD5D74A3999FB1200CAB8"; - static const uint8_t binary_fingerprint[16]; // = {0x55,0x7C,0xE3,0xE1,0xF3,0x5D,0xD5,0xD7,0x4A,0x39,0x99,0xFB,0x12,0x00,0xCA,0xB8}; + virtual ~ThriftHiveMetastore_drop_partition_by_name_pargs() throw() {} - virtual ~ThriftHiveMetastore_drop_partition_by_name_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::string* part_name; @@ -6294,39 +6088,40 @@ class ThriftHiveMetastore_drop_partition_by_name_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_by_name_pargs& obj); }; typedef struct _ThriftHiveMetastore_drop_partition_by_name_result__isset { _ThriftHiveMetastore_drop_partition_by_name_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_by_name_result__isset; class ThriftHiveMetastore_drop_partition_by_name_result { public: - static const char* ascii_fingerprint; // = "3499095F5992356B85332339F1B55814"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x99,0x09,0x5F,0x59,0x92,0x35,0x6B,0x85,0x33,0x23,0x39,0xF1,0xB5,0x58,0x14}; - - ThriftHiveMetastore_drop_partition_by_name_result(const ThriftHiveMetastore_drop_partition_by_name_result&); - ThriftHiveMetastore_drop_partition_by_name_result& operator=(const ThriftHiveMetastore_drop_partition_by_name_result&); ThriftHiveMetastore_drop_partition_by_name_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_partition_by_name_result() throw(); + virtual ~ThriftHiveMetastore_drop_partition_by_name_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_drop_partition_by_name_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_by_name_result & rhs) const { @@ -6347,24 +6142,21 @@ class ThriftHiveMetastore_drop_partition_by_name_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_by_name_result& obj); }; typedef struct _ThriftHiveMetastore_drop_partition_by_name_presult__isset { _ThriftHiveMetastore_drop_partition_by_name_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_by_name_presult__isset; class ThriftHiveMetastore_drop_partition_by_name_presult { public: - static const char* ascii_fingerprint; // = "3499095F5992356B85332339F1B55814"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x99,0x09,0x5F,0x59,0x92,0x35,0x6B,0x85,0x33,0x23,0x39,0xF1,0xB5,0x58,0x14}; + virtual ~ThriftHiveMetastore_drop_partition_by_name_presult() throw() {} - virtual ~ThriftHiveMetastore_drop_partition_by_name_presult() throw(); bool* success; NoSuchObjectException o1; MetaException o2; @@ -6373,30 +6165,25 @@ class ThriftHiveMetastore_drop_partition_by_name_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_by_name_presult& obj); }; typedef struct _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args__isset { _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args__isset() : db_name(false), tbl_name(false), part_name(false), deleteData(false), environment_context(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; - bool deleteData :1; - bool environment_context :1; + bool db_name; + bool tbl_name; + bool part_name; + bool deleteData; + bool environment_context; } _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args__isset; class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args { public: - static const char* ascii_fingerprint; // = "B1CAA0531B4466AF765CDC7D12D54533"; - static const uint8_t binary_fingerprint[16]; // = {0xB1,0xCA,0xA0,0x53,0x1B,0x44,0x66,0xAF,0x76,0x5C,0xDC,0x7D,0x12,0xD5,0x45,0x33}; - - ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args(const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args&); - ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args& operator=(const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args&); ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args() : db_name(), tbl_name(), part_name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; @@ -6405,15 +6192,25 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args { _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args & rhs) const { @@ -6438,18 +6235,15 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args& obj); }; class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs { public: - static const char* ascii_fingerprint; // = "B1CAA0531B4466AF765CDC7D12D54533"; - static const uint8_t binary_fingerprint[16]; // = {0xB1,0xCA,0xA0,0x53,0x1B,0x44,0x66,0xAF,0x76,0x5C,0xDC,0x7D,0x12,0xD5,0x45,0x33}; + virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs() throw() {} - virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::string* part_name; @@ -6458,39 +6252,40 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_pargs& obj); }; typedef struct _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result__isset { _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result__isset; class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result { public: - static const char* ascii_fingerprint; // = "3499095F5992356B85332339F1B55814"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x99,0x09,0x5F,0x59,0x92,0x35,0x6B,0x85,0x33,0x23,0x39,0xF1,0xB5,0x58,0x14}; - - ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result(const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result&); - ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result& operator=(const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result&); ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result & rhs) const { @@ -6511,24 +6306,21 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result& obj); }; typedef struct _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult__isset { _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult__isset; class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult { public: - static const char* ascii_fingerprint; // = "3499095F5992356B85332339F1B55814"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x99,0x09,0x5F,0x59,0x92,0x35,0x6B,0x85,0x33,0x23,0x39,0xF1,0xB5,0x58,0x14}; + virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult() throw() {} - virtual ~ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult() throw(); bool* success; NoSuchObjectException o1; MetaException o2; @@ -6537,31 +6329,28 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presul uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partition_by_name_with_environment_context_presult& obj); }; typedef struct _ThriftHiveMetastore_drop_partitions_req_args__isset { _ThriftHiveMetastore_drop_partitions_req_args__isset() : req(false) {} - bool req :1; + bool req; } _ThriftHiveMetastore_drop_partitions_req_args__isset; class ThriftHiveMetastore_drop_partitions_req_args { public: - static const char* ascii_fingerprint; // = "1FE0193BCF98F9809B4F69740E3946F0"; - static const uint8_t binary_fingerprint[16]; // = {0x1F,0xE0,0x19,0x3B,0xCF,0x98,0xF9,0x80,0x9B,0x4F,0x69,0x74,0x0E,0x39,0x46,0xF0}; - - ThriftHiveMetastore_drop_partitions_req_args(const ThriftHiveMetastore_drop_partitions_req_args&); - ThriftHiveMetastore_drop_partitions_req_args& operator=(const ThriftHiveMetastore_drop_partitions_req_args&); ThriftHiveMetastore_drop_partitions_req_args() { } - virtual ~ThriftHiveMetastore_drop_partitions_req_args() throw(); + virtual ~ThriftHiveMetastore_drop_partitions_req_args() throw() {} + DropPartitionsRequest req; _ThriftHiveMetastore_drop_partitions_req_args__isset __isset; - void __set_req(const DropPartitionsRequest& val); + void __set_req(const DropPartitionsRequest& val) { + req = val; + } bool operator == (const ThriftHiveMetastore_drop_partitions_req_args & rhs) const { @@ -6578,55 +6367,53 @@ class ThriftHiveMetastore_drop_partitions_req_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partitions_req_args& obj); }; class ThriftHiveMetastore_drop_partitions_req_pargs { public: - static const char* ascii_fingerprint; // = "1FE0193BCF98F9809B4F69740E3946F0"; - static const uint8_t binary_fingerprint[16]; // = {0x1F,0xE0,0x19,0x3B,0xCF,0x98,0xF9,0x80,0x9B,0x4F,0x69,0x74,0x0E,0x39,0x46,0xF0}; + virtual ~ThriftHiveMetastore_drop_partitions_req_pargs() throw() {} - virtual ~ThriftHiveMetastore_drop_partitions_req_pargs() throw(); const DropPartitionsRequest* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partitions_req_pargs& obj); }; typedef struct _ThriftHiveMetastore_drop_partitions_req_result__isset { _ThriftHiveMetastore_drop_partitions_req_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partitions_req_result__isset; class ThriftHiveMetastore_drop_partitions_req_result { public: - static const char* ascii_fingerprint; // = "F3D2F7B3EAE648736972C093DE1EC122"; - static const uint8_t binary_fingerprint[16]; // = {0xF3,0xD2,0xF7,0xB3,0xEA,0xE6,0x48,0x73,0x69,0x72,0xC0,0x93,0xDE,0x1E,0xC1,0x22}; - - ThriftHiveMetastore_drop_partitions_req_result(const ThriftHiveMetastore_drop_partitions_req_result&); - ThriftHiveMetastore_drop_partitions_req_result& operator=(const ThriftHiveMetastore_drop_partitions_req_result&); ThriftHiveMetastore_drop_partitions_req_result() { } - virtual ~ThriftHiveMetastore_drop_partitions_req_result() throw(); + virtual ~ThriftHiveMetastore_drop_partitions_req_result() throw() {} + DropPartitionsResult success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_drop_partitions_req_result__isset __isset; - void __set_success(const DropPartitionsResult& val); + void __set_success(const DropPartitionsResult& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_partitions_req_result & rhs) const { @@ -6647,24 +6434,21 @@ class ThriftHiveMetastore_drop_partitions_req_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partitions_req_result& obj); }; typedef struct _ThriftHiveMetastore_drop_partitions_req_presult__isset { _ThriftHiveMetastore_drop_partitions_req_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_partitions_req_presult__isset; class ThriftHiveMetastore_drop_partitions_req_presult { public: - static const char* ascii_fingerprint; // = "F3D2F7B3EAE648736972C093DE1EC122"; - static const uint8_t binary_fingerprint[16]; // = {0xF3,0xD2,0xF7,0xB3,0xEA,0xE6,0x48,0x73,0x69,0x72,0xC0,0x93,0xDE,0x1E,0xC1,0x22}; + virtual ~ThriftHiveMetastore_drop_partitions_req_presult() throw() {} - virtual ~ThriftHiveMetastore_drop_partitions_req_presult() throw(); DropPartitionsResult* success; NoSuchObjectException o1; MetaException o2; @@ -6673,39 +6457,40 @@ class ThriftHiveMetastore_drop_partitions_req_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_partitions_req_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partition_args__isset { _ThriftHiveMetastore_get_partition_args__isset() : db_name(false), tbl_name(false), part_vals(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; + bool db_name; + bool tbl_name; + bool part_vals; } _ThriftHiveMetastore_get_partition_args__isset; class ThriftHiveMetastore_get_partition_args { public: - static const char* ascii_fingerprint; // = "8E2AD6401E83558ECFD6A13D74DD0A3F"; - static const uint8_t binary_fingerprint[16]; // = {0x8E,0x2A,0xD6,0x40,0x1E,0x83,0x55,0x8E,0xCF,0xD6,0xA1,0x3D,0x74,0xDD,0x0A,0x3F}; - - ThriftHiveMetastore_get_partition_args(const ThriftHiveMetastore_get_partition_args&); - ThriftHiveMetastore_get_partition_args& operator=(const ThriftHiveMetastore_get_partition_args&); ThriftHiveMetastore_get_partition_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_get_partition_args() throw(); + virtual ~ThriftHiveMetastore_get_partition_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; _ThriftHiveMetastore_get_partition_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } bool operator == (const ThriftHiveMetastore_get_partition_args & rhs) const { @@ -6726,57 +6511,55 @@ class ThriftHiveMetastore_get_partition_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_args& obj); }; class ThriftHiveMetastore_get_partition_pargs { public: - static const char* ascii_fingerprint; // = "8E2AD6401E83558ECFD6A13D74DD0A3F"; - static const uint8_t binary_fingerprint[16]; // = {0x8E,0x2A,0xD6,0x40,0x1E,0x83,0x55,0x8E,0xCF,0xD6,0xA1,0x3D,0x74,0xDD,0x0A,0x3F}; + virtual ~ThriftHiveMetastore_get_partition_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partition_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partition_result__isset { _ThriftHiveMetastore_get_partition_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_result__isset; class ThriftHiveMetastore_get_partition_result { public: - static const char* ascii_fingerprint; // = "6591CFEC63F6441E3EB54208B3348AB2"; - static const uint8_t binary_fingerprint[16]; // = {0x65,0x91,0xCF,0xEC,0x63,0xF6,0x44,0x1E,0x3E,0xB5,0x42,0x08,0xB3,0x34,0x8A,0xB2}; - - ThriftHiveMetastore_get_partition_result(const ThriftHiveMetastore_get_partition_result&); - ThriftHiveMetastore_get_partition_result& operator=(const ThriftHiveMetastore_get_partition_result&); ThriftHiveMetastore_get_partition_result() { } - virtual ~ThriftHiveMetastore_get_partition_result() throw(); + virtual ~ThriftHiveMetastore_get_partition_result() throw() {} + Partition success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partition_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partition_result & rhs) const { @@ -6797,24 +6580,21 @@ class ThriftHiveMetastore_get_partition_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_result& obj); }; typedef struct _ThriftHiveMetastore_get_partition_presult__isset { _ThriftHiveMetastore_get_partition_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_presult__isset; class ThriftHiveMetastore_get_partition_presult { public: - static const char* ascii_fingerprint; // = "6591CFEC63F6441E3EB54208B3348AB2"; - static const uint8_t binary_fingerprint[16]; // = {0x65,0x91,0xCF,0xEC,0x63,0xF6,0x44,0x1E,0x3E,0xB5,0x42,0x08,0xB3,0x34,0x8A,0xB2}; + virtual ~ThriftHiveMetastore_get_partition_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partition_presult() throw(); Partition* success; MetaException o1; NoSuchObjectException o2; @@ -6823,30 +6603,25 @@ class ThriftHiveMetastore_get_partition_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_presult& obj); }; typedef struct _ThriftHiveMetastore_exchange_partition_args__isset { _ThriftHiveMetastore_exchange_partition_args__isset() : partitionSpecs(false), source_db(false), source_table_name(false), dest_db(false), dest_table_name(false) {} - bool partitionSpecs :1; - bool source_db :1; - bool source_table_name :1; - bool dest_db :1; - bool dest_table_name :1; + bool partitionSpecs; + bool source_db; + bool source_table_name; + bool dest_db; + bool dest_table_name; } _ThriftHiveMetastore_exchange_partition_args__isset; class ThriftHiveMetastore_exchange_partition_args { public: - static const char* ascii_fingerprint; // = "14D07CC2D6D857D1A741287E7A6EBF6E"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0xD0,0x7C,0xC2,0xD6,0xD8,0x57,0xD1,0xA7,0x41,0x28,0x7E,0x7A,0x6E,0xBF,0x6E}; - - ThriftHiveMetastore_exchange_partition_args(const ThriftHiveMetastore_exchange_partition_args&); - ThriftHiveMetastore_exchange_partition_args& operator=(const ThriftHiveMetastore_exchange_partition_args&); ThriftHiveMetastore_exchange_partition_args() : source_db(), source_table_name(), dest_db(), dest_table_name() { } - virtual ~ThriftHiveMetastore_exchange_partition_args() throw(); + virtual ~ThriftHiveMetastore_exchange_partition_args() throw() {} + std::map partitionSpecs; std::string source_db; std::string source_table_name; @@ -6855,15 +6630,25 @@ class ThriftHiveMetastore_exchange_partition_args { _ThriftHiveMetastore_exchange_partition_args__isset __isset; - void __set_partitionSpecs(const std::map & val); + void __set_partitionSpecs(const std::map & val) { + partitionSpecs = val; + } - void __set_source_db(const std::string& val); + void __set_source_db(const std::string& val) { + source_db = val; + } - void __set_source_table_name(const std::string& val); + void __set_source_table_name(const std::string& val) { + source_table_name = val; + } - void __set_dest_db(const std::string& val); + void __set_dest_db(const std::string& val) { + dest_db = val; + } - void __set_dest_table_name(const std::string& val); + void __set_dest_table_name(const std::string& val) { + dest_table_name = val; + } bool operator == (const ThriftHiveMetastore_exchange_partition_args & rhs) const { @@ -6888,18 +6673,15 @@ class ThriftHiveMetastore_exchange_partition_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_exchange_partition_args& obj); }; class ThriftHiveMetastore_exchange_partition_pargs { public: - static const char* ascii_fingerprint; // = "14D07CC2D6D857D1A741287E7A6EBF6E"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0xD0,0x7C,0xC2,0xD6,0xD8,0x57,0xD1,0xA7,0x41,0x28,0x7E,0x7A,0x6E,0xBF,0x6E}; + virtual ~ThriftHiveMetastore_exchange_partition_pargs() throw() {} - virtual ~ThriftHiveMetastore_exchange_partition_pargs() throw(); const std::map * partitionSpecs; const std::string* source_db; const std::string* source_table_name; @@ -6908,30 +6690,25 @@ class ThriftHiveMetastore_exchange_partition_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_exchange_partition_pargs& obj); }; typedef struct _ThriftHiveMetastore_exchange_partition_result__isset { _ThriftHiveMetastore_exchange_partition_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_exchange_partition_result__isset; class ThriftHiveMetastore_exchange_partition_result { public: - static const char* ascii_fingerprint; // = "993C8A5EF08B1972D46727E8C012FA79"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x3C,0x8A,0x5E,0xF0,0x8B,0x19,0x72,0xD4,0x67,0x27,0xE8,0xC0,0x12,0xFA,0x79}; - - ThriftHiveMetastore_exchange_partition_result(const ThriftHiveMetastore_exchange_partition_result&); - ThriftHiveMetastore_exchange_partition_result& operator=(const ThriftHiveMetastore_exchange_partition_result&); ThriftHiveMetastore_exchange_partition_result() { } - virtual ~ThriftHiveMetastore_exchange_partition_result() throw(); + virtual ~ThriftHiveMetastore_exchange_partition_result() throw() {} + Partition success; MetaException o1; NoSuchObjectException o2; @@ -6940,15 +6717,25 @@ class ThriftHiveMetastore_exchange_partition_result { _ThriftHiveMetastore_exchange_partition_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } - void __set_o3(const InvalidObjectException& val); + void __set_o3(const InvalidObjectException& val) { + o3 = val; + } - void __set_o4(const InvalidInputException& val); + void __set_o4(const InvalidInputException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_exchange_partition_result & rhs) const { @@ -6973,26 +6760,23 @@ class ThriftHiveMetastore_exchange_partition_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_exchange_partition_result& obj); }; typedef struct _ThriftHiveMetastore_exchange_partition_presult__isset { _ThriftHiveMetastore_exchange_partition_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_exchange_partition_presult__isset; class ThriftHiveMetastore_exchange_partition_presult { public: - static const char* ascii_fingerprint; // = "993C8A5EF08B1972D46727E8C012FA79"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x3C,0x8A,0x5E,0xF0,0x8B,0x19,0x72,0xD4,0x67,0x27,0xE8,0xC0,0x12,0xFA,0x79}; + virtual ~ThriftHiveMetastore_exchange_partition_presult() throw() {} - virtual ~ThriftHiveMetastore_exchange_partition_presult() throw(); Partition* success; MetaException o1; NoSuchObjectException o2; @@ -7003,30 +6787,25 @@ class ThriftHiveMetastore_exchange_partition_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_exchange_partition_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partition_with_auth_args__isset { _ThriftHiveMetastore_get_partition_with_auth_args__isset() : db_name(false), tbl_name(false), part_vals(false), user_name(false), group_names(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool user_name :1; - bool group_names :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool user_name; + bool group_names; } _ThriftHiveMetastore_get_partition_with_auth_args__isset; class ThriftHiveMetastore_get_partition_with_auth_args { public: - static const char* ascii_fingerprint; // = "75808EDCBA7F876F099BCD38BE91EDB3"; - static const uint8_t binary_fingerprint[16]; // = {0x75,0x80,0x8E,0xDC,0xBA,0x7F,0x87,0x6F,0x09,0x9B,0xCD,0x38,0xBE,0x91,0xED,0xB3}; - - ThriftHiveMetastore_get_partition_with_auth_args(const ThriftHiveMetastore_get_partition_with_auth_args&); - ThriftHiveMetastore_get_partition_with_auth_args& operator=(const ThriftHiveMetastore_get_partition_with_auth_args&); ThriftHiveMetastore_get_partition_with_auth_args() : db_name(), tbl_name(), user_name() { } - virtual ~ThriftHiveMetastore_get_partition_with_auth_args() throw(); + virtual ~ThriftHiveMetastore_get_partition_with_auth_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -7035,15 +6814,25 @@ class ThriftHiveMetastore_get_partition_with_auth_args { _ThriftHiveMetastore_get_partition_with_auth_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_user_name(const std::string& val); + void __set_user_name(const std::string& val) { + user_name = val; + } - void __set_group_names(const std::vector & val); + void __set_group_names(const std::vector & val) { + group_names = val; + } bool operator == (const ThriftHiveMetastore_get_partition_with_auth_args & rhs) const { @@ -7068,18 +6857,15 @@ class ThriftHiveMetastore_get_partition_with_auth_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_with_auth_args& obj); }; class ThriftHiveMetastore_get_partition_with_auth_pargs { public: - static const char* ascii_fingerprint; // = "75808EDCBA7F876F099BCD38BE91EDB3"; - static const uint8_t binary_fingerprint[16]; // = {0x75,0x80,0x8E,0xDC,0xBA,0x7F,0x87,0x6F,0x09,0x9B,0xCD,0x38,0xBE,0x91,0xED,0xB3}; + virtual ~ThriftHiveMetastore_get_partition_with_auth_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partition_with_auth_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -7088,39 +6874,40 @@ class ThriftHiveMetastore_get_partition_with_auth_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_with_auth_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partition_with_auth_result__isset { _ThriftHiveMetastore_get_partition_with_auth_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_with_auth_result__isset; class ThriftHiveMetastore_get_partition_with_auth_result { public: - static const char* ascii_fingerprint; // = "6591CFEC63F6441E3EB54208B3348AB2"; - static const uint8_t binary_fingerprint[16]; // = {0x65,0x91,0xCF,0xEC,0x63,0xF6,0x44,0x1E,0x3E,0xB5,0x42,0x08,0xB3,0x34,0x8A,0xB2}; - - ThriftHiveMetastore_get_partition_with_auth_result(const ThriftHiveMetastore_get_partition_with_auth_result&); - ThriftHiveMetastore_get_partition_with_auth_result& operator=(const ThriftHiveMetastore_get_partition_with_auth_result&); ThriftHiveMetastore_get_partition_with_auth_result() { } - virtual ~ThriftHiveMetastore_get_partition_with_auth_result() throw(); + virtual ~ThriftHiveMetastore_get_partition_with_auth_result() throw() {} + Partition success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partition_with_auth_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partition_with_auth_result & rhs) const { @@ -7141,24 +6928,21 @@ class ThriftHiveMetastore_get_partition_with_auth_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_with_auth_result& obj); }; typedef struct _ThriftHiveMetastore_get_partition_with_auth_presult__isset { _ThriftHiveMetastore_get_partition_with_auth_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_with_auth_presult__isset; class ThriftHiveMetastore_get_partition_with_auth_presult { public: - static const char* ascii_fingerprint; // = "6591CFEC63F6441E3EB54208B3348AB2"; - static const uint8_t binary_fingerprint[16]; // = {0x65,0x91,0xCF,0xEC,0x63,0xF6,0x44,0x1E,0x3E,0xB5,0x42,0x08,0xB3,0x34,0x8A,0xB2}; + virtual ~ThriftHiveMetastore_get_partition_with_auth_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partition_with_auth_presult() throw(); Partition* success; MetaException o1; NoSuchObjectException o2; @@ -7167,39 +6951,40 @@ class ThriftHiveMetastore_get_partition_with_auth_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_with_auth_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partition_by_name_args__isset { _ThriftHiveMetastore_get_partition_by_name_args__isset() : db_name(false), tbl_name(false), part_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; + bool db_name; + bool tbl_name; + bool part_name; } _ThriftHiveMetastore_get_partition_by_name_args__isset; class ThriftHiveMetastore_get_partition_by_name_args { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; - - ThriftHiveMetastore_get_partition_by_name_args(const ThriftHiveMetastore_get_partition_by_name_args&); - ThriftHiveMetastore_get_partition_by_name_args& operator=(const ThriftHiveMetastore_get_partition_by_name_args&); ThriftHiveMetastore_get_partition_by_name_args() : db_name(), tbl_name(), part_name() { } - virtual ~ThriftHiveMetastore_get_partition_by_name_args() throw(); + virtual ~ThriftHiveMetastore_get_partition_by_name_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; _ThriftHiveMetastore_get_partition_by_name_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } bool operator == (const ThriftHiveMetastore_get_partition_by_name_args & rhs) const { @@ -7220,57 +7005,55 @@ class ThriftHiveMetastore_get_partition_by_name_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_by_name_args& obj); }; class ThriftHiveMetastore_get_partition_by_name_pargs { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + virtual ~ThriftHiveMetastore_get_partition_by_name_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partition_by_name_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::string* part_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_by_name_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partition_by_name_result__isset { _ThriftHiveMetastore_get_partition_by_name_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_by_name_result__isset; class ThriftHiveMetastore_get_partition_by_name_result { public: - static const char* ascii_fingerprint; // = "6591CFEC63F6441E3EB54208B3348AB2"; - static const uint8_t binary_fingerprint[16]; // = {0x65,0x91,0xCF,0xEC,0x63,0xF6,0x44,0x1E,0x3E,0xB5,0x42,0x08,0xB3,0x34,0x8A,0xB2}; - - ThriftHiveMetastore_get_partition_by_name_result(const ThriftHiveMetastore_get_partition_by_name_result&); - ThriftHiveMetastore_get_partition_by_name_result& operator=(const ThriftHiveMetastore_get_partition_by_name_result&); ThriftHiveMetastore_get_partition_by_name_result() { } - virtual ~ThriftHiveMetastore_get_partition_by_name_result() throw(); + virtual ~ThriftHiveMetastore_get_partition_by_name_result() throw() {} + Partition success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partition_by_name_result__isset __isset; - void __set_success(const Partition& val); + void __set_success(const Partition& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partition_by_name_result & rhs) const { @@ -7291,24 +7074,21 @@ class ThriftHiveMetastore_get_partition_by_name_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_by_name_result& obj); }; typedef struct _ThriftHiveMetastore_get_partition_by_name_presult__isset { _ThriftHiveMetastore_get_partition_by_name_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_by_name_presult__isset; class ThriftHiveMetastore_get_partition_by_name_presult { public: - static const char* ascii_fingerprint; // = "6591CFEC63F6441E3EB54208B3348AB2"; - static const uint8_t binary_fingerprint[16]; // = {0x65,0x91,0xCF,0xEC,0x63,0xF6,0x44,0x1E,0x3E,0xB5,0x42,0x08,0xB3,0x34,0x8A,0xB2}; + virtual ~ThriftHiveMetastore_get_partition_by_name_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partition_by_name_presult() throw(); Partition* success; MetaException o1; NoSuchObjectException o2; @@ -7317,39 +7097,40 @@ class ThriftHiveMetastore_get_partition_by_name_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_by_name_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_args__isset { _ThriftHiveMetastore_get_partitions_args__isset() : db_name(false), tbl_name(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool max_parts; } _ThriftHiveMetastore_get_partitions_args__isset; class ThriftHiveMetastore_get_partitions_args { public: - static const char* ascii_fingerprint; // = "52F7D5E8217C4B8FC14F1F30BF2EB41C"; - static const uint8_t binary_fingerprint[16]; // = {0x52,0xF7,0xD5,0xE8,0x21,0x7C,0x4B,0x8F,0xC1,0x4F,0x1F,0x30,0xBF,0x2E,0xB4,0x1C}; - - ThriftHiveMetastore_get_partitions_args(const ThriftHiveMetastore_get_partitions_args&); - ThriftHiveMetastore_get_partitions_args& operator=(const ThriftHiveMetastore_get_partitions_args&); ThriftHiveMetastore_get_partitions_args() : db_name(), tbl_name(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_partitions_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_args() throw() {} + std::string db_name; std::string tbl_name; int16_t max_parts; _ThriftHiveMetastore_get_partitions_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_args & rhs) const { @@ -7370,57 +7151,55 @@ class ThriftHiveMetastore_get_partitions_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_args& obj); }; class ThriftHiveMetastore_get_partitions_pargs { public: - static const char* ascii_fingerprint; // = "52F7D5E8217C4B8FC14F1F30BF2EB41C"; - static const uint8_t binary_fingerprint[16]; // = {0x52,0xF7,0xD5,0xE8,0x21,0x7C,0x4B,0x8F,0xC1,0x4F,0x1F,0x30,0xBF,0x2E,0xB4,0x1C}; + virtual ~ThriftHiveMetastore_get_partitions_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const int16_t* max_parts; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_result__isset { _ThriftHiveMetastore_get_partitions_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_result__isset; class ThriftHiveMetastore_get_partitions_result { public: - static const char* ascii_fingerprint; // = "148076CF62AE4011A584C2CA00E22295"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0x80,0x76,0xCF,0x62,0xAE,0x40,0x11,0xA5,0x84,0xC2,0xCA,0x00,0xE2,0x22,0x95}; - - ThriftHiveMetastore_get_partitions_result(const ThriftHiveMetastore_get_partitions_result&); - ThriftHiveMetastore_get_partitions_result& operator=(const ThriftHiveMetastore_get_partitions_result&); ThriftHiveMetastore_get_partitions_result() { } - virtual ~ThriftHiveMetastore_get_partitions_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_result() throw() {} + std::vector success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_partitions_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_result & rhs) const { @@ -7441,24 +7220,21 @@ class ThriftHiveMetastore_get_partitions_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_result& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_presult__isset { _ThriftHiveMetastore_get_partitions_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_presult__isset; class ThriftHiveMetastore_get_partitions_presult { public: - static const char* ascii_fingerprint; // = "148076CF62AE4011A584C2CA00E22295"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0x80,0x76,0xCF,0x62,0xAE,0x40,0x11,0xA5,0x84,0xC2,0xCA,0x00,0xE2,0x22,0x95}; + virtual ~ThriftHiveMetastore_get_partitions_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_presult() throw(); std::vector * success; NoSuchObjectException o1; MetaException o2; @@ -7467,30 +7243,25 @@ class ThriftHiveMetastore_get_partitions_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_with_auth_args__isset { _ThriftHiveMetastore_get_partitions_with_auth_args__isset() : db_name(false), tbl_name(false), max_parts(true), user_name(false), group_names(false) {} - bool db_name :1; - bool tbl_name :1; - bool max_parts :1; - bool user_name :1; - bool group_names :1; + bool db_name; + bool tbl_name; + bool max_parts; + bool user_name; + bool group_names; } _ThriftHiveMetastore_get_partitions_with_auth_args__isset; class ThriftHiveMetastore_get_partitions_with_auth_args { public: - static const char* ascii_fingerprint; // = "D4ED309E57FB5536267FF51643506588"; - static const uint8_t binary_fingerprint[16]; // = {0xD4,0xED,0x30,0x9E,0x57,0xFB,0x55,0x36,0x26,0x7F,0xF5,0x16,0x43,0x50,0x65,0x88}; - - ThriftHiveMetastore_get_partitions_with_auth_args(const ThriftHiveMetastore_get_partitions_with_auth_args&); - ThriftHiveMetastore_get_partitions_with_auth_args& operator=(const ThriftHiveMetastore_get_partitions_with_auth_args&); ThriftHiveMetastore_get_partitions_with_auth_args() : db_name(), tbl_name(), max_parts(-1), user_name() { } - virtual ~ThriftHiveMetastore_get_partitions_with_auth_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_with_auth_args() throw() {} + std::string db_name; std::string tbl_name; int16_t max_parts; @@ -7499,15 +7270,25 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { _ThriftHiveMetastore_get_partitions_with_auth_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } - void __set_user_name(const std::string& val); + void __set_user_name(const std::string& val) { + user_name = val; + } - void __set_group_names(const std::vector & val); + void __set_group_names(const std::vector & val) { + group_names = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_with_auth_args & rhs) const { @@ -7532,18 +7313,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_with_auth_args& obj); }; class ThriftHiveMetastore_get_partitions_with_auth_pargs { public: - static const char* ascii_fingerprint; // = "D4ED309E57FB5536267FF51643506588"; - static const uint8_t binary_fingerprint[16]; // = {0xD4,0xED,0x30,0x9E,0x57,0xFB,0x55,0x36,0x26,0x7F,0xF5,0x16,0x43,0x50,0x65,0x88}; + virtual ~ThriftHiveMetastore_get_partitions_with_auth_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_with_auth_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const int16_t* max_parts; @@ -7552,39 +7330,40 @@ class ThriftHiveMetastore_get_partitions_with_auth_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_with_auth_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_with_auth_result__isset { _ThriftHiveMetastore_get_partitions_with_auth_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_with_auth_result__isset; class ThriftHiveMetastore_get_partitions_with_auth_result { public: - static const char* ascii_fingerprint; // = "148076CF62AE4011A584C2CA00E22295"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0x80,0x76,0xCF,0x62,0xAE,0x40,0x11,0xA5,0x84,0xC2,0xCA,0x00,0xE2,0x22,0x95}; - - ThriftHiveMetastore_get_partitions_with_auth_result(const ThriftHiveMetastore_get_partitions_with_auth_result&); - ThriftHiveMetastore_get_partitions_with_auth_result& operator=(const ThriftHiveMetastore_get_partitions_with_auth_result&); ThriftHiveMetastore_get_partitions_with_auth_result() { } - virtual ~ThriftHiveMetastore_get_partitions_with_auth_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_with_auth_result() throw() {} + std::vector success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_partitions_with_auth_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_with_auth_result & rhs) const { @@ -7605,24 +7384,21 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_with_auth_result& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_with_auth_presult__isset { _ThriftHiveMetastore_get_partitions_with_auth_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_with_auth_presult__isset; class ThriftHiveMetastore_get_partitions_with_auth_presult { public: - static const char* ascii_fingerprint; // = "148076CF62AE4011A584C2CA00E22295"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0x80,0x76,0xCF,0x62,0xAE,0x40,0x11,0xA5,0x84,0xC2,0xCA,0x00,0xE2,0x22,0x95}; + virtual ~ThriftHiveMetastore_get_partitions_with_auth_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_with_auth_presult() throw(); std::vector * success; NoSuchObjectException o1; MetaException o2; @@ -7631,39 +7407,40 @@ class ThriftHiveMetastore_get_partitions_with_auth_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_with_auth_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_pspec_args__isset { _ThriftHiveMetastore_get_partitions_pspec_args__isset() : db_name(false), tbl_name(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool max_parts; } _ThriftHiveMetastore_get_partitions_pspec_args__isset; class ThriftHiveMetastore_get_partitions_pspec_args { public: - static const char* ascii_fingerprint; // = "343DA57F446177400B333DC49B037B0C"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x3D,0xA5,0x7F,0x44,0x61,0x77,0x40,0x0B,0x33,0x3D,0xC4,0x9B,0x03,0x7B,0x0C}; - - ThriftHiveMetastore_get_partitions_pspec_args(const ThriftHiveMetastore_get_partitions_pspec_args&); - ThriftHiveMetastore_get_partitions_pspec_args& operator=(const ThriftHiveMetastore_get_partitions_pspec_args&); ThriftHiveMetastore_get_partitions_pspec_args() : db_name(), tbl_name(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_partitions_pspec_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_pspec_args() throw() {} + std::string db_name; std::string tbl_name; int32_t max_parts; _ThriftHiveMetastore_get_partitions_pspec_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_max_parts(const int32_t val); + void __set_max_parts(const int32_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_pspec_args & rhs) const { @@ -7684,57 +7461,55 @@ class ThriftHiveMetastore_get_partitions_pspec_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_pspec_args& obj); }; class ThriftHiveMetastore_get_partitions_pspec_pargs { public: - static const char* ascii_fingerprint; // = "343DA57F446177400B333DC49B037B0C"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x3D,0xA5,0x7F,0x44,0x61,0x77,0x40,0x0B,0x33,0x3D,0xC4,0x9B,0x03,0x7B,0x0C}; + virtual ~ThriftHiveMetastore_get_partitions_pspec_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_pspec_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const int32_t* max_parts; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_pspec_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_pspec_result__isset { _ThriftHiveMetastore_get_partitions_pspec_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_pspec_result__isset; class ThriftHiveMetastore_get_partitions_pspec_result { public: - static const char* ascii_fingerprint; // = "834C6ED9007DE3A504DF5B1F3BBEC56E"; - static const uint8_t binary_fingerprint[16]; // = {0x83,0x4C,0x6E,0xD9,0x00,0x7D,0xE3,0xA5,0x04,0xDF,0x5B,0x1F,0x3B,0xBE,0xC5,0x6E}; - - ThriftHiveMetastore_get_partitions_pspec_result(const ThriftHiveMetastore_get_partitions_pspec_result&); - ThriftHiveMetastore_get_partitions_pspec_result& operator=(const ThriftHiveMetastore_get_partitions_pspec_result&); ThriftHiveMetastore_get_partitions_pspec_result() { } - virtual ~ThriftHiveMetastore_get_partitions_pspec_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_pspec_result() throw() {} + std::vector success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_partitions_pspec_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_pspec_result & rhs) const { @@ -7755,24 +7530,21 @@ class ThriftHiveMetastore_get_partitions_pspec_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_pspec_result& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_pspec_presult__isset { _ThriftHiveMetastore_get_partitions_pspec_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_pspec_presult__isset; class ThriftHiveMetastore_get_partitions_pspec_presult { public: - static const char* ascii_fingerprint; // = "834C6ED9007DE3A504DF5B1F3BBEC56E"; - static const uint8_t binary_fingerprint[16]; // = {0x83,0x4C,0x6E,0xD9,0x00,0x7D,0xE3,0xA5,0x04,0xDF,0x5B,0x1F,0x3B,0xBE,0xC5,0x6E}; + virtual ~ThriftHiveMetastore_get_partitions_pspec_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_pspec_presult() throw(); std::vector * success; NoSuchObjectException o1; MetaException o2; @@ -7781,39 +7553,40 @@ class ThriftHiveMetastore_get_partitions_pspec_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_pspec_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partition_names_args__isset { _ThriftHiveMetastore_get_partition_names_args__isset() : db_name(false), tbl_name(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool max_parts; } _ThriftHiveMetastore_get_partition_names_args__isset; class ThriftHiveMetastore_get_partition_names_args { public: - static const char* ascii_fingerprint; // = "52F7D5E8217C4B8FC14F1F30BF2EB41C"; - static const uint8_t binary_fingerprint[16]; // = {0x52,0xF7,0xD5,0xE8,0x21,0x7C,0x4B,0x8F,0xC1,0x4F,0x1F,0x30,0xBF,0x2E,0xB4,0x1C}; - - ThriftHiveMetastore_get_partition_names_args(const ThriftHiveMetastore_get_partition_names_args&); - ThriftHiveMetastore_get_partition_names_args& operator=(const ThriftHiveMetastore_get_partition_names_args&); ThriftHiveMetastore_get_partition_names_args() : db_name(), tbl_name(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_partition_names_args() throw(); + virtual ~ThriftHiveMetastore_get_partition_names_args() throw() {} + std::string db_name; std::string tbl_name; int16_t max_parts; _ThriftHiveMetastore_get_partition_names_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_partition_names_args & rhs) const { @@ -7834,53 +7607,49 @@ class ThriftHiveMetastore_get_partition_names_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_names_args& obj); }; class ThriftHiveMetastore_get_partition_names_pargs { public: - static const char* ascii_fingerprint; // = "52F7D5E8217C4B8FC14F1F30BF2EB41C"; - static const uint8_t binary_fingerprint[16]; // = {0x52,0xF7,0xD5,0xE8,0x21,0x7C,0x4B,0x8F,0xC1,0x4F,0x1F,0x30,0xBF,0x2E,0xB4,0x1C}; + virtual ~ThriftHiveMetastore_get_partition_names_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partition_names_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const int16_t* max_parts; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_names_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partition_names_result__isset { _ThriftHiveMetastore_get_partition_names_result__isset() : success(false), o2(false) {} - bool success :1; - bool o2 :1; + bool success; + bool o2; } _ThriftHiveMetastore_get_partition_names_result__isset; class ThriftHiveMetastore_get_partition_names_result { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; - - ThriftHiveMetastore_get_partition_names_result(const ThriftHiveMetastore_get_partition_names_result&); - ThriftHiveMetastore_get_partition_names_result& operator=(const ThriftHiveMetastore_get_partition_names_result&); ThriftHiveMetastore_get_partition_names_result() { } - virtual ~ThriftHiveMetastore_get_partition_names_result() throw(); + virtual ~ThriftHiveMetastore_get_partition_names_result() throw() {} + std::vector success; MetaException o2; _ThriftHiveMetastore_get_partition_names_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partition_names_result & rhs) const { @@ -7899,23 +7668,20 @@ class ThriftHiveMetastore_get_partition_names_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_names_result& obj); }; typedef struct _ThriftHiveMetastore_get_partition_names_presult__isset { _ThriftHiveMetastore_get_partition_names_presult__isset() : success(false), o2(false) {} - bool success :1; - bool o2 :1; + bool success; + bool o2; } _ThriftHiveMetastore_get_partition_names_presult__isset; class ThriftHiveMetastore_get_partition_names_presult { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; + virtual ~ThriftHiveMetastore_get_partition_names_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partition_names_presult() throw(); std::vector * success; MetaException o2; @@ -7923,29 +7689,24 @@ class ThriftHiveMetastore_get_partition_names_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_names_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_ps_args__isset { _ThriftHiveMetastore_get_partitions_ps_args__isset() : db_name(false), tbl_name(false), part_vals(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool max_parts; } _ThriftHiveMetastore_get_partitions_ps_args__isset; class ThriftHiveMetastore_get_partitions_ps_args { public: - static const char* ascii_fingerprint; // = "1C50C967F7E8CEAC7E98218C57BAAA80"; - static const uint8_t binary_fingerprint[16]; // = {0x1C,0x50,0xC9,0x67,0xF7,0xE8,0xCE,0xAC,0x7E,0x98,0x21,0x8C,0x57,0xBA,0xAA,0x80}; - - ThriftHiveMetastore_get_partitions_ps_args(const ThriftHiveMetastore_get_partitions_ps_args&); - ThriftHiveMetastore_get_partitions_ps_args& operator=(const ThriftHiveMetastore_get_partitions_ps_args&); ThriftHiveMetastore_get_partitions_ps_args() : db_name(), tbl_name(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_partitions_ps_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_ps_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -7953,13 +7714,21 @@ class ThriftHiveMetastore_get_partitions_ps_args { _ThriftHiveMetastore_get_partitions_ps_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_ps_args & rhs) const { @@ -7982,18 +7751,15 @@ class ThriftHiveMetastore_get_partitions_ps_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_ps_args& obj); }; class ThriftHiveMetastore_get_partitions_ps_pargs { public: - static const char* ascii_fingerprint; // = "1C50C967F7E8CEAC7E98218C57BAAA80"; - static const uint8_t binary_fingerprint[16]; // = {0x1C,0x50,0xC9,0x67,0xF7,0xE8,0xCE,0xAC,0x7E,0x98,0x21,0x8C,0x57,0xBA,0xAA,0x80}; + virtual ~ThriftHiveMetastore_get_partitions_ps_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_ps_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -8001,39 +7767,40 @@ class ThriftHiveMetastore_get_partitions_ps_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_ps_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_ps_result__isset { _ThriftHiveMetastore_get_partitions_ps_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_ps_result__isset; class ThriftHiveMetastore_get_partitions_ps_result { public: - static const char* ascii_fingerprint; // = "148076CF62AE4011A584C2CA00E22295"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0x80,0x76,0xCF,0x62,0xAE,0x40,0x11,0xA5,0x84,0xC2,0xCA,0x00,0xE2,0x22,0x95}; - - ThriftHiveMetastore_get_partitions_ps_result(const ThriftHiveMetastore_get_partitions_ps_result&); - ThriftHiveMetastore_get_partitions_ps_result& operator=(const ThriftHiveMetastore_get_partitions_ps_result&); ThriftHiveMetastore_get_partitions_ps_result() { } - virtual ~ThriftHiveMetastore_get_partitions_ps_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_ps_result() throw() {} + std::vector success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partitions_ps_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_ps_result & rhs) const { @@ -8054,24 +7821,21 @@ class ThriftHiveMetastore_get_partitions_ps_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_ps_result& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_ps_presult__isset { _ThriftHiveMetastore_get_partitions_ps_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_ps_presult__isset; class ThriftHiveMetastore_get_partitions_ps_presult { public: - static const char* ascii_fingerprint; // = "148076CF62AE4011A584C2CA00E22295"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0x80,0x76,0xCF,0x62,0xAE,0x40,0x11,0xA5,0x84,0xC2,0xCA,0x00,0xE2,0x22,0x95}; + virtual ~ThriftHiveMetastore_get_partitions_ps_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_ps_presult() throw(); std::vector * success; MetaException o1; NoSuchObjectException o2; @@ -8080,31 +7844,26 @@ class ThriftHiveMetastore_get_partitions_ps_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_ps_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_ps_with_auth_args__isset { _ThriftHiveMetastore_get_partitions_ps_with_auth_args__isset() : db_name(false), tbl_name(false), part_vals(false), max_parts(true), user_name(false), group_names(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool max_parts :1; - bool user_name :1; - bool group_names :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool max_parts; + bool user_name; + bool group_names; } _ThriftHiveMetastore_get_partitions_ps_with_auth_args__isset; class ThriftHiveMetastore_get_partitions_ps_with_auth_args { public: - static const char* ascii_fingerprint; // = "364E51B33D0A4C6D16C48359C6314201"; - static const uint8_t binary_fingerprint[16]; // = {0x36,0x4E,0x51,0xB3,0x3D,0x0A,0x4C,0x6D,0x16,0xC4,0x83,0x59,0xC6,0x31,0x42,0x01}; - - ThriftHiveMetastore_get_partitions_ps_with_auth_args(const ThriftHiveMetastore_get_partitions_ps_with_auth_args&); - ThriftHiveMetastore_get_partitions_ps_with_auth_args& operator=(const ThriftHiveMetastore_get_partitions_ps_with_auth_args&); ThriftHiveMetastore_get_partitions_ps_with_auth_args() : db_name(), tbl_name(), max_parts(-1), user_name() { } - virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -8114,17 +7873,29 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { _ThriftHiveMetastore_get_partitions_ps_with_auth_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } - void __set_user_name(const std::string& val); + void __set_user_name(const std::string& val) { + user_name = val; + } - void __set_group_names(const std::vector & val); + void __set_group_names(const std::vector & val) { + group_names = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_ps_with_auth_args & rhs) const { @@ -8151,18 +7922,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_ps_with_auth_args& obj); }; class ThriftHiveMetastore_get_partitions_ps_with_auth_pargs { public: - static const char* ascii_fingerprint; // = "364E51B33D0A4C6D16C48359C6314201"; - static const uint8_t binary_fingerprint[16]; // = {0x36,0x4E,0x51,0xB3,0x3D,0x0A,0x4C,0x6D,0x16,0xC4,0x83,0x59,0xC6,0x31,0x42,0x01}; + virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -8172,39 +7940,40 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_ps_with_auth_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_ps_with_auth_result__isset { _ThriftHiveMetastore_get_partitions_ps_with_auth_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_ps_with_auth_result__isset; class ThriftHiveMetastore_get_partitions_ps_with_auth_result { public: - static const char* ascii_fingerprint; // = "148076CF62AE4011A584C2CA00E22295"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0x80,0x76,0xCF,0x62,0xAE,0x40,0x11,0xA5,0x84,0xC2,0xCA,0x00,0xE2,0x22,0x95}; - - ThriftHiveMetastore_get_partitions_ps_with_auth_result(const ThriftHiveMetastore_get_partitions_ps_with_auth_result&); - ThriftHiveMetastore_get_partitions_ps_with_auth_result& operator=(const ThriftHiveMetastore_get_partitions_ps_with_auth_result&); ThriftHiveMetastore_get_partitions_ps_with_auth_result() { } - virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_result() throw() {} + std::vector success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_partitions_ps_with_auth_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_ps_with_auth_result & rhs) const { @@ -8225,24 +7994,21 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_ps_with_auth_result& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_ps_with_auth_presult__isset { _ThriftHiveMetastore_get_partitions_ps_with_auth_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_ps_with_auth_presult__isset; class ThriftHiveMetastore_get_partitions_ps_with_auth_presult { public: - static const char* ascii_fingerprint; // = "148076CF62AE4011A584C2CA00E22295"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0x80,0x76,0xCF,0x62,0xAE,0x40,0x11,0xA5,0x84,0xC2,0xCA,0x00,0xE2,0x22,0x95}; + virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_presult() throw(); std::vector * success; NoSuchObjectException o1; MetaException o2; @@ -8251,29 +8017,24 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_ps_with_auth_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partition_names_ps_args__isset { _ThriftHiveMetastore_get_partition_names_ps_args__isset() : db_name(false), tbl_name(false), part_vals(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool max_parts; } _ThriftHiveMetastore_get_partition_names_ps_args__isset; class ThriftHiveMetastore_get_partition_names_ps_args { public: - static const char* ascii_fingerprint; // = "1C50C967F7E8CEAC7E98218C57BAAA80"; - static const uint8_t binary_fingerprint[16]; // = {0x1C,0x50,0xC9,0x67,0xF7,0xE8,0xCE,0xAC,0x7E,0x98,0x21,0x8C,0x57,0xBA,0xAA,0x80}; - - ThriftHiveMetastore_get_partition_names_ps_args(const ThriftHiveMetastore_get_partition_names_ps_args&); - ThriftHiveMetastore_get_partition_names_ps_args& operator=(const ThriftHiveMetastore_get_partition_names_ps_args&); ThriftHiveMetastore_get_partition_names_ps_args() : db_name(), tbl_name(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_partition_names_ps_args() throw(); + virtual ~ThriftHiveMetastore_get_partition_names_ps_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -8281,13 +8042,21 @@ class ThriftHiveMetastore_get_partition_names_ps_args { _ThriftHiveMetastore_get_partition_names_ps_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_partition_names_ps_args & rhs) const { @@ -8310,18 +8079,15 @@ class ThriftHiveMetastore_get_partition_names_ps_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_names_ps_args& obj); }; class ThriftHiveMetastore_get_partition_names_ps_pargs { public: - static const char* ascii_fingerprint; // = "1C50C967F7E8CEAC7E98218C57BAAA80"; - static const uint8_t binary_fingerprint[16]; // = {0x1C,0x50,0xC9,0x67,0xF7,0xE8,0xCE,0xAC,0x7E,0x98,0x21,0x8C,0x57,0xBA,0xAA,0x80}; + virtual ~ThriftHiveMetastore_get_partition_names_ps_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partition_names_ps_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -8329,39 +8095,40 @@ class ThriftHiveMetastore_get_partition_names_ps_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_names_ps_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partition_names_ps_result__isset { _ThriftHiveMetastore_get_partition_names_ps_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_names_ps_result__isset; class ThriftHiveMetastore_get_partition_names_ps_result { public: - static const char* ascii_fingerprint; // = "6F932EA4FD66B00D80C9FE769EA07088"; - static const uint8_t binary_fingerprint[16]; // = {0x6F,0x93,0x2E,0xA4,0xFD,0x66,0xB0,0x0D,0x80,0xC9,0xFE,0x76,0x9E,0xA0,0x70,0x88}; - - ThriftHiveMetastore_get_partition_names_ps_result(const ThriftHiveMetastore_get_partition_names_ps_result&); - ThriftHiveMetastore_get_partition_names_ps_result& operator=(const ThriftHiveMetastore_get_partition_names_ps_result&); ThriftHiveMetastore_get_partition_names_ps_result() { } - virtual ~ThriftHiveMetastore_get_partition_names_ps_result() throw(); + virtual ~ThriftHiveMetastore_get_partition_names_ps_result() throw() {} + std::vector success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partition_names_ps_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partition_names_ps_result & rhs) const { @@ -8382,24 +8149,21 @@ class ThriftHiveMetastore_get_partition_names_ps_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_names_ps_result& obj); }; typedef struct _ThriftHiveMetastore_get_partition_names_ps_presult__isset { _ThriftHiveMetastore_get_partition_names_ps_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partition_names_ps_presult__isset; class ThriftHiveMetastore_get_partition_names_ps_presult { public: - static const char* ascii_fingerprint; // = "6F932EA4FD66B00D80C9FE769EA07088"; - static const uint8_t binary_fingerprint[16]; // = {0x6F,0x93,0x2E,0xA4,0xFD,0x66,0xB0,0x0D,0x80,0xC9,0xFE,0x76,0x9E,0xA0,0x70,0x88}; + virtual ~ThriftHiveMetastore_get_partition_names_ps_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partition_names_ps_presult() throw(); std::vector * success; MetaException o1; NoSuchObjectException o2; @@ -8408,29 +8172,24 @@ class ThriftHiveMetastore_get_partition_names_ps_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_names_ps_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_by_filter_args__isset { _ThriftHiveMetastore_get_partitions_by_filter_args__isset() : db_name(false), tbl_name(false), filter(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool filter :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool filter; + bool max_parts; } _ThriftHiveMetastore_get_partitions_by_filter_args__isset; class ThriftHiveMetastore_get_partitions_by_filter_args { public: - static const char* ascii_fingerprint; // = "21F9D8180F10C46A8E03BC2CEBC0E996"; - static const uint8_t binary_fingerprint[16]; // = {0x21,0xF9,0xD8,0x18,0x0F,0x10,0xC4,0x6A,0x8E,0x03,0xBC,0x2C,0xEB,0xC0,0xE9,0x96}; - - ThriftHiveMetastore_get_partitions_by_filter_args(const ThriftHiveMetastore_get_partitions_by_filter_args&); - ThriftHiveMetastore_get_partitions_by_filter_args& operator=(const ThriftHiveMetastore_get_partitions_by_filter_args&); ThriftHiveMetastore_get_partitions_by_filter_args() : db_name(), tbl_name(), filter(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_partitions_by_filter_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_filter_args() throw() {} + std::string db_name; std::string tbl_name; std::string filter; @@ -8438,13 +8197,21 @@ class ThriftHiveMetastore_get_partitions_by_filter_args { _ThriftHiveMetastore_get_partitions_by_filter_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_filter(const std::string& val); + void __set_filter(const std::string& val) { + filter = val; + } - void __set_max_parts(const int16_t val); + void __set_max_parts(const int16_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_by_filter_args & rhs) const { @@ -8467,18 +8234,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_by_filter_args& obj); }; class ThriftHiveMetastore_get_partitions_by_filter_pargs { public: - static const char* ascii_fingerprint; // = "21F9D8180F10C46A8E03BC2CEBC0E996"; - static const uint8_t binary_fingerprint[16]; // = {0x21,0xF9,0xD8,0x18,0x0F,0x10,0xC4,0x6A,0x8E,0x03,0xBC,0x2C,0xEB,0xC0,0xE9,0x96}; + virtual ~ThriftHiveMetastore_get_partitions_by_filter_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_by_filter_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::string* filter; @@ -8486,39 +8250,40 @@ class ThriftHiveMetastore_get_partitions_by_filter_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_by_filter_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_by_filter_result__isset { _ThriftHiveMetastore_get_partitions_by_filter_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_by_filter_result__isset; class ThriftHiveMetastore_get_partitions_by_filter_result { public: - static const char* ascii_fingerprint; // = "148076CF62AE4011A584C2CA00E22295"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0x80,0x76,0xCF,0x62,0xAE,0x40,0x11,0xA5,0x84,0xC2,0xCA,0x00,0xE2,0x22,0x95}; - - ThriftHiveMetastore_get_partitions_by_filter_result(const ThriftHiveMetastore_get_partitions_by_filter_result&); - ThriftHiveMetastore_get_partitions_by_filter_result& operator=(const ThriftHiveMetastore_get_partitions_by_filter_result&); ThriftHiveMetastore_get_partitions_by_filter_result() { } - virtual ~ThriftHiveMetastore_get_partitions_by_filter_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_filter_result() throw() {} + std::vector success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partitions_by_filter_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_by_filter_result & rhs) const { @@ -8539,24 +8304,21 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_by_filter_result& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_by_filter_presult__isset { _ThriftHiveMetastore_get_partitions_by_filter_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_by_filter_presult__isset; class ThriftHiveMetastore_get_partitions_by_filter_presult { public: - static const char* ascii_fingerprint; // = "148076CF62AE4011A584C2CA00E22295"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0x80,0x76,0xCF,0x62,0xAE,0x40,0x11,0xA5,0x84,0xC2,0xCA,0x00,0xE2,0x22,0x95}; + virtual ~ThriftHiveMetastore_get_partitions_by_filter_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_by_filter_presult() throw(); std::vector * success; MetaException o1; NoSuchObjectException o2; @@ -8565,29 +8327,24 @@ class ThriftHiveMetastore_get_partitions_by_filter_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_by_filter_presult& obj); }; typedef struct _ThriftHiveMetastore_get_part_specs_by_filter_args__isset { _ThriftHiveMetastore_get_part_specs_by_filter_args__isset() : db_name(false), tbl_name(false), filter(false), max_parts(true) {} - bool db_name :1; - bool tbl_name :1; - bool filter :1; - bool max_parts :1; + bool db_name; + bool tbl_name; + bool filter; + bool max_parts; } _ThriftHiveMetastore_get_part_specs_by_filter_args__isset; class ThriftHiveMetastore_get_part_specs_by_filter_args { public: - static const char* ascii_fingerprint; // = "194A357BC9EE908DC4763D0A5147760A"; - static const uint8_t binary_fingerprint[16]; // = {0x19,0x4A,0x35,0x7B,0xC9,0xEE,0x90,0x8D,0xC4,0x76,0x3D,0x0A,0x51,0x47,0x76,0x0A}; - - ThriftHiveMetastore_get_part_specs_by_filter_args(const ThriftHiveMetastore_get_part_specs_by_filter_args&); - ThriftHiveMetastore_get_part_specs_by_filter_args& operator=(const ThriftHiveMetastore_get_part_specs_by_filter_args&); ThriftHiveMetastore_get_part_specs_by_filter_args() : db_name(), tbl_name(), filter(), max_parts(-1) { } - virtual ~ThriftHiveMetastore_get_part_specs_by_filter_args() throw(); + virtual ~ThriftHiveMetastore_get_part_specs_by_filter_args() throw() {} + std::string db_name; std::string tbl_name; std::string filter; @@ -8595,13 +8352,21 @@ class ThriftHiveMetastore_get_part_specs_by_filter_args { _ThriftHiveMetastore_get_part_specs_by_filter_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_filter(const std::string& val); + void __set_filter(const std::string& val) { + filter = val; + } - void __set_max_parts(const int32_t val); + void __set_max_parts(const int32_t val) { + max_parts = val; + } bool operator == (const ThriftHiveMetastore_get_part_specs_by_filter_args & rhs) const { @@ -8624,18 +8389,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_part_specs_by_filter_args& obj); }; class ThriftHiveMetastore_get_part_specs_by_filter_pargs { public: - static const char* ascii_fingerprint; // = "194A357BC9EE908DC4763D0A5147760A"; - static const uint8_t binary_fingerprint[16]; // = {0x19,0x4A,0x35,0x7B,0xC9,0xEE,0x90,0x8D,0xC4,0x76,0x3D,0x0A,0x51,0x47,0x76,0x0A}; + virtual ~ThriftHiveMetastore_get_part_specs_by_filter_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_part_specs_by_filter_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::string* filter; @@ -8643,39 +8405,40 @@ class ThriftHiveMetastore_get_part_specs_by_filter_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_part_specs_by_filter_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_part_specs_by_filter_result__isset { _ThriftHiveMetastore_get_part_specs_by_filter_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_part_specs_by_filter_result__isset; class ThriftHiveMetastore_get_part_specs_by_filter_result { public: - static const char* ascii_fingerprint; // = "834C6ED9007DE3A504DF5B1F3BBEC56E"; - static const uint8_t binary_fingerprint[16]; // = {0x83,0x4C,0x6E,0xD9,0x00,0x7D,0xE3,0xA5,0x04,0xDF,0x5B,0x1F,0x3B,0xBE,0xC5,0x6E}; - - ThriftHiveMetastore_get_part_specs_by_filter_result(const ThriftHiveMetastore_get_part_specs_by_filter_result&); - ThriftHiveMetastore_get_part_specs_by_filter_result& operator=(const ThriftHiveMetastore_get_part_specs_by_filter_result&); ThriftHiveMetastore_get_part_specs_by_filter_result() { } - virtual ~ThriftHiveMetastore_get_part_specs_by_filter_result() throw(); + virtual ~ThriftHiveMetastore_get_part_specs_by_filter_result() throw() {} + std::vector success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_part_specs_by_filter_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_part_specs_by_filter_result & rhs) const { @@ -8696,24 +8459,21 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_part_specs_by_filter_result& obj); }; typedef struct _ThriftHiveMetastore_get_part_specs_by_filter_presult__isset { _ThriftHiveMetastore_get_part_specs_by_filter_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_part_specs_by_filter_presult__isset; class ThriftHiveMetastore_get_part_specs_by_filter_presult { public: - static const char* ascii_fingerprint; // = "834C6ED9007DE3A504DF5B1F3BBEC56E"; - static const uint8_t binary_fingerprint[16]; // = {0x83,0x4C,0x6E,0xD9,0x00,0x7D,0xE3,0xA5,0x04,0xDF,0x5B,0x1F,0x3B,0xBE,0xC5,0x6E}; + virtual ~ThriftHiveMetastore_get_part_specs_by_filter_presult() throw() {} - virtual ~ThriftHiveMetastore_get_part_specs_by_filter_presult() throw(); std::vector * success; MetaException o1; NoSuchObjectException o2; @@ -8722,31 +8482,28 @@ class ThriftHiveMetastore_get_part_specs_by_filter_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_part_specs_by_filter_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_by_expr_args__isset { _ThriftHiveMetastore_get_partitions_by_expr_args__isset() : req(false) {} - bool req :1; + bool req; } _ThriftHiveMetastore_get_partitions_by_expr_args__isset; class ThriftHiveMetastore_get_partitions_by_expr_args { public: - static const char* ascii_fingerprint; // = "56414E62F1C6E6E2663E4A4ED377A9A3"; - static const uint8_t binary_fingerprint[16]; // = {0x56,0x41,0x4E,0x62,0xF1,0xC6,0xE6,0xE2,0x66,0x3E,0x4A,0x4E,0xD3,0x77,0xA9,0xA3}; - - ThriftHiveMetastore_get_partitions_by_expr_args(const ThriftHiveMetastore_get_partitions_by_expr_args&); - ThriftHiveMetastore_get_partitions_by_expr_args& operator=(const ThriftHiveMetastore_get_partitions_by_expr_args&); ThriftHiveMetastore_get_partitions_by_expr_args() { } - virtual ~ThriftHiveMetastore_get_partitions_by_expr_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_expr_args() throw() {} + PartitionsByExprRequest req; _ThriftHiveMetastore_get_partitions_by_expr_args__isset __isset; - void __set_req(const PartitionsByExprRequest& val); + void __set_req(const PartitionsByExprRequest& val) { + req = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_by_expr_args & rhs) const { @@ -8763,55 +8520,53 @@ class ThriftHiveMetastore_get_partitions_by_expr_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_by_expr_args& obj); }; class ThriftHiveMetastore_get_partitions_by_expr_pargs { public: - static const char* ascii_fingerprint; // = "56414E62F1C6E6E2663E4A4ED377A9A3"; - static const uint8_t binary_fingerprint[16]; // = {0x56,0x41,0x4E,0x62,0xF1,0xC6,0xE6,0xE2,0x66,0x3E,0x4A,0x4E,0xD3,0x77,0xA9,0xA3}; + virtual ~ThriftHiveMetastore_get_partitions_by_expr_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_by_expr_pargs() throw(); const PartitionsByExprRequest* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_by_expr_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_by_expr_result__isset { _ThriftHiveMetastore_get_partitions_by_expr_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_by_expr_result__isset; class ThriftHiveMetastore_get_partitions_by_expr_result { public: - static const char* ascii_fingerprint; // = "242F6F513EE9C5B2355CC78A01843831"; - static const uint8_t binary_fingerprint[16]; // = {0x24,0x2F,0x6F,0x51,0x3E,0xE9,0xC5,0xB2,0x35,0x5C,0xC7,0x8A,0x01,0x84,0x38,0x31}; - - ThriftHiveMetastore_get_partitions_by_expr_result(const ThriftHiveMetastore_get_partitions_by_expr_result&); - ThriftHiveMetastore_get_partitions_by_expr_result& operator=(const ThriftHiveMetastore_get_partitions_by_expr_result&); ThriftHiveMetastore_get_partitions_by_expr_result() { } - virtual ~ThriftHiveMetastore_get_partitions_by_expr_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_expr_result() throw() {} + PartitionsByExprResult success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partitions_by_expr_result__isset __isset; - void __set_success(const PartitionsByExprResult& val); + void __set_success(const PartitionsByExprResult& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_by_expr_result & rhs) const { @@ -8832,24 +8587,21 @@ class ThriftHiveMetastore_get_partitions_by_expr_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_by_expr_result& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_by_expr_presult__isset { _ThriftHiveMetastore_get_partitions_by_expr_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_by_expr_presult__isset; class ThriftHiveMetastore_get_partitions_by_expr_presult { public: - static const char* ascii_fingerprint; // = "242F6F513EE9C5B2355CC78A01843831"; - static const uint8_t binary_fingerprint[16]; // = {0x24,0x2F,0x6F,0x51,0x3E,0xE9,0xC5,0xB2,0x35,0x5C,0xC7,0x8A,0x01,0x84,0x38,0x31}; + virtual ~ThriftHiveMetastore_get_partitions_by_expr_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_by_expr_presult() throw(); PartitionsByExprResult* success; MetaException o1; NoSuchObjectException o2; @@ -8858,39 +8610,195 @@ class ThriftHiveMetastore_get_partitions_by_expr_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_by_expr_presult& obj); +}; + +typedef struct _ThriftHiveMetastore_get_num_partitions_by_filter_args__isset { + _ThriftHiveMetastore_get_num_partitions_by_filter_args__isset() : db_name(false), tbl_name(false), filter(false), max_parts(true) {} + bool db_name; + bool tbl_name; + bool filter; + bool max_parts; +} _ThriftHiveMetastore_get_num_partitions_by_filter_args__isset; + +class ThriftHiveMetastore_get_num_partitions_by_filter_args { + public: + + ThriftHiveMetastore_get_num_partitions_by_filter_args() : db_name(), tbl_name(), filter(), max_parts(-1) { + } + + virtual ~ThriftHiveMetastore_get_num_partitions_by_filter_args() throw() {} + + std::string db_name; + std::string tbl_name; + std::string filter; + int16_t max_parts; + + _ThriftHiveMetastore_get_num_partitions_by_filter_args__isset __isset; + + void __set_db_name(const std::string& val) { + db_name = val; + } + + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } + + void __set_filter(const std::string& val) { + filter = val; + } + + void __set_max_parts(const int16_t val) { + max_parts = val; + } + + bool operator == (const ThriftHiveMetastore_get_num_partitions_by_filter_args & rhs) const + { + if (!(db_name == rhs.db_name)) + return false; + if (!(tbl_name == rhs.tbl_name)) + return false; + if (!(filter == rhs.filter)) + return false; + if (!(max_parts == rhs.max_parts)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_num_partitions_by_filter_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_num_partitions_by_filter_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_num_partitions_by_filter_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_num_partitions_by_filter_pargs() throw() {} + + const std::string* db_name; + const std::string* tbl_name; + const std::string* filter; + const int16_t* max_parts; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_num_partitions_by_filter_result__isset { + _ThriftHiveMetastore_get_num_partitions_by_filter_result__isset() : success(false), o1(false), o2(false) {} + bool success; + bool o1; + bool o2; +} _ThriftHiveMetastore_get_num_partitions_by_filter_result__isset; + +class ThriftHiveMetastore_get_num_partitions_by_filter_result { + public: + + ThriftHiveMetastore_get_num_partitions_by_filter_result() : success(0) { + } + + virtual ~ThriftHiveMetastore_get_num_partitions_by_filter_result() throw() {} + + int32_t success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_num_partitions_by_filter_result__isset __isset; + + void __set_success(const int32_t val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } + + bool operator == (const ThriftHiveMetastore_get_num_partitions_by_filter_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_num_partitions_by_filter_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_num_partitions_by_filter_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_num_partitions_by_filter_presult__isset { + _ThriftHiveMetastore_get_num_partitions_by_filter_presult__isset() : success(false), o1(false), o2(false) {} + bool success; + bool o1; + bool o2; +} _ThriftHiveMetastore_get_num_partitions_by_filter_presult__isset; + +class ThriftHiveMetastore_get_num_partitions_by_filter_presult { + public: + + + virtual ~ThriftHiveMetastore_get_num_partitions_by_filter_presult() throw() {} + + int32_t* success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_num_partitions_by_filter_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + }; typedef struct _ThriftHiveMetastore_get_partitions_by_names_args__isset { _ThriftHiveMetastore_get_partitions_by_names_args__isset() : db_name(false), tbl_name(false), names(false) {} - bool db_name :1; - bool tbl_name :1; - bool names :1; + bool db_name; + bool tbl_name; + bool names; } _ThriftHiveMetastore_get_partitions_by_names_args__isset; class ThriftHiveMetastore_get_partitions_by_names_args { public: - static const char* ascii_fingerprint; // = "8E2AD6401E83558ECFD6A13D74DD0A3F"; - static const uint8_t binary_fingerprint[16]; // = {0x8E,0x2A,0xD6,0x40,0x1E,0x83,0x55,0x8E,0xCF,0xD6,0xA1,0x3D,0x74,0xDD,0x0A,0x3F}; - - ThriftHiveMetastore_get_partitions_by_names_args(const ThriftHiveMetastore_get_partitions_by_names_args&); - ThriftHiveMetastore_get_partitions_by_names_args& operator=(const ThriftHiveMetastore_get_partitions_by_names_args&); ThriftHiveMetastore_get_partitions_by_names_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_get_partitions_by_names_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_names_args() throw() {} + std::string db_name; std::string tbl_name; std::vector names; _ThriftHiveMetastore_get_partitions_by_names_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_names(const std::vector & val); + void __set_names(const std::vector & val) { + names = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_by_names_args & rhs) const { @@ -8911,57 +8819,55 @@ class ThriftHiveMetastore_get_partitions_by_names_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_by_names_args& obj); }; class ThriftHiveMetastore_get_partitions_by_names_pargs { public: - static const char* ascii_fingerprint; // = "8E2AD6401E83558ECFD6A13D74DD0A3F"; - static const uint8_t binary_fingerprint[16]; // = {0x8E,0x2A,0xD6,0x40,0x1E,0x83,0x55,0x8E,0xCF,0xD6,0xA1,0x3D,0x74,0xDD,0x0A,0x3F}; + virtual ~ThriftHiveMetastore_get_partitions_by_names_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_by_names_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::vector * names; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_by_names_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_by_names_result__isset { _ThriftHiveMetastore_get_partitions_by_names_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_by_names_result__isset; class ThriftHiveMetastore_get_partitions_by_names_result { public: - static const char* ascii_fingerprint; // = "148076CF62AE4011A584C2CA00E22295"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0x80,0x76,0xCF,0x62,0xAE,0x40,0x11,0xA5,0x84,0xC2,0xCA,0x00,0xE2,0x22,0x95}; - - ThriftHiveMetastore_get_partitions_by_names_result(const ThriftHiveMetastore_get_partitions_by_names_result&); - ThriftHiveMetastore_get_partitions_by_names_result& operator=(const ThriftHiveMetastore_get_partitions_by_names_result&); ThriftHiveMetastore_get_partitions_by_names_result() { } - virtual ~ThriftHiveMetastore_get_partitions_by_names_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_by_names_result() throw() {} + std::vector success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_partitions_by_names_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_by_names_result & rhs) const { @@ -8982,24 +8888,21 @@ class ThriftHiveMetastore_get_partitions_by_names_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_by_names_result& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_by_names_presult__isset { _ThriftHiveMetastore_get_partitions_by_names_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_by_names_presult__isset; class ThriftHiveMetastore_get_partitions_by_names_presult { public: - static const char* ascii_fingerprint; // = "148076CF62AE4011A584C2CA00E22295"; - static const uint8_t binary_fingerprint[16]; // = {0x14,0x80,0x76,0xCF,0x62,0xAE,0x40,0x11,0xA5,0x84,0xC2,0xCA,0x00,0xE2,0x22,0x95}; + virtual ~ThriftHiveMetastore_get_partitions_by_names_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_by_names_presult() throw(); std::vector * success; MetaException o1; NoSuchObjectException o2; @@ -9008,39 +8911,40 @@ class ThriftHiveMetastore_get_partitions_by_names_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_by_names_presult& obj); }; typedef struct _ThriftHiveMetastore_alter_partition_args__isset { _ThriftHiveMetastore_alter_partition_args__isset() : db_name(false), tbl_name(false), new_part(false) {} - bool db_name :1; - bool tbl_name :1; - bool new_part :1; + bool db_name; + bool tbl_name; + bool new_part; } _ThriftHiveMetastore_alter_partition_args__isset; class ThriftHiveMetastore_alter_partition_args { public: - static const char* ascii_fingerprint; // = "7B108A31A32515A46E0A4575C730F980"; - static const uint8_t binary_fingerprint[16]; // = {0x7B,0x10,0x8A,0x31,0xA3,0x25,0x15,0xA4,0x6E,0x0A,0x45,0x75,0xC7,0x30,0xF9,0x80}; - - ThriftHiveMetastore_alter_partition_args(const ThriftHiveMetastore_alter_partition_args&); - ThriftHiveMetastore_alter_partition_args& operator=(const ThriftHiveMetastore_alter_partition_args&); ThriftHiveMetastore_alter_partition_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_alter_partition_args() throw(); + virtual ~ThriftHiveMetastore_alter_partition_args() throw() {} + std::string db_name; std::string tbl_name; Partition new_part; _ThriftHiveMetastore_alter_partition_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_new_part(const Partition& val); + void __set_new_part(const Partition& val) { + new_part = val; + } bool operator == (const ThriftHiveMetastore_alter_partition_args & rhs) const { @@ -9061,53 +8965,49 @@ class ThriftHiveMetastore_alter_partition_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_partition_args& obj); }; class ThriftHiveMetastore_alter_partition_pargs { public: - static const char* ascii_fingerprint; // = "7B108A31A32515A46E0A4575C730F980"; - static const uint8_t binary_fingerprint[16]; // = {0x7B,0x10,0x8A,0x31,0xA3,0x25,0x15,0xA4,0x6E,0x0A,0x45,0x75,0xC7,0x30,0xF9,0x80}; + virtual ~ThriftHiveMetastore_alter_partition_pargs() throw() {} - virtual ~ThriftHiveMetastore_alter_partition_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const Partition* new_part; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_partition_pargs& obj); }; typedef struct _ThriftHiveMetastore_alter_partition_result__isset { _ThriftHiveMetastore_alter_partition_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_partition_result__isset; class ThriftHiveMetastore_alter_partition_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_alter_partition_result(const ThriftHiveMetastore_alter_partition_result&); - ThriftHiveMetastore_alter_partition_result& operator=(const ThriftHiveMetastore_alter_partition_result&); ThriftHiveMetastore_alter_partition_result() { } - virtual ~ThriftHiveMetastore_alter_partition_result() throw(); + virtual ~ThriftHiveMetastore_alter_partition_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_partition_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_partition_result & rhs) const { @@ -9126,23 +9026,20 @@ class ThriftHiveMetastore_alter_partition_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_partition_result& obj); }; typedef struct _ThriftHiveMetastore_alter_partition_presult__isset { _ThriftHiveMetastore_alter_partition_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_partition_presult__isset; class ThriftHiveMetastore_alter_partition_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_alter_partition_presult() throw() {} - virtual ~ThriftHiveMetastore_alter_partition_presult() throw(); InvalidOperationException o1; MetaException o2; @@ -9150,39 +9047,40 @@ class ThriftHiveMetastore_alter_partition_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_partition_presult& obj); }; typedef struct _ThriftHiveMetastore_alter_partitions_args__isset { _ThriftHiveMetastore_alter_partitions_args__isset() : db_name(false), tbl_name(false), new_parts(false) {} - bool db_name :1; - bool tbl_name :1; - bool new_parts :1; + bool db_name; + bool tbl_name; + bool new_parts; } _ThriftHiveMetastore_alter_partitions_args__isset; class ThriftHiveMetastore_alter_partitions_args { public: - static const char* ascii_fingerprint; // = "38BD172057C9BB46C5A3BA10DB12F25D"; - static const uint8_t binary_fingerprint[16]; // = {0x38,0xBD,0x17,0x20,0x57,0xC9,0xBB,0x46,0xC5,0xA3,0xBA,0x10,0xDB,0x12,0xF2,0x5D}; - - ThriftHiveMetastore_alter_partitions_args(const ThriftHiveMetastore_alter_partitions_args&); - ThriftHiveMetastore_alter_partitions_args& operator=(const ThriftHiveMetastore_alter_partitions_args&); ThriftHiveMetastore_alter_partitions_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_alter_partitions_args() throw(); + virtual ~ThriftHiveMetastore_alter_partitions_args() throw() {} + std::string db_name; std::string tbl_name; std::vector new_parts; _ThriftHiveMetastore_alter_partitions_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_new_parts(const std::vector & val); + void __set_new_parts(const std::vector & val) { + new_parts = val; + } bool operator == (const ThriftHiveMetastore_alter_partitions_args & rhs) const { @@ -9203,53 +9101,49 @@ class ThriftHiveMetastore_alter_partitions_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_partitions_args& obj); }; class ThriftHiveMetastore_alter_partitions_pargs { public: - static const char* ascii_fingerprint; // = "38BD172057C9BB46C5A3BA10DB12F25D"; - static const uint8_t binary_fingerprint[16]; // = {0x38,0xBD,0x17,0x20,0x57,0xC9,0xBB,0x46,0xC5,0xA3,0xBA,0x10,0xDB,0x12,0xF2,0x5D}; + virtual ~ThriftHiveMetastore_alter_partitions_pargs() throw() {} - virtual ~ThriftHiveMetastore_alter_partitions_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::vector * new_parts; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_partitions_pargs& obj); }; typedef struct _ThriftHiveMetastore_alter_partitions_result__isset { _ThriftHiveMetastore_alter_partitions_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_partitions_result__isset; class ThriftHiveMetastore_alter_partitions_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_alter_partitions_result(const ThriftHiveMetastore_alter_partitions_result&); - ThriftHiveMetastore_alter_partitions_result& operator=(const ThriftHiveMetastore_alter_partitions_result&); ThriftHiveMetastore_alter_partitions_result() { } - virtual ~ThriftHiveMetastore_alter_partitions_result() throw(); + virtual ~ThriftHiveMetastore_alter_partitions_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_partitions_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_partitions_result & rhs) const { @@ -9268,23 +9162,20 @@ class ThriftHiveMetastore_alter_partitions_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_partitions_result& obj); }; typedef struct _ThriftHiveMetastore_alter_partitions_presult__isset { _ThriftHiveMetastore_alter_partitions_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_partitions_presult__isset; class ThriftHiveMetastore_alter_partitions_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_alter_partitions_presult() throw() {} - virtual ~ThriftHiveMetastore_alter_partitions_presult() throw(); InvalidOperationException o1; MetaException o2; @@ -9292,29 +9183,24 @@ class ThriftHiveMetastore_alter_partitions_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_partitions_presult& obj); }; typedef struct _ThriftHiveMetastore_alter_partition_with_environment_context_args__isset { _ThriftHiveMetastore_alter_partition_with_environment_context_args__isset() : db_name(false), tbl_name(false), new_part(false), environment_context(false) {} - bool db_name :1; - bool tbl_name :1; - bool new_part :1; - bool environment_context :1; + bool db_name; + bool tbl_name; + bool new_part; + bool environment_context; } _ThriftHiveMetastore_alter_partition_with_environment_context_args__isset; class ThriftHiveMetastore_alter_partition_with_environment_context_args { public: - static const char* ascii_fingerprint; // = "9D0F8EA60BA9E363E0CE891CDBC419D0"; - static const uint8_t binary_fingerprint[16]; // = {0x9D,0x0F,0x8E,0xA6,0x0B,0xA9,0xE3,0x63,0xE0,0xCE,0x89,0x1C,0xDB,0xC4,0x19,0xD0}; - - ThriftHiveMetastore_alter_partition_with_environment_context_args(const ThriftHiveMetastore_alter_partition_with_environment_context_args&); - ThriftHiveMetastore_alter_partition_with_environment_context_args& operator=(const ThriftHiveMetastore_alter_partition_with_environment_context_args&); ThriftHiveMetastore_alter_partition_with_environment_context_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_args() throw(); + virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_args() throw() {} + std::string db_name; std::string tbl_name; Partition new_part; @@ -9322,13 +9208,21 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_args { _ThriftHiveMetastore_alter_partition_with_environment_context_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_new_part(const Partition& val); + void __set_new_part(const Partition& val) { + new_part = val; + } - void __set_environment_context(const EnvironmentContext& val); + void __set_environment_context(const EnvironmentContext& val) { + environment_context = val; + } bool operator == (const ThriftHiveMetastore_alter_partition_with_environment_context_args & rhs) const { @@ -9351,18 +9245,15 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_partition_with_environment_context_args& obj); }; class ThriftHiveMetastore_alter_partition_with_environment_context_pargs { public: - static const char* ascii_fingerprint; // = "9D0F8EA60BA9E363E0CE891CDBC419D0"; - static const uint8_t binary_fingerprint[16]; // = {0x9D,0x0F,0x8E,0xA6,0x0B,0xA9,0xE3,0x63,0xE0,0xCE,0x89,0x1C,0xDB,0xC4,0x19,0xD0}; + virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_pargs() throw() {} - virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const Partition* new_part; @@ -9370,35 +9261,34 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_partition_with_environment_context_pargs& obj); }; typedef struct _ThriftHiveMetastore_alter_partition_with_environment_context_result__isset { _ThriftHiveMetastore_alter_partition_with_environment_context_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_partition_with_environment_context_result__isset; class ThriftHiveMetastore_alter_partition_with_environment_context_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_alter_partition_with_environment_context_result(const ThriftHiveMetastore_alter_partition_with_environment_context_result&); - ThriftHiveMetastore_alter_partition_with_environment_context_result& operator=(const ThriftHiveMetastore_alter_partition_with_environment_context_result&); ThriftHiveMetastore_alter_partition_with_environment_context_result() { } - virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_result() throw(); + virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_partition_with_environment_context_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_partition_with_environment_context_result & rhs) const { @@ -9417,23 +9307,20 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_partition_with_environment_context_result& obj); }; typedef struct _ThriftHiveMetastore_alter_partition_with_environment_context_presult__isset { _ThriftHiveMetastore_alter_partition_with_environment_context_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_partition_with_environment_context_presult__isset; class ThriftHiveMetastore_alter_partition_with_environment_context_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_presult() throw() {} - virtual ~ThriftHiveMetastore_alter_partition_with_environment_context_presult() throw(); InvalidOperationException o1; MetaException o2; @@ -9441,29 +9328,24 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_partition_with_environment_context_presult& obj); }; typedef struct _ThriftHiveMetastore_rename_partition_args__isset { _ThriftHiveMetastore_rename_partition_args__isset() : db_name(false), tbl_name(false), part_vals(false), new_part(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool new_part :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool new_part; } _ThriftHiveMetastore_rename_partition_args__isset; class ThriftHiveMetastore_rename_partition_args { public: - static const char* ascii_fingerprint; // = "88B4E10590F3A92685C99DF7F8284437"; - static const uint8_t binary_fingerprint[16]; // = {0x88,0xB4,0xE1,0x05,0x90,0xF3,0xA9,0x26,0x85,0xC9,0x9D,0xF7,0xF8,0x28,0x44,0x37}; - - ThriftHiveMetastore_rename_partition_args(const ThriftHiveMetastore_rename_partition_args&); - ThriftHiveMetastore_rename_partition_args& operator=(const ThriftHiveMetastore_rename_partition_args&); ThriftHiveMetastore_rename_partition_args() : db_name(), tbl_name() { } - virtual ~ThriftHiveMetastore_rename_partition_args() throw(); + virtual ~ThriftHiveMetastore_rename_partition_args() throw() {} + std::string db_name; std::string tbl_name; std::vector part_vals; @@ -9471,13 +9353,21 @@ class ThriftHiveMetastore_rename_partition_args { _ThriftHiveMetastore_rename_partition_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_new_part(const Partition& val); + void __set_new_part(const Partition& val) { + new_part = val; + } bool operator == (const ThriftHiveMetastore_rename_partition_args & rhs) const { @@ -9500,18 +9390,15 @@ class ThriftHiveMetastore_rename_partition_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_rename_partition_args& obj); }; class ThriftHiveMetastore_rename_partition_pargs { public: - static const char* ascii_fingerprint; // = "88B4E10590F3A92685C99DF7F8284437"; - static const uint8_t binary_fingerprint[16]; // = {0x88,0xB4,0xE1,0x05,0x90,0xF3,0xA9,0x26,0x85,0xC9,0x9D,0xF7,0xF8,0x28,0x44,0x37}; + virtual ~ThriftHiveMetastore_rename_partition_pargs() throw() {} - virtual ~ThriftHiveMetastore_rename_partition_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::vector * part_vals; @@ -9519,35 +9406,34 @@ class ThriftHiveMetastore_rename_partition_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_rename_partition_pargs& obj); }; typedef struct _ThriftHiveMetastore_rename_partition_result__isset { _ThriftHiveMetastore_rename_partition_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_rename_partition_result__isset; class ThriftHiveMetastore_rename_partition_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_rename_partition_result(const ThriftHiveMetastore_rename_partition_result&); - ThriftHiveMetastore_rename_partition_result& operator=(const ThriftHiveMetastore_rename_partition_result&); ThriftHiveMetastore_rename_partition_result() { } - virtual ~ThriftHiveMetastore_rename_partition_result() throw(); + virtual ~ThriftHiveMetastore_rename_partition_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_rename_partition_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_rename_partition_result & rhs) const { @@ -9566,23 +9452,20 @@ class ThriftHiveMetastore_rename_partition_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_rename_partition_result& obj); }; typedef struct _ThriftHiveMetastore_rename_partition_presult__isset { _ThriftHiveMetastore_rename_partition_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_rename_partition_presult__isset; class ThriftHiveMetastore_rename_partition_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_rename_partition_presult() throw() {} - virtual ~ThriftHiveMetastore_rename_partition_presult() throw(); InvalidOperationException o1; MetaException o2; @@ -9590,35 +9473,34 @@ class ThriftHiveMetastore_rename_partition_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_rename_partition_presult& obj); }; typedef struct _ThriftHiveMetastore_partition_name_has_valid_characters_args__isset { _ThriftHiveMetastore_partition_name_has_valid_characters_args__isset() : part_vals(false), throw_exception(false) {} - bool part_vals :1; - bool throw_exception :1; + bool part_vals; + bool throw_exception; } _ThriftHiveMetastore_partition_name_has_valid_characters_args__isset; class ThriftHiveMetastore_partition_name_has_valid_characters_args { public: - static const char* ascii_fingerprint; // = "91B6D52A7BB8CAC890FB4C69B1CF4C4E"; - static const uint8_t binary_fingerprint[16]; // = {0x91,0xB6,0xD5,0x2A,0x7B,0xB8,0xCA,0xC8,0x90,0xFB,0x4C,0x69,0xB1,0xCF,0x4C,0x4E}; - - ThriftHiveMetastore_partition_name_has_valid_characters_args(const ThriftHiveMetastore_partition_name_has_valid_characters_args&); - ThriftHiveMetastore_partition_name_has_valid_characters_args& operator=(const ThriftHiveMetastore_partition_name_has_valid_characters_args&); ThriftHiveMetastore_partition_name_has_valid_characters_args() : throw_exception(0) { } - virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_args() throw(); + virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_args() throw() {} + std::vector part_vals; bool throw_exception; _ThriftHiveMetastore_partition_name_has_valid_characters_args__isset __isset; - void __set_part_vals(const std::vector & val); + void __set_part_vals(const std::vector & val) { + part_vals = val; + } - void __set_throw_exception(const bool val); + void __set_throw_exception(const bool val) { + throw_exception = val; + } bool operator == (const ThriftHiveMetastore_partition_name_has_valid_characters_args & rhs) const { @@ -9637,52 +9519,48 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_partition_name_has_valid_characters_args& obj); }; class ThriftHiveMetastore_partition_name_has_valid_characters_pargs { public: - static const char* ascii_fingerprint; // = "91B6D52A7BB8CAC890FB4C69B1CF4C4E"; - static const uint8_t binary_fingerprint[16]; // = {0x91,0xB6,0xD5,0x2A,0x7B,0xB8,0xCA,0xC8,0x90,0xFB,0x4C,0x69,0xB1,0xCF,0x4C,0x4E}; + virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_pargs() throw() {} - virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_pargs() throw(); const std::vector * part_vals; const bool* throw_exception; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_partition_name_has_valid_characters_pargs& obj); }; typedef struct _ThriftHiveMetastore_partition_name_has_valid_characters_result__isset { _ThriftHiveMetastore_partition_name_has_valid_characters_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_partition_name_has_valid_characters_result__isset; class ThriftHiveMetastore_partition_name_has_valid_characters_result { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; - - ThriftHiveMetastore_partition_name_has_valid_characters_result(const ThriftHiveMetastore_partition_name_has_valid_characters_result&); - ThriftHiveMetastore_partition_name_has_valid_characters_result& operator=(const ThriftHiveMetastore_partition_name_has_valid_characters_result&); ThriftHiveMetastore_partition_name_has_valid_characters_result() : success(0) { } - virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_result() throw(); + virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_partition_name_has_valid_characters_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_partition_name_has_valid_characters_result & rhs) const { @@ -9701,23 +9579,20 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_partition_name_has_valid_characters_result& obj); }; typedef struct _ThriftHiveMetastore_partition_name_has_valid_characters_presult__isset { _ThriftHiveMetastore_partition_name_has_valid_characters_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_partition_name_has_valid_characters_presult__isset; class ThriftHiveMetastore_partition_name_has_valid_characters_presult { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; + virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_presult() throw() {} - virtual ~ThriftHiveMetastore_partition_name_has_valid_characters_presult() throw(); bool* success; MetaException o1; @@ -9725,35 +9600,34 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_partition_name_has_valid_characters_presult& obj); }; typedef struct _ThriftHiveMetastore_get_config_value_args__isset { _ThriftHiveMetastore_get_config_value_args__isset() : name(false), defaultValue(false) {} - bool name :1; - bool defaultValue :1; + bool name; + bool defaultValue; } _ThriftHiveMetastore_get_config_value_args__isset; class ThriftHiveMetastore_get_config_value_args { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; - - ThriftHiveMetastore_get_config_value_args(const ThriftHiveMetastore_get_config_value_args&); - ThriftHiveMetastore_get_config_value_args& operator=(const ThriftHiveMetastore_get_config_value_args&); ThriftHiveMetastore_get_config_value_args() : name(), defaultValue() { } - virtual ~ThriftHiveMetastore_get_config_value_args() throw(); + virtual ~ThriftHiveMetastore_get_config_value_args() throw() {} + std::string name; std::string defaultValue; _ThriftHiveMetastore_get_config_value_args__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_defaultValue(const std::string& val); + void __set_defaultValue(const std::string& val) { + defaultValue = val; + } bool operator == (const ThriftHiveMetastore_get_config_value_args & rhs) const { @@ -9772,52 +9646,48 @@ class ThriftHiveMetastore_get_config_value_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_config_value_args& obj); }; class ThriftHiveMetastore_get_config_value_pargs { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + virtual ~ThriftHiveMetastore_get_config_value_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_config_value_pargs() throw(); const std::string* name; const std::string* defaultValue; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_config_value_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_config_value_result__isset { _ThriftHiveMetastore_get_config_value_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_config_value_result__isset; class ThriftHiveMetastore_get_config_value_result { public: - static const char* ascii_fingerprint; // = "FB3D66E547AE5D7F8EB046D752ECF5C1"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3D,0x66,0xE5,0x47,0xAE,0x5D,0x7F,0x8E,0xB0,0x46,0xD7,0x52,0xEC,0xF5,0xC1}; - - ThriftHiveMetastore_get_config_value_result(const ThriftHiveMetastore_get_config_value_result&); - ThriftHiveMetastore_get_config_value_result& operator=(const ThriftHiveMetastore_get_config_value_result&); ThriftHiveMetastore_get_config_value_result() : success() { } - virtual ~ThriftHiveMetastore_get_config_value_result() throw(); + virtual ~ThriftHiveMetastore_get_config_value_result() throw() {} + std::string success; ConfigValSecurityException o1; _ThriftHiveMetastore_get_config_value_result__isset __isset; - void __set_success(const std::string& val); + void __set_success(const std::string& val) { + success = val; + } - void __set_o1(const ConfigValSecurityException& val); + void __set_o1(const ConfigValSecurityException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_config_value_result & rhs) const { @@ -9836,23 +9706,20 @@ class ThriftHiveMetastore_get_config_value_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_config_value_result& obj); }; typedef struct _ThriftHiveMetastore_get_config_value_presult__isset { _ThriftHiveMetastore_get_config_value_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_config_value_presult__isset; class ThriftHiveMetastore_get_config_value_presult { public: - static const char* ascii_fingerprint; // = "FB3D66E547AE5D7F8EB046D752ECF5C1"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3D,0x66,0xE5,0x47,0xAE,0x5D,0x7F,0x8E,0xB0,0x46,0xD7,0x52,0xEC,0xF5,0xC1}; + virtual ~ThriftHiveMetastore_get_config_value_presult() throw() {} - virtual ~ThriftHiveMetastore_get_config_value_presult() throw(); std::string* success; ConfigValSecurityException o1; @@ -9860,31 +9727,28 @@ class ThriftHiveMetastore_get_config_value_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_config_value_presult& obj); }; typedef struct _ThriftHiveMetastore_partition_name_to_vals_args__isset { _ThriftHiveMetastore_partition_name_to_vals_args__isset() : part_name(false) {} - bool part_name :1; + bool part_name; } _ThriftHiveMetastore_partition_name_to_vals_args__isset; class ThriftHiveMetastore_partition_name_to_vals_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - ThriftHiveMetastore_partition_name_to_vals_args(const ThriftHiveMetastore_partition_name_to_vals_args&); - ThriftHiveMetastore_partition_name_to_vals_args& operator=(const ThriftHiveMetastore_partition_name_to_vals_args&); ThriftHiveMetastore_partition_name_to_vals_args() : part_name() { } - virtual ~ThriftHiveMetastore_partition_name_to_vals_args() throw(); + virtual ~ThriftHiveMetastore_partition_name_to_vals_args() throw() {} + std::string part_name; _ThriftHiveMetastore_partition_name_to_vals_args__isset __isset; - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } bool operator == (const ThriftHiveMetastore_partition_name_to_vals_args & rhs) const { @@ -9901,51 +9765,47 @@ class ThriftHiveMetastore_partition_name_to_vals_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_partition_name_to_vals_args& obj); }; class ThriftHiveMetastore_partition_name_to_vals_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + virtual ~ThriftHiveMetastore_partition_name_to_vals_pargs() throw() {} - virtual ~ThriftHiveMetastore_partition_name_to_vals_pargs() throw(); const std::string* part_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_partition_name_to_vals_pargs& obj); }; typedef struct _ThriftHiveMetastore_partition_name_to_vals_result__isset { _ThriftHiveMetastore_partition_name_to_vals_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_partition_name_to_vals_result__isset; class ThriftHiveMetastore_partition_name_to_vals_result { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; - - ThriftHiveMetastore_partition_name_to_vals_result(const ThriftHiveMetastore_partition_name_to_vals_result&); - ThriftHiveMetastore_partition_name_to_vals_result& operator=(const ThriftHiveMetastore_partition_name_to_vals_result&); ThriftHiveMetastore_partition_name_to_vals_result() { } - virtual ~ThriftHiveMetastore_partition_name_to_vals_result() throw(); + virtual ~ThriftHiveMetastore_partition_name_to_vals_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_partition_name_to_vals_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_partition_name_to_vals_result & rhs) const { @@ -9964,23 +9824,20 @@ class ThriftHiveMetastore_partition_name_to_vals_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_partition_name_to_vals_result& obj); }; typedef struct _ThriftHiveMetastore_partition_name_to_vals_presult__isset { _ThriftHiveMetastore_partition_name_to_vals_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_partition_name_to_vals_presult__isset; class ThriftHiveMetastore_partition_name_to_vals_presult { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; + virtual ~ThriftHiveMetastore_partition_name_to_vals_presult() throw() {} - virtual ~ThriftHiveMetastore_partition_name_to_vals_presult() throw(); std::vector * success; MetaException o1; @@ -9988,31 +9845,28 @@ class ThriftHiveMetastore_partition_name_to_vals_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_partition_name_to_vals_presult& obj); }; typedef struct _ThriftHiveMetastore_partition_name_to_spec_args__isset { _ThriftHiveMetastore_partition_name_to_spec_args__isset() : part_name(false) {} - bool part_name :1; + bool part_name; } _ThriftHiveMetastore_partition_name_to_spec_args__isset; class ThriftHiveMetastore_partition_name_to_spec_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - ThriftHiveMetastore_partition_name_to_spec_args(const ThriftHiveMetastore_partition_name_to_spec_args&); - ThriftHiveMetastore_partition_name_to_spec_args& operator=(const ThriftHiveMetastore_partition_name_to_spec_args&); ThriftHiveMetastore_partition_name_to_spec_args() : part_name() { } - virtual ~ThriftHiveMetastore_partition_name_to_spec_args() throw(); + virtual ~ThriftHiveMetastore_partition_name_to_spec_args() throw() {} + std::string part_name; _ThriftHiveMetastore_partition_name_to_spec_args__isset __isset; - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } bool operator == (const ThriftHiveMetastore_partition_name_to_spec_args & rhs) const { @@ -10029,51 +9883,47 @@ class ThriftHiveMetastore_partition_name_to_spec_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_partition_name_to_spec_args& obj); }; class ThriftHiveMetastore_partition_name_to_spec_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + virtual ~ThriftHiveMetastore_partition_name_to_spec_pargs() throw() {} - virtual ~ThriftHiveMetastore_partition_name_to_spec_pargs() throw(); const std::string* part_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_partition_name_to_spec_pargs& obj); }; typedef struct _ThriftHiveMetastore_partition_name_to_spec_result__isset { _ThriftHiveMetastore_partition_name_to_spec_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_partition_name_to_spec_result__isset; class ThriftHiveMetastore_partition_name_to_spec_result { public: - static const char* ascii_fingerprint; // = "4E721C6D80A641BBC78B7A6A96E9C5C8"; - static const uint8_t binary_fingerprint[16]; // = {0x4E,0x72,0x1C,0x6D,0x80,0xA6,0x41,0xBB,0xC7,0x8B,0x7A,0x6A,0x96,0xE9,0xC5,0xC8}; - - ThriftHiveMetastore_partition_name_to_spec_result(const ThriftHiveMetastore_partition_name_to_spec_result&); - ThriftHiveMetastore_partition_name_to_spec_result& operator=(const ThriftHiveMetastore_partition_name_to_spec_result&); ThriftHiveMetastore_partition_name_to_spec_result() { } - virtual ~ThriftHiveMetastore_partition_name_to_spec_result() throw(); + virtual ~ThriftHiveMetastore_partition_name_to_spec_result() throw() {} + std::map success; MetaException o1; _ThriftHiveMetastore_partition_name_to_spec_result__isset __isset; - void __set_success(const std::map & val); + void __set_success(const std::map & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_partition_name_to_spec_result & rhs) const { @@ -10092,23 +9942,20 @@ class ThriftHiveMetastore_partition_name_to_spec_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_partition_name_to_spec_result& obj); }; typedef struct _ThriftHiveMetastore_partition_name_to_spec_presult__isset { _ThriftHiveMetastore_partition_name_to_spec_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_partition_name_to_spec_presult__isset; class ThriftHiveMetastore_partition_name_to_spec_presult { public: - static const char* ascii_fingerprint; // = "4E721C6D80A641BBC78B7A6A96E9C5C8"; - static const uint8_t binary_fingerprint[16]; // = {0x4E,0x72,0x1C,0x6D,0x80,0xA6,0x41,0xBB,0xC7,0x8B,0x7A,0x6A,0x96,0xE9,0xC5,0xC8}; + virtual ~ThriftHiveMetastore_partition_name_to_spec_presult() throw() {} - virtual ~ThriftHiveMetastore_partition_name_to_spec_presult() throw(); std::map * success; MetaException o1; @@ -10116,29 +9963,24 @@ class ThriftHiveMetastore_partition_name_to_spec_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_partition_name_to_spec_presult& obj); }; typedef struct _ThriftHiveMetastore_markPartitionForEvent_args__isset { _ThriftHiveMetastore_markPartitionForEvent_args__isset() : db_name(false), tbl_name(false), part_vals(false), eventType(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool eventType :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool eventType; } _ThriftHiveMetastore_markPartitionForEvent_args__isset; class ThriftHiveMetastore_markPartitionForEvent_args { public: - static const char* ascii_fingerprint; // = "55DED7525D4B4E203D2060AF66F31D5B"; - static const uint8_t binary_fingerprint[16]; // = {0x55,0xDE,0xD7,0x52,0x5D,0x4B,0x4E,0x20,0x3D,0x20,0x60,0xAF,0x66,0xF3,0x1D,0x5B}; - - ThriftHiveMetastore_markPartitionForEvent_args(const ThriftHiveMetastore_markPartitionForEvent_args&); - ThriftHiveMetastore_markPartitionForEvent_args& operator=(const ThriftHiveMetastore_markPartitionForEvent_args&); ThriftHiveMetastore_markPartitionForEvent_args() : db_name(), tbl_name(), eventType((PartitionEventType::type)0) { } - virtual ~ThriftHiveMetastore_markPartitionForEvent_args() throw(); + virtual ~ThriftHiveMetastore_markPartitionForEvent_args() throw() {} + std::string db_name; std::string tbl_name; std::map part_vals; @@ -10146,13 +9988,21 @@ class ThriftHiveMetastore_markPartitionForEvent_args { _ThriftHiveMetastore_markPartitionForEvent_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::map & val); + void __set_part_vals(const std::map & val) { + part_vals = val; + } - void __set_eventType(const PartitionEventType::type val); + void __set_eventType(const PartitionEventType::type val) { + eventType = val; + } bool operator == (const ThriftHiveMetastore_markPartitionForEvent_args & rhs) const { @@ -10175,18 +10025,15 @@ class ThriftHiveMetastore_markPartitionForEvent_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_markPartitionForEvent_args& obj); }; class ThriftHiveMetastore_markPartitionForEvent_pargs { public: - static const char* ascii_fingerprint; // = "55DED7525D4B4E203D2060AF66F31D5B"; - static const uint8_t binary_fingerprint[16]; // = {0x55,0xDE,0xD7,0x52,0x5D,0x4B,0x4E,0x20,0x3D,0x20,0x60,0xAF,0x66,0xF3,0x1D,0x5B}; + virtual ~ThriftHiveMetastore_markPartitionForEvent_pargs() throw() {} - virtual ~ThriftHiveMetastore_markPartitionForEvent_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::map * part_vals; @@ -10194,31 +10041,26 @@ class ThriftHiveMetastore_markPartitionForEvent_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_markPartitionForEvent_pargs& obj); }; typedef struct _ThriftHiveMetastore_markPartitionForEvent_result__isset { _ThriftHiveMetastore_markPartitionForEvent_result__isset() : o1(false), o2(false), o3(false), o4(false), o5(false), o6(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; - bool o5 :1; - bool o6 :1; + bool o1; + bool o2; + bool o3; + bool o4; + bool o5; + bool o6; } _ThriftHiveMetastore_markPartitionForEvent_result__isset; class ThriftHiveMetastore_markPartitionForEvent_result { public: - static const char* ascii_fingerprint; // = "0C100FB750BDB3340333F80C942B7F87"; - static const uint8_t binary_fingerprint[16]; // = {0x0C,0x10,0x0F,0xB7,0x50,0xBD,0xB3,0x34,0x03,0x33,0xF8,0x0C,0x94,0x2B,0x7F,0x87}; - - ThriftHiveMetastore_markPartitionForEvent_result(const ThriftHiveMetastore_markPartitionForEvent_result&); - ThriftHiveMetastore_markPartitionForEvent_result& operator=(const ThriftHiveMetastore_markPartitionForEvent_result&); ThriftHiveMetastore_markPartitionForEvent_result() { } - virtual ~ThriftHiveMetastore_markPartitionForEvent_result() throw(); + virtual ~ThriftHiveMetastore_markPartitionForEvent_result() throw() {} + MetaException o1; NoSuchObjectException o2; UnknownDBException o3; @@ -10228,17 +10070,29 @@ class ThriftHiveMetastore_markPartitionForEvent_result { _ThriftHiveMetastore_markPartitionForEvent_result__isset __isset; - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } - void __set_o4(const UnknownTableException& val); + void __set_o4(const UnknownTableException& val) { + o4 = val; + } - void __set_o5(const UnknownPartitionException& val); + void __set_o5(const UnknownPartitionException& val) { + o5 = val; + } - void __set_o6(const InvalidPartitionException& val); + void __set_o6(const InvalidPartitionException& val) { + o6 = val; + } bool operator == (const ThriftHiveMetastore_markPartitionForEvent_result & rhs) const { @@ -10265,27 +10119,24 @@ class ThriftHiveMetastore_markPartitionForEvent_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_markPartitionForEvent_result& obj); }; typedef struct _ThriftHiveMetastore_markPartitionForEvent_presult__isset { _ThriftHiveMetastore_markPartitionForEvent_presult__isset() : o1(false), o2(false), o3(false), o4(false), o5(false), o6(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; - bool o5 :1; - bool o6 :1; + bool o1; + bool o2; + bool o3; + bool o4; + bool o5; + bool o6; } _ThriftHiveMetastore_markPartitionForEvent_presult__isset; class ThriftHiveMetastore_markPartitionForEvent_presult { public: - static const char* ascii_fingerprint; // = "0C100FB750BDB3340333F80C942B7F87"; - static const uint8_t binary_fingerprint[16]; // = {0x0C,0x10,0x0F,0xB7,0x50,0xBD,0xB3,0x34,0x03,0x33,0xF8,0x0C,0x94,0x2B,0x7F,0x87}; + virtual ~ThriftHiveMetastore_markPartitionForEvent_presult() throw() {} - virtual ~ThriftHiveMetastore_markPartitionForEvent_presult() throw(); MetaException o1; NoSuchObjectException o2; UnknownDBException o3; @@ -10297,29 +10148,24 @@ class ThriftHiveMetastore_markPartitionForEvent_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_markPartitionForEvent_presult& obj); }; typedef struct _ThriftHiveMetastore_isPartitionMarkedForEvent_args__isset { _ThriftHiveMetastore_isPartitionMarkedForEvent_args__isset() : db_name(false), tbl_name(false), part_vals(false), eventType(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_vals :1; - bool eventType :1; + bool db_name; + bool tbl_name; + bool part_vals; + bool eventType; } _ThriftHiveMetastore_isPartitionMarkedForEvent_args__isset; class ThriftHiveMetastore_isPartitionMarkedForEvent_args { public: - static const char* ascii_fingerprint; // = "55DED7525D4B4E203D2060AF66F31D5B"; - static const uint8_t binary_fingerprint[16]; // = {0x55,0xDE,0xD7,0x52,0x5D,0x4B,0x4E,0x20,0x3D,0x20,0x60,0xAF,0x66,0xF3,0x1D,0x5B}; - - ThriftHiveMetastore_isPartitionMarkedForEvent_args(const ThriftHiveMetastore_isPartitionMarkedForEvent_args&); - ThriftHiveMetastore_isPartitionMarkedForEvent_args& operator=(const ThriftHiveMetastore_isPartitionMarkedForEvent_args&); ThriftHiveMetastore_isPartitionMarkedForEvent_args() : db_name(), tbl_name(), eventType((PartitionEventType::type)0) { } - virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_args() throw(); + virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_args() throw() {} + std::string db_name; std::string tbl_name; std::map part_vals; @@ -10327,13 +10173,21 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { _ThriftHiveMetastore_isPartitionMarkedForEvent_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_vals(const std::map & val); + void __set_part_vals(const std::map & val) { + part_vals = val; + } - void __set_eventType(const PartitionEventType::type val); + void __set_eventType(const PartitionEventType::type val) { + eventType = val; + } bool operator == (const ThriftHiveMetastore_isPartitionMarkedForEvent_args & rhs) const { @@ -10356,18 +10210,15 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_isPartitionMarkedForEvent_args& obj); }; class ThriftHiveMetastore_isPartitionMarkedForEvent_pargs { public: - static const char* ascii_fingerprint; // = "55DED7525D4B4E203D2060AF66F31D5B"; - static const uint8_t binary_fingerprint[16]; // = {0x55,0xDE,0xD7,0x52,0x5D,0x4B,0x4E,0x20,0x3D,0x20,0x60,0xAF,0x66,0xF3,0x1D,0x5B}; + virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_pargs() throw() {} - virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::map * part_vals; @@ -10375,32 +10226,27 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_isPartitionMarkedForEvent_pargs& obj); }; typedef struct _ThriftHiveMetastore_isPartitionMarkedForEvent_result__isset { _ThriftHiveMetastore_isPartitionMarkedForEvent_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false), o5(false), o6(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; - bool o5 :1; - bool o6 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; + bool o5; + bool o6; } _ThriftHiveMetastore_isPartitionMarkedForEvent_result__isset; class ThriftHiveMetastore_isPartitionMarkedForEvent_result { public: - static const char* ascii_fingerprint; // = "7F79FC02338E2C85C59D237CC3B0E1EB"; - static const uint8_t binary_fingerprint[16]; // = {0x7F,0x79,0xFC,0x02,0x33,0x8E,0x2C,0x85,0xC5,0x9D,0x23,0x7C,0xC3,0xB0,0xE1,0xEB}; - - ThriftHiveMetastore_isPartitionMarkedForEvent_result(const ThriftHiveMetastore_isPartitionMarkedForEvent_result&); - ThriftHiveMetastore_isPartitionMarkedForEvent_result& operator=(const ThriftHiveMetastore_isPartitionMarkedForEvent_result&); ThriftHiveMetastore_isPartitionMarkedForEvent_result() : success(0) { } - virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_result() throw(); + virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_result() throw() {} + bool success; MetaException o1; NoSuchObjectException o2; @@ -10411,19 +10257,33 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_result { _ThriftHiveMetastore_isPartitionMarkedForEvent_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } - void __set_o3(const UnknownDBException& val); + void __set_o3(const UnknownDBException& val) { + o3 = val; + } - void __set_o4(const UnknownTableException& val); + void __set_o4(const UnknownTableException& val) { + o4 = val; + } - void __set_o5(const UnknownPartitionException& val); + void __set_o5(const UnknownPartitionException& val) { + o5 = val; + } - void __set_o6(const InvalidPartitionException& val); + void __set_o6(const InvalidPartitionException& val) { + o6 = val; + } bool operator == (const ThriftHiveMetastore_isPartitionMarkedForEvent_result & rhs) const { @@ -10452,28 +10312,25 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_isPartitionMarkedForEvent_result& obj); }; typedef struct _ThriftHiveMetastore_isPartitionMarkedForEvent_presult__isset { _ThriftHiveMetastore_isPartitionMarkedForEvent_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false), o5(false), o6(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; - bool o5 :1; - bool o6 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; + bool o5; + bool o6; } _ThriftHiveMetastore_isPartitionMarkedForEvent_presult__isset; class ThriftHiveMetastore_isPartitionMarkedForEvent_presult { public: - static const char* ascii_fingerprint; // = "7F79FC02338E2C85C59D237CC3B0E1EB"; - static const uint8_t binary_fingerprint[16]; // = {0x7F,0x79,0xFC,0x02,0x33,0x8E,0x2C,0x85,0xC5,0x9D,0x23,0x7C,0xC3,0xB0,0xE1,0xEB}; + virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_presult() throw() {} - virtual ~ThriftHiveMetastore_isPartitionMarkedForEvent_presult() throw(); bool* success; MetaException o1; NoSuchObjectException o2; @@ -10486,35 +10343,34 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_isPartitionMarkedForEvent_presult& obj); }; typedef struct _ThriftHiveMetastore_add_index_args__isset { _ThriftHiveMetastore_add_index_args__isset() : new_index(false), index_table(false) {} - bool new_index :1; - bool index_table :1; + bool new_index; + bool index_table; } _ThriftHiveMetastore_add_index_args__isset; class ThriftHiveMetastore_add_index_args { public: - static const char* ascii_fingerprint; // = "63E57E91A04A11631F8F252EF6E92344"; - static const uint8_t binary_fingerprint[16]; // = {0x63,0xE5,0x7E,0x91,0xA0,0x4A,0x11,0x63,0x1F,0x8F,0x25,0x2E,0xF6,0xE9,0x23,0x44}; - - ThriftHiveMetastore_add_index_args(const ThriftHiveMetastore_add_index_args&); - ThriftHiveMetastore_add_index_args& operator=(const ThriftHiveMetastore_add_index_args&); ThriftHiveMetastore_add_index_args() { } - virtual ~ThriftHiveMetastore_add_index_args() throw(); + virtual ~ThriftHiveMetastore_add_index_args() throw() {} + Index new_index; Table index_table; _ThriftHiveMetastore_add_index_args__isset __isset; - void __set_new_index(const Index& val); + void __set_new_index(const Index& val) { + new_index = val; + } - void __set_index_table(const Table& val); + void __set_index_table(const Table& val) { + index_table = val; + } bool operator == (const ThriftHiveMetastore_add_index_args & rhs) const { @@ -10533,46 +10389,38 @@ class ThriftHiveMetastore_add_index_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_index_args& obj); }; class ThriftHiveMetastore_add_index_pargs { public: - static const char* ascii_fingerprint; // = "63E57E91A04A11631F8F252EF6E92344"; - static const uint8_t binary_fingerprint[16]; // = {0x63,0xE5,0x7E,0x91,0xA0,0x4A,0x11,0x63,0x1F,0x8F,0x25,0x2E,0xF6,0xE9,0x23,0x44}; + virtual ~ThriftHiveMetastore_add_index_pargs() throw() {} - virtual ~ThriftHiveMetastore_add_index_pargs() throw(); const Index* new_index; const Table* index_table; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_index_pargs& obj); }; typedef struct _ThriftHiveMetastore_add_index_result__isset { _ThriftHiveMetastore_add_index_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_index_result__isset; class ThriftHiveMetastore_add_index_result { public: - static const char* ascii_fingerprint; // = "15E23986A4E294C2202C4DEC638256AF"; - static const uint8_t binary_fingerprint[16]; // = {0x15,0xE2,0x39,0x86,0xA4,0xE2,0x94,0xC2,0x20,0x2C,0x4D,0xEC,0x63,0x82,0x56,0xAF}; - - ThriftHiveMetastore_add_index_result(const ThriftHiveMetastore_add_index_result&); - ThriftHiveMetastore_add_index_result& operator=(const ThriftHiveMetastore_add_index_result&); ThriftHiveMetastore_add_index_result() { } - virtual ~ThriftHiveMetastore_add_index_result() throw(); + virtual ~ThriftHiveMetastore_add_index_result() throw() {} + Index success; InvalidObjectException o1; AlreadyExistsException o2; @@ -10580,13 +10428,21 @@ class ThriftHiveMetastore_add_index_result { _ThriftHiveMetastore_add_index_result__isset __isset; - void __set_success(const Index& val); + void __set_success(const Index& val) { + success = val; + } - void __set_o1(const InvalidObjectException& val); + void __set_o1(const InvalidObjectException& val) { + o1 = val; + } - void __set_o2(const AlreadyExistsException& val); + void __set_o2(const AlreadyExistsException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_add_index_result & rhs) const { @@ -10609,25 +10465,22 @@ class ThriftHiveMetastore_add_index_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_index_result& obj); }; typedef struct _ThriftHiveMetastore_add_index_presult__isset { _ThriftHiveMetastore_add_index_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_add_index_presult__isset; class ThriftHiveMetastore_add_index_presult { public: - static const char* ascii_fingerprint; // = "15E23986A4E294C2202C4DEC638256AF"; - static const uint8_t binary_fingerprint[16]; // = {0x15,0xE2,0x39,0x86,0xA4,0xE2,0x94,0xC2,0x20,0x2C,0x4D,0xEC,0x63,0x82,0x56,0xAF}; + virtual ~ThriftHiveMetastore_add_index_presult() throw() {} - virtual ~ThriftHiveMetastore_add_index_presult() throw(); Index* success; InvalidObjectException o1; AlreadyExistsException o2; @@ -10637,29 +10490,24 @@ class ThriftHiveMetastore_add_index_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_index_presult& obj); }; typedef struct _ThriftHiveMetastore_alter_index_args__isset { _ThriftHiveMetastore_alter_index_args__isset() : dbname(false), base_tbl_name(false), idx_name(false), new_idx(false) {} - bool dbname :1; - bool base_tbl_name :1; - bool idx_name :1; - bool new_idx :1; + bool dbname; + bool base_tbl_name; + bool idx_name; + bool new_idx; } _ThriftHiveMetastore_alter_index_args__isset; class ThriftHiveMetastore_alter_index_args { public: - static const char* ascii_fingerprint; // = "D0DAD0C573EB46AEAD958254D71EAE4D"; - static const uint8_t binary_fingerprint[16]; // = {0xD0,0xDA,0xD0,0xC5,0x73,0xEB,0x46,0xAE,0xAD,0x95,0x82,0x54,0xD7,0x1E,0xAE,0x4D}; - - ThriftHiveMetastore_alter_index_args(const ThriftHiveMetastore_alter_index_args&); - ThriftHiveMetastore_alter_index_args& operator=(const ThriftHiveMetastore_alter_index_args&); ThriftHiveMetastore_alter_index_args() : dbname(), base_tbl_name(), idx_name() { } - virtual ~ThriftHiveMetastore_alter_index_args() throw(); + virtual ~ThriftHiveMetastore_alter_index_args() throw() {} + std::string dbname; std::string base_tbl_name; std::string idx_name; @@ -10667,13 +10515,21 @@ class ThriftHiveMetastore_alter_index_args { _ThriftHiveMetastore_alter_index_args__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_base_tbl_name(const std::string& val); + void __set_base_tbl_name(const std::string& val) { + base_tbl_name = val; + } - void __set_idx_name(const std::string& val); + void __set_idx_name(const std::string& val) { + idx_name = val; + } - void __set_new_idx(const Index& val); + void __set_new_idx(const Index& val) { + new_idx = val; + } bool operator == (const ThriftHiveMetastore_alter_index_args & rhs) const { @@ -10696,18 +10552,15 @@ class ThriftHiveMetastore_alter_index_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_index_args& obj); }; class ThriftHiveMetastore_alter_index_pargs { public: - static const char* ascii_fingerprint; // = "D0DAD0C573EB46AEAD958254D71EAE4D"; - static const uint8_t binary_fingerprint[16]; // = {0xD0,0xDA,0xD0,0xC5,0x73,0xEB,0x46,0xAE,0xAD,0x95,0x82,0x54,0xD7,0x1E,0xAE,0x4D}; + virtual ~ThriftHiveMetastore_alter_index_pargs() throw() {} - virtual ~ThriftHiveMetastore_alter_index_pargs() throw(); const std::string* dbname; const std::string* base_tbl_name; const std::string* idx_name; @@ -10715,35 +10568,34 @@ class ThriftHiveMetastore_alter_index_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_index_pargs& obj); }; typedef struct _ThriftHiveMetastore_alter_index_result__isset { _ThriftHiveMetastore_alter_index_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_index_result__isset; class ThriftHiveMetastore_alter_index_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_alter_index_result(const ThriftHiveMetastore_alter_index_result&); - ThriftHiveMetastore_alter_index_result& operator=(const ThriftHiveMetastore_alter_index_result&); ThriftHiveMetastore_alter_index_result() { } - virtual ~ThriftHiveMetastore_alter_index_result() throw(); + virtual ~ThriftHiveMetastore_alter_index_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_index_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_index_result & rhs) const { @@ -10762,23 +10614,20 @@ class ThriftHiveMetastore_alter_index_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_index_result& obj); }; typedef struct _ThriftHiveMetastore_alter_index_presult__isset { _ThriftHiveMetastore_alter_index_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_index_presult__isset; class ThriftHiveMetastore_alter_index_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_alter_index_presult() throw() {} - virtual ~ThriftHiveMetastore_alter_index_presult() throw(); InvalidOperationException o1; MetaException o2; @@ -10786,29 +10635,24 @@ class ThriftHiveMetastore_alter_index_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_index_presult& obj); }; typedef struct _ThriftHiveMetastore_drop_index_by_name_args__isset { _ThriftHiveMetastore_drop_index_by_name_args__isset() : db_name(false), tbl_name(false), index_name(false), deleteData(false) {} - bool db_name :1; - bool tbl_name :1; - bool index_name :1; - bool deleteData :1; + bool db_name; + bool tbl_name; + bool index_name; + bool deleteData; } _ThriftHiveMetastore_drop_index_by_name_args__isset; class ThriftHiveMetastore_drop_index_by_name_args { public: - static const char* ascii_fingerprint; // = "557CE3E1F35DD5D74A3999FB1200CAB8"; - static const uint8_t binary_fingerprint[16]; // = {0x55,0x7C,0xE3,0xE1,0xF3,0x5D,0xD5,0xD7,0x4A,0x39,0x99,0xFB,0x12,0x00,0xCA,0xB8}; - - ThriftHiveMetastore_drop_index_by_name_args(const ThriftHiveMetastore_drop_index_by_name_args&); - ThriftHiveMetastore_drop_index_by_name_args& operator=(const ThriftHiveMetastore_drop_index_by_name_args&); ThriftHiveMetastore_drop_index_by_name_args() : db_name(), tbl_name(), index_name(), deleteData(0) { } - virtual ~ThriftHiveMetastore_drop_index_by_name_args() throw(); + virtual ~ThriftHiveMetastore_drop_index_by_name_args() throw() {} + std::string db_name; std::string tbl_name; std::string index_name; @@ -10816,13 +10660,21 @@ class ThriftHiveMetastore_drop_index_by_name_args { _ThriftHiveMetastore_drop_index_by_name_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_index_name(const std::string& val); + void __set_index_name(const std::string& val) { + index_name = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + } bool operator == (const ThriftHiveMetastore_drop_index_by_name_args & rhs) const { @@ -10845,18 +10697,15 @@ class ThriftHiveMetastore_drop_index_by_name_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_index_by_name_args& obj); }; class ThriftHiveMetastore_drop_index_by_name_pargs { public: - static const char* ascii_fingerprint; // = "557CE3E1F35DD5D74A3999FB1200CAB8"; - static const uint8_t binary_fingerprint[16]; // = {0x55,0x7C,0xE3,0xE1,0xF3,0x5D,0xD5,0xD7,0x4A,0x39,0x99,0xFB,0x12,0x00,0xCA,0xB8}; + virtual ~ThriftHiveMetastore_drop_index_by_name_pargs() throw() {} - virtual ~ThriftHiveMetastore_drop_index_by_name_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::string* index_name; @@ -10864,39 +10713,40 @@ class ThriftHiveMetastore_drop_index_by_name_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_index_by_name_pargs& obj); }; typedef struct _ThriftHiveMetastore_drop_index_by_name_result__isset { _ThriftHiveMetastore_drop_index_by_name_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_index_by_name_result__isset; class ThriftHiveMetastore_drop_index_by_name_result { public: - static const char* ascii_fingerprint; // = "3499095F5992356B85332339F1B55814"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x99,0x09,0x5F,0x59,0x92,0x35,0x6B,0x85,0x33,0x23,0x39,0xF1,0xB5,0x58,0x14}; - - ThriftHiveMetastore_drop_index_by_name_result(const ThriftHiveMetastore_drop_index_by_name_result&); - ThriftHiveMetastore_drop_index_by_name_result& operator=(const ThriftHiveMetastore_drop_index_by_name_result&); ThriftHiveMetastore_drop_index_by_name_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_index_by_name_result() throw(); + virtual ~ThriftHiveMetastore_drop_index_by_name_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_drop_index_by_name_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_drop_index_by_name_result & rhs) const { @@ -10917,24 +10767,21 @@ class ThriftHiveMetastore_drop_index_by_name_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_index_by_name_result& obj); }; typedef struct _ThriftHiveMetastore_drop_index_by_name_presult__isset { _ThriftHiveMetastore_drop_index_by_name_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_drop_index_by_name_presult__isset; class ThriftHiveMetastore_drop_index_by_name_presult { public: - static const char* ascii_fingerprint; // = "3499095F5992356B85332339F1B55814"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0x99,0x09,0x5F,0x59,0x92,0x35,0x6B,0x85,0x33,0x23,0x39,0xF1,0xB5,0x58,0x14}; + virtual ~ThriftHiveMetastore_drop_index_by_name_presult() throw() {} - virtual ~ThriftHiveMetastore_drop_index_by_name_presult() throw(); bool* success; NoSuchObjectException o1; MetaException o2; @@ -10943,39 +10790,40 @@ class ThriftHiveMetastore_drop_index_by_name_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_index_by_name_presult& obj); }; typedef struct _ThriftHiveMetastore_get_index_by_name_args__isset { _ThriftHiveMetastore_get_index_by_name_args__isset() : db_name(false), tbl_name(false), index_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool index_name :1; + bool db_name; + bool tbl_name; + bool index_name; } _ThriftHiveMetastore_get_index_by_name_args__isset; class ThriftHiveMetastore_get_index_by_name_args { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; - - ThriftHiveMetastore_get_index_by_name_args(const ThriftHiveMetastore_get_index_by_name_args&); - ThriftHiveMetastore_get_index_by_name_args& operator=(const ThriftHiveMetastore_get_index_by_name_args&); ThriftHiveMetastore_get_index_by_name_args() : db_name(), tbl_name(), index_name() { } - virtual ~ThriftHiveMetastore_get_index_by_name_args() throw(); + virtual ~ThriftHiveMetastore_get_index_by_name_args() throw() {} + std::string db_name; std::string tbl_name; std::string index_name; _ThriftHiveMetastore_get_index_by_name_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_index_name(const std::string& val); + void __set_index_name(const std::string& val) { + index_name = val; + } bool operator == (const ThriftHiveMetastore_get_index_by_name_args & rhs) const { @@ -10996,57 +10844,55 @@ class ThriftHiveMetastore_get_index_by_name_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_index_by_name_args& obj); }; class ThriftHiveMetastore_get_index_by_name_pargs { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + virtual ~ThriftHiveMetastore_get_index_by_name_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_index_by_name_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::string* index_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_index_by_name_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_index_by_name_result__isset { _ThriftHiveMetastore_get_index_by_name_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_index_by_name_result__isset; class ThriftHiveMetastore_get_index_by_name_result { public: - static const char* ascii_fingerprint; // = "FFA6914B98796DA64D3007437901E7D6"; - static const uint8_t binary_fingerprint[16]; // = {0xFF,0xA6,0x91,0x4B,0x98,0x79,0x6D,0xA6,0x4D,0x30,0x07,0x43,0x79,0x01,0xE7,0xD6}; - - ThriftHiveMetastore_get_index_by_name_result(const ThriftHiveMetastore_get_index_by_name_result&); - ThriftHiveMetastore_get_index_by_name_result& operator=(const ThriftHiveMetastore_get_index_by_name_result&); ThriftHiveMetastore_get_index_by_name_result() { } - virtual ~ThriftHiveMetastore_get_index_by_name_result() throw(); + virtual ~ThriftHiveMetastore_get_index_by_name_result() throw() {} + Index success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_index_by_name_result__isset __isset; - void __set_success(const Index& val); + void __set_success(const Index& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_index_by_name_result & rhs) const { @@ -11067,24 +10913,21 @@ class ThriftHiveMetastore_get_index_by_name_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_index_by_name_result& obj); }; typedef struct _ThriftHiveMetastore_get_index_by_name_presult__isset { _ThriftHiveMetastore_get_index_by_name_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_index_by_name_presult__isset; class ThriftHiveMetastore_get_index_by_name_presult { public: - static const char* ascii_fingerprint; // = "FFA6914B98796DA64D3007437901E7D6"; - static const uint8_t binary_fingerprint[16]; // = {0xFF,0xA6,0x91,0x4B,0x98,0x79,0x6D,0xA6,0x4D,0x30,0x07,0x43,0x79,0x01,0xE7,0xD6}; + virtual ~ThriftHiveMetastore_get_index_by_name_presult() throw() {} - virtual ~ThriftHiveMetastore_get_index_by_name_presult() throw(); Index* success; MetaException o1; NoSuchObjectException o2; @@ -11093,39 +10936,40 @@ class ThriftHiveMetastore_get_index_by_name_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_index_by_name_presult& obj); }; typedef struct _ThriftHiveMetastore_get_indexes_args__isset { _ThriftHiveMetastore_get_indexes_args__isset() : db_name(false), tbl_name(false), max_indexes(true) {} - bool db_name :1; - bool tbl_name :1; - bool max_indexes :1; + bool db_name; + bool tbl_name; + bool max_indexes; } _ThriftHiveMetastore_get_indexes_args__isset; class ThriftHiveMetastore_get_indexes_args { public: - static const char* ascii_fingerprint; // = "52F7D5E8217C4B8FC14F1F30BF2EB41C"; - static const uint8_t binary_fingerprint[16]; // = {0x52,0xF7,0xD5,0xE8,0x21,0x7C,0x4B,0x8F,0xC1,0x4F,0x1F,0x30,0xBF,0x2E,0xB4,0x1C}; - - ThriftHiveMetastore_get_indexes_args(const ThriftHiveMetastore_get_indexes_args&); - ThriftHiveMetastore_get_indexes_args& operator=(const ThriftHiveMetastore_get_indexes_args&); ThriftHiveMetastore_get_indexes_args() : db_name(), tbl_name(), max_indexes(-1) { } - virtual ~ThriftHiveMetastore_get_indexes_args() throw(); + virtual ~ThriftHiveMetastore_get_indexes_args() throw() {} + std::string db_name; std::string tbl_name; int16_t max_indexes; _ThriftHiveMetastore_get_indexes_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_max_indexes(const int16_t val); + void __set_max_indexes(const int16_t val) { + max_indexes = val; + } bool operator == (const ThriftHiveMetastore_get_indexes_args & rhs) const { @@ -11146,57 +10990,55 @@ class ThriftHiveMetastore_get_indexes_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_indexes_args& obj); }; class ThriftHiveMetastore_get_indexes_pargs { public: - static const char* ascii_fingerprint; // = "52F7D5E8217C4B8FC14F1F30BF2EB41C"; - static const uint8_t binary_fingerprint[16]; // = {0x52,0xF7,0xD5,0xE8,0x21,0x7C,0x4B,0x8F,0xC1,0x4F,0x1F,0x30,0xBF,0x2E,0xB4,0x1C}; + virtual ~ThriftHiveMetastore_get_indexes_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_indexes_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const int16_t* max_indexes; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_indexes_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_indexes_result__isset { _ThriftHiveMetastore_get_indexes_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_indexes_result__isset; class ThriftHiveMetastore_get_indexes_result { public: - static const char* ascii_fingerprint; // = "0A01F435C57042F7C45EC1B945498138"; - static const uint8_t binary_fingerprint[16]; // = {0x0A,0x01,0xF4,0x35,0xC5,0x70,0x42,0xF7,0xC4,0x5E,0xC1,0xB9,0x45,0x49,0x81,0x38}; - - ThriftHiveMetastore_get_indexes_result(const ThriftHiveMetastore_get_indexes_result&); - ThriftHiveMetastore_get_indexes_result& operator=(const ThriftHiveMetastore_get_indexes_result&); ThriftHiveMetastore_get_indexes_result() { } - virtual ~ThriftHiveMetastore_get_indexes_result() throw(); + virtual ~ThriftHiveMetastore_get_indexes_result() throw() {} + std::vector success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_indexes_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_indexes_result & rhs) const { @@ -11217,24 +11059,21 @@ class ThriftHiveMetastore_get_indexes_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_indexes_result& obj); }; typedef struct _ThriftHiveMetastore_get_indexes_presult__isset { _ThriftHiveMetastore_get_indexes_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_indexes_presult__isset; class ThriftHiveMetastore_get_indexes_presult { public: - static const char* ascii_fingerprint; // = "0A01F435C57042F7C45EC1B945498138"; - static const uint8_t binary_fingerprint[16]; // = {0x0A,0x01,0xF4,0x35,0xC5,0x70,0x42,0xF7,0xC4,0x5E,0xC1,0xB9,0x45,0x49,0x81,0x38}; + virtual ~ThriftHiveMetastore_get_indexes_presult() throw() {} - virtual ~ThriftHiveMetastore_get_indexes_presult() throw(); std::vector * success; NoSuchObjectException o1; MetaException o2; @@ -11243,39 +11082,40 @@ class ThriftHiveMetastore_get_indexes_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_indexes_presult& obj); }; typedef struct _ThriftHiveMetastore_get_index_names_args__isset { _ThriftHiveMetastore_get_index_names_args__isset() : db_name(false), tbl_name(false), max_indexes(true) {} - bool db_name :1; - bool tbl_name :1; - bool max_indexes :1; + bool db_name; + bool tbl_name; + bool max_indexes; } _ThriftHiveMetastore_get_index_names_args__isset; class ThriftHiveMetastore_get_index_names_args { public: - static const char* ascii_fingerprint; // = "52F7D5E8217C4B8FC14F1F30BF2EB41C"; - static const uint8_t binary_fingerprint[16]; // = {0x52,0xF7,0xD5,0xE8,0x21,0x7C,0x4B,0x8F,0xC1,0x4F,0x1F,0x30,0xBF,0x2E,0xB4,0x1C}; - - ThriftHiveMetastore_get_index_names_args(const ThriftHiveMetastore_get_index_names_args&); - ThriftHiveMetastore_get_index_names_args& operator=(const ThriftHiveMetastore_get_index_names_args&); ThriftHiveMetastore_get_index_names_args() : db_name(), tbl_name(), max_indexes(-1) { } - virtual ~ThriftHiveMetastore_get_index_names_args() throw(); + virtual ~ThriftHiveMetastore_get_index_names_args() throw() {} + std::string db_name; std::string tbl_name; int16_t max_indexes; _ThriftHiveMetastore_get_index_names_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_max_indexes(const int16_t val); + void __set_max_indexes(const int16_t val) { + max_indexes = val; + } bool operator == (const ThriftHiveMetastore_get_index_names_args & rhs) const { @@ -11296,53 +11136,49 @@ class ThriftHiveMetastore_get_index_names_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_index_names_args& obj); }; class ThriftHiveMetastore_get_index_names_pargs { public: - static const char* ascii_fingerprint; // = "52F7D5E8217C4B8FC14F1F30BF2EB41C"; - static const uint8_t binary_fingerprint[16]; // = {0x52,0xF7,0xD5,0xE8,0x21,0x7C,0x4B,0x8F,0xC1,0x4F,0x1F,0x30,0xBF,0x2E,0xB4,0x1C}; + virtual ~ThriftHiveMetastore_get_index_names_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_index_names_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const int16_t* max_indexes; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_index_names_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_index_names_result__isset { _ThriftHiveMetastore_get_index_names_result__isset() : success(false), o2(false) {} - bool success :1; - bool o2 :1; + bool success; + bool o2; } _ThriftHiveMetastore_get_index_names_result__isset; class ThriftHiveMetastore_get_index_names_result { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; - - ThriftHiveMetastore_get_index_names_result(const ThriftHiveMetastore_get_index_names_result&); - ThriftHiveMetastore_get_index_names_result& operator=(const ThriftHiveMetastore_get_index_names_result&); ThriftHiveMetastore_get_index_names_result() { } - virtual ~ThriftHiveMetastore_get_index_names_result() throw(); + virtual ~ThriftHiveMetastore_get_index_names_result() throw() {} + std::vector success; MetaException o2; _ThriftHiveMetastore_get_index_names_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_index_names_result & rhs) const { @@ -11361,23 +11197,20 @@ class ThriftHiveMetastore_get_index_names_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_index_names_result& obj); }; typedef struct _ThriftHiveMetastore_get_index_names_presult__isset { _ThriftHiveMetastore_get_index_names_presult__isset() : success(false), o2(false) {} - bool success :1; - bool o2 :1; + bool success; + bool o2; } _ThriftHiveMetastore_get_index_names_presult__isset; class ThriftHiveMetastore_get_index_names_presult { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; + virtual ~ThriftHiveMetastore_get_index_names_presult() throw() {} - virtual ~ThriftHiveMetastore_get_index_names_presult() throw(); std::vector * success; MetaException o2; @@ -11385,31 +11218,28 @@ class ThriftHiveMetastore_get_index_names_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_index_names_presult& obj); }; typedef struct _ThriftHiveMetastore_update_table_column_statistics_args__isset { _ThriftHiveMetastore_update_table_column_statistics_args__isset() : stats_obj(false) {} - bool stats_obj :1; + bool stats_obj; } _ThriftHiveMetastore_update_table_column_statistics_args__isset; class ThriftHiveMetastore_update_table_column_statistics_args { public: - static const char* ascii_fingerprint; // = "AE5C106737E1B22E685B7A2BFCECFFBE"; - static const uint8_t binary_fingerprint[16]; // = {0xAE,0x5C,0x10,0x67,0x37,0xE1,0xB2,0x2E,0x68,0x5B,0x7A,0x2B,0xFC,0xEC,0xFF,0xBE}; - - ThriftHiveMetastore_update_table_column_statistics_args(const ThriftHiveMetastore_update_table_column_statistics_args&); - ThriftHiveMetastore_update_table_column_statistics_args& operator=(const ThriftHiveMetastore_update_table_column_statistics_args&); ThriftHiveMetastore_update_table_column_statistics_args() { } - virtual ~ThriftHiveMetastore_update_table_column_statistics_args() throw(); + virtual ~ThriftHiveMetastore_update_table_column_statistics_args() throw() {} + ColumnStatistics stats_obj; _ThriftHiveMetastore_update_table_column_statistics_args__isset __isset; - void __set_stats_obj(const ColumnStatistics& val); + void __set_stats_obj(const ColumnStatistics& val) { + stats_obj = val; + } bool operator == (const ThriftHiveMetastore_update_table_column_statistics_args & rhs) const { @@ -11426,46 +11256,38 @@ class ThriftHiveMetastore_update_table_column_statistics_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_update_table_column_statistics_args& obj); }; class ThriftHiveMetastore_update_table_column_statistics_pargs { public: - static const char* ascii_fingerprint; // = "AE5C106737E1B22E685B7A2BFCECFFBE"; - static const uint8_t binary_fingerprint[16]; // = {0xAE,0x5C,0x10,0x67,0x37,0xE1,0xB2,0x2E,0x68,0x5B,0x7A,0x2B,0xFC,0xEC,0xFF,0xBE}; + virtual ~ThriftHiveMetastore_update_table_column_statistics_pargs() throw() {} - virtual ~ThriftHiveMetastore_update_table_column_statistics_pargs() throw(); const ColumnStatistics* stats_obj; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_update_table_column_statistics_pargs& obj); }; typedef struct _ThriftHiveMetastore_update_table_column_statistics_result__isset { _ThriftHiveMetastore_update_table_column_statistics_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_update_table_column_statistics_result__isset; class ThriftHiveMetastore_update_table_column_statistics_result { public: - static const char* ascii_fingerprint; // = "E8B013EAAAC242F4CEBBF1AC05253E9C"; - static const uint8_t binary_fingerprint[16]; // = {0xE8,0xB0,0x13,0xEA,0xAA,0xC2,0x42,0xF4,0xCE,0xBB,0xF1,0xAC,0x05,0x25,0x3E,0x9C}; - - ThriftHiveMetastore_update_table_column_statistics_result(const ThriftHiveMetastore_update_table_column_statistics_result&); - ThriftHiveMetastore_update_table_column_statistics_result& operator=(const ThriftHiveMetastore_update_table_column_statistics_result&); ThriftHiveMetastore_update_table_column_statistics_result() : success(0) { } - virtual ~ThriftHiveMetastore_update_table_column_statistics_result() throw(); + virtual ~ThriftHiveMetastore_update_table_column_statistics_result() throw() {} + bool success; NoSuchObjectException o1; InvalidObjectException o2; @@ -11474,15 +11296,25 @@ class ThriftHiveMetastore_update_table_column_statistics_result { _ThriftHiveMetastore_update_table_column_statistics_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } - void __set_o4(const InvalidInputException& val); + void __set_o4(const InvalidInputException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_update_table_column_statistics_result & rhs) const { @@ -11507,26 +11339,23 @@ class ThriftHiveMetastore_update_table_column_statistics_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_update_table_column_statistics_result& obj); }; typedef struct _ThriftHiveMetastore_update_table_column_statistics_presult__isset { _ThriftHiveMetastore_update_table_column_statistics_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_update_table_column_statistics_presult__isset; class ThriftHiveMetastore_update_table_column_statistics_presult { public: - static const char* ascii_fingerprint; // = "E8B013EAAAC242F4CEBBF1AC05253E9C"; - static const uint8_t binary_fingerprint[16]; // = {0xE8,0xB0,0x13,0xEA,0xAA,0xC2,0x42,0xF4,0xCE,0xBB,0xF1,0xAC,0x05,0x25,0x3E,0x9C}; + virtual ~ThriftHiveMetastore_update_table_column_statistics_presult() throw() {} - virtual ~ThriftHiveMetastore_update_table_column_statistics_presult() throw(); bool* success; NoSuchObjectException o1; InvalidObjectException o2; @@ -11537,31 +11366,28 @@ class ThriftHiveMetastore_update_table_column_statistics_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_update_table_column_statistics_presult& obj); }; typedef struct _ThriftHiveMetastore_update_partition_column_statistics_args__isset { _ThriftHiveMetastore_update_partition_column_statistics_args__isset() : stats_obj(false) {} - bool stats_obj :1; + bool stats_obj; } _ThriftHiveMetastore_update_partition_column_statistics_args__isset; class ThriftHiveMetastore_update_partition_column_statistics_args { public: - static const char* ascii_fingerprint; // = "AE5C106737E1B22E685B7A2BFCECFFBE"; - static const uint8_t binary_fingerprint[16]; // = {0xAE,0x5C,0x10,0x67,0x37,0xE1,0xB2,0x2E,0x68,0x5B,0x7A,0x2B,0xFC,0xEC,0xFF,0xBE}; - - ThriftHiveMetastore_update_partition_column_statistics_args(const ThriftHiveMetastore_update_partition_column_statistics_args&); - ThriftHiveMetastore_update_partition_column_statistics_args& operator=(const ThriftHiveMetastore_update_partition_column_statistics_args&); ThriftHiveMetastore_update_partition_column_statistics_args() { } - virtual ~ThriftHiveMetastore_update_partition_column_statistics_args() throw(); + virtual ~ThriftHiveMetastore_update_partition_column_statistics_args() throw() {} + ColumnStatistics stats_obj; _ThriftHiveMetastore_update_partition_column_statistics_args__isset __isset; - void __set_stats_obj(const ColumnStatistics& val); + void __set_stats_obj(const ColumnStatistics& val) { + stats_obj = val; + } bool operator == (const ThriftHiveMetastore_update_partition_column_statistics_args & rhs) const { @@ -11578,46 +11404,38 @@ class ThriftHiveMetastore_update_partition_column_statistics_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_update_partition_column_statistics_args& obj); }; class ThriftHiveMetastore_update_partition_column_statistics_pargs { public: - static const char* ascii_fingerprint; // = "AE5C106737E1B22E685B7A2BFCECFFBE"; - static const uint8_t binary_fingerprint[16]; // = {0xAE,0x5C,0x10,0x67,0x37,0xE1,0xB2,0x2E,0x68,0x5B,0x7A,0x2B,0xFC,0xEC,0xFF,0xBE}; + virtual ~ThriftHiveMetastore_update_partition_column_statistics_pargs() throw() {} - virtual ~ThriftHiveMetastore_update_partition_column_statistics_pargs() throw(); const ColumnStatistics* stats_obj; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_update_partition_column_statistics_pargs& obj); }; typedef struct _ThriftHiveMetastore_update_partition_column_statistics_result__isset { _ThriftHiveMetastore_update_partition_column_statistics_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_update_partition_column_statistics_result__isset; class ThriftHiveMetastore_update_partition_column_statistics_result { public: - static const char* ascii_fingerprint; // = "E8B013EAAAC242F4CEBBF1AC05253E9C"; - static const uint8_t binary_fingerprint[16]; // = {0xE8,0xB0,0x13,0xEA,0xAA,0xC2,0x42,0xF4,0xCE,0xBB,0xF1,0xAC,0x05,0x25,0x3E,0x9C}; - - ThriftHiveMetastore_update_partition_column_statistics_result(const ThriftHiveMetastore_update_partition_column_statistics_result&); - ThriftHiveMetastore_update_partition_column_statistics_result& operator=(const ThriftHiveMetastore_update_partition_column_statistics_result&); ThriftHiveMetastore_update_partition_column_statistics_result() : success(0) { } - virtual ~ThriftHiveMetastore_update_partition_column_statistics_result() throw(); + virtual ~ThriftHiveMetastore_update_partition_column_statistics_result() throw() {} + bool success; NoSuchObjectException o1; InvalidObjectException o2; @@ -11626,15 +11444,25 @@ class ThriftHiveMetastore_update_partition_column_statistics_result { _ThriftHiveMetastore_update_partition_column_statistics_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } - void __set_o4(const InvalidInputException& val); + void __set_o4(const InvalidInputException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_update_partition_column_statistics_result & rhs) const { @@ -11659,26 +11487,23 @@ class ThriftHiveMetastore_update_partition_column_statistics_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_update_partition_column_statistics_result& obj); }; typedef struct _ThriftHiveMetastore_update_partition_column_statistics_presult__isset { _ThriftHiveMetastore_update_partition_column_statistics_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_update_partition_column_statistics_presult__isset; class ThriftHiveMetastore_update_partition_column_statistics_presult { public: - static const char* ascii_fingerprint; // = "E8B013EAAAC242F4CEBBF1AC05253E9C"; - static const uint8_t binary_fingerprint[16]; // = {0xE8,0xB0,0x13,0xEA,0xAA,0xC2,0x42,0xF4,0xCE,0xBB,0xF1,0xAC,0x05,0x25,0x3E,0x9C}; + virtual ~ThriftHiveMetastore_update_partition_column_statistics_presult() throw() {} - virtual ~ThriftHiveMetastore_update_partition_column_statistics_presult() throw(); bool* success; NoSuchObjectException o1; InvalidObjectException o2; @@ -11689,39 +11514,40 @@ class ThriftHiveMetastore_update_partition_column_statistics_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_update_partition_column_statistics_presult& obj); }; typedef struct _ThriftHiveMetastore_get_table_column_statistics_args__isset { _ThriftHiveMetastore_get_table_column_statistics_args__isset() : db_name(false), tbl_name(false), col_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool col_name :1; + bool db_name; + bool tbl_name; + bool col_name; } _ThriftHiveMetastore_get_table_column_statistics_args__isset; class ThriftHiveMetastore_get_table_column_statistics_args { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; - - ThriftHiveMetastore_get_table_column_statistics_args(const ThriftHiveMetastore_get_table_column_statistics_args&); - ThriftHiveMetastore_get_table_column_statistics_args& operator=(const ThriftHiveMetastore_get_table_column_statistics_args&); ThriftHiveMetastore_get_table_column_statistics_args() : db_name(), tbl_name(), col_name() { } - virtual ~ThriftHiveMetastore_get_table_column_statistics_args() throw(); + virtual ~ThriftHiveMetastore_get_table_column_statistics_args() throw() {} + std::string db_name; std::string tbl_name; std::string col_name; _ThriftHiveMetastore_get_table_column_statistics_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_col_name(const std::string& val); + void __set_col_name(const std::string& val) { + col_name = val; + } bool operator == (const ThriftHiveMetastore_get_table_column_statistics_args & rhs) const { @@ -11742,48 +11568,40 @@ class ThriftHiveMetastore_get_table_column_statistics_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_column_statistics_args& obj); }; class ThriftHiveMetastore_get_table_column_statistics_pargs { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + virtual ~ThriftHiveMetastore_get_table_column_statistics_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_table_column_statistics_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::string* col_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_column_statistics_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_table_column_statistics_result__isset { _ThriftHiveMetastore_get_table_column_statistics_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_get_table_column_statistics_result__isset; class ThriftHiveMetastore_get_table_column_statistics_result { public: - static const char* ascii_fingerprint; // = "408B83AEA8B721681928BFF5B3F9FEE9"; - static const uint8_t binary_fingerprint[16]; // = {0x40,0x8B,0x83,0xAE,0xA8,0xB7,0x21,0x68,0x19,0x28,0xBF,0xF5,0xB3,0xF9,0xFE,0xE9}; - - ThriftHiveMetastore_get_table_column_statistics_result(const ThriftHiveMetastore_get_table_column_statistics_result&); - ThriftHiveMetastore_get_table_column_statistics_result& operator=(const ThriftHiveMetastore_get_table_column_statistics_result&); ThriftHiveMetastore_get_table_column_statistics_result() { } - virtual ~ThriftHiveMetastore_get_table_column_statistics_result() throw(); + virtual ~ThriftHiveMetastore_get_table_column_statistics_result() throw() {} + ColumnStatistics success; NoSuchObjectException o1; MetaException o2; @@ -11792,15 +11610,25 @@ class ThriftHiveMetastore_get_table_column_statistics_result { _ThriftHiveMetastore_get_table_column_statistics_result__isset __isset; - void __set_success(const ColumnStatistics& val); + void __set_success(const ColumnStatistics& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } - void __set_o3(const InvalidInputException& val); + void __set_o3(const InvalidInputException& val) { + o3 = val; + } - void __set_o4(const InvalidObjectException& val); + void __set_o4(const InvalidObjectException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_get_table_column_statistics_result & rhs) const { @@ -11825,26 +11653,23 @@ class ThriftHiveMetastore_get_table_column_statistics_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_column_statistics_result& obj); }; typedef struct _ThriftHiveMetastore_get_table_column_statistics_presult__isset { _ThriftHiveMetastore_get_table_column_statistics_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_get_table_column_statistics_presult__isset; class ThriftHiveMetastore_get_table_column_statistics_presult { public: - static const char* ascii_fingerprint; // = "408B83AEA8B721681928BFF5B3F9FEE9"; - static const uint8_t binary_fingerprint[16]; // = {0x40,0x8B,0x83,0xAE,0xA8,0xB7,0x21,0x68,0x19,0x28,0xBF,0xF5,0xB3,0xF9,0xFE,0xE9}; + virtual ~ThriftHiveMetastore_get_table_column_statistics_presult() throw() {} - virtual ~ThriftHiveMetastore_get_table_column_statistics_presult() throw(); ColumnStatistics* success; NoSuchObjectException o1; MetaException o2; @@ -11855,29 +11680,24 @@ class ThriftHiveMetastore_get_table_column_statistics_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_column_statistics_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partition_column_statistics_args__isset { _ThriftHiveMetastore_get_partition_column_statistics_args__isset() : db_name(false), tbl_name(false), part_name(false), col_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; - bool col_name :1; + bool db_name; + bool tbl_name; + bool part_name; + bool col_name; } _ThriftHiveMetastore_get_partition_column_statistics_args__isset; class ThriftHiveMetastore_get_partition_column_statistics_args { public: - static const char* ascii_fingerprint; // = "C93D890311F28844166CF6E571EB3AC2"; - static const uint8_t binary_fingerprint[16]; // = {0xC9,0x3D,0x89,0x03,0x11,0xF2,0x88,0x44,0x16,0x6C,0xF6,0xE5,0x71,0xEB,0x3A,0xC2}; - - ThriftHiveMetastore_get_partition_column_statistics_args(const ThriftHiveMetastore_get_partition_column_statistics_args&); - ThriftHiveMetastore_get_partition_column_statistics_args& operator=(const ThriftHiveMetastore_get_partition_column_statistics_args&); ThriftHiveMetastore_get_partition_column_statistics_args() : db_name(), tbl_name(), part_name(), col_name() { } - virtual ~ThriftHiveMetastore_get_partition_column_statistics_args() throw(); + virtual ~ThriftHiveMetastore_get_partition_column_statistics_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; @@ -11885,13 +11705,21 @@ class ThriftHiveMetastore_get_partition_column_statistics_args { _ThriftHiveMetastore_get_partition_column_statistics_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } - void __set_col_name(const std::string& val); + void __set_col_name(const std::string& val) { + col_name = val; + } bool operator == (const ThriftHiveMetastore_get_partition_column_statistics_args & rhs) const { @@ -11914,18 +11742,15 @@ class ThriftHiveMetastore_get_partition_column_statistics_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_column_statistics_args& obj); }; class ThriftHiveMetastore_get_partition_column_statistics_pargs { public: - static const char* ascii_fingerprint; // = "C93D890311F28844166CF6E571EB3AC2"; - static const uint8_t binary_fingerprint[16]; // = {0xC9,0x3D,0x89,0x03,0x11,0xF2,0x88,0x44,0x16,0x6C,0xF6,0xE5,0x71,0xEB,0x3A,0xC2}; + virtual ~ThriftHiveMetastore_get_partition_column_statistics_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partition_column_statistics_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::string* part_name; @@ -11933,30 +11758,25 @@ class ThriftHiveMetastore_get_partition_column_statistics_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_column_statistics_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partition_column_statistics_result__isset { _ThriftHiveMetastore_get_partition_column_statistics_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_get_partition_column_statistics_result__isset; class ThriftHiveMetastore_get_partition_column_statistics_result { public: - static const char* ascii_fingerprint; // = "408B83AEA8B721681928BFF5B3F9FEE9"; - static const uint8_t binary_fingerprint[16]; // = {0x40,0x8B,0x83,0xAE,0xA8,0xB7,0x21,0x68,0x19,0x28,0xBF,0xF5,0xB3,0xF9,0xFE,0xE9}; - - ThriftHiveMetastore_get_partition_column_statistics_result(const ThriftHiveMetastore_get_partition_column_statistics_result&); - ThriftHiveMetastore_get_partition_column_statistics_result& operator=(const ThriftHiveMetastore_get_partition_column_statistics_result&); ThriftHiveMetastore_get_partition_column_statistics_result() { } - virtual ~ThriftHiveMetastore_get_partition_column_statistics_result() throw(); + virtual ~ThriftHiveMetastore_get_partition_column_statistics_result() throw() {} + ColumnStatistics success; NoSuchObjectException o1; MetaException o2; @@ -11965,15 +11785,25 @@ class ThriftHiveMetastore_get_partition_column_statistics_result { _ThriftHiveMetastore_get_partition_column_statistics_result__isset __isset; - void __set_success(const ColumnStatistics& val); + void __set_success(const ColumnStatistics& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } - void __set_o3(const InvalidInputException& val); + void __set_o3(const InvalidInputException& val) { + o3 = val; + } - void __set_o4(const InvalidObjectException& val); + void __set_o4(const InvalidObjectException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_get_partition_column_statistics_result & rhs) const { @@ -11998,26 +11828,23 @@ class ThriftHiveMetastore_get_partition_column_statistics_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_column_statistics_result& obj); }; typedef struct _ThriftHiveMetastore_get_partition_column_statistics_presult__isset { _ThriftHiveMetastore_get_partition_column_statistics_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_get_partition_column_statistics_presult__isset; class ThriftHiveMetastore_get_partition_column_statistics_presult { public: - static const char* ascii_fingerprint; // = "408B83AEA8B721681928BFF5B3F9FEE9"; - static const uint8_t binary_fingerprint[16]; // = {0x40,0x8B,0x83,0xAE,0xA8,0xB7,0x21,0x68,0x19,0x28,0xBF,0xF5,0xB3,0xF9,0xFE,0xE9}; + virtual ~ThriftHiveMetastore_get_partition_column_statistics_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partition_column_statistics_presult() throw(); ColumnStatistics* success; NoSuchObjectException o1; MetaException o2; @@ -12028,31 +11855,28 @@ class ThriftHiveMetastore_get_partition_column_statistics_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partition_column_statistics_presult& obj); }; typedef struct _ThriftHiveMetastore_get_table_statistics_req_args__isset { _ThriftHiveMetastore_get_table_statistics_req_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_get_table_statistics_req_args__isset; class ThriftHiveMetastore_get_table_statistics_req_args { public: - static const char* ascii_fingerprint; // = "94867D168B0639FA344D11EEF0E85291"; - static const uint8_t binary_fingerprint[16]; // = {0x94,0x86,0x7D,0x16,0x8B,0x06,0x39,0xFA,0x34,0x4D,0x11,0xEE,0xF0,0xE8,0x52,0x91}; - - ThriftHiveMetastore_get_table_statistics_req_args(const ThriftHiveMetastore_get_table_statistics_req_args&); - ThriftHiveMetastore_get_table_statistics_req_args& operator=(const ThriftHiveMetastore_get_table_statistics_req_args&); ThriftHiveMetastore_get_table_statistics_req_args() { } - virtual ~ThriftHiveMetastore_get_table_statistics_req_args() throw(); + virtual ~ThriftHiveMetastore_get_table_statistics_req_args() throw() {} + TableStatsRequest request; _ThriftHiveMetastore_get_table_statistics_req_args__isset __isset; - void __set_request(const TableStatsRequest& val); + void __set_request(const TableStatsRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_get_table_statistics_req_args & rhs) const { @@ -12069,55 +11893,53 @@ class ThriftHiveMetastore_get_table_statistics_req_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_statistics_req_args& obj); }; class ThriftHiveMetastore_get_table_statistics_req_pargs { public: - static const char* ascii_fingerprint; // = "94867D168B0639FA344D11EEF0E85291"; - static const uint8_t binary_fingerprint[16]; // = {0x94,0x86,0x7D,0x16,0x8B,0x06,0x39,0xFA,0x34,0x4D,0x11,0xEE,0xF0,0xE8,0x52,0x91}; + virtual ~ThriftHiveMetastore_get_table_statistics_req_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_table_statistics_req_pargs() throw(); const TableStatsRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_statistics_req_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_table_statistics_req_result__isset { _ThriftHiveMetastore_get_table_statistics_req_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_table_statistics_req_result__isset; class ThriftHiveMetastore_get_table_statistics_req_result { public: - static const char* ascii_fingerprint; // = "328719A3F540356B9FACCD1AA2690E89"; - static const uint8_t binary_fingerprint[16]; // = {0x32,0x87,0x19,0xA3,0xF5,0x40,0x35,0x6B,0x9F,0xAC,0xCD,0x1A,0xA2,0x69,0x0E,0x89}; - - ThriftHiveMetastore_get_table_statistics_req_result(const ThriftHiveMetastore_get_table_statistics_req_result&); - ThriftHiveMetastore_get_table_statistics_req_result& operator=(const ThriftHiveMetastore_get_table_statistics_req_result&); ThriftHiveMetastore_get_table_statistics_req_result() { } - virtual ~ThriftHiveMetastore_get_table_statistics_req_result() throw(); + virtual ~ThriftHiveMetastore_get_table_statistics_req_result() throw() {} + TableStatsResult success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_table_statistics_req_result__isset __isset; - void __set_success(const TableStatsResult& val); + void __set_success(const TableStatsResult& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_table_statistics_req_result & rhs) const { @@ -12138,24 +11960,21 @@ class ThriftHiveMetastore_get_table_statistics_req_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_statistics_req_result& obj); }; typedef struct _ThriftHiveMetastore_get_table_statistics_req_presult__isset { _ThriftHiveMetastore_get_table_statistics_req_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_table_statistics_req_presult__isset; class ThriftHiveMetastore_get_table_statistics_req_presult { public: - static const char* ascii_fingerprint; // = "328719A3F540356B9FACCD1AA2690E89"; - static const uint8_t binary_fingerprint[16]; // = {0x32,0x87,0x19,0xA3,0xF5,0x40,0x35,0x6B,0x9F,0xAC,0xCD,0x1A,0xA2,0x69,0x0E,0x89}; + virtual ~ThriftHiveMetastore_get_table_statistics_req_presult() throw() {} - virtual ~ThriftHiveMetastore_get_table_statistics_req_presult() throw(); TableStatsResult* success; NoSuchObjectException o1; MetaException o2; @@ -12164,31 +11983,28 @@ class ThriftHiveMetastore_get_table_statistics_req_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_table_statistics_req_presult& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_statistics_req_args__isset { _ThriftHiveMetastore_get_partitions_statistics_req_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_get_partitions_statistics_req_args__isset; class ThriftHiveMetastore_get_partitions_statistics_req_args { public: - static const char* ascii_fingerprint; // = "A16CD6655F15DFD35925BCD2DD68C45C"; - static const uint8_t binary_fingerprint[16]; // = {0xA1,0x6C,0xD6,0x65,0x5F,0x15,0xDF,0xD3,0x59,0x25,0xBC,0xD2,0xDD,0x68,0xC4,0x5C}; - - ThriftHiveMetastore_get_partitions_statistics_req_args(const ThriftHiveMetastore_get_partitions_statistics_req_args&); - ThriftHiveMetastore_get_partitions_statistics_req_args& operator=(const ThriftHiveMetastore_get_partitions_statistics_req_args&); ThriftHiveMetastore_get_partitions_statistics_req_args() { } - virtual ~ThriftHiveMetastore_get_partitions_statistics_req_args() throw(); + virtual ~ThriftHiveMetastore_get_partitions_statistics_req_args() throw() {} + PartitionsStatsRequest request; _ThriftHiveMetastore_get_partitions_statistics_req_args__isset __isset; - void __set_request(const PartitionsStatsRequest& val); + void __set_request(const PartitionsStatsRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_statistics_req_args & rhs) const { @@ -12205,55 +12021,53 @@ class ThriftHiveMetastore_get_partitions_statistics_req_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_statistics_req_args& obj); }; class ThriftHiveMetastore_get_partitions_statistics_req_pargs { public: - static const char* ascii_fingerprint; // = "A16CD6655F15DFD35925BCD2DD68C45C"; - static const uint8_t binary_fingerprint[16]; // = {0xA1,0x6C,0xD6,0x65,0x5F,0x15,0xDF,0xD3,0x59,0x25,0xBC,0xD2,0xDD,0x68,0xC4,0x5C}; + virtual ~ThriftHiveMetastore_get_partitions_statistics_req_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_statistics_req_pargs() throw(); const PartitionsStatsRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_statistics_req_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_statistics_req_result__isset { _ThriftHiveMetastore_get_partitions_statistics_req_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_statistics_req_result__isset; class ThriftHiveMetastore_get_partitions_statistics_req_result { public: - static const char* ascii_fingerprint; // = "F9DEAB4687D23290CB7B628227A6CD9A"; - static const uint8_t binary_fingerprint[16]; // = {0xF9,0xDE,0xAB,0x46,0x87,0xD2,0x32,0x90,0xCB,0x7B,0x62,0x82,0x27,0xA6,0xCD,0x9A}; - - ThriftHiveMetastore_get_partitions_statistics_req_result(const ThriftHiveMetastore_get_partitions_statistics_req_result&); - ThriftHiveMetastore_get_partitions_statistics_req_result& operator=(const ThriftHiveMetastore_get_partitions_statistics_req_result&); ThriftHiveMetastore_get_partitions_statistics_req_result() { } - virtual ~ThriftHiveMetastore_get_partitions_statistics_req_result() throw(); + virtual ~ThriftHiveMetastore_get_partitions_statistics_req_result() throw() {} + PartitionsStatsResult success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_partitions_statistics_req_result__isset __isset; - void __set_success(const PartitionsStatsResult& val); + void __set_success(const PartitionsStatsResult& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_partitions_statistics_req_result & rhs) const { @@ -12274,24 +12088,21 @@ class ThriftHiveMetastore_get_partitions_statistics_req_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_statistics_req_result& obj); }; typedef struct _ThriftHiveMetastore_get_partitions_statistics_req_presult__isset { _ThriftHiveMetastore_get_partitions_statistics_req_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_partitions_statistics_req_presult__isset; class ThriftHiveMetastore_get_partitions_statistics_req_presult { public: - static const char* ascii_fingerprint; // = "F9DEAB4687D23290CB7B628227A6CD9A"; - static const uint8_t binary_fingerprint[16]; // = {0xF9,0xDE,0xAB,0x46,0x87,0xD2,0x32,0x90,0xCB,0x7B,0x62,0x82,0x27,0xA6,0xCD,0x9A}; + virtual ~ThriftHiveMetastore_get_partitions_statistics_req_presult() throw() {} - virtual ~ThriftHiveMetastore_get_partitions_statistics_req_presult() throw(); PartitionsStatsResult* success; NoSuchObjectException o1; MetaException o2; @@ -12300,31 +12111,28 @@ class ThriftHiveMetastore_get_partitions_statistics_req_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_partitions_statistics_req_presult& obj); }; typedef struct _ThriftHiveMetastore_get_aggr_stats_for_args__isset { _ThriftHiveMetastore_get_aggr_stats_for_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_get_aggr_stats_for_args__isset; class ThriftHiveMetastore_get_aggr_stats_for_args { public: - static const char* ascii_fingerprint; // = "A16CD6655F15DFD35925BCD2DD68C45C"; - static const uint8_t binary_fingerprint[16]; // = {0xA1,0x6C,0xD6,0x65,0x5F,0x15,0xDF,0xD3,0x59,0x25,0xBC,0xD2,0xDD,0x68,0xC4,0x5C}; - - ThriftHiveMetastore_get_aggr_stats_for_args(const ThriftHiveMetastore_get_aggr_stats_for_args&); - ThriftHiveMetastore_get_aggr_stats_for_args& operator=(const ThriftHiveMetastore_get_aggr_stats_for_args&); ThriftHiveMetastore_get_aggr_stats_for_args() { } - virtual ~ThriftHiveMetastore_get_aggr_stats_for_args() throw(); + virtual ~ThriftHiveMetastore_get_aggr_stats_for_args() throw() {} + PartitionsStatsRequest request; _ThriftHiveMetastore_get_aggr_stats_for_args__isset __isset; - void __set_request(const PartitionsStatsRequest& val); + void __set_request(const PartitionsStatsRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_get_aggr_stats_for_args & rhs) const { @@ -12341,55 +12149,53 @@ class ThriftHiveMetastore_get_aggr_stats_for_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_aggr_stats_for_args& obj); }; class ThriftHiveMetastore_get_aggr_stats_for_pargs { public: - static const char* ascii_fingerprint; // = "A16CD6655F15DFD35925BCD2DD68C45C"; - static const uint8_t binary_fingerprint[16]; // = {0xA1,0x6C,0xD6,0x65,0x5F,0x15,0xDF,0xD3,0x59,0x25,0xBC,0xD2,0xDD,0x68,0xC4,0x5C}; + virtual ~ThriftHiveMetastore_get_aggr_stats_for_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_aggr_stats_for_pargs() throw(); const PartitionsStatsRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_aggr_stats_for_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_aggr_stats_for_result__isset { _ThriftHiveMetastore_get_aggr_stats_for_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_aggr_stats_for_result__isset; class ThriftHiveMetastore_get_aggr_stats_for_result { public: - static const char* ascii_fingerprint; // = "0E2499DB10F2A2BF347E7097A9A92119"; - static const uint8_t binary_fingerprint[16]; // = {0x0E,0x24,0x99,0xDB,0x10,0xF2,0xA2,0xBF,0x34,0x7E,0x70,0x97,0xA9,0xA9,0x21,0x19}; - - ThriftHiveMetastore_get_aggr_stats_for_result(const ThriftHiveMetastore_get_aggr_stats_for_result&); - ThriftHiveMetastore_get_aggr_stats_for_result& operator=(const ThriftHiveMetastore_get_aggr_stats_for_result&); ThriftHiveMetastore_get_aggr_stats_for_result() { } - virtual ~ThriftHiveMetastore_get_aggr_stats_for_result() throw(); + virtual ~ThriftHiveMetastore_get_aggr_stats_for_result() throw() {} + AggrStats success; NoSuchObjectException o1; MetaException o2; _ThriftHiveMetastore_get_aggr_stats_for_result__isset __isset; - void __set_success(const AggrStats& val); + void __set_success(const AggrStats& val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_aggr_stats_for_result & rhs) const { @@ -12410,24 +12216,21 @@ class ThriftHiveMetastore_get_aggr_stats_for_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_aggr_stats_for_result& obj); }; typedef struct _ThriftHiveMetastore_get_aggr_stats_for_presult__isset { _ThriftHiveMetastore_get_aggr_stats_for_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_aggr_stats_for_presult__isset; class ThriftHiveMetastore_get_aggr_stats_for_presult { public: - static const char* ascii_fingerprint; // = "0E2499DB10F2A2BF347E7097A9A92119"; - static const uint8_t binary_fingerprint[16]; // = {0x0E,0x24,0x99,0xDB,0x10,0xF2,0xA2,0xBF,0x34,0x7E,0x70,0x97,0xA9,0xA9,0x21,0x19}; + virtual ~ThriftHiveMetastore_get_aggr_stats_for_presult() throw() {} - virtual ~ThriftHiveMetastore_get_aggr_stats_for_presult() throw(); AggrStats* success; NoSuchObjectException o1; MetaException o2; @@ -12436,31 +12239,28 @@ class ThriftHiveMetastore_get_aggr_stats_for_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_aggr_stats_for_presult& obj); }; typedef struct _ThriftHiveMetastore_set_aggr_stats_for_args__isset { _ThriftHiveMetastore_set_aggr_stats_for_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_set_aggr_stats_for_args__isset; class ThriftHiveMetastore_set_aggr_stats_for_args { public: - static const char* ascii_fingerprint; // = "E4DB88667062633838D02B63FB572DFC"; - static const uint8_t binary_fingerprint[16]; // = {0xE4,0xDB,0x88,0x66,0x70,0x62,0x63,0x38,0x38,0xD0,0x2B,0x63,0xFB,0x57,0x2D,0xFC}; - - ThriftHiveMetastore_set_aggr_stats_for_args(const ThriftHiveMetastore_set_aggr_stats_for_args&); - ThriftHiveMetastore_set_aggr_stats_for_args& operator=(const ThriftHiveMetastore_set_aggr_stats_for_args&); ThriftHiveMetastore_set_aggr_stats_for_args() { } - virtual ~ThriftHiveMetastore_set_aggr_stats_for_args() throw(); + virtual ~ThriftHiveMetastore_set_aggr_stats_for_args() throw() {} + SetPartitionsStatsRequest request; _ThriftHiveMetastore_set_aggr_stats_for_args__isset __isset; - void __set_request(const SetPartitionsStatsRequest& val); + void __set_request(const SetPartitionsStatsRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_set_aggr_stats_for_args & rhs) const { @@ -12477,46 +12277,38 @@ class ThriftHiveMetastore_set_aggr_stats_for_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_set_aggr_stats_for_args& obj); }; class ThriftHiveMetastore_set_aggr_stats_for_pargs { public: - static const char* ascii_fingerprint; // = "E4DB88667062633838D02B63FB572DFC"; - static const uint8_t binary_fingerprint[16]; // = {0xE4,0xDB,0x88,0x66,0x70,0x62,0x63,0x38,0x38,0xD0,0x2B,0x63,0xFB,0x57,0x2D,0xFC}; + virtual ~ThriftHiveMetastore_set_aggr_stats_for_pargs() throw() {} - virtual ~ThriftHiveMetastore_set_aggr_stats_for_pargs() throw(); const SetPartitionsStatsRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_set_aggr_stats_for_pargs& obj); }; typedef struct _ThriftHiveMetastore_set_aggr_stats_for_result__isset { _ThriftHiveMetastore_set_aggr_stats_for_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_set_aggr_stats_for_result__isset; class ThriftHiveMetastore_set_aggr_stats_for_result { public: - static const char* ascii_fingerprint; // = "E8B013EAAAC242F4CEBBF1AC05253E9C"; - static const uint8_t binary_fingerprint[16]; // = {0xE8,0xB0,0x13,0xEA,0xAA,0xC2,0x42,0xF4,0xCE,0xBB,0xF1,0xAC,0x05,0x25,0x3E,0x9C}; - - ThriftHiveMetastore_set_aggr_stats_for_result(const ThriftHiveMetastore_set_aggr_stats_for_result&); - ThriftHiveMetastore_set_aggr_stats_for_result& operator=(const ThriftHiveMetastore_set_aggr_stats_for_result&); ThriftHiveMetastore_set_aggr_stats_for_result() : success(0) { } - virtual ~ThriftHiveMetastore_set_aggr_stats_for_result() throw(); + virtual ~ThriftHiveMetastore_set_aggr_stats_for_result() throw() {} + bool success; NoSuchObjectException o1; InvalidObjectException o2; @@ -12525,15 +12317,25 @@ class ThriftHiveMetastore_set_aggr_stats_for_result { _ThriftHiveMetastore_set_aggr_stats_for_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } - void __set_o4(const InvalidInputException& val); + void __set_o4(const InvalidInputException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_set_aggr_stats_for_result & rhs) const { @@ -12558,26 +12360,23 @@ class ThriftHiveMetastore_set_aggr_stats_for_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_set_aggr_stats_for_result& obj); }; typedef struct _ThriftHiveMetastore_set_aggr_stats_for_presult__isset { _ThriftHiveMetastore_set_aggr_stats_for_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_set_aggr_stats_for_presult__isset; class ThriftHiveMetastore_set_aggr_stats_for_presult { public: - static const char* ascii_fingerprint; // = "E8B013EAAAC242F4CEBBF1AC05253E9C"; - static const uint8_t binary_fingerprint[16]; // = {0xE8,0xB0,0x13,0xEA,0xAA,0xC2,0x42,0xF4,0xCE,0xBB,0xF1,0xAC,0x05,0x25,0x3E,0x9C}; + virtual ~ThriftHiveMetastore_set_aggr_stats_for_presult() throw() {} - virtual ~ThriftHiveMetastore_set_aggr_stats_for_presult() throw(); bool* success; NoSuchObjectException o1; InvalidObjectException o2; @@ -12588,29 +12387,24 @@ class ThriftHiveMetastore_set_aggr_stats_for_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_set_aggr_stats_for_presult& obj); }; typedef struct _ThriftHiveMetastore_delete_partition_column_statistics_args__isset { _ThriftHiveMetastore_delete_partition_column_statistics_args__isset() : db_name(false), tbl_name(false), part_name(false), col_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool part_name :1; - bool col_name :1; + bool db_name; + bool tbl_name; + bool part_name; + bool col_name; } _ThriftHiveMetastore_delete_partition_column_statistics_args__isset; class ThriftHiveMetastore_delete_partition_column_statistics_args { public: - static const char* ascii_fingerprint; // = "C93D890311F28844166CF6E571EB3AC2"; - static const uint8_t binary_fingerprint[16]; // = {0xC9,0x3D,0x89,0x03,0x11,0xF2,0x88,0x44,0x16,0x6C,0xF6,0xE5,0x71,0xEB,0x3A,0xC2}; - - ThriftHiveMetastore_delete_partition_column_statistics_args(const ThriftHiveMetastore_delete_partition_column_statistics_args&); - ThriftHiveMetastore_delete_partition_column_statistics_args& operator=(const ThriftHiveMetastore_delete_partition_column_statistics_args&); ThriftHiveMetastore_delete_partition_column_statistics_args() : db_name(), tbl_name(), part_name(), col_name() { } - virtual ~ThriftHiveMetastore_delete_partition_column_statistics_args() throw(); + virtual ~ThriftHiveMetastore_delete_partition_column_statistics_args() throw() {} + std::string db_name; std::string tbl_name; std::string part_name; @@ -12618,13 +12412,21 @@ class ThriftHiveMetastore_delete_partition_column_statistics_args { _ThriftHiveMetastore_delete_partition_column_statistics_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_part_name(const std::string& val); + void __set_part_name(const std::string& val) { + part_name = val; + } - void __set_col_name(const std::string& val); + void __set_col_name(const std::string& val) { + col_name = val; + } bool operator == (const ThriftHiveMetastore_delete_partition_column_statistics_args & rhs) const { @@ -12647,18 +12449,15 @@ class ThriftHiveMetastore_delete_partition_column_statistics_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_delete_partition_column_statistics_args& obj); }; class ThriftHiveMetastore_delete_partition_column_statistics_pargs { public: - static const char* ascii_fingerprint; // = "C93D890311F28844166CF6E571EB3AC2"; - static const uint8_t binary_fingerprint[16]; // = {0xC9,0x3D,0x89,0x03,0x11,0xF2,0x88,0x44,0x16,0x6C,0xF6,0xE5,0x71,0xEB,0x3A,0xC2}; + virtual ~ThriftHiveMetastore_delete_partition_column_statistics_pargs() throw() {} - virtual ~ThriftHiveMetastore_delete_partition_column_statistics_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::string* part_name; @@ -12666,30 +12465,25 @@ class ThriftHiveMetastore_delete_partition_column_statistics_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_delete_partition_column_statistics_pargs& obj); }; typedef struct _ThriftHiveMetastore_delete_partition_column_statistics_result__isset { _ThriftHiveMetastore_delete_partition_column_statistics_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_delete_partition_column_statistics_result__isset; class ThriftHiveMetastore_delete_partition_column_statistics_result { public: - static const char* ascii_fingerprint; // = "E8B013EAAAC242F4CEBBF1AC05253E9C"; - static const uint8_t binary_fingerprint[16]; // = {0xE8,0xB0,0x13,0xEA,0xAA,0xC2,0x42,0xF4,0xCE,0xBB,0xF1,0xAC,0x05,0x25,0x3E,0x9C}; - - ThriftHiveMetastore_delete_partition_column_statistics_result(const ThriftHiveMetastore_delete_partition_column_statistics_result&); - ThriftHiveMetastore_delete_partition_column_statistics_result& operator=(const ThriftHiveMetastore_delete_partition_column_statistics_result&); ThriftHiveMetastore_delete_partition_column_statistics_result() : success(0) { } - virtual ~ThriftHiveMetastore_delete_partition_column_statistics_result() throw(); + virtual ~ThriftHiveMetastore_delete_partition_column_statistics_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; @@ -12698,15 +12492,25 @@ class ThriftHiveMetastore_delete_partition_column_statistics_result { _ThriftHiveMetastore_delete_partition_column_statistics_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } - void __set_o3(const InvalidObjectException& val); + void __set_o3(const InvalidObjectException& val) { + o3 = val; + } - void __set_o4(const InvalidInputException& val); + void __set_o4(const InvalidInputException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_delete_partition_column_statistics_result & rhs) const { @@ -12731,26 +12535,23 @@ class ThriftHiveMetastore_delete_partition_column_statistics_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_delete_partition_column_statistics_result& obj); }; typedef struct _ThriftHiveMetastore_delete_partition_column_statistics_presult__isset { _ThriftHiveMetastore_delete_partition_column_statistics_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_delete_partition_column_statistics_presult__isset; class ThriftHiveMetastore_delete_partition_column_statistics_presult { public: - static const char* ascii_fingerprint; // = "E8B013EAAAC242F4CEBBF1AC05253E9C"; - static const uint8_t binary_fingerprint[16]; // = {0xE8,0xB0,0x13,0xEA,0xAA,0xC2,0x42,0xF4,0xCE,0xBB,0xF1,0xAC,0x05,0x25,0x3E,0x9C}; + virtual ~ThriftHiveMetastore_delete_partition_column_statistics_presult() throw() {} - virtual ~ThriftHiveMetastore_delete_partition_column_statistics_presult() throw(); bool* success; NoSuchObjectException o1; MetaException o2; @@ -12761,39 +12562,40 @@ class ThriftHiveMetastore_delete_partition_column_statistics_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_delete_partition_column_statistics_presult& obj); }; typedef struct _ThriftHiveMetastore_delete_table_column_statistics_args__isset { _ThriftHiveMetastore_delete_table_column_statistics_args__isset() : db_name(false), tbl_name(false), col_name(false) {} - bool db_name :1; - bool tbl_name :1; - bool col_name :1; + bool db_name; + bool tbl_name; + bool col_name; } _ThriftHiveMetastore_delete_table_column_statistics_args__isset; class ThriftHiveMetastore_delete_table_column_statistics_args { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; - - ThriftHiveMetastore_delete_table_column_statistics_args(const ThriftHiveMetastore_delete_table_column_statistics_args&); - ThriftHiveMetastore_delete_table_column_statistics_args& operator=(const ThriftHiveMetastore_delete_table_column_statistics_args&); ThriftHiveMetastore_delete_table_column_statistics_args() : db_name(), tbl_name(), col_name() { } - virtual ~ThriftHiveMetastore_delete_table_column_statistics_args() throw(); + virtual ~ThriftHiveMetastore_delete_table_column_statistics_args() throw() {} + std::string db_name; std::string tbl_name; std::string col_name; _ThriftHiveMetastore_delete_table_column_statistics_args__isset __isset; - void __set_db_name(const std::string& val); + void __set_db_name(const std::string& val) { + db_name = val; + } - void __set_tbl_name(const std::string& val); + void __set_tbl_name(const std::string& val) { + tbl_name = val; + } - void __set_col_name(const std::string& val); + void __set_col_name(const std::string& val) { + col_name = val; + } bool operator == (const ThriftHiveMetastore_delete_table_column_statistics_args & rhs) const { @@ -12814,48 +12616,40 @@ class ThriftHiveMetastore_delete_table_column_statistics_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_delete_table_column_statistics_args& obj); }; class ThriftHiveMetastore_delete_table_column_statistics_pargs { public: - static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; + virtual ~ThriftHiveMetastore_delete_table_column_statistics_pargs() throw() {} - virtual ~ThriftHiveMetastore_delete_table_column_statistics_pargs() throw(); const std::string* db_name; const std::string* tbl_name; const std::string* col_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_delete_table_column_statistics_pargs& obj); }; typedef struct _ThriftHiveMetastore_delete_table_column_statistics_result__isset { _ThriftHiveMetastore_delete_table_column_statistics_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_delete_table_column_statistics_result__isset; class ThriftHiveMetastore_delete_table_column_statistics_result { public: - static const char* ascii_fingerprint; // = "E8B013EAAAC242F4CEBBF1AC05253E9C"; - static const uint8_t binary_fingerprint[16]; // = {0xE8,0xB0,0x13,0xEA,0xAA,0xC2,0x42,0xF4,0xCE,0xBB,0xF1,0xAC,0x05,0x25,0x3E,0x9C}; - - ThriftHiveMetastore_delete_table_column_statistics_result(const ThriftHiveMetastore_delete_table_column_statistics_result&); - ThriftHiveMetastore_delete_table_column_statistics_result& operator=(const ThriftHiveMetastore_delete_table_column_statistics_result&); ThriftHiveMetastore_delete_table_column_statistics_result() : success(0) { } - virtual ~ThriftHiveMetastore_delete_table_column_statistics_result() throw(); + virtual ~ThriftHiveMetastore_delete_table_column_statistics_result() throw() {} + bool success; NoSuchObjectException o1; MetaException o2; @@ -12864,15 +12658,25 @@ class ThriftHiveMetastore_delete_table_column_statistics_result { _ThriftHiveMetastore_delete_table_column_statistics_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } - void __set_o3(const InvalidObjectException& val); + void __set_o3(const InvalidObjectException& val) { + o3 = val; + } - void __set_o4(const InvalidInputException& val); + void __set_o4(const InvalidInputException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_delete_table_column_statistics_result & rhs) const { @@ -12897,26 +12701,23 @@ class ThriftHiveMetastore_delete_table_column_statistics_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_delete_table_column_statistics_result& obj); }; typedef struct _ThriftHiveMetastore_delete_table_column_statistics_presult__isset { _ThriftHiveMetastore_delete_table_column_statistics_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool success; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_delete_table_column_statistics_presult__isset; class ThriftHiveMetastore_delete_table_column_statistics_presult { public: - static const char* ascii_fingerprint; // = "E8B013EAAAC242F4CEBBF1AC05253E9C"; - static const uint8_t binary_fingerprint[16]; // = {0xE8,0xB0,0x13,0xEA,0xAA,0xC2,0x42,0xF4,0xCE,0xBB,0xF1,0xAC,0x05,0x25,0x3E,0x9C}; + virtual ~ThriftHiveMetastore_delete_table_column_statistics_presult() throw() {} - virtual ~ThriftHiveMetastore_delete_table_column_statistics_presult() throw(); bool* success; NoSuchObjectException o1; MetaException o2; @@ -12927,31 +12728,28 @@ class ThriftHiveMetastore_delete_table_column_statistics_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_delete_table_column_statistics_presult& obj); }; typedef struct _ThriftHiveMetastore_create_function_args__isset { _ThriftHiveMetastore_create_function_args__isset() : func(false) {} - bool func :1; + bool func; } _ThriftHiveMetastore_create_function_args__isset; class ThriftHiveMetastore_create_function_args { public: - static const char* ascii_fingerprint; // = "25614A3E61B5684636724A881FC768D7"; - static const uint8_t binary_fingerprint[16]; // = {0x25,0x61,0x4A,0x3E,0x61,0xB5,0x68,0x46,0x36,0x72,0x4A,0x88,0x1F,0xC7,0x68,0xD7}; - - ThriftHiveMetastore_create_function_args(const ThriftHiveMetastore_create_function_args&); - ThriftHiveMetastore_create_function_args& operator=(const ThriftHiveMetastore_create_function_args&); ThriftHiveMetastore_create_function_args() { } - virtual ~ThriftHiveMetastore_create_function_args() throw(); + virtual ~ThriftHiveMetastore_create_function_args() throw() {} + Function func; _ThriftHiveMetastore_create_function_args__isset __isset; - void __set_func(const Function& val); + void __set_func(const Function& val) { + func = val; + } bool operator == (const ThriftHiveMetastore_create_function_args & rhs) const { @@ -12968,45 +12766,37 @@ class ThriftHiveMetastore_create_function_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_function_args& obj); }; class ThriftHiveMetastore_create_function_pargs { public: - static const char* ascii_fingerprint; // = "25614A3E61B5684636724A881FC768D7"; - static const uint8_t binary_fingerprint[16]; // = {0x25,0x61,0x4A,0x3E,0x61,0xB5,0x68,0x46,0x36,0x72,0x4A,0x88,0x1F,0xC7,0x68,0xD7}; + virtual ~ThriftHiveMetastore_create_function_pargs() throw() {} - virtual ~ThriftHiveMetastore_create_function_pargs() throw(); const Function* func; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_function_pargs& obj); }; typedef struct _ThriftHiveMetastore_create_function_result__isset { _ThriftHiveMetastore_create_function_result__isset() : o1(false), o2(false), o3(false), o4(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_create_function_result__isset; class ThriftHiveMetastore_create_function_result { public: - static const char* ascii_fingerprint; // = "F9EF8E19A6AC2C4E08D282524B9828EB"; - static const uint8_t binary_fingerprint[16]; // = {0xF9,0xEF,0x8E,0x19,0xA6,0xAC,0x2C,0x4E,0x08,0xD2,0x82,0x52,0x4B,0x98,0x28,0xEB}; - - ThriftHiveMetastore_create_function_result(const ThriftHiveMetastore_create_function_result&); - ThriftHiveMetastore_create_function_result& operator=(const ThriftHiveMetastore_create_function_result&); ThriftHiveMetastore_create_function_result() { } - virtual ~ThriftHiveMetastore_create_function_result() throw(); + virtual ~ThriftHiveMetastore_create_function_result() throw() {} + AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -13014,13 +12804,21 @@ class ThriftHiveMetastore_create_function_result { _ThriftHiveMetastore_create_function_result__isset __isset; - void __set_o1(const AlreadyExistsException& val); + void __set_o1(const AlreadyExistsException& val) { + o1 = val; + } - void __set_o2(const InvalidObjectException& val); + void __set_o2(const InvalidObjectException& val) { + o2 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } - void __set_o4(const NoSuchObjectException& val); + void __set_o4(const NoSuchObjectException& val) { + o4 = val; + } bool operator == (const ThriftHiveMetastore_create_function_result & rhs) const { @@ -13043,25 +12841,22 @@ class ThriftHiveMetastore_create_function_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_function_result& obj); }; typedef struct _ThriftHiveMetastore_create_function_presult__isset { _ThriftHiveMetastore_create_function_presult__isset() : o1(false), o2(false), o3(false), o4(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; - bool o4 :1; + bool o1; + bool o2; + bool o3; + bool o4; } _ThriftHiveMetastore_create_function_presult__isset; class ThriftHiveMetastore_create_function_presult { public: - static const char* ascii_fingerprint; // = "F9EF8E19A6AC2C4E08D282524B9828EB"; - static const uint8_t binary_fingerprint[16]; // = {0xF9,0xEF,0x8E,0x19,0xA6,0xAC,0x2C,0x4E,0x08,0xD2,0x82,0x52,0x4B,0x98,0x28,0xEB}; + virtual ~ThriftHiveMetastore_create_function_presult() throw() {} - virtual ~ThriftHiveMetastore_create_function_presult() throw(); AlreadyExistsException o1; InvalidObjectException o2; MetaException o3; @@ -13071,35 +12866,34 @@ class ThriftHiveMetastore_create_function_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_function_presult& obj); }; typedef struct _ThriftHiveMetastore_drop_function_args__isset { _ThriftHiveMetastore_drop_function_args__isset() : dbName(false), funcName(false) {} - bool dbName :1; - bool funcName :1; + bool dbName; + bool funcName; } _ThriftHiveMetastore_drop_function_args__isset; class ThriftHiveMetastore_drop_function_args { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; - - ThriftHiveMetastore_drop_function_args(const ThriftHiveMetastore_drop_function_args&); - ThriftHiveMetastore_drop_function_args& operator=(const ThriftHiveMetastore_drop_function_args&); ThriftHiveMetastore_drop_function_args() : dbName(), funcName() { } - virtual ~ThriftHiveMetastore_drop_function_args() throw(); + virtual ~ThriftHiveMetastore_drop_function_args() throw() {} + std::string dbName; std::string funcName; _ThriftHiveMetastore_drop_function_args__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_funcName(const std::string& val); + void __set_funcName(const std::string& val) { + funcName = val; + } bool operator == (const ThriftHiveMetastore_drop_function_args & rhs) const { @@ -13118,52 +12912,48 @@ class ThriftHiveMetastore_drop_function_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_function_args& obj); }; class ThriftHiveMetastore_drop_function_pargs { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + virtual ~ThriftHiveMetastore_drop_function_pargs() throw() {} - virtual ~ThriftHiveMetastore_drop_function_pargs() throw(); const std::string* dbName; const std::string* funcName; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_function_pargs& obj); }; typedef struct _ThriftHiveMetastore_drop_function_result__isset { _ThriftHiveMetastore_drop_function_result__isset() : o1(false), o3(false) {} - bool o1 :1; - bool o3 :1; + bool o1; + bool o3; } _ThriftHiveMetastore_drop_function_result__isset; class ThriftHiveMetastore_drop_function_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_drop_function_result(const ThriftHiveMetastore_drop_function_result&); - ThriftHiveMetastore_drop_function_result& operator=(const ThriftHiveMetastore_drop_function_result&); ThriftHiveMetastore_drop_function_result() { } - virtual ~ThriftHiveMetastore_drop_function_result() throw(); + virtual ~ThriftHiveMetastore_drop_function_result() throw() {} + NoSuchObjectException o1; MetaException o3; _ThriftHiveMetastore_drop_function_result__isset __isset; - void __set_o1(const NoSuchObjectException& val); + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } - void __set_o3(const MetaException& val); + void __set_o3(const MetaException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_drop_function_result & rhs) const { @@ -13182,23 +12972,20 @@ class ThriftHiveMetastore_drop_function_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_function_result& obj); }; typedef struct _ThriftHiveMetastore_drop_function_presult__isset { _ThriftHiveMetastore_drop_function_presult__isset() : o1(false), o3(false) {} - bool o1 :1; - bool o3 :1; + bool o1; + bool o3; } _ThriftHiveMetastore_drop_function_presult__isset; class ThriftHiveMetastore_drop_function_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_drop_function_presult() throw() {} - virtual ~ThriftHiveMetastore_drop_function_presult() throw(); NoSuchObjectException o1; MetaException o3; @@ -13206,39 +12993,40 @@ class ThriftHiveMetastore_drop_function_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_function_presult& obj); }; typedef struct _ThriftHiveMetastore_alter_function_args__isset { _ThriftHiveMetastore_alter_function_args__isset() : dbName(false), funcName(false), newFunc(false) {} - bool dbName :1; - bool funcName :1; - bool newFunc :1; + bool dbName; + bool funcName; + bool newFunc; } _ThriftHiveMetastore_alter_function_args__isset; class ThriftHiveMetastore_alter_function_args { public: - static const char* ascii_fingerprint; // = "2F8F1358572180A7FA1CDB1B1021A3E8"; - static const uint8_t binary_fingerprint[16]; // = {0x2F,0x8F,0x13,0x58,0x57,0x21,0x80,0xA7,0xFA,0x1C,0xDB,0x1B,0x10,0x21,0xA3,0xE8}; - - ThriftHiveMetastore_alter_function_args(const ThriftHiveMetastore_alter_function_args&); - ThriftHiveMetastore_alter_function_args& operator=(const ThriftHiveMetastore_alter_function_args&); ThriftHiveMetastore_alter_function_args() : dbName(), funcName() { } - virtual ~ThriftHiveMetastore_alter_function_args() throw(); + virtual ~ThriftHiveMetastore_alter_function_args() throw() {} + std::string dbName; std::string funcName; Function newFunc; _ThriftHiveMetastore_alter_function_args__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_funcName(const std::string& val); + void __set_funcName(const std::string& val) { + funcName = val; + } - void __set_newFunc(const Function& val); + void __set_newFunc(const Function& val) { + newFunc = val; + } bool operator == (const ThriftHiveMetastore_alter_function_args & rhs) const { @@ -13259,53 +13047,49 @@ class ThriftHiveMetastore_alter_function_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_function_args& obj); }; class ThriftHiveMetastore_alter_function_pargs { public: - static const char* ascii_fingerprint; // = "2F8F1358572180A7FA1CDB1B1021A3E8"; - static const uint8_t binary_fingerprint[16]; // = {0x2F,0x8F,0x13,0x58,0x57,0x21,0x80,0xA7,0xFA,0x1C,0xDB,0x1B,0x10,0x21,0xA3,0xE8}; + virtual ~ThriftHiveMetastore_alter_function_pargs() throw() {} - virtual ~ThriftHiveMetastore_alter_function_pargs() throw(); const std::string* dbName; const std::string* funcName; const Function* newFunc; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_function_pargs& obj); }; typedef struct _ThriftHiveMetastore_alter_function_result__isset { _ThriftHiveMetastore_alter_function_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_function_result__isset; class ThriftHiveMetastore_alter_function_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_alter_function_result(const ThriftHiveMetastore_alter_function_result&); - ThriftHiveMetastore_alter_function_result& operator=(const ThriftHiveMetastore_alter_function_result&); ThriftHiveMetastore_alter_function_result() { } - virtual ~ThriftHiveMetastore_alter_function_result() throw(); + virtual ~ThriftHiveMetastore_alter_function_result() throw() {} + InvalidOperationException o1; MetaException o2; _ThriftHiveMetastore_alter_function_result__isset __isset; - void __set_o1(const InvalidOperationException& val); + void __set_o1(const InvalidOperationException& val) { + o1 = val; + } - void __set_o2(const MetaException& val); + void __set_o2(const MetaException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_alter_function_result & rhs) const { @@ -13324,23 +13108,20 @@ class ThriftHiveMetastore_alter_function_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_function_result& obj); }; typedef struct _ThriftHiveMetastore_alter_function_presult__isset { _ThriftHiveMetastore_alter_function_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_alter_function_presult__isset; class ThriftHiveMetastore_alter_function_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_alter_function_presult() throw() {} - virtual ~ThriftHiveMetastore_alter_function_presult() throw(); InvalidOperationException o1; MetaException o2; @@ -13348,35 +13129,34 @@ class ThriftHiveMetastore_alter_function_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_alter_function_presult& obj); }; typedef struct _ThriftHiveMetastore_get_functions_args__isset { _ThriftHiveMetastore_get_functions_args__isset() : dbName(false), pattern(false) {} - bool dbName :1; - bool pattern :1; + bool dbName; + bool pattern; } _ThriftHiveMetastore_get_functions_args__isset; class ThriftHiveMetastore_get_functions_args { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; - - ThriftHiveMetastore_get_functions_args(const ThriftHiveMetastore_get_functions_args&); - ThriftHiveMetastore_get_functions_args& operator=(const ThriftHiveMetastore_get_functions_args&); ThriftHiveMetastore_get_functions_args() : dbName(), pattern() { } - virtual ~ThriftHiveMetastore_get_functions_args() throw(); + virtual ~ThriftHiveMetastore_get_functions_args() throw() {} + std::string dbName; std::string pattern; _ThriftHiveMetastore_get_functions_args__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_pattern(const std::string& val); + void __set_pattern(const std::string& val) { + pattern = val; + } bool operator == (const ThriftHiveMetastore_get_functions_args & rhs) const { @@ -13395,52 +13175,48 @@ class ThriftHiveMetastore_get_functions_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_functions_args& obj); }; class ThriftHiveMetastore_get_functions_pargs { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + virtual ~ThriftHiveMetastore_get_functions_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_functions_pargs() throw(); const std::string* dbName; const std::string* pattern; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_functions_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_functions_result__isset { _ThriftHiveMetastore_get_functions_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_functions_result__isset; class ThriftHiveMetastore_get_functions_result { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; - - ThriftHiveMetastore_get_functions_result(const ThriftHiveMetastore_get_functions_result&); - ThriftHiveMetastore_get_functions_result& operator=(const ThriftHiveMetastore_get_functions_result&); ThriftHiveMetastore_get_functions_result() { } - virtual ~ThriftHiveMetastore_get_functions_result() throw(); + virtual ~ThriftHiveMetastore_get_functions_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_get_functions_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_functions_result & rhs) const { @@ -13459,23 +13235,20 @@ class ThriftHiveMetastore_get_functions_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_functions_result& obj); }; typedef struct _ThriftHiveMetastore_get_functions_presult__isset { _ThriftHiveMetastore_get_functions_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_functions_presult__isset; class ThriftHiveMetastore_get_functions_presult { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; + virtual ~ThriftHiveMetastore_get_functions_presult() throw() {} - virtual ~ThriftHiveMetastore_get_functions_presult() throw(); std::vector * success; MetaException o1; @@ -13483,35 +13256,34 @@ class ThriftHiveMetastore_get_functions_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_functions_presult& obj); }; typedef struct _ThriftHiveMetastore_get_function_args__isset { _ThriftHiveMetastore_get_function_args__isset() : dbName(false), funcName(false) {} - bool dbName :1; - bool funcName :1; + bool dbName; + bool funcName; } _ThriftHiveMetastore_get_function_args__isset; class ThriftHiveMetastore_get_function_args { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; - - ThriftHiveMetastore_get_function_args(const ThriftHiveMetastore_get_function_args&); - ThriftHiveMetastore_get_function_args& operator=(const ThriftHiveMetastore_get_function_args&); ThriftHiveMetastore_get_function_args() : dbName(), funcName() { } - virtual ~ThriftHiveMetastore_get_function_args() throw(); + virtual ~ThriftHiveMetastore_get_function_args() throw() {} + std::string dbName; std::string funcName; _ThriftHiveMetastore_get_function_args__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_funcName(const std::string& val); + void __set_funcName(const std::string& val) { + funcName = val; + } bool operator == (const ThriftHiveMetastore_get_function_args & rhs) const { @@ -13530,56 +13302,54 @@ class ThriftHiveMetastore_get_function_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_function_args& obj); }; class ThriftHiveMetastore_get_function_pargs { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + virtual ~ThriftHiveMetastore_get_function_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_function_pargs() throw(); const std::string* dbName; const std::string* funcName; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_function_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_function_result__isset { _ThriftHiveMetastore_get_function_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_function_result__isset; class ThriftHiveMetastore_get_function_result { public: - static const char* ascii_fingerprint; // = "870289681A55022612B36FE7410680C6"; - static const uint8_t binary_fingerprint[16]; // = {0x87,0x02,0x89,0x68,0x1A,0x55,0x02,0x26,0x12,0xB3,0x6F,0xE7,0x41,0x06,0x80,0xC6}; - - ThriftHiveMetastore_get_function_result(const ThriftHiveMetastore_get_function_result&); - ThriftHiveMetastore_get_function_result& operator=(const ThriftHiveMetastore_get_function_result&); ThriftHiveMetastore_get_function_result() { } - virtual ~ThriftHiveMetastore_get_function_result() throw(); + virtual ~ThriftHiveMetastore_get_function_result() throw() {} + Function success; MetaException o1; NoSuchObjectException o2; _ThriftHiveMetastore_get_function_result__isset __isset; - void __set_success(const Function& val); + void __set_success(const Function& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } - void __set_o2(const NoSuchObjectException& val); + void __set_o2(const NoSuchObjectException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_get_function_result & rhs) const { @@ -13600,24 +13370,21 @@ class ThriftHiveMetastore_get_function_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_function_result& obj); }; typedef struct _ThriftHiveMetastore_get_function_presult__isset { _ThriftHiveMetastore_get_function_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_get_function_presult__isset; class ThriftHiveMetastore_get_function_presult { public: - static const char* ascii_fingerprint; // = "870289681A55022612B36FE7410680C6"; - static const uint8_t binary_fingerprint[16]; // = {0x87,0x02,0x89,0x68,0x1A,0x55,0x02,0x26,0x12,0xB3,0x6F,0xE7,0x41,0x06,0x80,0xC6}; + virtual ~ThriftHiveMetastore_get_function_presult() throw() {} - virtual ~ThriftHiveMetastore_get_function_presult() throw(); Function* success; MetaException o1; NoSuchObjectException o2; @@ -13626,22 +13393,17 @@ class ThriftHiveMetastore_get_function_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_function_presult& obj); }; class ThriftHiveMetastore_get_all_functions_args { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHiveMetastore_get_all_functions_args(const ThriftHiveMetastore_get_all_functions_args&); - ThriftHiveMetastore_get_all_functions_args& operator=(const ThriftHiveMetastore_get_all_functions_args&); ThriftHiveMetastore_get_all_functions_args() { } - virtual ~ThriftHiveMetastore_get_all_functions_args() throw(); + virtual ~ThriftHiveMetastore_get_all_functions_args() throw() {} + bool operator == (const ThriftHiveMetastore_get_all_functions_args & /* rhs */) const { @@ -13656,50 +13418,46 @@ class ThriftHiveMetastore_get_all_functions_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_all_functions_args& obj); }; class ThriftHiveMetastore_get_all_functions_pargs { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHiveMetastore_get_all_functions_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_all_functions_pargs() throw(); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_all_functions_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_all_functions_result__isset { _ThriftHiveMetastore_get_all_functions_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_all_functions_result__isset; class ThriftHiveMetastore_get_all_functions_result { public: - static const char* ascii_fingerprint; // = "06C8A68188A121F548981E73524438EF"; - static const uint8_t binary_fingerprint[16]; // = {0x06,0xC8,0xA6,0x81,0x88,0xA1,0x21,0xF5,0x48,0x98,0x1E,0x73,0x52,0x44,0x38,0xEF}; - - ThriftHiveMetastore_get_all_functions_result(const ThriftHiveMetastore_get_all_functions_result&); - ThriftHiveMetastore_get_all_functions_result& operator=(const ThriftHiveMetastore_get_all_functions_result&); ThriftHiveMetastore_get_all_functions_result() { } - virtual ~ThriftHiveMetastore_get_all_functions_result() throw(); + virtual ~ThriftHiveMetastore_get_all_functions_result() throw() {} + GetAllFunctionsResponse success; MetaException o1; _ThriftHiveMetastore_get_all_functions_result__isset __isset; - void __set_success(const GetAllFunctionsResponse& val); + void __set_success(const GetAllFunctionsResponse& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_all_functions_result & rhs) const { @@ -13718,23 +13476,20 @@ class ThriftHiveMetastore_get_all_functions_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_all_functions_result& obj); }; typedef struct _ThriftHiveMetastore_get_all_functions_presult__isset { _ThriftHiveMetastore_get_all_functions_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_all_functions_presult__isset; class ThriftHiveMetastore_get_all_functions_presult { public: - static const char* ascii_fingerprint; // = "06C8A68188A121F548981E73524438EF"; - static const uint8_t binary_fingerprint[16]; // = {0x06,0xC8,0xA6,0x81,0x88,0xA1,0x21,0xF5,0x48,0x98,0x1E,0x73,0x52,0x44,0x38,0xEF}; + virtual ~ThriftHiveMetastore_get_all_functions_presult() throw() {} - virtual ~ThriftHiveMetastore_get_all_functions_presult() throw(); GetAllFunctionsResponse* success; MetaException o1; @@ -13742,31 +13497,28 @@ class ThriftHiveMetastore_get_all_functions_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_all_functions_presult& obj); }; typedef struct _ThriftHiveMetastore_create_role_args__isset { _ThriftHiveMetastore_create_role_args__isset() : role(false) {} - bool role :1; + bool role; } _ThriftHiveMetastore_create_role_args__isset; class ThriftHiveMetastore_create_role_args { public: - static const char* ascii_fingerprint; // = "6AC6FD61CA5E3524E0174B0B96D6F9C0"; - static const uint8_t binary_fingerprint[16]; // = {0x6A,0xC6,0xFD,0x61,0xCA,0x5E,0x35,0x24,0xE0,0x17,0x4B,0x0B,0x96,0xD6,0xF9,0xC0}; - - ThriftHiveMetastore_create_role_args(const ThriftHiveMetastore_create_role_args&); - ThriftHiveMetastore_create_role_args& operator=(const ThriftHiveMetastore_create_role_args&); ThriftHiveMetastore_create_role_args() { } - virtual ~ThriftHiveMetastore_create_role_args() throw(); + virtual ~ThriftHiveMetastore_create_role_args() throw() {} + Role role; _ThriftHiveMetastore_create_role_args__isset __isset; - void __set_role(const Role& val); + void __set_role(const Role& val) { + role = val; + } bool operator == (const ThriftHiveMetastore_create_role_args & rhs) const { @@ -13783,51 +13535,47 @@ class ThriftHiveMetastore_create_role_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_role_args& obj); }; class ThriftHiveMetastore_create_role_pargs { public: - static const char* ascii_fingerprint; // = "6AC6FD61CA5E3524E0174B0B96D6F9C0"; - static const uint8_t binary_fingerprint[16]; // = {0x6A,0xC6,0xFD,0x61,0xCA,0x5E,0x35,0x24,0xE0,0x17,0x4B,0x0B,0x96,0xD6,0xF9,0xC0}; + virtual ~ThriftHiveMetastore_create_role_pargs() throw() {} - virtual ~ThriftHiveMetastore_create_role_pargs() throw(); const Role* role; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_role_pargs& obj); }; typedef struct _ThriftHiveMetastore_create_role_result__isset { _ThriftHiveMetastore_create_role_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_create_role_result__isset; class ThriftHiveMetastore_create_role_result { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; - - ThriftHiveMetastore_create_role_result(const ThriftHiveMetastore_create_role_result&); - ThriftHiveMetastore_create_role_result& operator=(const ThriftHiveMetastore_create_role_result&); ThriftHiveMetastore_create_role_result() : success(0) { } - virtual ~ThriftHiveMetastore_create_role_result() throw(); + virtual ~ThriftHiveMetastore_create_role_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_create_role_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_create_role_result & rhs) const { @@ -13846,23 +13594,20 @@ class ThriftHiveMetastore_create_role_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_role_result& obj); }; typedef struct _ThriftHiveMetastore_create_role_presult__isset { _ThriftHiveMetastore_create_role_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_create_role_presult__isset; class ThriftHiveMetastore_create_role_presult { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; + virtual ~ThriftHiveMetastore_create_role_presult() throw() {} - virtual ~ThriftHiveMetastore_create_role_presult() throw(); bool* success; MetaException o1; @@ -13870,31 +13615,28 @@ class ThriftHiveMetastore_create_role_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_create_role_presult& obj); }; typedef struct _ThriftHiveMetastore_drop_role_args__isset { _ThriftHiveMetastore_drop_role_args__isset() : role_name(false) {} - bool role_name :1; + bool role_name; } _ThriftHiveMetastore_drop_role_args__isset; class ThriftHiveMetastore_drop_role_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - ThriftHiveMetastore_drop_role_args(const ThriftHiveMetastore_drop_role_args&); - ThriftHiveMetastore_drop_role_args& operator=(const ThriftHiveMetastore_drop_role_args&); ThriftHiveMetastore_drop_role_args() : role_name() { } - virtual ~ThriftHiveMetastore_drop_role_args() throw(); + virtual ~ThriftHiveMetastore_drop_role_args() throw() {} + std::string role_name; _ThriftHiveMetastore_drop_role_args__isset __isset; - void __set_role_name(const std::string& val); + void __set_role_name(const std::string& val) { + role_name = val; + } bool operator == (const ThriftHiveMetastore_drop_role_args & rhs) const { @@ -13911,51 +13653,47 @@ class ThriftHiveMetastore_drop_role_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_role_args& obj); }; class ThriftHiveMetastore_drop_role_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + virtual ~ThriftHiveMetastore_drop_role_pargs() throw() {} - virtual ~ThriftHiveMetastore_drop_role_pargs() throw(); const std::string* role_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_role_pargs& obj); }; typedef struct _ThriftHiveMetastore_drop_role_result__isset { _ThriftHiveMetastore_drop_role_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_drop_role_result__isset; class ThriftHiveMetastore_drop_role_result { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; - - ThriftHiveMetastore_drop_role_result(const ThriftHiveMetastore_drop_role_result&); - ThriftHiveMetastore_drop_role_result& operator=(const ThriftHiveMetastore_drop_role_result&); ThriftHiveMetastore_drop_role_result() : success(0) { } - virtual ~ThriftHiveMetastore_drop_role_result() throw(); + virtual ~ThriftHiveMetastore_drop_role_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_drop_role_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_drop_role_result & rhs) const { @@ -13974,23 +13712,20 @@ class ThriftHiveMetastore_drop_role_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_role_result& obj); }; typedef struct _ThriftHiveMetastore_drop_role_presult__isset { _ThriftHiveMetastore_drop_role_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_drop_role_presult__isset; class ThriftHiveMetastore_drop_role_presult { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; + virtual ~ThriftHiveMetastore_drop_role_presult() throw() {} - virtual ~ThriftHiveMetastore_drop_role_presult() throw(); bool* success; MetaException o1; @@ -13998,22 +13733,17 @@ class ThriftHiveMetastore_drop_role_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_drop_role_presult& obj); }; class ThriftHiveMetastore_get_role_names_args { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHiveMetastore_get_role_names_args(const ThriftHiveMetastore_get_role_names_args&); - ThriftHiveMetastore_get_role_names_args& operator=(const ThriftHiveMetastore_get_role_names_args&); ThriftHiveMetastore_get_role_names_args() { } - virtual ~ThriftHiveMetastore_get_role_names_args() throw(); + virtual ~ThriftHiveMetastore_get_role_names_args() throw() {} + bool operator == (const ThriftHiveMetastore_get_role_names_args & /* rhs */) const { @@ -14028,50 +13758,46 @@ class ThriftHiveMetastore_get_role_names_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_role_names_args& obj); }; class ThriftHiveMetastore_get_role_names_pargs { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHiveMetastore_get_role_names_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_role_names_pargs() throw(); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_role_names_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_role_names_result__isset { _ThriftHiveMetastore_get_role_names_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_role_names_result__isset; class ThriftHiveMetastore_get_role_names_result { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; - - ThriftHiveMetastore_get_role_names_result(const ThriftHiveMetastore_get_role_names_result&); - ThriftHiveMetastore_get_role_names_result& operator=(const ThriftHiveMetastore_get_role_names_result&); ThriftHiveMetastore_get_role_names_result() { } - virtual ~ThriftHiveMetastore_get_role_names_result() throw(); + virtual ~ThriftHiveMetastore_get_role_names_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_get_role_names_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_role_names_result & rhs) const { @@ -14090,23 +13816,20 @@ class ThriftHiveMetastore_get_role_names_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_role_names_result& obj); }; typedef struct _ThriftHiveMetastore_get_role_names_presult__isset { _ThriftHiveMetastore_get_role_names_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_role_names_presult__isset; class ThriftHiveMetastore_get_role_names_presult { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; + virtual ~ThriftHiveMetastore_get_role_names_presult() throw() {} - virtual ~ThriftHiveMetastore_get_role_names_presult() throw(); std::vector * success; MetaException o1; @@ -14114,31 +13837,26 @@ class ThriftHiveMetastore_get_role_names_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_role_names_presult& obj); }; typedef struct _ThriftHiveMetastore_grant_role_args__isset { _ThriftHiveMetastore_grant_role_args__isset() : role_name(false), principal_name(false), principal_type(false), grantor(false), grantorType(false), grant_option(false) {} - bool role_name :1; - bool principal_name :1; - bool principal_type :1; - bool grantor :1; - bool grantorType :1; - bool grant_option :1; + bool role_name; + bool principal_name; + bool principal_type; + bool grantor; + bool grantorType; + bool grant_option; } _ThriftHiveMetastore_grant_role_args__isset; class ThriftHiveMetastore_grant_role_args { public: - static const char* ascii_fingerprint; // = "133BD894291B139C46ECC5FBC7D159A2"; - static const uint8_t binary_fingerprint[16]; // = {0x13,0x3B,0xD8,0x94,0x29,0x1B,0x13,0x9C,0x46,0xEC,0xC5,0xFB,0xC7,0xD1,0x59,0xA2}; - - ThriftHiveMetastore_grant_role_args(const ThriftHiveMetastore_grant_role_args&); - ThriftHiveMetastore_grant_role_args& operator=(const ThriftHiveMetastore_grant_role_args&); ThriftHiveMetastore_grant_role_args() : role_name(), principal_name(), principal_type((PrincipalType::type)0), grantor(), grantorType((PrincipalType::type)0), grant_option(0) { } - virtual ~ThriftHiveMetastore_grant_role_args() throw(); + virtual ~ThriftHiveMetastore_grant_role_args() throw() {} + std::string role_name; std::string principal_name; PrincipalType::type principal_type; @@ -14148,17 +13866,29 @@ class ThriftHiveMetastore_grant_role_args { _ThriftHiveMetastore_grant_role_args__isset __isset; - void __set_role_name(const std::string& val); + void __set_role_name(const std::string& val) { + role_name = val; + } - void __set_principal_name(const std::string& val); + void __set_principal_name(const std::string& val) { + principal_name = val; + } - void __set_principal_type(const PrincipalType::type val); + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } - void __set_grantor(const std::string& val); + void __set_grantor(const std::string& val) { + grantor = val; + } - void __set_grantorType(const PrincipalType::type val); + void __set_grantorType(const PrincipalType::type val) { + grantorType = val; + } - void __set_grant_option(const bool val); + void __set_grant_option(const bool val) { + grant_option = val; + } bool operator == (const ThriftHiveMetastore_grant_role_args & rhs) const { @@ -14185,18 +13915,15 @@ class ThriftHiveMetastore_grant_role_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_role_args& obj); }; class ThriftHiveMetastore_grant_role_pargs { public: - static const char* ascii_fingerprint; // = "133BD894291B139C46ECC5FBC7D159A2"; - static const uint8_t binary_fingerprint[16]; // = {0x13,0x3B,0xD8,0x94,0x29,0x1B,0x13,0x9C,0x46,0xEC,0xC5,0xFB,0xC7,0xD1,0x59,0xA2}; + virtual ~ThriftHiveMetastore_grant_role_pargs() throw() {} - virtual ~ThriftHiveMetastore_grant_role_pargs() throw(); const std::string* role_name; const std::string* principal_name; const PrincipalType::type* principal_type; @@ -14206,35 +13933,34 @@ class ThriftHiveMetastore_grant_role_pargs { uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_role_pargs& obj); }; typedef struct _ThriftHiveMetastore_grant_role_result__isset { _ThriftHiveMetastore_grant_role_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_role_result__isset; class ThriftHiveMetastore_grant_role_result { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; - - ThriftHiveMetastore_grant_role_result(const ThriftHiveMetastore_grant_role_result&); - ThriftHiveMetastore_grant_role_result& operator=(const ThriftHiveMetastore_grant_role_result&); ThriftHiveMetastore_grant_role_result() : success(0) { } - virtual ~ThriftHiveMetastore_grant_role_result() throw(); + virtual ~ThriftHiveMetastore_grant_role_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_grant_role_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_grant_role_result & rhs) const { @@ -14253,23 +13979,20 @@ class ThriftHiveMetastore_grant_role_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_role_result& obj); }; typedef struct _ThriftHiveMetastore_grant_role_presult__isset { _ThriftHiveMetastore_grant_role_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_role_presult__isset; class ThriftHiveMetastore_grant_role_presult { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; + virtual ~ThriftHiveMetastore_grant_role_presult() throw() {} - virtual ~ThriftHiveMetastore_grant_role_presult() throw(); bool* success; MetaException o1; @@ -14277,39 +14000,40 @@ class ThriftHiveMetastore_grant_role_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_role_presult& obj); }; typedef struct _ThriftHiveMetastore_revoke_role_args__isset { _ThriftHiveMetastore_revoke_role_args__isset() : role_name(false), principal_name(false), principal_type(false) {} - bool role_name :1; - bool principal_name :1; - bool principal_type :1; + bool role_name; + bool principal_name; + bool principal_type; } _ThriftHiveMetastore_revoke_role_args__isset; class ThriftHiveMetastore_revoke_role_args { public: - static const char* ascii_fingerprint; // = "4F8ABE747D9A2DF14F7E84DDBE60D55C"; - static const uint8_t binary_fingerprint[16]; // = {0x4F,0x8A,0xBE,0x74,0x7D,0x9A,0x2D,0xF1,0x4F,0x7E,0x84,0xDD,0xBE,0x60,0xD5,0x5C}; - - ThriftHiveMetastore_revoke_role_args(const ThriftHiveMetastore_revoke_role_args&); - ThriftHiveMetastore_revoke_role_args& operator=(const ThriftHiveMetastore_revoke_role_args&); ThriftHiveMetastore_revoke_role_args() : role_name(), principal_name(), principal_type((PrincipalType::type)0) { } - virtual ~ThriftHiveMetastore_revoke_role_args() throw(); + virtual ~ThriftHiveMetastore_revoke_role_args() throw() {} + std::string role_name; std::string principal_name; PrincipalType::type principal_type; _ThriftHiveMetastore_revoke_role_args__isset __isset; - void __set_role_name(const std::string& val); + void __set_role_name(const std::string& val) { + role_name = val; + } - void __set_principal_name(const std::string& val); + void __set_principal_name(const std::string& val) { + principal_name = val; + } - void __set_principal_type(const PrincipalType::type val); + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } bool operator == (const ThriftHiveMetastore_revoke_role_args & rhs) const { @@ -14330,53 +14054,49 @@ class ThriftHiveMetastore_revoke_role_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_revoke_role_args& obj); }; class ThriftHiveMetastore_revoke_role_pargs { public: - static const char* ascii_fingerprint; // = "4F8ABE747D9A2DF14F7E84DDBE60D55C"; - static const uint8_t binary_fingerprint[16]; // = {0x4F,0x8A,0xBE,0x74,0x7D,0x9A,0x2D,0xF1,0x4F,0x7E,0x84,0xDD,0xBE,0x60,0xD5,0x5C}; + virtual ~ThriftHiveMetastore_revoke_role_pargs() throw() {} - virtual ~ThriftHiveMetastore_revoke_role_pargs() throw(); const std::string* role_name; const std::string* principal_name; const PrincipalType::type* principal_type; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_revoke_role_pargs& obj); }; typedef struct _ThriftHiveMetastore_revoke_role_result__isset { _ThriftHiveMetastore_revoke_role_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_revoke_role_result__isset; class ThriftHiveMetastore_revoke_role_result { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; - - ThriftHiveMetastore_revoke_role_result(const ThriftHiveMetastore_revoke_role_result&); - ThriftHiveMetastore_revoke_role_result& operator=(const ThriftHiveMetastore_revoke_role_result&); ThriftHiveMetastore_revoke_role_result() : success(0) { } - virtual ~ThriftHiveMetastore_revoke_role_result() throw(); + virtual ~ThriftHiveMetastore_revoke_role_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_revoke_role_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_revoke_role_result & rhs) const { @@ -14395,23 +14115,20 @@ class ThriftHiveMetastore_revoke_role_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_revoke_role_result& obj); }; typedef struct _ThriftHiveMetastore_revoke_role_presult__isset { _ThriftHiveMetastore_revoke_role_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_revoke_role_presult__isset; class ThriftHiveMetastore_revoke_role_presult { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; + virtual ~ThriftHiveMetastore_revoke_role_presult() throw() {} - virtual ~ThriftHiveMetastore_revoke_role_presult() throw(); bool* success; MetaException o1; @@ -14419,35 +14136,34 @@ class ThriftHiveMetastore_revoke_role_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_revoke_role_presult& obj); }; typedef struct _ThriftHiveMetastore_list_roles_args__isset { _ThriftHiveMetastore_list_roles_args__isset() : principal_name(false), principal_type(false) {} - bool principal_name :1; - bool principal_type :1; + bool principal_name; + bool principal_type; } _ThriftHiveMetastore_list_roles_args__isset; class ThriftHiveMetastore_list_roles_args { public: - static const char* ascii_fingerprint; // = "D6FD826D949221396F4FFC3ECCD3D192"; - static const uint8_t binary_fingerprint[16]; // = {0xD6,0xFD,0x82,0x6D,0x94,0x92,0x21,0x39,0x6F,0x4F,0xFC,0x3E,0xCC,0xD3,0xD1,0x92}; - - ThriftHiveMetastore_list_roles_args(const ThriftHiveMetastore_list_roles_args&); - ThriftHiveMetastore_list_roles_args& operator=(const ThriftHiveMetastore_list_roles_args&); ThriftHiveMetastore_list_roles_args() : principal_name(), principal_type((PrincipalType::type)0) { } - virtual ~ThriftHiveMetastore_list_roles_args() throw(); + virtual ~ThriftHiveMetastore_list_roles_args() throw() {} + std::string principal_name; PrincipalType::type principal_type; _ThriftHiveMetastore_list_roles_args__isset __isset; - void __set_principal_name(const std::string& val); + void __set_principal_name(const std::string& val) { + principal_name = val; + } - void __set_principal_type(const PrincipalType::type val); + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } bool operator == (const ThriftHiveMetastore_list_roles_args & rhs) const { @@ -14466,52 +14182,48 @@ class ThriftHiveMetastore_list_roles_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_list_roles_args& obj); }; class ThriftHiveMetastore_list_roles_pargs { public: - static const char* ascii_fingerprint; // = "D6FD826D949221396F4FFC3ECCD3D192"; - static const uint8_t binary_fingerprint[16]; // = {0xD6,0xFD,0x82,0x6D,0x94,0x92,0x21,0x39,0x6F,0x4F,0xFC,0x3E,0xCC,0xD3,0xD1,0x92}; + virtual ~ThriftHiveMetastore_list_roles_pargs() throw() {} - virtual ~ThriftHiveMetastore_list_roles_pargs() throw(); const std::string* principal_name; const PrincipalType::type* principal_type; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_list_roles_pargs& obj); }; typedef struct _ThriftHiveMetastore_list_roles_result__isset { _ThriftHiveMetastore_list_roles_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_list_roles_result__isset; class ThriftHiveMetastore_list_roles_result { public: - static const char* ascii_fingerprint; // = "F4E2C0107AD92DC71252C1F2F0EC2593"; - static const uint8_t binary_fingerprint[16]; // = {0xF4,0xE2,0xC0,0x10,0x7A,0xD9,0x2D,0xC7,0x12,0x52,0xC1,0xF2,0xF0,0xEC,0x25,0x93}; - - ThriftHiveMetastore_list_roles_result(const ThriftHiveMetastore_list_roles_result&); - ThriftHiveMetastore_list_roles_result& operator=(const ThriftHiveMetastore_list_roles_result&); ThriftHiveMetastore_list_roles_result() { } - virtual ~ThriftHiveMetastore_list_roles_result() throw(); + virtual ~ThriftHiveMetastore_list_roles_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_list_roles_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_list_roles_result & rhs) const { @@ -14530,23 +14242,20 @@ class ThriftHiveMetastore_list_roles_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_list_roles_result& obj); }; typedef struct _ThriftHiveMetastore_list_roles_presult__isset { _ThriftHiveMetastore_list_roles_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_list_roles_presult__isset; class ThriftHiveMetastore_list_roles_presult { public: - static const char* ascii_fingerprint; // = "F4E2C0107AD92DC71252C1F2F0EC2593"; - static const uint8_t binary_fingerprint[16]; // = {0xF4,0xE2,0xC0,0x10,0x7A,0xD9,0x2D,0xC7,0x12,0x52,0xC1,0xF2,0xF0,0xEC,0x25,0x93}; + virtual ~ThriftHiveMetastore_list_roles_presult() throw() {} - virtual ~ThriftHiveMetastore_list_roles_presult() throw(); std::vector * success; MetaException o1; @@ -14554,31 +14263,28 @@ class ThriftHiveMetastore_list_roles_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_list_roles_presult& obj); }; typedef struct _ThriftHiveMetastore_grant_revoke_role_args__isset { _ThriftHiveMetastore_grant_revoke_role_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_grant_revoke_role_args__isset; class ThriftHiveMetastore_grant_revoke_role_args { public: - static const char* ascii_fingerprint; // = "32A08793075D468A123BDF8A429097C2"; - static const uint8_t binary_fingerprint[16]; // = {0x32,0xA0,0x87,0x93,0x07,0x5D,0x46,0x8A,0x12,0x3B,0xDF,0x8A,0x42,0x90,0x97,0xC2}; - - ThriftHiveMetastore_grant_revoke_role_args(const ThriftHiveMetastore_grant_revoke_role_args&); - ThriftHiveMetastore_grant_revoke_role_args& operator=(const ThriftHiveMetastore_grant_revoke_role_args&); ThriftHiveMetastore_grant_revoke_role_args() { } - virtual ~ThriftHiveMetastore_grant_revoke_role_args() throw(); + virtual ~ThriftHiveMetastore_grant_revoke_role_args() throw() {} + GrantRevokeRoleRequest request; _ThriftHiveMetastore_grant_revoke_role_args__isset __isset; - void __set_request(const GrantRevokeRoleRequest& val); + void __set_request(const GrantRevokeRoleRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_grant_revoke_role_args & rhs) const { @@ -14595,51 +14301,47 @@ class ThriftHiveMetastore_grant_revoke_role_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_revoke_role_args& obj); }; class ThriftHiveMetastore_grant_revoke_role_pargs { public: - static const char* ascii_fingerprint; // = "32A08793075D468A123BDF8A429097C2"; - static const uint8_t binary_fingerprint[16]; // = {0x32,0xA0,0x87,0x93,0x07,0x5D,0x46,0x8A,0x12,0x3B,0xDF,0x8A,0x42,0x90,0x97,0xC2}; + virtual ~ThriftHiveMetastore_grant_revoke_role_pargs() throw() {} - virtual ~ThriftHiveMetastore_grant_revoke_role_pargs() throw(); const GrantRevokeRoleRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_revoke_role_pargs& obj); }; typedef struct _ThriftHiveMetastore_grant_revoke_role_result__isset { _ThriftHiveMetastore_grant_revoke_role_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_revoke_role_result__isset; class ThriftHiveMetastore_grant_revoke_role_result { public: - static const char* ascii_fingerprint; // = "2752D57FBB6A712ADAD7D19783020F2C"; - static const uint8_t binary_fingerprint[16]; // = {0x27,0x52,0xD5,0x7F,0xBB,0x6A,0x71,0x2A,0xDA,0xD7,0xD1,0x97,0x83,0x02,0x0F,0x2C}; - - ThriftHiveMetastore_grant_revoke_role_result(const ThriftHiveMetastore_grant_revoke_role_result&); - ThriftHiveMetastore_grant_revoke_role_result& operator=(const ThriftHiveMetastore_grant_revoke_role_result&); ThriftHiveMetastore_grant_revoke_role_result() { } - virtual ~ThriftHiveMetastore_grant_revoke_role_result() throw(); + virtual ~ThriftHiveMetastore_grant_revoke_role_result() throw() {} + GrantRevokeRoleResponse success; MetaException o1; _ThriftHiveMetastore_grant_revoke_role_result__isset __isset; - void __set_success(const GrantRevokeRoleResponse& val); + void __set_success(const GrantRevokeRoleResponse& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_grant_revoke_role_result & rhs) const { @@ -14658,23 +14360,20 @@ class ThriftHiveMetastore_grant_revoke_role_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_revoke_role_result& obj); }; typedef struct _ThriftHiveMetastore_grant_revoke_role_presult__isset { _ThriftHiveMetastore_grant_revoke_role_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_revoke_role_presult__isset; class ThriftHiveMetastore_grant_revoke_role_presult { public: - static const char* ascii_fingerprint; // = "2752D57FBB6A712ADAD7D19783020F2C"; - static const uint8_t binary_fingerprint[16]; // = {0x27,0x52,0xD5,0x7F,0xBB,0x6A,0x71,0x2A,0xDA,0xD7,0xD1,0x97,0x83,0x02,0x0F,0x2C}; + virtual ~ThriftHiveMetastore_grant_revoke_role_presult() throw() {} - virtual ~ThriftHiveMetastore_grant_revoke_role_presult() throw(); GrantRevokeRoleResponse* success; MetaException o1; @@ -14682,31 +14381,28 @@ class ThriftHiveMetastore_grant_revoke_role_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_revoke_role_presult& obj); }; typedef struct _ThriftHiveMetastore_get_principals_in_role_args__isset { _ThriftHiveMetastore_get_principals_in_role_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_get_principals_in_role_args__isset; class ThriftHiveMetastore_get_principals_in_role_args { public: - static const char* ascii_fingerprint; // = "771E7EF40B572D2BFAB12C49547ADCBF"; - static const uint8_t binary_fingerprint[16]; // = {0x77,0x1E,0x7E,0xF4,0x0B,0x57,0x2D,0x2B,0xFA,0xB1,0x2C,0x49,0x54,0x7A,0xDC,0xBF}; - - ThriftHiveMetastore_get_principals_in_role_args(const ThriftHiveMetastore_get_principals_in_role_args&); - ThriftHiveMetastore_get_principals_in_role_args& operator=(const ThriftHiveMetastore_get_principals_in_role_args&); ThriftHiveMetastore_get_principals_in_role_args() { } - virtual ~ThriftHiveMetastore_get_principals_in_role_args() throw(); + virtual ~ThriftHiveMetastore_get_principals_in_role_args() throw() {} + GetPrincipalsInRoleRequest request; _ThriftHiveMetastore_get_principals_in_role_args__isset __isset; - void __set_request(const GetPrincipalsInRoleRequest& val); + void __set_request(const GetPrincipalsInRoleRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_get_principals_in_role_args & rhs) const { @@ -14723,51 +14419,47 @@ class ThriftHiveMetastore_get_principals_in_role_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_principals_in_role_args& obj); }; class ThriftHiveMetastore_get_principals_in_role_pargs { public: - static const char* ascii_fingerprint; // = "771E7EF40B572D2BFAB12C49547ADCBF"; - static const uint8_t binary_fingerprint[16]; // = {0x77,0x1E,0x7E,0xF4,0x0B,0x57,0x2D,0x2B,0xFA,0xB1,0x2C,0x49,0x54,0x7A,0xDC,0xBF}; + virtual ~ThriftHiveMetastore_get_principals_in_role_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_principals_in_role_pargs() throw(); const GetPrincipalsInRoleRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_principals_in_role_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_principals_in_role_result__isset { _ThriftHiveMetastore_get_principals_in_role_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_principals_in_role_result__isset; class ThriftHiveMetastore_get_principals_in_role_result { public: - static const char* ascii_fingerprint; // = "991483C373A3000CBEAB31F972699E7B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x14,0x83,0xC3,0x73,0xA3,0x00,0x0C,0xBE,0xAB,0x31,0xF9,0x72,0x69,0x9E,0x7B}; - - ThriftHiveMetastore_get_principals_in_role_result(const ThriftHiveMetastore_get_principals_in_role_result&); - ThriftHiveMetastore_get_principals_in_role_result& operator=(const ThriftHiveMetastore_get_principals_in_role_result&); ThriftHiveMetastore_get_principals_in_role_result() { } - virtual ~ThriftHiveMetastore_get_principals_in_role_result() throw(); + virtual ~ThriftHiveMetastore_get_principals_in_role_result() throw() {} + GetPrincipalsInRoleResponse success; MetaException o1; _ThriftHiveMetastore_get_principals_in_role_result__isset __isset; - void __set_success(const GetPrincipalsInRoleResponse& val); + void __set_success(const GetPrincipalsInRoleResponse& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_principals_in_role_result & rhs) const { @@ -14786,23 +14478,20 @@ class ThriftHiveMetastore_get_principals_in_role_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_principals_in_role_result& obj); }; typedef struct _ThriftHiveMetastore_get_principals_in_role_presult__isset { _ThriftHiveMetastore_get_principals_in_role_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_principals_in_role_presult__isset; class ThriftHiveMetastore_get_principals_in_role_presult { public: - static const char* ascii_fingerprint; // = "991483C373A3000CBEAB31F972699E7B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x14,0x83,0xC3,0x73,0xA3,0x00,0x0C,0xBE,0xAB,0x31,0xF9,0x72,0x69,0x9E,0x7B}; + virtual ~ThriftHiveMetastore_get_principals_in_role_presult() throw() {} - virtual ~ThriftHiveMetastore_get_principals_in_role_presult() throw(); GetPrincipalsInRoleResponse* success; MetaException o1; @@ -14810,31 +14499,28 @@ class ThriftHiveMetastore_get_principals_in_role_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_principals_in_role_presult& obj); }; typedef struct _ThriftHiveMetastore_get_role_grants_for_principal_args__isset { _ThriftHiveMetastore_get_role_grants_for_principal_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_get_role_grants_for_principal_args__isset; class ThriftHiveMetastore_get_role_grants_for_principal_args { public: - static const char* ascii_fingerprint; // = "2EFF1E534C8CBE58ACF12DBD7FBA560E"; - static const uint8_t binary_fingerprint[16]; // = {0x2E,0xFF,0x1E,0x53,0x4C,0x8C,0xBE,0x58,0xAC,0xF1,0x2D,0xBD,0x7F,0xBA,0x56,0x0E}; - - ThriftHiveMetastore_get_role_grants_for_principal_args(const ThriftHiveMetastore_get_role_grants_for_principal_args&); - ThriftHiveMetastore_get_role_grants_for_principal_args& operator=(const ThriftHiveMetastore_get_role_grants_for_principal_args&); ThriftHiveMetastore_get_role_grants_for_principal_args() { } - virtual ~ThriftHiveMetastore_get_role_grants_for_principal_args() throw(); + virtual ~ThriftHiveMetastore_get_role_grants_for_principal_args() throw() {} + GetRoleGrantsForPrincipalRequest request; _ThriftHiveMetastore_get_role_grants_for_principal_args__isset __isset; - void __set_request(const GetRoleGrantsForPrincipalRequest& val); + void __set_request(const GetRoleGrantsForPrincipalRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_get_role_grants_for_principal_args & rhs) const { @@ -14851,51 +14537,47 @@ class ThriftHiveMetastore_get_role_grants_for_principal_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_role_grants_for_principal_args& obj); }; class ThriftHiveMetastore_get_role_grants_for_principal_pargs { public: - static const char* ascii_fingerprint; // = "2EFF1E534C8CBE58ACF12DBD7FBA560E"; - static const uint8_t binary_fingerprint[16]; // = {0x2E,0xFF,0x1E,0x53,0x4C,0x8C,0xBE,0x58,0xAC,0xF1,0x2D,0xBD,0x7F,0xBA,0x56,0x0E}; + virtual ~ThriftHiveMetastore_get_role_grants_for_principal_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_role_grants_for_principal_pargs() throw(); const GetRoleGrantsForPrincipalRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_role_grants_for_principal_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_role_grants_for_principal_result__isset { _ThriftHiveMetastore_get_role_grants_for_principal_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_role_grants_for_principal_result__isset; class ThriftHiveMetastore_get_role_grants_for_principal_result { public: - static const char* ascii_fingerprint; // = "991483C373A3000CBEAB31F972699E7B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x14,0x83,0xC3,0x73,0xA3,0x00,0x0C,0xBE,0xAB,0x31,0xF9,0x72,0x69,0x9E,0x7B}; - - ThriftHiveMetastore_get_role_grants_for_principal_result(const ThriftHiveMetastore_get_role_grants_for_principal_result&); - ThriftHiveMetastore_get_role_grants_for_principal_result& operator=(const ThriftHiveMetastore_get_role_grants_for_principal_result&); ThriftHiveMetastore_get_role_grants_for_principal_result() { } - virtual ~ThriftHiveMetastore_get_role_grants_for_principal_result() throw(); + virtual ~ThriftHiveMetastore_get_role_grants_for_principal_result() throw() {} + GetRoleGrantsForPrincipalResponse success; MetaException o1; _ThriftHiveMetastore_get_role_grants_for_principal_result__isset __isset; - void __set_success(const GetRoleGrantsForPrincipalResponse& val); + void __set_success(const GetRoleGrantsForPrincipalResponse& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_role_grants_for_principal_result & rhs) const { @@ -14914,23 +14596,20 @@ class ThriftHiveMetastore_get_role_grants_for_principal_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_role_grants_for_principal_result& obj); }; typedef struct _ThriftHiveMetastore_get_role_grants_for_principal_presult__isset { _ThriftHiveMetastore_get_role_grants_for_principal_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_role_grants_for_principal_presult__isset; class ThriftHiveMetastore_get_role_grants_for_principal_presult { public: - static const char* ascii_fingerprint; // = "991483C373A3000CBEAB31F972699E7B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x14,0x83,0xC3,0x73,0xA3,0x00,0x0C,0xBE,0xAB,0x31,0xF9,0x72,0x69,0x9E,0x7B}; + virtual ~ThriftHiveMetastore_get_role_grants_for_principal_presult() throw() {} - virtual ~ThriftHiveMetastore_get_role_grants_for_principal_presult() throw(); GetRoleGrantsForPrincipalResponse* success; MetaException o1; @@ -14938,39 +14617,40 @@ class ThriftHiveMetastore_get_role_grants_for_principal_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_role_grants_for_principal_presult& obj); }; typedef struct _ThriftHiveMetastore_get_privilege_set_args__isset { _ThriftHiveMetastore_get_privilege_set_args__isset() : hiveObject(false), user_name(false), group_names(false) {} - bool hiveObject :1; - bool user_name :1; - bool group_names :1; + bool hiveObject; + bool user_name; + bool group_names; } _ThriftHiveMetastore_get_privilege_set_args__isset; class ThriftHiveMetastore_get_privilege_set_args { public: - static const char* ascii_fingerprint; // = "E105E94D3644392EDFB1688221845BB8"; - static const uint8_t binary_fingerprint[16]; // = {0xE1,0x05,0xE9,0x4D,0x36,0x44,0x39,0x2E,0xDF,0xB1,0x68,0x82,0x21,0x84,0x5B,0xB8}; - - ThriftHiveMetastore_get_privilege_set_args(const ThriftHiveMetastore_get_privilege_set_args&); - ThriftHiveMetastore_get_privilege_set_args& operator=(const ThriftHiveMetastore_get_privilege_set_args&); ThriftHiveMetastore_get_privilege_set_args() : user_name() { } - virtual ~ThriftHiveMetastore_get_privilege_set_args() throw(); + virtual ~ThriftHiveMetastore_get_privilege_set_args() throw() {} + HiveObjectRef hiveObject; std::string user_name; std::vector group_names; _ThriftHiveMetastore_get_privilege_set_args__isset __isset; - void __set_hiveObject(const HiveObjectRef& val); + void __set_hiveObject(const HiveObjectRef& val) { + hiveObject = val; + } - void __set_user_name(const std::string& val); + void __set_user_name(const std::string& val) { + user_name = val; + } - void __set_group_names(const std::vector & val); + void __set_group_names(const std::vector & val) { + group_names = val; + } bool operator == (const ThriftHiveMetastore_get_privilege_set_args & rhs) const { @@ -14991,53 +14671,49 @@ class ThriftHiveMetastore_get_privilege_set_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_privilege_set_args& obj); }; class ThriftHiveMetastore_get_privilege_set_pargs { public: - static const char* ascii_fingerprint; // = "E105E94D3644392EDFB1688221845BB8"; - static const uint8_t binary_fingerprint[16]; // = {0xE1,0x05,0xE9,0x4D,0x36,0x44,0x39,0x2E,0xDF,0xB1,0x68,0x82,0x21,0x84,0x5B,0xB8}; + virtual ~ThriftHiveMetastore_get_privilege_set_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_privilege_set_pargs() throw(); const HiveObjectRef* hiveObject; const std::string* user_name; const std::vector * group_names; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_privilege_set_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_privilege_set_result__isset { _ThriftHiveMetastore_get_privilege_set_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_privilege_set_result__isset; class ThriftHiveMetastore_get_privilege_set_result { public: - static const char* ascii_fingerprint; // = "16B7D982DB804BE178ADD440C5436959"; - static const uint8_t binary_fingerprint[16]; // = {0x16,0xB7,0xD9,0x82,0xDB,0x80,0x4B,0xE1,0x78,0xAD,0xD4,0x40,0xC5,0x43,0x69,0x59}; - - ThriftHiveMetastore_get_privilege_set_result(const ThriftHiveMetastore_get_privilege_set_result&); - ThriftHiveMetastore_get_privilege_set_result& operator=(const ThriftHiveMetastore_get_privilege_set_result&); ThriftHiveMetastore_get_privilege_set_result() { } - virtual ~ThriftHiveMetastore_get_privilege_set_result() throw(); + virtual ~ThriftHiveMetastore_get_privilege_set_result() throw() {} + PrincipalPrivilegeSet success; MetaException o1; _ThriftHiveMetastore_get_privilege_set_result__isset __isset; - void __set_success(const PrincipalPrivilegeSet& val); + void __set_success(const PrincipalPrivilegeSet& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_privilege_set_result & rhs) const { @@ -15056,23 +14732,20 @@ class ThriftHiveMetastore_get_privilege_set_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_privilege_set_result& obj); }; typedef struct _ThriftHiveMetastore_get_privilege_set_presult__isset { _ThriftHiveMetastore_get_privilege_set_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_privilege_set_presult__isset; class ThriftHiveMetastore_get_privilege_set_presult { public: - static const char* ascii_fingerprint; // = "16B7D982DB804BE178ADD440C5436959"; - static const uint8_t binary_fingerprint[16]; // = {0x16,0xB7,0xD9,0x82,0xDB,0x80,0x4B,0xE1,0x78,0xAD,0xD4,0x40,0xC5,0x43,0x69,0x59}; + virtual ~ThriftHiveMetastore_get_privilege_set_presult() throw() {} - virtual ~ThriftHiveMetastore_get_privilege_set_presult() throw(); PrincipalPrivilegeSet* success; MetaException o1; @@ -15080,39 +14753,40 @@ class ThriftHiveMetastore_get_privilege_set_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_privilege_set_presult& obj); }; typedef struct _ThriftHiveMetastore_list_privileges_args__isset { _ThriftHiveMetastore_list_privileges_args__isset() : principal_name(false), principal_type(false), hiveObject(false) {} - bool principal_name :1; - bool principal_type :1; - bool hiveObject :1; + bool principal_name; + bool principal_type; + bool hiveObject; } _ThriftHiveMetastore_list_privileges_args__isset; class ThriftHiveMetastore_list_privileges_args { public: - static const char* ascii_fingerprint; // = "BB2F0CAC4D46A233190DED7C9454C178"; - static const uint8_t binary_fingerprint[16]; // = {0xBB,0x2F,0x0C,0xAC,0x4D,0x46,0xA2,0x33,0x19,0x0D,0xED,0x7C,0x94,0x54,0xC1,0x78}; - - ThriftHiveMetastore_list_privileges_args(const ThriftHiveMetastore_list_privileges_args&); - ThriftHiveMetastore_list_privileges_args& operator=(const ThriftHiveMetastore_list_privileges_args&); ThriftHiveMetastore_list_privileges_args() : principal_name(), principal_type((PrincipalType::type)0) { } - virtual ~ThriftHiveMetastore_list_privileges_args() throw(); + virtual ~ThriftHiveMetastore_list_privileges_args() throw() {} + std::string principal_name; PrincipalType::type principal_type; HiveObjectRef hiveObject; _ThriftHiveMetastore_list_privileges_args__isset __isset; - void __set_principal_name(const std::string& val); + void __set_principal_name(const std::string& val) { + principal_name = val; + } - void __set_principal_type(const PrincipalType::type val); + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } - void __set_hiveObject(const HiveObjectRef& val); + void __set_hiveObject(const HiveObjectRef& val) { + hiveObject = val; + } bool operator == (const ThriftHiveMetastore_list_privileges_args & rhs) const { @@ -15133,53 +14807,49 @@ class ThriftHiveMetastore_list_privileges_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_list_privileges_args& obj); }; class ThriftHiveMetastore_list_privileges_pargs { public: - static const char* ascii_fingerprint; // = "BB2F0CAC4D46A233190DED7C9454C178"; - static const uint8_t binary_fingerprint[16]; // = {0xBB,0x2F,0x0C,0xAC,0x4D,0x46,0xA2,0x33,0x19,0x0D,0xED,0x7C,0x94,0x54,0xC1,0x78}; + virtual ~ThriftHiveMetastore_list_privileges_pargs() throw() {} - virtual ~ThriftHiveMetastore_list_privileges_pargs() throw(); const std::string* principal_name; const PrincipalType::type* principal_type; const HiveObjectRef* hiveObject; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_list_privileges_pargs& obj); }; typedef struct _ThriftHiveMetastore_list_privileges_result__isset { _ThriftHiveMetastore_list_privileges_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_list_privileges_result__isset; class ThriftHiveMetastore_list_privileges_result { public: - static const char* ascii_fingerprint; // = "117F3F2796D97C590719F8266D36B7A3"; - static const uint8_t binary_fingerprint[16]; // = {0x11,0x7F,0x3F,0x27,0x96,0xD9,0x7C,0x59,0x07,0x19,0xF8,0x26,0x6D,0x36,0xB7,0xA3}; - - ThriftHiveMetastore_list_privileges_result(const ThriftHiveMetastore_list_privileges_result&); - ThriftHiveMetastore_list_privileges_result& operator=(const ThriftHiveMetastore_list_privileges_result&); ThriftHiveMetastore_list_privileges_result() { } - virtual ~ThriftHiveMetastore_list_privileges_result() throw(); + virtual ~ThriftHiveMetastore_list_privileges_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_list_privileges_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_list_privileges_result & rhs) const { @@ -15198,23 +14868,20 @@ class ThriftHiveMetastore_list_privileges_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_list_privileges_result& obj); }; typedef struct _ThriftHiveMetastore_list_privileges_presult__isset { _ThriftHiveMetastore_list_privileges_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_list_privileges_presult__isset; class ThriftHiveMetastore_list_privileges_presult { public: - static const char* ascii_fingerprint; // = "117F3F2796D97C590719F8266D36B7A3"; - static const uint8_t binary_fingerprint[16]; // = {0x11,0x7F,0x3F,0x27,0x96,0xD9,0x7C,0x59,0x07,0x19,0xF8,0x26,0x6D,0x36,0xB7,0xA3}; + virtual ~ThriftHiveMetastore_list_privileges_presult() throw() {} - virtual ~ThriftHiveMetastore_list_privileges_presult() throw(); std::vector * success; MetaException o1; @@ -15222,31 +14889,28 @@ class ThriftHiveMetastore_list_privileges_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_list_privileges_presult& obj); }; typedef struct _ThriftHiveMetastore_grant_privileges_args__isset { _ThriftHiveMetastore_grant_privileges_args__isset() : privileges(false) {} - bool privileges :1; + bool privileges; } _ThriftHiveMetastore_grant_privileges_args__isset; class ThriftHiveMetastore_grant_privileges_args { public: - static const char* ascii_fingerprint; // = "D1FFAF2A30E9127AE6F2253FBF65ECDB"; - static const uint8_t binary_fingerprint[16]; // = {0xD1,0xFF,0xAF,0x2A,0x30,0xE9,0x12,0x7A,0xE6,0xF2,0x25,0x3F,0xBF,0x65,0xEC,0xDB}; - - ThriftHiveMetastore_grant_privileges_args(const ThriftHiveMetastore_grant_privileges_args&); - ThriftHiveMetastore_grant_privileges_args& operator=(const ThriftHiveMetastore_grant_privileges_args&); ThriftHiveMetastore_grant_privileges_args() { } - virtual ~ThriftHiveMetastore_grant_privileges_args() throw(); + virtual ~ThriftHiveMetastore_grant_privileges_args() throw() {} + PrivilegeBag privileges; _ThriftHiveMetastore_grant_privileges_args__isset __isset; - void __set_privileges(const PrivilegeBag& val); + void __set_privileges(const PrivilegeBag& val) { + privileges = val; + } bool operator == (const ThriftHiveMetastore_grant_privileges_args & rhs) const { @@ -15263,51 +14927,47 @@ class ThriftHiveMetastore_grant_privileges_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_privileges_args& obj); }; class ThriftHiveMetastore_grant_privileges_pargs { public: - static const char* ascii_fingerprint; // = "D1FFAF2A30E9127AE6F2253FBF65ECDB"; - static const uint8_t binary_fingerprint[16]; // = {0xD1,0xFF,0xAF,0x2A,0x30,0xE9,0x12,0x7A,0xE6,0xF2,0x25,0x3F,0xBF,0x65,0xEC,0xDB}; + virtual ~ThriftHiveMetastore_grant_privileges_pargs() throw() {} - virtual ~ThriftHiveMetastore_grant_privileges_pargs() throw(); const PrivilegeBag* privileges; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_privileges_pargs& obj); }; typedef struct _ThriftHiveMetastore_grant_privileges_result__isset { _ThriftHiveMetastore_grant_privileges_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_privileges_result__isset; class ThriftHiveMetastore_grant_privileges_result { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; - - ThriftHiveMetastore_grant_privileges_result(const ThriftHiveMetastore_grant_privileges_result&); - ThriftHiveMetastore_grant_privileges_result& operator=(const ThriftHiveMetastore_grant_privileges_result&); ThriftHiveMetastore_grant_privileges_result() : success(0) { } - virtual ~ThriftHiveMetastore_grant_privileges_result() throw(); + virtual ~ThriftHiveMetastore_grant_privileges_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_grant_privileges_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_grant_privileges_result & rhs) const { @@ -15326,23 +14986,20 @@ class ThriftHiveMetastore_grant_privileges_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_privileges_result& obj); }; typedef struct _ThriftHiveMetastore_grant_privileges_presult__isset { _ThriftHiveMetastore_grant_privileges_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_privileges_presult__isset; class ThriftHiveMetastore_grant_privileges_presult { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; + virtual ~ThriftHiveMetastore_grant_privileges_presult() throw() {} - virtual ~ThriftHiveMetastore_grant_privileges_presult() throw(); bool* success; MetaException o1; @@ -15350,31 +15007,28 @@ class ThriftHiveMetastore_grant_privileges_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_privileges_presult& obj); }; typedef struct _ThriftHiveMetastore_revoke_privileges_args__isset { _ThriftHiveMetastore_revoke_privileges_args__isset() : privileges(false) {} - bool privileges :1; + bool privileges; } _ThriftHiveMetastore_revoke_privileges_args__isset; class ThriftHiveMetastore_revoke_privileges_args { public: - static const char* ascii_fingerprint; // = "D1FFAF2A30E9127AE6F2253FBF65ECDB"; - static const uint8_t binary_fingerprint[16]; // = {0xD1,0xFF,0xAF,0x2A,0x30,0xE9,0x12,0x7A,0xE6,0xF2,0x25,0x3F,0xBF,0x65,0xEC,0xDB}; - - ThriftHiveMetastore_revoke_privileges_args(const ThriftHiveMetastore_revoke_privileges_args&); - ThriftHiveMetastore_revoke_privileges_args& operator=(const ThriftHiveMetastore_revoke_privileges_args&); ThriftHiveMetastore_revoke_privileges_args() { } - virtual ~ThriftHiveMetastore_revoke_privileges_args() throw(); + virtual ~ThriftHiveMetastore_revoke_privileges_args() throw() {} + PrivilegeBag privileges; _ThriftHiveMetastore_revoke_privileges_args__isset __isset; - void __set_privileges(const PrivilegeBag& val); + void __set_privileges(const PrivilegeBag& val) { + privileges = val; + } bool operator == (const ThriftHiveMetastore_revoke_privileges_args & rhs) const { @@ -15391,51 +15045,47 @@ class ThriftHiveMetastore_revoke_privileges_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_revoke_privileges_args& obj); }; class ThriftHiveMetastore_revoke_privileges_pargs { public: - static const char* ascii_fingerprint; // = "D1FFAF2A30E9127AE6F2253FBF65ECDB"; - static const uint8_t binary_fingerprint[16]; // = {0xD1,0xFF,0xAF,0x2A,0x30,0xE9,0x12,0x7A,0xE6,0xF2,0x25,0x3F,0xBF,0x65,0xEC,0xDB}; + virtual ~ThriftHiveMetastore_revoke_privileges_pargs() throw() {} - virtual ~ThriftHiveMetastore_revoke_privileges_pargs() throw(); const PrivilegeBag* privileges; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_revoke_privileges_pargs& obj); }; typedef struct _ThriftHiveMetastore_revoke_privileges_result__isset { _ThriftHiveMetastore_revoke_privileges_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_revoke_privileges_result__isset; class ThriftHiveMetastore_revoke_privileges_result { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; - - ThriftHiveMetastore_revoke_privileges_result(const ThriftHiveMetastore_revoke_privileges_result&); - ThriftHiveMetastore_revoke_privileges_result& operator=(const ThriftHiveMetastore_revoke_privileges_result&); ThriftHiveMetastore_revoke_privileges_result() : success(0) { } - virtual ~ThriftHiveMetastore_revoke_privileges_result() throw(); + virtual ~ThriftHiveMetastore_revoke_privileges_result() throw() {} + bool success; MetaException o1; _ThriftHiveMetastore_revoke_privileges_result__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_revoke_privileges_result & rhs) const { @@ -15454,23 +15104,20 @@ class ThriftHiveMetastore_revoke_privileges_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_revoke_privileges_result& obj); }; typedef struct _ThriftHiveMetastore_revoke_privileges_presult__isset { _ThriftHiveMetastore_revoke_privileges_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_revoke_privileges_presult__isset; class ThriftHiveMetastore_revoke_privileges_presult { public: - static const char* ascii_fingerprint; // = "FB3C6215AF7D1EFB061C9941F4721D27"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3C,0x62,0x15,0xAF,0x7D,0x1E,0xFB,0x06,0x1C,0x99,0x41,0xF4,0x72,0x1D,0x27}; + virtual ~ThriftHiveMetastore_revoke_privileges_presult() throw() {} - virtual ~ThriftHiveMetastore_revoke_privileges_presult() throw(); bool* success; MetaException o1; @@ -15478,31 +15125,28 @@ class ThriftHiveMetastore_revoke_privileges_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_revoke_privileges_presult& obj); }; typedef struct _ThriftHiveMetastore_grant_revoke_privileges_args__isset { _ThriftHiveMetastore_grant_revoke_privileges_args__isset() : request(false) {} - bool request :1; + bool request; } _ThriftHiveMetastore_grant_revoke_privileges_args__isset; class ThriftHiveMetastore_grant_revoke_privileges_args { public: - static const char* ascii_fingerprint; // = "76B290B464B01311AD9D636621416B53"; - static const uint8_t binary_fingerprint[16]; // = {0x76,0xB2,0x90,0xB4,0x64,0xB0,0x13,0x11,0xAD,0x9D,0x63,0x66,0x21,0x41,0x6B,0x53}; - - ThriftHiveMetastore_grant_revoke_privileges_args(const ThriftHiveMetastore_grant_revoke_privileges_args&); - ThriftHiveMetastore_grant_revoke_privileges_args& operator=(const ThriftHiveMetastore_grant_revoke_privileges_args&); ThriftHiveMetastore_grant_revoke_privileges_args() { } - virtual ~ThriftHiveMetastore_grant_revoke_privileges_args() throw(); + virtual ~ThriftHiveMetastore_grant_revoke_privileges_args() throw() {} + GrantRevokePrivilegeRequest request; _ThriftHiveMetastore_grant_revoke_privileges_args__isset __isset; - void __set_request(const GrantRevokePrivilegeRequest& val); + void __set_request(const GrantRevokePrivilegeRequest& val) { + request = val; + } bool operator == (const ThriftHiveMetastore_grant_revoke_privileges_args & rhs) const { @@ -15519,51 +15163,47 @@ class ThriftHiveMetastore_grant_revoke_privileges_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_revoke_privileges_args& obj); }; class ThriftHiveMetastore_grant_revoke_privileges_pargs { public: - static const char* ascii_fingerprint; // = "76B290B464B01311AD9D636621416B53"; - static const uint8_t binary_fingerprint[16]; // = {0x76,0xB2,0x90,0xB4,0x64,0xB0,0x13,0x11,0xAD,0x9D,0x63,0x66,0x21,0x41,0x6B,0x53}; + virtual ~ThriftHiveMetastore_grant_revoke_privileges_pargs() throw() {} - virtual ~ThriftHiveMetastore_grant_revoke_privileges_pargs() throw(); const GrantRevokePrivilegeRequest* request; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_revoke_privileges_pargs& obj); }; typedef struct _ThriftHiveMetastore_grant_revoke_privileges_result__isset { _ThriftHiveMetastore_grant_revoke_privileges_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_revoke_privileges_result__isset; class ThriftHiveMetastore_grant_revoke_privileges_result { public: - static const char* ascii_fingerprint; // = "2752D57FBB6A712ADAD7D19783020F2C"; - static const uint8_t binary_fingerprint[16]; // = {0x27,0x52,0xD5,0x7F,0xBB,0x6A,0x71,0x2A,0xDA,0xD7,0xD1,0x97,0x83,0x02,0x0F,0x2C}; - - ThriftHiveMetastore_grant_revoke_privileges_result(const ThriftHiveMetastore_grant_revoke_privileges_result&); - ThriftHiveMetastore_grant_revoke_privileges_result& operator=(const ThriftHiveMetastore_grant_revoke_privileges_result&); ThriftHiveMetastore_grant_revoke_privileges_result() { } - virtual ~ThriftHiveMetastore_grant_revoke_privileges_result() throw(); + virtual ~ThriftHiveMetastore_grant_revoke_privileges_result() throw() {} + GrantRevokePrivilegeResponse success; MetaException o1; _ThriftHiveMetastore_grant_revoke_privileges_result__isset __isset; - void __set_success(const GrantRevokePrivilegeResponse& val); + void __set_success(const GrantRevokePrivilegeResponse& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_grant_revoke_privileges_result & rhs) const { @@ -15582,23 +15222,20 @@ class ThriftHiveMetastore_grant_revoke_privileges_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_revoke_privileges_result& obj); }; typedef struct _ThriftHiveMetastore_grant_revoke_privileges_presult__isset { _ThriftHiveMetastore_grant_revoke_privileges_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_grant_revoke_privileges_presult__isset; class ThriftHiveMetastore_grant_revoke_privileges_presult { public: - static const char* ascii_fingerprint; // = "2752D57FBB6A712ADAD7D19783020F2C"; - static const uint8_t binary_fingerprint[16]; // = {0x27,0x52,0xD5,0x7F,0xBB,0x6A,0x71,0x2A,0xDA,0xD7,0xD1,0x97,0x83,0x02,0x0F,0x2C}; + virtual ~ThriftHiveMetastore_grant_revoke_privileges_presult() throw() {} - virtual ~ThriftHiveMetastore_grant_revoke_privileges_presult() throw(); GrantRevokePrivilegeResponse* success; MetaException o1; @@ -15606,35 +15243,34 @@ class ThriftHiveMetastore_grant_revoke_privileges_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_grant_revoke_privileges_presult& obj); }; typedef struct _ThriftHiveMetastore_set_ugi_args__isset { _ThriftHiveMetastore_set_ugi_args__isset() : user_name(false), group_names(false) {} - bool user_name :1; - bool group_names :1; + bool user_name; + bool group_names; } _ThriftHiveMetastore_set_ugi_args__isset; class ThriftHiveMetastore_set_ugi_args { public: - static const char* ascii_fingerprint; // = "25702B8D5E28AA39160F267DABBC8446"; - static const uint8_t binary_fingerprint[16]; // = {0x25,0x70,0x2B,0x8D,0x5E,0x28,0xAA,0x39,0x16,0x0F,0x26,0x7D,0xAB,0xBC,0x84,0x46}; - - ThriftHiveMetastore_set_ugi_args(const ThriftHiveMetastore_set_ugi_args&); - ThriftHiveMetastore_set_ugi_args& operator=(const ThriftHiveMetastore_set_ugi_args&); ThriftHiveMetastore_set_ugi_args() : user_name() { } - virtual ~ThriftHiveMetastore_set_ugi_args() throw(); + virtual ~ThriftHiveMetastore_set_ugi_args() throw() {} + std::string user_name; std::vector group_names; _ThriftHiveMetastore_set_ugi_args__isset __isset; - void __set_user_name(const std::string& val); + void __set_user_name(const std::string& val) { + user_name = val; + } - void __set_group_names(const std::vector & val); + void __set_group_names(const std::vector & val) { + group_names = val; + } bool operator == (const ThriftHiveMetastore_set_ugi_args & rhs) const { @@ -15653,52 +15289,48 @@ class ThriftHiveMetastore_set_ugi_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_set_ugi_args& obj); }; class ThriftHiveMetastore_set_ugi_pargs { public: - static const char* ascii_fingerprint; // = "25702B8D5E28AA39160F267DABBC8446"; - static const uint8_t binary_fingerprint[16]; // = {0x25,0x70,0x2B,0x8D,0x5E,0x28,0xAA,0x39,0x16,0x0F,0x26,0x7D,0xAB,0xBC,0x84,0x46}; + virtual ~ThriftHiveMetastore_set_ugi_pargs() throw() {} - virtual ~ThriftHiveMetastore_set_ugi_pargs() throw(); const std::string* user_name; const std::vector * group_names; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_set_ugi_pargs& obj); }; typedef struct _ThriftHiveMetastore_set_ugi_result__isset { _ThriftHiveMetastore_set_ugi_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_set_ugi_result__isset; class ThriftHiveMetastore_set_ugi_result { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; - - ThriftHiveMetastore_set_ugi_result(const ThriftHiveMetastore_set_ugi_result&); - ThriftHiveMetastore_set_ugi_result& operator=(const ThriftHiveMetastore_set_ugi_result&); ThriftHiveMetastore_set_ugi_result() { } - virtual ~ThriftHiveMetastore_set_ugi_result() throw(); + virtual ~ThriftHiveMetastore_set_ugi_result() throw() {} + std::vector success; MetaException o1; _ThriftHiveMetastore_set_ugi_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_set_ugi_result & rhs) const { @@ -15717,23 +15349,20 @@ class ThriftHiveMetastore_set_ugi_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_set_ugi_result& obj); }; typedef struct _ThriftHiveMetastore_set_ugi_presult__isset { _ThriftHiveMetastore_set_ugi_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_set_ugi_presult__isset; class ThriftHiveMetastore_set_ugi_presult { public: - static const char* ascii_fingerprint; // = "96F383CF9CB8BE09061ECB825FE717B6"; - static const uint8_t binary_fingerprint[16]; // = {0x96,0xF3,0x83,0xCF,0x9C,0xB8,0xBE,0x09,0x06,0x1E,0xCB,0x82,0x5F,0xE7,0x17,0xB6}; + virtual ~ThriftHiveMetastore_set_ugi_presult() throw() {} - virtual ~ThriftHiveMetastore_set_ugi_presult() throw(); std::vector * success; MetaException o1; @@ -15741,35 +15370,34 @@ class ThriftHiveMetastore_set_ugi_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_set_ugi_presult& obj); }; typedef struct _ThriftHiveMetastore_get_delegation_token_args__isset { _ThriftHiveMetastore_get_delegation_token_args__isset() : token_owner(false), renewer_kerberos_principal_name(false) {} - bool token_owner :1; - bool renewer_kerberos_principal_name :1; + bool token_owner; + bool renewer_kerberos_principal_name; } _ThriftHiveMetastore_get_delegation_token_args__isset; class ThriftHiveMetastore_get_delegation_token_args { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; - - ThriftHiveMetastore_get_delegation_token_args(const ThriftHiveMetastore_get_delegation_token_args&); - ThriftHiveMetastore_get_delegation_token_args& operator=(const ThriftHiveMetastore_get_delegation_token_args&); ThriftHiveMetastore_get_delegation_token_args() : token_owner(), renewer_kerberos_principal_name() { } - virtual ~ThriftHiveMetastore_get_delegation_token_args() throw(); + virtual ~ThriftHiveMetastore_get_delegation_token_args() throw() {} + std::string token_owner; std::string renewer_kerberos_principal_name; _ThriftHiveMetastore_get_delegation_token_args__isset __isset; - void __set_token_owner(const std::string& val); + void __set_token_owner(const std::string& val) { + token_owner = val; + } - void __set_renewer_kerberos_principal_name(const std::string& val); + void __set_renewer_kerberos_principal_name(const std::string& val) { + renewer_kerberos_principal_name = val; + } bool operator == (const ThriftHiveMetastore_get_delegation_token_args & rhs) const { @@ -15788,52 +15416,48 @@ class ThriftHiveMetastore_get_delegation_token_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_delegation_token_args& obj); }; class ThriftHiveMetastore_get_delegation_token_pargs { public: - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; + virtual ~ThriftHiveMetastore_get_delegation_token_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_delegation_token_pargs() throw(); const std::string* token_owner; const std::string* renewer_kerberos_principal_name; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_delegation_token_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_delegation_token_result__isset { _ThriftHiveMetastore_get_delegation_token_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_delegation_token_result__isset; class ThriftHiveMetastore_get_delegation_token_result { public: - static const char* ascii_fingerprint; // = "FB3D66E547AE5D7F8EB046D752ECF5C1"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3D,0x66,0xE5,0x47,0xAE,0x5D,0x7F,0x8E,0xB0,0x46,0xD7,0x52,0xEC,0xF5,0xC1}; - - ThriftHiveMetastore_get_delegation_token_result(const ThriftHiveMetastore_get_delegation_token_result&); - ThriftHiveMetastore_get_delegation_token_result& operator=(const ThriftHiveMetastore_get_delegation_token_result&); ThriftHiveMetastore_get_delegation_token_result() : success() { } - virtual ~ThriftHiveMetastore_get_delegation_token_result() throw(); + virtual ~ThriftHiveMetastore_get_delegation_token_result() throw() {} + std::string success; MetaException o1; _ThriftHiveMetastore_get_delegation_token_result__isset __isset; - void __set_success(const std::string& val); + void __set_success(const std::string& val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_get_delegation_token_result & rhs) const { @@ -15852,23 +15476,20 @@ class ThriftHiveMetastore_get_delegation_token_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_delegation_token_result& obj); }; typedef struct _ThriftHiveMetastore_get_delegation_token_presult__isset { _ThriftHiveMetastore_get_delegation_token_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_get_delegation_token_presult__isset; class ThriftHiveMetastore_get_delegation_token_presult { public: - static const char* ascii_fingerprint; // = "FB3D66E547AE5D7F8EB046D752ECF5C1"; - static const uint8_t binary_fingerprint[16]; // = {0xFB,0x3D,0x66,0xE5,0x47,0xAE,0x5D,0x7F,0x8E,0xB0,0x46,0xD7,0x52,0xEC,0xF5,0xC1}; + virtual ~ThriftHiveMetastore_get_delegation_token_presult() throw() {} - virtual ~ThriftHiveMetastore_get_delegation_token_presult() throw(); std::string* success; MetaException o1; @@ -15876,31 +15497,28 @@ class ThriftHiveMetastore_get_delegation_token_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_delegation_token_presult& obj); }; typedef struct _ThriftHiveMetastore_renew_delegation_token_args__isset { _ThriftHiveMetastore_renew_delegation_token_args__isset() : token_str_form(false) {} - bool token_str_form :1; + bool token_str_form; } _ThriftHiveMetastore_renew_delegation_token_args__isset; class ThriftHiveMetastore_renew_delegation_token_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - ThriftHiveMetastore_renew_delegation_token_args(const ThriftHiveMetastore_renew_delegation_token_args&); - ThriftHiveMetastore_renew_delegation_token_args& operator=(const ThriftHiveMetastore_renew_delegation_token_args&); ThriftHiveMetastore_renew_delegation_token_args() : token_str_form() { } - virtual ~ThriftHiveMetastore_renew_delegation_token_args() throw(); + virtual ~ThriftHiveMetastore_renew_delegation_token_args() throw() {} + std::string token_str_form; _ThriftHiveMetastore_renew_delegation_token_args__isset __isset; - void __set_token_str_form(const std::string& val); + void __set_token_str_form(const std::string& val) { + token_str_form = val; + } bool operator == (const ThriftHiveMetastore_renew_delegation_token_args & rhs) const { @@ -15917,51 +15535,47 @@ class ThriftHiveMetastore_renew_delegation_token_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_renew_delegation_token_args& obj); }; class ThriftHiveMetastore_renew_delegation_token_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + virtual ~ThriftHiveMetastore_renew_delegation_token_pargs() throw() {} - virtual ~ThriftHiveMetastore_renew_delegation_token_pargs() throw(); const std::string* token_str_form; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_renew_delegation_token_pargs& obj); }; typedef struct _ThriftHiveMetastore_renew_delegation_token_result__isset { _ThriftHiveMetastore_renew_delegation_token_result__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_renew_delegation_token_result__isset; class ThriftHiveMetastore_renew_delegation_token_result { public: - static const char* ascii_fingerprint; // = "508103C02ABBB83FE53EB7316CA5F1B7"; - static const uint8_t binary_fingerprint[16]; // = {0x50,0x81,0x03,0xC0,0x2A,0xBB,0xB8,0x3F,0xE5,0x3E,0xB7,0x31,0x6C,0xA5,0xF1,0xB7}; - - ThriftHiveMetastore_renew_delegation_token_result(const ThriftHiveMetastore_renew_delegation_token_result&); - ThriftHiveMetastore_renew_delegation_token_result& operator=(const ThriftHiveMetastore_renew_delegation_token_result&); ThriftHiveMetastore_renew_delegation_token_result() : success(0) { } - virtual ~ThriftHiveMetastore_renew_delegation_token_result() throw(); + virtual ~ThriftHiveMetastore_renew_delegation_token_result() throw() {} + int64_t success; MetaException o1; _ThriftHiveMetastore_renew_delegation_token_result__isset __isset; - void __set_success(const int64_t val); + void __set_success(const int64_t val) { + success = val; + } - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_renew_delegation_token_result & rhs) const { @@ -15980,23 +15594,20 @@ class ThriftHiveMetastore_renew_delegation_token_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_renew_delegation_token_result& obj); }; typedef struct _ThriftHiveMetastore_renew_delegation_token_presult__isset { _ThriftHiveMetastore_renew_delegation_token_presult__isset() : success(false), o1(false) {} - bool success :1; - bool o1 :1; + bool success; + bool o1; } _ThriftHiveMetastore_renew_delegation_token_presult__isset; class ThriftHiveMetastore_renew_delegation_token_presult { public: - static const char* ascii_fingerprint; // = "508103C02ABBB83FE53EB7316CA5F1B7"; - static const uint8_t binary_fingerprint[16]; // = {0x50,0x81,0x03,0xC0,0x2A,0xBB,0xB8,0x3F,0xE5,0x3E,0xB7,0x31,0x6C,0xA5,0xF1,0xB7}; + virtual ~ThriftHiveMetastore_renew_delegation_token_presult() throw() {} - virtual ~ThriftHiveMetastore_renew_delegation_token_presult() throw(); int64_t* success; MetaException o1; @@ -16004,31 +15615,28 @@ class ThriftHiveMetastore_renew_delegation_token_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_renew_delegation_token_presult& obj); }; typedef struct _ThriftHiveMetastore_cancel_delegation_token_args__isset { _ThriftHiveMetastore_cancel_delegation_token_args__isset() : token_str_form(false) {} - bool token_str_form :1; + bool token_str_form; } _ThriftHiveMetastore_cancel_delegation_token_args__isset; class ThriftHiveMetastore_cancel_delegation_token_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - ThriftHiveMetastore_cancel_delegation_token_args(const ThriftHiveMetastore_cancel_delegation_token_args&); - ThriftHiveMetastore_cancel_delegation_token_args& operator=(const ThriftHiveMetastore_cancel_delegation_token_args&); ThriftHiveMetastore_cancel_delegation_token_args() : token_str_form() { } - virtual ~ThriftHiveMetastore_cancel_delegation_token_args() throw(); + virtual ~ThriftHiveMetastore_cancel_delegation_token_args() throw() {} + std::string token_str_form; _ThriftHiveMetastore_cancel_delegation_token_args__isset __isset; - void __set_token_str_form(const std::string& val); + void __set_token_str_form(const std::string& val) { + token_str_form = val; + } bool operator == (const ThriftHiveMetastore_cancel_delegation_token_args & rhs) const { @@ -16045,47 +15653,41 @@ class ThriftHiveMetastore_cancel_delegation_token_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_cancel_delegation_token_args& obj); }; class ThriftHiveMetastore_cancel_delegation_token_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + virtual ~ThriftHiveMetastore_cancel_delegation_token_pargs() throw() {} - virtual ~ThriftHiveMetastore_cancel_delegation_token_pargs() throw(); const std::string* token_str_form; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_cancel_delegation_token_pargs& obj); }; typedef struct _ThriftHiveMetastore_cancel_delegation_token_result__isset { _ThriftHiveMetastore_cancel_delegation_token_result__isset() : o1(false) {} - bool o1 :1; + bool o1; } _ThriftHiveMetastore_cancel_delegation_token_result__isset; class ThriftHiveMetastore_cancel_delegation_token_result { public: - static const char* ascii_fingerprint; // = "771E7EF40B572D2BFAB12C49547ADCBF"; - static const uint8_t binary_fingerprint[16]; // = {0x77,0x1E,0x7E,0xF4,0x0B,0x57,0x2D,0x2B,0xFA,0xB1,0x2C,0x49,0x54,0x7A,0xDC,0xBF}; - - ThriftHiveMetastore_cancel_delegation_token_result(const ThriftHiveMetastore_cancel_delegation_token_result&); - ThriftHiveMetastore_cancel_delegation_token_result& operator=(const ThriftHiveMetastore_cancel_delegation_token_result&); ThriftHiveMetastore_cancel_delegation_token_result() { } - virtual ~ThriftHiveMetastore_cancel_delegation_token_result() throw(); + virtual ~ThriftHiveMetastore_cancel_delegation_token_result() throw() {} + MetaException o1; _ThriftHiveMetastore_cancel_delegation_token_result__isset __isset; - void __set_o1(const MetaException& val); + void __set_o1(const MetaException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_cancel_delegation_token_result & rhs) const { @@ -16102,44 +15704,36 @@ class ThriftHiveMetastore_cancel_delegation_token_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_cancel_delegation_token_result& obj); }; typedef struct _ThriftHiveMetastore_cancel_delegation_token_presult__isset { _ThriftHiveMetastore_cancel_delegation_token_presult__isset() : o1(false) {} - bool o1 :1; + bool o1; } _ThriftHiveMetastore_cancel_delegation_token_presult__isset; class ThriftHiveMetastore_cancel_delegation_token_presult { public: - static const char* ascii_fingerprint; // = "771E7EF40B572D2BFAB12C49547ADCBF"; - static const uint8_t binary_fingerprint[16]; // = {0x77,0x1E,0x7E,0xF4,0x0B,0x57,0x2D,0x2B,0xFA,0xB1,0x2C,0x49,0x54,0x7A,0xDC,0xBF}; + virtual ~ThriftHiveMetastore_cancel_delegation_token_presult() throw() {} - virtual ~ThriftHiveMetastore_cancel_delegation_token_presult() throw(); MetaException o1; _ThriftHiveMetastore_cancel_delegation_token_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_cancel_delegation_token_presult& obj); }; class ThriftHiveMetastore_get_open_txns_args { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHiveMetastore_get_open_txns_args(const ThriftHiveMetastore_get_open_txns_args&); - ThriftHiveMetastore_get_open_txns_args& operator=(const ThriftHiveMetastore_get_open_txns_args&); ThriftHiveMetastore_get_open_txns_args() { } - virtual ~ThriftHiveMetastore_get_open_txns_args() throw(); + virtual ~ThriftHiveMetastore_get_open_txns_args() throw() {} + bool operator == (const ThriftHiveMetastore_get_open_txns_args & /* rhs */) const { @@ -16154,46 +15748,40 @@ class ThriftHiveMetastore_get_open_txns_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_open_txns_args& obj); }; class ThriftHiveMetastore_get_open_txns_pargs { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHiveMetastore_get_open_txns_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_open_txns_pargs() throw(); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_open_txns_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_open_txns_result__isset { _ThriftHiveMetastore_get_open_txns_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_open_txns_result__isset; class ThriftHiveMetastore_get_open_txns_result { public: - static const char* ascii_fingerprint; // = "20E9E10803C8C350560535B7C93B42C8"; - static const uint8_t binary_fingerprint[16]; // = {0x20,0xE9,0xE1,0x08,0x03,0xC8,0xC3,0x50,0x56,0x05,0x35,0xB7,0xC9,0x3B,0x42,0xC8}; - - ThriftHiveMetastore_get_open_txns_result(const ThriftHiveMetastore_get_open_txns_result&); - ThriftHiveMetastore_get_open_txns_result& operator=(const ThriftHiveMetastore_get_open_txns_result&); ThriftHiveMetastore_get_open_txns_result() { } - virtual ~ThriftHiveMetastore_get_open_txns_result() throw(); + virtual ~ThriftHiveMetastore_get_open_txns_result() throw() {} + GetOpenTxnsResponse success; _ThriftHiveMetastore_get_open_txns_result__isset __isset; - void __set_success(const GetOpenTxnsResponse& val); + void __set_success(const GetOpenTxnsResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_get_open_txns_result & rhs) const { @@ -16210,44 +15798,36 @@ class ThriftHiveMetastore_get_open_txns_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_open_txns_result& obj); }; typedef struct _ThriftHiveMetastore_get_open_txns_presult__isset { _ThriftHiveMetastore_get_open_txns_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_open_txns_presult__isset; class ThriftHiveMetastore_get_open_txns_presult { public: - static const char* ascii_fingerprint; // = "20E9E10803C8C350560535B7C93B42C8"; - static const uint8_t binary_fingerprint[16]; // = {0x20,0xE9,0xE1,0x08,0x03,0xC8,0xC3,0x50,0x56,0x05,0x35,0xB7,0xC9,0x3B,0x42,0xC8}; + virtual ~ThriftHiveMetastore_get_open_txns_presult() throw() {} - virtual ~ThriftHiveMetastore_get_open_txns_presult() throw(); GetOpenTxnsResponse* success; _ThriftHiveMetastore_get_open_txns_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_open_txns_presult& obj); }; class ThriftHiveMetastore_get_open_txns_info_args { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHiveMetastore_get_open_txns_info_args(const ThriftHiveMetastore_get_open_txns_info_args&); - ThriftHiveMetastore_get_open_txns_info_args& operator=(const ThriftHiveMetastore_get_open_txns_info_args&); ThriftHiveMetastore_get_open_txns_info_args() { } - virtual ~ThriftHiveMetastore_get_open_txns_info_args() throw(); + virtual ~ThriftHiveMetastore_get_open_txns_info_args() throw() {} + bool operator == (const ThriftHiveMetastore_get_open_txns_info_args & /* rhs */) const { @@ -16262,46 +15842,40 @@ class ThriftHiveMetastore_get_open_txns_info_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_open_txns_info_args& obj); }; class ThriftHiveMetastore_get_open_txns_info_pargs { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHiveMetastore_get_open_txns_info_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_open_txns_info_pargs() throw(); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_open_txns_info_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_open_txns_info_result__isset { _ThriftHiveMetastore_get_open_txns_info_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_open_txns_info_result__isset; class ThriftHiveMetastore_get_open_txns_info_result { public: - static const char* ascii_fingerprint; // = "9FCF4483C4C1109F97BD682C5B5EE933"; - static const uint8_t binary_fingerprint[16]; // = {0x9F,0xCF,0x44,0x83,0xC4,0xC1,0x10,0x9F,0x97,0xBD,0x68,0x2C,0x5B,0x5E,0xE9,0x33}; - - ThriftHiveMetastore_get_open_txns_info_result(const ThriftHiveMetastore_get_open_txns_info_result&); - ThriftHiveMetastore_get_open_txns_info_result& operator=(const ThriftHiveMetastore_get_open_txns_info_result&); ThriftHiveMetastore_get_open_txns_info_result() { } - virtual ~ThriftHiveMetastore_get_open_txns_info_result() throw(); + virtual ~ThriftHiveMetastore_get_open_txns_info_result() throw() {} + GetOpenTxnsInfoResponse success; _ThriftHiveMetastore_get_open_txns_info_result__isset __isset; - void __set_success(const GetOpenTxnsInfoResponse& val); + void __set_success(const GetOpenTxnsInfoResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_get_open_txns_info_result & rhs) const { @@ -16318,53 +15892,47 @@ class ThriftHiveMetastore_get_open_txns_info_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_open_txns_info_result& obj); }; typedef struct _ThriftHiveMetastore_get_open_txns_info_presult__isset { _ThriftHiveMetastore_get_open_txns_info_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_open_txns_info_presult__isset; class ThriftHiveMetastore_get_open_txns_info_presult { public: - static const char* ascii_fingerprint; // = "9FCF4483C4C1109F97BD682C5B5EE933"; - static const uint8_t binary_fingerprint[16]; // = {0x9F,0xCF,0x44,0x83,0xC4,0xC1,0x10,0x9F,0x97,0xBD,0x68,0x2C,0x5B,0x5E,0xE9,0x33}; + virtual ~ThriftHiveMetastore_get_open_txns_info_presult() throw() {} - virtual ~ThriftHiveMetastore_get_open_txns_info_presult() throw(); GetOpenTxnsInfoResponse* success; _ThriftHiveMetastore_get_open_txns_info_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_open_txns_info_presult& obj); }; typedef struct _ThriftHiveMetastore_open_txns_args__isset { _ThriftHiveMetastore_open_txns_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_open_txns_args__isset; class ThriftHiveMetastore_open_txns_args { public: - static const char* ascii_fingerprint; // = "E1189B34A1EC4BE42D095561D48152BF"; - static const uint8_t binary_fingerprint[16]; // = {0xE1,0x18,0x9B,0x34,0xA1,0xEC,0x4B,0xE4,0x2D,0x09,0x55,0x61,0xD4,0x81,0x52,0xBF}; - - ThriftHiveMetastore_open_txns_args(const ThriftHiveMetastore_open_txns_args&); - ThriftHiveMetastore_open_txns_args& operator=(const ThriftHiveMetastore_open_txns_args&); ThriftHiveMetastore_open_txns_args() { } - virtual ~ThriftHiveMetastore_open_txns_args() throw(); + virtual ~ThriftHiveMetastore_open_txns_args() throw() {} + OpenTxnRequest rqst; _ThriftHiveMetastore_open_txns_args__isset __isset; - void __set_rqst(const OpenTxnRequest& val); + void __set_rqst(const OpenTxnRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_open_txns_args & rhs) const { @@ -16381,47 +15949,41 @@ class ThriftHiveMetastore_open_txns_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_open_txns_args& obj); }; class ThriftHiveMetastore_open_txns_pargs { public: - static const char* ascii_fingerprint; // = "E1189B34A1EC4BE42D095561D48152BF"; - static const uint8_t binary_fingerprint[16]; // = {0xE1,0x18,0x9B,0x34,0xA1,0xEC,0x4B,0xE4,0x2D,0x09,0x55,0x61,0xD4,0x81,0x52,0xBF}; + virtual ~ThriftHiveMetastore_open_txns_pargs() throw() {} - virtual ~ThriftHiveMetastore_open_txns_pargs() throw(); const OpenTxnRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_open_txns_pargs& obj); }; typedef struct _ThriftHiveMetastore_open_txns_result__isset { _ThriftHiveMetastore_open_txns_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_open_txns_result__isset; class ThriftHiveMetastore_open_txns_result { public: - static const char* ascii_fingerprint; // = "3E09A8B20F1B51D639D00D987F28C018"; - static const uint8_t binary_fingerprint[16]; // = {0x3E,0x09,0xA8,0xB2,0x0F,0x1B,0x51,0xD6,0x39,0xD0,0x0D,0x98,0x7F,0x28,0xC0,0x18}; - - ThriftHiveMetastore_open_txns_result(const ThriftHiveMetastore_open_txns_result&); - ThriftHiveMetastore_open_txns_result& operator=(const ThriftHiveMetastore_open_txns_result&); ThriftHiveMetastore_open_txns_result() { } - virtual ~ThriftHiveMetastore_open_txns_result() throw(); + virtual ~ThriftHiveMetastore_open_txns_result() throw() {} + OpenTxnsResponse success; _ThriftHiveMetastore_open_txns_result__isset __isset; - void __set_success(const OpenTxnsResponse& val); + void __set_success(const OpenTxnsResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_open_txns_result & rhs) const { @@ -16438,53 +16000,47 @@ class ThriftHiveMetastore_open_txns_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_open_txns_result& obj); }; typedef struct _ThriftHiveMetastore_open_txns_presult__isset { _ThriftHiveMetastore_open_txns_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_open_txns_presult__isset; class ThriftHiveMetastore_open_txns_presult { public: - static const char* ascii_fingerprint; // = "3E09A8B20F1B51D639D00D987F28C018"; - static const uint8_t binary_fingerprint[16]; // = {0x3E,0x09,0xA8,0xB2,0x0F,0x1B,0x51,0xD6,0x39,0xD0,0x0D,0x98,0x7F,0x28,0xC0,0x18}; + virtual ~ThriftHiveMetastore_open_txns_presult() throw() {} - virtual ~ThriftHiveMetastore_open_txns_presult() throw(); OpenTxnsResponse* success; _ThriftHiveMetastore_open_txns_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_open_txns_presult& obj); }; typedef struct _ThriftHiveMetastore_abort_txn_args__isset { _ThriftHiveMetastore_abort_txn_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_abort_txn_args__isset; class ThriftHiveMetastore_abort_txn_args { public: - static const char* ascii_fingerprint; // = "B88BA49E121B941C9302E7ABB2C1A1C4"; - static const uint8_t binary_fingerprint[16]; // = {0xB8,0x8B,0xA4,0x9E,0x12,0x1B,0x94,0x1C,0x93,0x02,0xE7,0xAB,0xB2,0xC1,0xA1,0xC4}; - - ThriftHiveMetastore_abort_txn_args(const ThriftHiveMetastore_abort_txn_args&); - ThriftHiveMetastore_abort_txn_args& operator=(const ThriftHiveMetastore_abort_txn_args&); ThriftHiveMetastore_abort_txn_args() { } - virtual ~ThriftHiveMetastore_abort_txn_args() throw(); + virtual ~ThriftHiveMetastore_abort_txn_args() throw() {} + AbortTxnRequest rqst; _ThriftHiveMetastore_abort_txn_args__isset __isset; - void __set_rqst(const AbortTxnRequest& val); + void __set_rqst(const AbortTxnRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_abort_txn_args & rhs) const { @@ -16501,47 +16057,41 @@ class ThriftHiveMetastore_abort_txn_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_abort_txn_args& obj); }; class ThriftHiveMetastore_abort_txn_pargs { public: - static const char* ascii_fingerprint; // = "B88BA49E121B941C9302E7ABB2C1A1C4"; - static const uint8_t binary_fingerprint[16]; // = {0xB8,0x8B,0xA4,0x9E,0x12,0x1B,0x94,0x1C,0x93,0x02,0xE7,0xAB,0xB2,0xC1,0xA1,0xC4}; + virtual ~ThriftHiveMetastore_abort_txn_pargs() throw() {} - virtual ~ThriftHiveMetastore_abort_txn_pargs() throw(); const AbortTxnRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_abort_txn_pargs& obj); }; typedef struct _ThriftHiveMetastore_abort_txn_result__isset { _ThriftHiveMetastore_abort_txn_result__isset() : o1(false) {} - bool o1 :1; + bool o1; } _ThriftHiveMetastore_abort_txn_result__isset; class ThriftHiveMetastore_abort_txn_result { public: - static const char* ascii_fingerprint; // = "771E7EF40B572D2BFAB12C49547ADCBF"; - static const uint8_t binary_fingerprint[16]; // = {0x77,0x1E,0x7E,0xF4,0x0B,0x57,0x2D,0x2B,0xFA,0xB1,0x2C,0x49,0x54,0x7A,0xDC,0xBF}; - - ThriftHiveMetastore_abort_txn_result(const ThriftHiveMetastore_abort_txn_result&); - ThriftHiveMetastore_abort_txn_result& operator=(const ThriftHiveMetastore_abort_txn_result&); ThriftHiveMetastore_abort_txn_result() { } - virtual ~ThriftHiveMetastore_abort_txn_result() throw(); + virtual ~ThriftHiveMetastore_abort_txn_result() throw() {} + NoSuchTxnException o1; _ThriftHiveMetastore_abort_txn_result__isset __isset; - void __set_o1(const NoSuchTxnException& val); + void __set_o1(const NoSuchTxnException& val) { + o1 = val; + } bool operator == (const ThriftHiveMetastore_abort_txn_result & rhs) const { @@ -16558,53 +16108,47 @@ class ThriftHiveMetastore_abort_txn_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_abort_txn_result& obj); }; typedef struct _ThriftHiveMetastore_abort_txn_presult__isset { _ThriftHiveMetastore_abort_txn_presult__isset() : o1(false) {} - bool o1 :1; + bool o1; } _ThriftHiveMetastore_abort_txn_presult__isset; class ThriftHiveMetastore_abort_txn_presult { public: - static const char* ascii_fingerprint; // = "771E7EF40B572D2BFAB12C49547ADCBF"; - static const uint8_t binary_fingerprint[16]; // = {0x77,0x1E,0x7E,0xF4,0x0B,0x57,0x2D,0x2B,0xFA,0xB1,0x2C,0x49,0x54,0x7A,0xDC,0xBF}; + virtual ~ThriftHiveMetastore_abort_txn_presult() throw() {} - virtual ~ThriftHiveMetastore_abort_txn_presult() throw(); NoSuchTxnException o1; _ThriftHiveMetastore_abort_txn_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_abort_txn_presult& obj); }; typedef struct _ThriftHiveMetastore_commit_txn_args__isset { _ThriftHiveMetastore_commit_txn_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_commit_txn_args__isset; class ThriftHiveMetastore_commit_txn_args { public: - static const char* ascii_fingerprint; // = "B88BA49E121B941C9302E7ABB2C1A1C4"; - static const uint8_t binary_fingerprint[16]; // = {0xB8,0x8B,0xA4,0x9E,0x12,0x1B,0x94,0x1C,0x93,0x02,0xE7,0xAB,0xB2,0xC1,0xA1,0xC4}; - - ThriftHiveMetastore_commit_txn_args(const ThriftHiveMetastore_commit_txn_args&); - ThriftHiveMetastore_commit_txn_args& operator=(const ThriftHiveMetastore_commit_txn_args&); ThriftHiveMetastore_commit_txn_args() { } - virtual ~ThriftHiveMetastore_commit_txn_args() throw(); + virtual ~ThriftHiveMetastore_commit_txn_args() throw() {} + CommitTxnRequest rqst; _ThriftHiveMetastore_commit_txn_args__isset __isset; - void __set_rqst(const CommitTxnRequest& val); + void __set_rqst(const CommitTxnRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_commit_txn_args & rhs) const { @@ -16621,51 +16165,47 @@ class ThriftHiveMetastore_commit_txn_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_commit_txn_args& obj); }; class ThriftHiveMetastore_commit_txn_pargs { public: - static const char* ascii_fingerprint; // = "B88BA49E121B941C9302E7ABB2C1A1C4"; - static const uint8_t binary_fingerprint[16]; // = {0xB8,0x8B,0xA4,0x9E,0x12,0x1B,0x94,0x1C,0x93,0x02,0xE7,0xAB,0xB2,0xC1,0xA1,0xC4}; + virtual ~ThriftHiveMetastore_commit_txn_pargs() throw() {} - virtual ~ThriftHiveMetastore_commit_txn_pargs() throw(); const CommitTxnRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_commit_txn_pargs& obj); }; typedef struct _ThriftHiveMetastore_commit_txn_result__isset { _ThriftHiveMetastore_commit_txn_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_commit_txn_result__isset; class ThriftHiveMetastore_commit_txn_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_commit_txn_result(const ThriftHiveMetastore_commit_txn_result&); - ThriftHiveMetastore_commit_txn_result& operator=(const ThriftHiveMetastore_commit_txn_result&); ThriftHiveMetastore_commit_txn_result() { } - virtual ~ThriftHiveMetastore_commit_txn_result() throw(); + virtual ~ThriftHiveMetastore_commit_txn_result() throw() {} + NoSuchTxnException o1; TxnAbortedException o2; _ThriftHiveMetastore_commit_txn_result__isset __isset; - void __set_o1(const NoSuchTxnException& val); + void __set_o1(const NoSuchTxnException& val) { + o1 = val; + } - void __set_o2(const TxnAbortedException& val); + void __set_o2(const TxnAbortedException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_commit_txn_result & rhs) const { @@ -16684,23 +16224,20 @@ class ThriftHiveMetastore_commit_txn_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_commit_txn_result& obj); }; typedef struct _ThriftHiveMetastore_commit_txn_presult__isset { _ThriftHiveMetastore_commit_txn_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_commit_txn_presult__isset; class ThriftHiveMetastore_commit_txn_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_commit_txn_presult() throw() {} - virtual ~ThriftHiveMetastore_commit_txn_presult() throw(); NoSuchTxnException o1; TxnAbortedException o2; @@ -16708,31 +16245,28 @@ class ThriftHiveMetastore_commit_txn_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_commit_txn_presult& obj); }; typedef struct _ThriftHiveMetastore_lock_args__isset { _ThriftHiveMetastore_lock_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_lock_args__isset; class ThriftHiveMetastore_lock_args { public: - static const char* ascii_fingerprint; // = "5213FA403E774267E44EF8AB37818A4C"; - static const uint8_t binary_fingerprint[16]; // = {0x52,0x13,0xFA,0x40,0x3E,0x77,0x42,0x67,0xE4,0x4E,0xF8,0xAB,0x37,0x81,0x8A,0x4C}; - - ThriftHiveMetastore_lock_args(const ThriftHiveMetastore_lock_args&); - ThriftHiveMetastore_lock_args& operator=(const ThriftHiveMetastore_lock_args&); ThriftHiveMetastore_lock_args() { } - virtual ~ThriftHiveMetastore_lock_args() throw(); + virtual ~ThriftHiveMetastore_lock_args() throw() {} + LockRequest rqst; _ThriftHiveMetastore_lock_args__isset __isset; - void __set_rqst(const LockRequest& val); + void __set_rqst(const LockRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_lock_args & rhs) const { @@ -16749,55 +16283,53 @@ class ThriftHiveMetastore_lock_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_lock_args& obj); }; class ThriftHiveMetastore_lock_pargs { public: - static const char* ascii_fingerprint; // = "5213FA403E774267E44EF8AB37818A4C"; - static const uint8_t binary_fingerprint[16]; // = {0x52,0x13,0xFA,0x40,0x3E,0x77,0x42,0x67,0xE4,0x4E,0xF8,0xAB,0x37,0x81,0x8A,0x4C}; + virtual ~ThriftHiveMetastore_lock_pargs() throw() {} - virtual ~ThriftHiveMetastore_lock_pargs() throw(); const LockRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_lock_pargs& obj); }; typedef struct _ThriftHiveMetastore_lock_result__isset { _ThriftHiveMetastore_lock_result__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_lock_result__isset; class ThriftHiveMetastore_lock_result { public: - static const char* ascii_fingerprint; // = "2727CCA9CB0804173B6D773D3A208311"; - static const uint8_t binary_fingerprint[16]; // = {0x27,0x27,0xCC,0xA9,0xCB,0x08,0x04,0x17,0x3B,0x6D,0x77,0x3D,0x3A,0x20,0x83,0x11}; - - ThriftHiveMetastore_lock_result(const ThriftHiveMetastore_lock_result&); - ThriftHiveMetastore_lock_result& operator=(const ThriftHiveMetastore_lock_result&); ThriftHiveMetastore_lock_result() { } - virtual ~ThriftHiveMetastore_lock_result() throw(); + virtual ~ThriftHiveMetastore_lock_result() throw() {} + LockResponse success; NoSuchTxnException o1; TxnAbortedException o2; _ThriftHiveMetastore_lock_result__isset __isset; - void __set_success(const LockResponse& val); + void __set_success(const LockResponse& val) { + success = val; + } - void __set_o1(const NoSuchTxnException& val); + void __set_o1(const NoSuchTxnException& val) { + o1 = val; + } - void __set_o2(const TxnAbortedException& val); + void __set_o2(const TxnAbortedException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_lock_result & rhs) const { @@ -16818,24 +16350,21 @@ class ThriftHiveMetastore_lock_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_lock_result& obj); }; typedef struct _ThriftHiveMetastore_lock_presult__isset { _ThriftHiveMetastore_lock_presult__isset() : success(false), o1(false), o2(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; + bool success; + bool o1; + bool o2; } _ThriftHiveMetastore_lock_presult__isset; class ThriftHiveMetastore_lock_presult { public: - static const char* ascii_fingerprint; // = "2727CCA9CB0804173B6D773D3A208311"; - static const uint8_t binary_fingerprint[16]; // = {0x27,0x27,0xCC,0xA9,0xCB,0x08,0x04,0x17,0x3B,0x6D,0x77,0x3D,0x3A,0x20,0x83,0x11}; + virtual ~ThriftHiveMetastore_lock_presult() throw() {} - virtual ~ThriftHiveMetastore_lock_presult() throw(); LockResponse* success; NoSuchTxnException o1; TxnAbortedException o2; @@ -16844,31 +16373,28 @@ class ThriftHiveMetastore_lock_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_lock_presult& obj); }; typedef struct _ThriftHiveMetastore_check_lock_args__isset { _ThriftHiveMetastore_check_lock_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_check_lock_args__isset; class ThriftHiveMetastore_check_lock_args { public: - static const char* ascii_fingerprint; // = "B88BA49E121B941C9302E7ABB2C1A1C4"; - static const uint8_t binary_fingerprint[16]; // = {0xB8,0x8B,0xA4,0x9E,0x12,0x1B,0x94,0x1C,0x93,0x02,0xE7,0xAB,0xB2,0xC1,0xA1,0xC4}; - - ThriftHiveMetastore_check_lock_args(const ThriftHiveMetastore_check_lock_args&); - ThriftHiveMetastore_check_lock_args& operator=(const ThriftHiveMetastore_check_lock_args&); ThriftHiveMetastore_check_lock_args() { } - virtual ~ThriftHiveMetastore_check_lock_args() throw(); + virtual ~ThriftHiveMetastore_check_lock_args() throw() {} + CheckLockRequest rqst; _ThriftHiveMetastore_check_lock_args__isset __isset; - void __set_rqst(const CheckLockRequest& val); + void __set_rqst(const CheckLockRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_check_lock_args & rhs) const { @@ -16885,45 +16411,37 @@ class ThriftHiveMetastore_check_lock_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_check_lock_args& obj); }; class ThriftHiveMetastore_check_lock_pargs { public: - static const char* ascii_fingerprint; // = "B88BA49E121B941C9302E7ABB2C1A1C4"; - static const uint8_t binary_fingerprint[16]; // = {0xB8,0x8B,0xA4,0x9E,0x12,0x1B,0x94,0x1C,0x93,0x02,0xE7,0xAB,0xB2,0xC1,0xA1,0xC4}; + virtual ~ThriftHiveMetastore_check_lock_pargs() throw() {} - virtual ~ThriftHiveMetastore_check_lock_pargs() throw(); const CheckLockRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_check_lock_pargs& obj); }; typedef struct _ThriftHiveMetastore_check_lock_result__isset { _ThriftHiveMetastore_check_lock_result__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_check_lock_result__isset; class ThriftHiveMetastore_check_lock_result { public: - static const char* ascii_fingerprint; // = "AB7C8CA24C9671EFDAEC0D3EC9DE8F97"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x7C,0x8C,0xA2,0x4C,0x96,0x71,0xEF,0xDA,0xEC,0x0D,0x3E,0xC9,0xDE,0x8F,0x97}; - - ThriftHiveMetastore_check_lock_result(const ThriftHiveMetastore_check_lock_result&); - ThriftHiveMetastore_check_lock_result& operator=(const ThriftHiveMetastore_check_lock_result&); ThriftHiveMetastore_check_lock_result() { } - virtual ~ThriftHiveMetastore_check_lock_result() throw(); + virtual ~ThriftHiveMetastore_check_lock_result() throw() {} + LockResponse success; NoSuchTxnException o1; TxnAbortedException o2; @@ -16931,13 +16449,21 @@ class ThriftHiveMetastore_check_lock_result { _ThriftHiveMetastore_check_lock_result__isset __isset; - void __set_success(const LockResponse& val); + void __set_success(const LockResponse& val) { + success = val; + } - void __set_o1(const NoSuchTxnException& val); + void __set_o1(const NoSuchTxnException& val) { + o1 = val; + } - void __set_o2(const TxnAbortedException& val); + void __set_o2(const TxnAbortedException& val) { + o2 = val; + } - void __set_o3(const NoSuchLockException& val); + void __set_o3(const NoSuchLockException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_check_lock_result & rhs) const { @@ -16960,25 +16486,22 @@ class ThriftHiveMetastore_check_lock_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_check_lock_result& obj); }; typedef struct _ThriftHiveMetastore_check_lock_presult__isset { _ThriftHiveMetastore_check_lock_presult__isset() : success(false), o1(false), o2(false), o3(false) {} - bool success :1; - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool success; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_check_lock_presult__isset; class ThriftHiveMetastore_check_lock_presult { public: - static const char* ascii_fingerprint; // = "AB7C8CA24C9671EFDAEC0D3EC9DE8F97"; - static const uint8_t binary_fingerprint[16]; // = {0xAB,0x7C,0x8C,0xA2,0x4C,0x96,0x71,0xEF,0xDA,0xEC,0x0D,0x3E,0xC9,0xDE,0x8F,0x97}; + virtual ~ThriftHiveMetastore_check_lock_presult() throw() {} - virtual ~ThriftHiveMetastore_check_lock_presult() throw(); LockResponse* success; NoSuchTxnException o1; TxnAbortedException o2; @@ -16988,31 +16511,28 @@ class ThriftHiveMetastore_check_lock_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_check_lock_presult& obj); }; typedef struct _ThriftHiveMetastore_unlock_args__isset { _ThriftHiveMetastore_unlock_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_unlock_args__isset; class ThriftHiveMetastore_unlock_args { public: - static const char* ascii_fingerprint; // = "B88BA49E121B941C9302E7ABB2C1A1C4"; - static const uint8_t binary_fingerprint[16]; // = {0xB8,0x8B,0xA4,0x9E,0x12,0x1B,0x94,0x1C,0x93,0x02,0xE7,0xAB,0xB2,0xC1,0xA1,0xC4}; - - ThriftHiveMetastore_unlock_args(const ThriftHiveMetastore_unlock_args&); - ThriftHiveMetastore_unlock_args& operator=(const ThriftHiveMetastore_unlock_args&); ThriftHiveMetastore_unlock_args() { } - virtual ~ThriftHiveMetastore_unlock_args() throw(); + virtual ~ThriftHiveMetastore_unlock_args() throw() {} + UnlockRequest rqst; _ThriftHiveMetastore_unlock_args__isset __isset; - void __set_rqst(const UnlockRequest& val); + void __set_rqst(const UnlockRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_unlock_args & rhs) const { @@ -17029,51 +16549,47 @@ class ThriftHiveMetastore_unlock_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_unlock_args& obj); }; class ThriftHiveMetastore_unlock_pargs { public: - static const char* ascii_fingerprint; // = "B88BA49E121B941C9302E7ABB2C1A1C4"; - static const uint8_t binary_fingerprint[16]; // = {0xB8,0x8B,0xA4,0x9E,0x12,0x1B,0x94,0x1C,0x93,0x02,0xE7,0xAB,0xB2,0xC1,0xA1,0xC4}; + virtual ~ThriftHiveMetastore_unlock_pargs() throw() {} - virtual ~ThriftHiveMetastore_unlock_pargs() throw(); const UnlockRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_unlock_pargs& obj); }; typedef struct _ThriftHiveMetastore_unlock_result__isset { _ThriftHiveMetastore_unlock_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_unlock_result__isset; class ThriftHiveMetastore_unlock_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_unlock_result(const ThriftHiveMetastore_unlock_result&); - ThriftHiveMetastore_unlock_result& operator=(const ThriftHiveMetastore_unlock_result&); ThriftHiveMetastore_unlock_result() { } - virtual ~ThriftHiveMetastore_unlock_result() throw(); + virtual ~ThriftHiveMetastore_unlock_result() throw() {} + NoSuchLockException o1; TxnOpenException o2; _ThriftHiveMetastore_unlock_result__isset __isset; - void __set_o1(const NoSuchLockException& val); + void __set_o1(const NoSuchLockException& val) { + o1 = val; + } - void __set_o2(const TxnOpenException& val); + void __set_o2(const TxnOpenException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_unlock_result & rhs) const { @@ -17092,23 +16608,20 @@ class ThriftHiveMetastore_unlock_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_unlock_result& obj); }; typedef struct _ThriftHiveMetastore_unlock_presult__isset { _ThriftHiveMetastore_unlock_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_unlock_presult__isset; class ThriftHiveMetastore_unlock_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_unlock_presult() throw() {} - virtual ~ThriftHiveMetastore_unlock_presult() throw(); NoSuchLockException o1; TxnOpenException o2; @@ -17116,31 +16629,28 @@ class ThriftHiveMetastore_unlock_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_unlock_presult& obj); }; typedef struct _ThriftHiveMetastore_show_locks_args__isset { _ThriftHiveMetastore_show_locks_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_show_locks_args__isset; class ThriftHiveMetastore_show_locks_args { public: - static const char* ascii_fingerprint; // = "2C32A565725135A023CB591D1A993CFD"; - static const uint8_t binary_fingerprint[16]; // = {0x2C,0x32,0xA5,0x65,0x72,0x51,0x35,0xA0,0x23,0xCB,0x59,0x1D,0x1A,0x99,0x3C,0xFD}; - - ThriftHiveMetastore_show_locks_args(const ThriftHiveMetastore_show_locks_args&); - ThriftHiveMetastore_show_locks_args& operator=(const ThriftHiveMetastore_show_locks_args&); ThriftHiveMetastore_show_locks_args() { } - virtual ~ThriftHiveMetastore_show_locks_args() throw(); + virtual ~ThriftHiveMetastore_show_locks_args() throw() {} + ShowLocksRequest rqst; _ThriftHiveMetastore_show_locks_args__isset __isset; - void __set_rqst(const ShowLocksRequest& val); + void __set_rqst(const ShowLocksRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_show_locks_args & rhs) const { @@ -17157,47 +16667,41 @@ class ThriftHiveMetastore_show_locks_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_show_locks_args& obj); }; class ThriftHiveMetastore_show_locks_pargs { public: - static const char* ascii_fingerprint; // = "2C32A565725135A023CB591D1A993CFD"; - static const uint8_t binary_fingerprint[16]; // = {0x2C,0x32,0xA5,0x65,0x72,0x51,0x35,0xA0,0x23,0xCB,0x59,0x1D,0x1A,0x99,0x3C,0xFD}; + virtual ~ThriftHiveMetastore_show_locks_pargs() throw() {} - virtual ~ThriftHiveMetastore_show_locks_pargs() throw(); const ShowLocksRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_show_locks_pargs& obj); }; typedef struct _ThriftHiveMetastore_show_locks_result__isset { _ThriftHiveMetastore_show_locks_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_show_locks_result__isset; class ThriftHiveMetastore_show_locks_result { public: - static const char* ascii_fingerprint; // = "25A4CC42ED265B60DCAF08925DC3F8E6"; - static const uint8_t binary_fingerprint[16]; // = {0x25,0xA4,0xCC,0x42,0xED,0x26,0x5B,0x60,0xDC,0xAF,0x08,0x92,0x5D,0xC3,0xF8,0xE6}; - - ThriftHiveMetastore_show_locks_result(const ThriftHiveMetastore_show_locks_result&); - ThriftHiveMetastore_show_locks_result& operator=(const ThriftHiveMetastore_show_locks_result&); ThriftHiveMetastore_show_locks_result() { } - virtual ~ThriftHiveMetastore_show_locks_result() throw(); + virtual ~ThriftHiveMetastore_show_locks_result() throw() {} + ShowLocksResponse success; _ThriftHiveMetastore_show_locks_result__isset __isset; - void __set_success(const ShowLocksResponse& val); + void __set_success(const ShowLocksResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_show_locks_result & rhs) const { @@ -17214,53 +16718,47 @@ class ThriftHiveMetastore_show_locks_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_show_locks_result& obj); }; typedef struct _ThriftHiveMetastore_show_locks_presult__isset { _ThriftHiveMetastore_show_locks_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_show_locks_presult__isset; class ThriftHiveMetastore_show_locks_presult { public: - static const char* ascii_fingerprint; // = "25A4CC42ED265B60DCAF08925DC3F8E6"; - static const uint8_t binary_fingerprint[16]; // = {0x25,0xA4,0xCC,0x42,0xED,0x26,0x5B,0x60,0xDC,0xAF,0x08,0x92,0x5D,0xC3,0xF8,0xE6}; + virtual ~ThriftHiveMetastore_show_locks_presult() throw() {} - virtual ~ThriftHiveMetastore_show_locks_presult() throw(); ShowLocksResponse* success; _ThriftHiveMetastore_show_locks_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_show_locks_presult& obj); }; typedef struct _ThriftHiveMetastore_heartbeat_args__isset { _ThriftHiveMetastore_heartbeat_args__isset() : ids(false) {} - bool ids :1; + bool ids; } _ThriftHiveMetastore_heartbeat_args__isset; class ThriftHiveMetastore_heartbeat_args { public: - static const char* ascii_fingerprint; // = "FEFE57C0FA49DB87DD74D3DC1317EDB9"; - static const uint8_t binary_fingerprint[16]; // = {0xFE,0xFE,0x57,0xC0,0xFA,0x49,0xDB,0x87,0xDD,0x74,0xD3,0xDC,0x13,0x17,0xED,0xB9}; - - ThriftHiveMetastore_heartbeat_args(const ThriftHiveMetastore_heartbeat_args&); - ThriftHiveMetastore_heartbeat_args& operator=(const ThriftHiveMetastore_heartbeat_args&); ThriftHiveMetastore_heartbeat_args() { } - virtual ~ThriftHiveMetastore_heartbeat_args() throw(); + virtual ~ThriftHiveMetastore_heartbeat_args() throw() {} + HeartbeatRequest ids; _ThriftHiveMetastore_heartbeat_args__isset __isset; - void __set_ids(const HeartbeatRequest& val); + void __set_ids(const HeartbeatRequest& val) { + ids = val; + } bool operator == (const ThriftHiveMetastore_heartbeat_args & rhs) const { @@ -17277,55 +16775,53 @@ class ThriftHiveMetastore_heartbeat_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_heartbeat_args& obj); }; class ThriftHiveMetastore_heartbeat_pargs { public: - static const char* ascii_fingerprint; // = "FEFE57C0FA49DB87DD74D3DC1317EDB9"; - static const uint8_t binary_fingerprint[16]; // = {0xFE,0xFE,0x57,0xC0,0xFA,0x49,0xDB,0x87,0xDD,0x74,0xD3,0xDC,0x13,0x17,0xED,0xB9}; + virtual ~ThriftHiveMetastore_heartbeat_pargs() throw() {} - virtual ~ThriftHiveMetastore_heartbeat_pargs() throw(); const HeartbeatRequest* ids; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_heartbeat_pargs& obj); }; typedef struct _ThriftHiveMetastore_heartbeat_result__isset { _ThriftHiveMetastore_heartbeat_result__isset() : o1(false), o2(false), o3(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_heartbeat_result__isset; class ThriftHiveMetastore_heartbeat_result { public: - static const char* ascii_fingerprint; // = "2E72786EE0F17DA00FC5BDED362FE255"; - static const uint8_t binary_fingerprint[16]; // = {0x2E,0x72,0x78,0x6E,0xE0,0xF1,0x7D,0xA0,0x0F,0xC5,0xBD,0xED,0x36,0x2F,0xE2,0x55}; - - ThriftHiveMetastore_heartbeat_result(const ThriftHiveMetastore_heartbeat_result&); - ThriftHiveMetastore_heartbeat_result& operator=(const ThriftHiveMetastore_heartbeat_result&); ThriftHiveMetastore_heartbeat_result() { } - virtual ~ThriftHiveMetastore_heartbeat_result() throw(); + virtual ~ThriftHiveMetastore_heartbeat_result() throw() {} + NoSuchLockException o1; NoSuchTxnException o2; TxnAbortedException o3; _ThriftHiveMetastore_heartbeat_result__isset __isset; - void __set_o1(const NoSuchLockException& val); + void __set_o1(const NoSuchLockException& val) { + o1 = val; + } - void __set_o2(const NoSuchTxnException& val); + void __set_o2(const NoSuchTxnException& val) { + o2 = val; + } - void __set_o3(const TxnAbortedException& val); + void __set_o3(const TxnAbortedException& val) { + o3 = val; + } bool operator == (const ThriftHiveMetastore_heartbeat_result & rhs) const { @@ -17346,24 +16842,21 @@ class ThriftHiveMetastore_heartbeat_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_heartbeat_result& obj); }; typedef struct _ThriftHiveMetastore_heartbeat_presult__isset { _ThriftHiveMetastore_heartbeat_presult__isset() : o1(false), o2(false), o3(false) {} - bool o1 :1; - bool o2 :1; - bool o3 :1; + bool o1; + bool o2; + bool o3; } _ThriftHiveMetastore_heartbeat_presult__isset; class ThriftHiveMetastore_heartbeat_presult { public: - static const char* ascii_fingerprint; // = "2E72786EE0F17DA00FC5BDED362FE255"; - static const uint8_t binary_fingerprint[16]; // = {0x2E,0x72,0x78,0x6E,0xE0,0xF1,0x7D,0xA0,0x0F,0xC5,0xBD,0xED,0x36,0x2F,0xE2,0x55}; + virtual ~ThriftHiveMetastore_heartbeat_presult() throw() {} - virtual ~ThriftHiveMetastore_heartbeat_presult() throw(); NoSuchLockException o1; NoSuchTxnException o2; TxnAbortedException o3; @@ -17372,31 +16865,28 @@ class ThriftHiveMetastore_heartbeat_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_heartbeat_presult& obj); }; typedef struct _ThriftHiveMetastore_heartbeat_txn_range_args__isset { _ThriftHiveMetastore_heartbeat_txn_range_args__isset() : txns(false) {} - bool txns :1; + bool txns; } _ThriftHiveMetastore_heartbeat_txn_range_args__isset; class ThriftHiveMetastore_heartbeat_txn_range_args { public: - static const char* ascii_fingerprint; // = "9CFE4A6581B5B8EB11F5BBBCEFA07940"; - static const uint8_t binary_fingerprint[16]; // = {0x9C,0xFE,0x4A,0x65,0x81,0xB5,0xB8,0xEB,0x11,0xF5,0xBB,0xBC,0xEF,0xA0,0x79,0x40}; - - ThriftHiveMetastore_heartbeat_txn_range_args(const ThriftHiveMetastore_heartbeat_txn_range_args&); - ThriftHiveMetastore_heartbeat_txn_range_args& operator=(const ThriftHiveMetastore_heartbeat_txn_range_args&); ThriftHiveMetastore_heartbeat_txn_range_args() { } - virtual ~ThriftHiveMetastore_heartbeat_txn_range_args() throw(); + virtual ~ThriftHiveMetastore_heartbeat_txn_range_args() throw() {} + HeartbeatTxnRangeRequest txns; _ThriftHiveMetastore_heartbeat_txn_range_args__isset __isset; - void __set_txns(const HeartbeatTxnRangeRequest& val); + void __set_txns(const HeartbeatTxnRangeRequest& val) { + txns = val; + } bool operator == (const ThriftHiveMetastore_heartbeat_txn_range_args & rhs) const { @@ -17413,47 +16903,41 @@ class ThriftHiveMetastore_heartbeat_txn_range_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_heartbeat_txn_range_args& obj); }; class ThriftHiveMetastore_heartbeat_txn_range_pargs { public: - static const char* ascii_fingerprint; // = "9CFE4A6581B5B8EB11F5BBBCEFA07940"; - static const uint8_t binary_fingerprint[16]; // = {0x9C,0xFE,0x4A,0x65,0x81,0xB5,0xB8,0xEB,0x11,0xF5,0xBB,0xBC,0xEF,0xA0,0x79,0x40}; + virtual ~ThriftHiveMetastore_heartbeat_txn_range_pargs() throw() {} - virtual ~ThriftHiveMetastore_heartbeat_txn_range_pargs() throw(); const HeartbeatTxnRangeRequest* txns; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_heartbeat_txn_range_pargs& obj); }; typedef struct _ThriftHiveMetastore_heartbeat_txn_range_result__isset { _ThriftHiveMetastore_heartbeat_txn_range_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_heartbeat_txn_range_result__isset; class ThriftHiveMetastore_heartbeat_txn_range_result { public: - static const char* ascii_fingerprint; // = "BDFE4A5BFB98F599D92BB031157184E8"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0xFE,0x4A,0x5B,0xFB,0x98,0xF5,0x99,0xD9,0x2B,0xB0,0x31,0x15,0x71,0x84,0xE8}; - - ThriftHiveMetastore_heartbeat_txn_range_result(const ThriftHiveMetastore_heartbeat_txn_range_result&); - ThriftHiveMetastore_heartbeat_txn_range_result& operator=(const ThriftHiveMetastore_heartbeat_txn_range_result&); ThriftHiveMetastore_heartbeat_txn_range_result() { } - virtual ~ThriftHiveMetastore_heartbeat_txn_range_result() throw(); + virtual ~ThriftHiveMetastore_heartbeat_txn_range_result() throw() {} + HeartbeatTxnRangeResponse success; _ThriftHiveMetastore_heartbeat_txn_range_result__isset __isset; - void __set_success(const HeartbeatTxnRangeResponse& val); + void __set_success(const HeartbeatTxnRangeResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_heartbeat_txn_range_result & rhs) const { @@ -17470,53 +16954,47 @@ class ThriftHiveMetastore_heartbeat_txn_range_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_heartbeat_txn_range_result& obj); }; typedef struct _ThriftHiveMetastore_heartbeat_txn_range_presult__isset { _ThriftHiveMetastore_heartbeat_txn_range_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_heartbeat_txn_range_presult__isset; class ThriftHiveMetastore_heartbeat_txn_range_presult { public: - static const char* ascii_fingerprint; // = "BDFE4A5BFB98F599D92BB031157184E8"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0xFE,0x4A,0x5B,0xFB,0x98,0xF5,0x99,0xD9,0x2B,0xB0,0x31,0x15,0x71,0x84,0xE8}; + virtual ~ThriftHiveMetastore_heartbeat_txn_range_presult() throw() {} - virtual ~ThriftHiveMetastore_heartbeat_txn_range_presult() throw(); HeartbeatTxnRangeResponse* success; _ThriftHiveMetastore_heartbeat_txn_range_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_heartbeat_txn_range_presult& obj); }; typedef struct _ThriftHiveMetastore_compact_args__isset { _ThriftHiveMetastore_compact_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_compact_args__isset; class ThriftHiveMetastore_compact_args { public: - static const char* ascii_fingerprint; // = "503A2889174BA51BACBA68520737384F"; - static const uint8_t binary_fingerprint[16]; // = {0x50,0x3A,0x28,0x89,0x17,0x4B,0xA5,0x1B,0xAC,0xBA,0x68,0x52,0x07,0x37,0x38,0x4F}; - - ThriftHiveMetastore_compact_args(const ThriftHiveMetastore_compact_args&); - ThriftHiveMetastore_compact_args& operator=(const ThriftHiveMetastore_compact_args&); ThriftHiveMetastore_compact_args() { } - virtual ~ThriftHiveMetastore_compact_args() throw(); + virtual ~ThriftHiveMetastore_compact_args() throw() {} + CompactionRequest rqst; _ThriftHiveMetastore_compact_args__isset __isset; - void __set_rqst(const CompactionRequest& val); + void __set_rqst(const CompactionRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_compact_args & rhs) const { @@ -17533,38 +17011,30 @@ class ThriftHiveMetastore_compact_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_compact_args& obj); }; class ThriftHiveMetastore_compact_pargs { public: - static const char* ascii_fingerprint; // = "503A2889174BA51BACBA68520737384F"; - static const uint8_t binary_fingerprint[16]; // = {0x50,0x3A,0x28,0x89,0x17,0x4B,0xA5,0x1B,0xAC,0xBA,0x68,0x52,0x07,0x37,0x38,0x4F}; + virtual ~ThriftHiveMetastore_compact_pargs() throw() {} - virtual ~ThriftHiveMetastore_compact_pargs() throw(); const CompactionRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_compact_pargs& obj); }; class ThriftHiveMetastore_compact_result { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHiveMetastore_compact_result(const ThriftHiveMetastore_compact_result&); - ThriftHiveMetastore_compact_result& operator=(const ThriftHiveMetastore_compact_result&); ThriftHiveMetastore_compact_result() { } - virtual ~ThriftHiveMetastore_compact_result() throw(); + virtual ~ThriftHiveMetastore_compact_result() throw() {} + bool operator == (const ThriftHiveMetastore_compact_result & /* rhs */) const { @@ -17579,46 +17049,40 @@ class ThriftHiveMetastore_compact_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_compact_result& obj); }; class ThriftHiveMetastore_compact_presult { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHiveMetastore_compact_presult() throw() {} - virtual ~ThriftHiveMetastore_compact_presult() throw(); uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_compact_presult& obj); }; typedef struct _ThriftHiveMetastore_show_compact_args__isset { _ThriftHiveMetastore_show_compact_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_show_compact_args__isset; class ThriftHiveMetastore_show_compact_args { public: - static const char* ascii_fingerprint; // = "2C32A565725135A023CB591D1A993CFD"; - static const uint8_t binary_fingerprint[16]; // = {0x2C,0x32,0xA5,0x65,0x72,0x51,0x35,0xA0,0x23,0xCB,0x59,0x1D,0x1A,0x99,0x3C,0xFD}; - - ThriftHiveMetastore_show_compact_args(const ThriftHiveMetastore_show_compact_args&); - ThriftHiveMetastore_show_compact_args& operator=(const ThriftHiveMetastore_show_compact_args&); ThriftHiveMetastore_show_compact_args() { } - virtual ~ThriftHiveMetastore_show_compact_args() throw(); + virtual ~ThriftHiveMetastore_show_compact_args() throw() {} + ShowCompactRequest rqst; _ThriftHiveMetastore_show_compact_args__isset __isset; - void __set_rqst(const ShowCompactRequest& val); + void __set_rqst(const ShowCompactRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_show_compact_args & rhs) const { @@ -17635,47 +17099,41 @@ class ThriftHiveMetastore_show_compact_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_show_compact_args& obj); }; class ThriftHiveMetastore_show_compact_pargs { public: - static const char* ascii_fingerprint; // = "2C32A565725135A023CB591D1A993CFD"; - static const uint8_t binary_fingerprint[16]; // = {0x2C,0x32,0xA5,0x65,0x72,0x51,0x35,0xA0,0x23,0xCB,0x59,0x1D,0x1A,0x99,0x3C,0xFD}; + virtual ~ThriftHiveMetastore_show_compact_pargs() throw() {} - virtual ~ThriftHiveMetastore_show_compact_pargs() throw(); const ShowCompactRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_show_compact_pargs& obj); }; typedef struct _ThriftHiveMetastore_show_compact_result__isset { _ThriftHiveMetastore_show_compact_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_show_compact_result__isset; class ThriftHiveMetastore_show_compact_result { public: - static const char* ascii_fingerprint; // = "9B07BE1B4EB63FA7028D4720A9C3C30C"; - static const uint8_t binary_fingerprint[16]; // = {0x9B,0x07,0xBE,0x1B,0x4E,0xB6,0x3F,0xA7,0x02,0x8D,0x47,0x20,0xA9,0xC3,0xC3,0x0C}; - - ThriftHiveMetastore_show_compact_result(const ThriftHiveMetastore_show_compact_result&); - ThriftHiveMetastore_show_compact_result& operator=(const ThriftHiveMetastore_show_compact_result&); ThriftHiveMetastore_show_compact_result() { } - virtual ~ThriftHiveMetastore_show_compact_result() throw(); + virtual ~ThriftHiveMetastore_show_compact_result() throw() {} + ShowCompactResponse success; _ThriftHiveMetastore_show_compact_result__isset __isset; - void __set_success(const ShowCompactResponse& val); + void __set_success(const ShowCompactResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_show_compact_result & rhs) const { @@ -17692,53 +17150,47 @@ class ThriftHiveMetastore_show_compact_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_show_compact_result& obj); }; typedef struct _ThriftHiveMetastore_show_compact_presult__isset { _ThriftHiveMetastore_show_compact_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_show_compact_presult__isset; class ThriftHiveMetastore_show_compact_presult { public: - static const char* ascii_fingerprint; // = "9B07BE1B4EB63FA7028D4720A9C3C30C"; - static const uint8_t binary_fingerprint[16]; // = {0x9B,0x07,0xBE,0x1B,0x4E,0xB6,0x3F,0xA7,0x02,0x8D,0x47,0x20,0xA9,0xC3,0xC3,0x0C}; + virtual ~ThriftHiveMetastore_show_compact_presult() throw() {} - virtual ~ThriftHiveMetastore_show_compact_presult() throw(); ShowCompactResponse* success; _ThriftHiveMetastore_show_compact_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_show_compact_presult& obj); }; typedef struct _ThriftHiveMetastore_add_dynamic_partitions_args__isset { _ThriftHiveMetastore_add_dynamic_partitions_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_add_dynamic_partitions_args__isset; class ThriftHiveMetastore_add_dynamic_partitions_args { public: - static const char* ascii_fingerprint; // = "F9CCCF0E4555358EC5B7E6822832A061"; - static const uint8_t binary_fingerprint[16]; // = {0xF9,0xCC,0xCF,0x0E,0x45,0x55,0x35,0x8E,0xC5,0xB7,0xE6,0x82,0x28,0x32,0xA0,0x61}; - - ThriftHiveMetastore_add_dynamic_partitions_args(const ThriftHiveMetastore_add_dynamic_partitions_args&); - ThriftHiveMetastore_add_dynamic_partitions_args& operator=(const ThriftHiveMetastore_add_dynamic_partitions_args&); ThriftHiveMetastore_add_dynamic_partitions_args() { } - virtual ~ThriftHiveMetastore_add_dynamic_partitions_args() throw(); + virtual ~ThriftHiveMetastore_add_dynamic_partitions_args() throw() {} + AddDynamicPartitions rqst; _ThriftHiveMetastore_add_dynamic_partitions_args__isset __isset; - void __set_rqst(const AddDynamicPartitions& val); + void __set_rqst(const AddDynamicPartitions& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_add_dynamic_partitions_args & rhs) const { @@ -17755,51 +17207,47 @@ class ThriftHiveMetastore_add_dynamic_partitions_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_dynamic_partitions_args& obj); }; class ThriftHiveMetastore_add_dynamic_partitions_pargs { public: - static const char* ascii_fingerprint; // = "F9CCCF0E4555358EC5B7E6822832A061"; - static const uint8_t binary_fingerprint[16]; // = {0xF9,0xCC,0xCF,0x0E,0x45,0x55,0x35,0x8E,0xC5,0xB7,0xE6,0x82,0x28,0x32,0xA0,0x61}; + virtual ~ThriftHiveMetastore_add_dynamic_partitions_pargs() throw() {} - virtual ~ThriftHiveMetastore_add_dynamic_partitions_pargs() throw(); const AddDynamicPartitions* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_dynamic_partitions_pargs& obj); }; typedef struct _ThriftHiveMetastore_add_dynamic_partitions_result__isset { _ThriftHiveMetastore_add_dynamic_partitions_result__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_add_dynamic_partitions_result__isset; class ThriftHiveMetastore_add_dynamic_partitions_result { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; - - ThriftHiveMetastore_add_dynamic_partitions_result(const ThriftHiveMetastore_add_dynamic_partitions_result&); - ThriftHiveMetastore_add_dynamic_partitions_result& operator=(const ThriftHiveMetastore_add_dynamic_partitions_result&); ThriftHiveMetastore_add_dynamic_partitions_result() { } - virtual ~ThriftHiveMetastore_add_dynamic_partitions_result() throw(); + virtual ~ThriftHiveMetastore_add_dynamic_partitions_result() throw() {} + NoSuchTxnException o1; TxnAbortedException o2; _ThriftHiveMetastore_add_dynamic_partitions_result__isset __isset; - void __set_o1(const NoSuchTxnException& val); + void __set_o1(const NoSuchTxnException& val) { + o1 = val; + } - void __set_o2(const TxnAbortedException& val); + void __set_o2(const TxnAbortedException& val) { + o2 = val; + } bool operator == (const ThriftHiveMetastore_add_dynamic_partitions_result & rhs) const { @@ -17818,23 +17266,20 @@ class ThriftHiveMetastore_add_dynamic_partitions_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_dynamic_partitions_result& obj); }; typedef struct _ThriftHiveMetastore_add_dynamic_partitions_presult__isset { _ThriftHiveMetastore_add_dynamic_partitions_presult__isset() : o1(false), o2(false) {} - bool o1 :1; - bool o2 :1; + bool o1; + bool o2; } _ThriftHiveMetastore_add_dynamic_partitions_presult__isset; class ThriftHiveMetastore_add_dynamic_partitions_presult { public: - static const char* ascii_fingerprint; // = "A963880F55F6F22FCC67AD7BA0E1894D"; - static const uint8_t binary_fingerprint[16]; // = {0xA9,0x63,0x88,0x0F,0x55,0xF6,0xF2,0x2F,0xCC,0x67,0xAD,0x7B,0xA0,0xE1,0x89,0x4D}; + virtual ~ThriftHiveMetastore_add_dynamic_partitions_presult() throw() {} - virtual ~ThriftHiveMetastore_add_dynamic_partitions_presult() throw(); NoSuchTxnException o1; TxnAbortedException o2; @@ -17842,31 +17287,28 @@ class ThriftHiveMetastore_add_dynamic_partitions_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_add_dynamic_partitions_presult& obj); }; typedef struct _ThriftHiveMetastore_get_next_notification_args__isset { _ThriftHiveMetastore_get_next_notification_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_get_next_notification_args__isset; class ThriftHiveMetastore_get_next_notification_args { public: - static const char* ascii_fingerprint; // = "BCBD918FD33E7FB950D0F393C08EC4E7"; - static const uint8_t binary_fingerprint[16]; // = {0xBC,0xBD,0x91,0x8F,0xD3,0x3E,0x7F,0xB9,0x50,0xD0,0xF3,0x93,0xC0,0x8E,0xC4,0xE7}; - - ThriftHiveMetastore_get_next_notification_args(const ThriftHiveMetastore_get_next_notification_args&); - ThriftHiveMetastore_get_next_notification_args& operator=(const ThriftHiveMetastore_get_next_notification_args&); ThriftHiveMetastore_get_next_notification_args() { } - virtual ~ThriftHiveMetastore_get_next_notification_args() throw(); + virtual ~ThriftHiveMetastore_get_next_notification_args() throw() {} + NotificationEventRequest rqst; _ThriftHiveMetastore_get_next_notification_args__isset __isset; - void __set_rqst(const NotificationEventRequest& val); + void __set_rqst(const NotificationEventRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_get_next_notification_args & rhs) const { @@ -17883,47 +17325,41 @@ class ThriftHiveMetastore_get_next_notification_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_next_notification_args& obj); }; class ThriftHiveMetastore_get_next_notification_pargs { public: - static const char* ascii_fingerprint; // = "BCBD918FD33E7FB950D0F393C08EC4E7"; - static const uint8_t binary_fingerprint[16]; // = {0xBC,0xBD,0x91,0x8F,0xD3,0x3E,0x7F,0xB9,0x50,0xD0,0xF3,0x93,0xC0,0x8E,0xC4,0xE7}; + virtual ~ThriftHiveMetastore_get_next_notification_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_next_notification_pargs() throw(); const NotificationEventRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_next_notification_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_next_notification_result__isset { _ThriftHiveMetastore_get_next_notification_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_next_notification_result__isset; class ThriftHiveMetastore_get_next_notification_result { public: - static const char* ascii_fingerprint; // = "1A91DEA4AAEC536BE33C3FFAAE932C89"; - static const uint8_t binary_fingerprint[16]; // = {0x1A,0x91,0xDE,0xA4,0xAA,0xEC,0x53,0x6B,0xE3,0x3C,0x3F,0xFA,0xAE,0x93,0x2C,0x89}; - - ThriftHiveMetastore_get_next_notification_result(const ThriftHiveMetastore_get_next_notification_result&); - ThriftHiveMetastore_get_next_notification_result& operator=(const ThriftHiveMetastore_get_next_notification_result&); ThriftHiveMetastore_get_next_notification_result() { } - virtual ~ThriftHiveMetastore_get_next_notification_result() throw(); + virtual ~ThriftHiveMetastore_get_next_notification_result() throw() {} + NotificationEventResponse success; _ThriftHiveMetastore_get_next_notification_result__isset __isset; - void __set_success(const NotificationEventResponse& val); + void __set_success(const NotificationEventResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_get_next_notification_result & rhs) const { @@ -17940,44 +17376,36 @@ class ThriftHiveMetastore_get_next_notification_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_next_notification_result& obj); }; typedef struct _ThriftHiveMetastore_get_next_notification_presult__isset { _ThriftHiveMetastore_get_next_notification_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_next_notification_presult__isset; class ThriftHiveMetastore_get_next_notification_presult { public: - static const char* ascii_fingerprint; // = "1A91DEA4AAEC536BE33C3FFAAE932C89"; - static const uint8_t binary_fingerprint[16]; // = {0x1A,0x91,0xDE,0xA4,0xAA,0xEC,0x53,0x6B,0xE3,0x3C,0x3F,0xFA,0xAE,0x93,0x2C,0x89}; + virtual ~ThriftHiveMetastore_get_next_notification_presult() throw() {} - virtual ~ThriftHiveMetastore_get_next_notification_presult() throw(); NotificationEventResponse* success; _ThriftHiveMetastore_get_next_notification_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_next_notification_presult& obj); }; class ThriftHiveMetastore_get_current_notificationEventId_args { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHiveMetastore_get_current_notificationEventId_args(const ThriftHiveMetastore_get_current_notificationEventId_args&); - ThriftHiveMetastore_get_current_notificationEventId_args& operator=(const ThriftHiveMetastore_get_current_notificationEventId_args&); ThriftHiveMetastore_get_current_notificationEventId_args() { } - virtual ~ThriftHiveMetastore_get_current_notificationEventId_args() throw(); + virtual ~ThriftHiveMetastore_get_current_notificationEventId_args() throw() {} + bool operator == (const ThriftHiveMetastore_get_current_notificationEventId_args & /* rhs */) const { @@ -17992,46 +17420,40 @@ class ThriftHiveMetastore_get_current_notificationEventId_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_current_notificationEventId_args& obj); }; class ThriftHiveMetastore_get_current_notificationEventId_pargs { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHiveMetastore_get_current_notificationEventId_pargs() throw() {} - virtual ~ThriftHiveMetastore_get_current_notificationEventId_pargs() throw(); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_current_notificationEventId_pargs& obj); }; typedef struct _ThriftHiveMetastore_get_current_notificationEventId_result__isset { _ThriftHiveMetastore_get_current_notificationEventId_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_current_notificationEventId_result__isset; class ThriftHiveMetastore_get_current_notificationEventId_result { public: - static const char* ascii_fingerprint; // = "9557E28B62698C3C53496865CD968D13"; - static const uint8_t binary_fingerprint[16]; // = {0x95,0x57,0xE2,0x8B,0x62,0x69,0x8C,0x3C,0x53,0x49,0x68,0x65,0xCD,0x96,0x8D,0x13}; - - ThriftHiveMetastore_get_current_notificationEventId_result(const ThriftHiveMetastore_get_current_notificationEventId_result&); - ThriftHiveMetastore_get_current_notificationEventId_result& operator=(const ThriftHiveMetastore_get_current_notificationEventId_result&); ThriftHiveMetastore_get_current_notificationEventId_result() { } - virtual ~ThriftHiveMetastore_get_current_notificationEventId_result() throw(); + virtual ~ThriftHiveMetastore_get_current_notificationEventId_result() throw() {} + CurrentNotificationEventId success; _ThriftHiveMetastore_get_current_notificationEventId_result__isset __isset; - void __set_success(const CurrentNotificationEventId& val); + void __set_success(const CurrentNotificationEventId& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_get_current_notificationEventId_result & rhs) const { @@ -18048,53 +17470,47 @@ class ThriftHiveMetastore_get_current_notificationEventId_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_current_notificationEventId_result& obj); }; typedef struct _ThriftHiveMetastore_get_current_notificationEventId_presult__isset { _ThriftHiveMetastore_get_current_notificationEventId_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_get_current_notificationEventId_presult__isset; class ThriftHiveMetastore_get_current_notificationEventId_presult { public: - static const char* ascii_fingerprint; // = "9557E28B62698C3C53496865CD968D13"; - static const uint8_t binary_fingerprint[16]; // = {0x95,0x57,0xE2,0x8B,0x62,0x69,0x8C,0x3C,0x53,0x49,0x68,0x65,0xCD,0x96,0x8D,0x13}; + virtual ~ThriftHiveMetastore_get_current_notificationEventId_presult() throw() {} - virtual ~ThriftHiveMetastore_get_current_notificationEventId_presult() throw(); CurrentNotificationEventId* success; _ThriftHiveMetastore_get_current_notificationEventId_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_get_current_notificationEventId_presult& obj); }; typedef struct _ThriftHiveMetastore_fire_listener_event_args__isset { _ThriftHiveMetastore_fire_listener_event_args__isset() : rqst(false) {} - bool rqst :1; + bool rqst; } _ThriftHiveMetastore_fire_listener_event_args__isset; class ThriftHiveMetastore_fire_listener_event_args { public: - static const char* ascii_fingerprint; // = "5A5B8926FE793D19D64602013DB1A0E7"; - static const uint8_t binary_fingerprint[16]; // = {0x5A,0x5B,0x89,0x26,0xFE,0x79,0x3D,0x19,0xD6,0x46,0x02,0x01,0x3D,0xB1,0xA0,0xE7}; - - ThriftHiveMetastore_fire_listener_event_args(const ThriftHiveMetastore_fire_listener_event_args&); - ThriftHiveMetastore_fire_listener_event_args& operator=(const ThriftHiveMetastore_fire_listener_event_args&); ThriftHiveMetastore_fire_listener_event_args() { } - virtual ~ThriftHiveMetastore_fire_listener_event_args() throw(); + virtual ~ThriftHiveMetastore_fire_listener_event_args() throw() {} + FireEventRequest rqst; _ThriftHiveMetastore_fire_listener_event_args__isset __isset; - void __set_rqst(const FireEventRequest& val); + void __set_rqst(const FireEventRequest& val) { + rqst = val; + } bool operator == (const ThriftHiveMetastore_fire_listener_event_args & rhs) const { @@ -18111,47 +17527,41 @@ class ThriftHiveMetastore_fire_listener_event_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_fire_listener_event_args& obj); }; class ThriftHiveMetastore_fire_listener_event_pargs { public: - static const char* ascii_fingerprint; // = "5A5B8926FE793D19D64602013DB1A0E7"; - static const uint8_t binary_fingerprint[16]; // = {0x5A,0x5B,0x89,0x26,0xFE,0x79,0x3D,0x19,0xD6,0x46,0x02,0x01,0x3D,0xB1,0xA0,0xE7}; + virtual ~ThriftHiveMetastore_fire_listener_event_pargs() throw() {} - virtual ~ThriftHiveMetastore_fire_listener_event_pargs() throw(); const FireEventRequest* rqst; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_fire_listener_event_pargs& obj); }; typedef struct _ThriftHiveMetastore_fire_listener_event_result__isset { _ThriftHiveMetastore_fire_listener_event_result__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_fire_listener_event_result__isset; class ThriftHiveMetastore_fire_listener_event_result { public: - static const char* ascii_fingerprint; // = "3A26B8DD823AB72F2FE94404F3D36070"; - static const uint8_t binary_fingerprint[16]; // = {0x3A,0x26,0xB8,0xDD,0x82,0x3A,0xB7,0x2F,0x2F,0xE9,0x44,0x04,0xF3,0xD3,0x60,0x70}; - - ThriftHiveMetastore_fire_listener_event_result(const ThriftHiveMetastore_fire_listener_event_result&); - ThriftHiveMetastore_fire_listener_event_result& operator=(const ThriftHiveMetastore_fire_listener_event_result&); ThriftHiveMetastore_fire_listener_event_result() { } - virtual ~ThriftHiveMetastore_fire_listener_event_result() throw(); + virtual ~ThriftHiveMetastore_fire_listener_event_result() throw() {} + FireEventResponse success; _ThriftHiveMetastore_fire_listener_event_result__isset __isset; - void __set_success(const FireEventResponse& val); + void __set_success(const FireEventResponse& val) { + success = val; + } bool operator == (const ThriftHiveMetastore_fire_listener_event_result & rhs) const { @@ -18168,36 +17578,33 @@ class ThriftHiveMetastore_fire_listener_event_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_fire_listener_event_result& obj); }; typedef struct _ThriftHiveMetastore_fire_listener_event_presult__isset { _ThriftHiveMetastore_fire_listener_event_presult__isset() : success(false) {} - bool success :1; + bool success; } _ThriftHiveMetastore_fire_listener_event_presult__isset; class ThriftHiveMetastore_fire_listener_event_presult { public: - static const char* ascii_fingerprint; // = "3A26B8DD823AB72F2FE94404F3D36070"; - static const uint8_t binary_fingerprint[16]; // = {0x3A,0x26,0xB8,0xDD,0x82,0x3A,0xB7,0x2F,0x2F,0xE9,0x44,0x04,0xF3,0xD3,0x60,0x70}; + virtual ~ThriftHiveMetastore_fire_listener_event_presult() throw() {} - virtual ~ThriftHiveMetastore_fire_listener_event_presult() throw(); FireEventResponse* success; _ThriftHiveMetastore_fire_listener_event_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHiveMetastore_fire_listener_event_presult& obj); }; class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public ::facebook::fb303::FacebookServiceClient { public: ThriftHiveMetastoreClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) : ::facebook::fb303::FacebookServiceClient(prot, prot) {} - ThriftHiveMetastoreClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : ::facebook::fb303::FacebookServiceClient(iprot, oprot) {} + ThriftHiveMetastoreClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : + ::facebook::fb303::FacebookServiceClient(iprot, oprot) {} boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() { return piprot_; } @@ -18372,6 +17779,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void get_partitions_by_expr(PartitionsByExprResult& _return, const PartitionsByExprRequest& req); void send_get_partitions_by_expr(const PartitionsByExprRequest& req); void recv_get_partitions_by_expr(PartitionsByExprResult& _return); + int32_t get_num_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts); + void send_get_num_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts); + int32_t recv_get_num_partitions_by_filter(); void get_partitions_by_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & names); void send_get_partitions_by_names(const std::string& db_name, const std::string& tbl_name, const std::vector & names); void recv_get_partitions_by_names(std::vector & _return); @@ -18642,6 +18052,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_get_partitions_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_part_specs_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partitions_by_expr(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_num_partitions_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partitions_by_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_alter_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_alter_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -18770,6 +18181,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["get_partitions_by_filter"] = &ThriftHiveMetastoreProcessor::process_get_partitions_by_filter; processMap_["get_part_specs_by_filter"] = &ThriftHiveMetastoreProcessor::process_get_part_specs_by_filter; processMap_["get_partitions_by_expr"] = &ThriftHiveMetastoreProcessor::process_get_partitions_by_expr; + processMap_["get_num_partitions_by_filter"] = &ThriftHiveMetastoreProcessor::process_get_num_partitions_by_filter; processMap_["get_partitions_by_names"] = &ThriftHiveMetastoreProcessor::process_get_partitions_by_names; processMap_["alter_partition"] = &ThriftHiveMetastoreProcessor::process_alter_partition; processMap_["alter_partitions"] = &ThriftHiveMetastoreProcessor::process_alter_partitions; @@ -19412,6 +18824,15 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + int32_t get_num_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_num_partitions_by_filter(db_name, tbl_name, filter, max_parts); + } + return ifaces_[i]->get_num_partitions_by_filter(db_name, tbl_name, filter, max_parts); + } + void get_partitions_by_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & names) { size_t sz = ifaces_.size(); size_t i = 0; diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index 0afcf8c..fa98edd 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -302,6 +302,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("get_partitions_by_expr\n"); } + int32_t get_num_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts) { + // Your implementation goes here + printf("get_num_partitions_by_filter\n"); + } + void get_partitions_by_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & names) { // Your implementation goes here printf("get_partitions_by_names\n"); diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp b/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp index f61ac7d..c7bf9ba 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h b/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h index c95fec1..35a8a50 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated 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 57c3477..7532ea5 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,9 +7,6 @@ #include "hive_metastore_types.h" #include -#include - -#include namespace Apache { namespace Hadoop { namespace Hive { @@ -151,19 +148,6 @@ const char* _kResourceTypeNames[] = { }; const std::map _ResourceType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(3, _kResourceTypeValues, _kResourceTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -Version::~Version() throw() { -} - - -void Version::__set_version(const std::string& val) { - this->version = val; -} - -void Version::__set_comments(const std::string& val) { - this->comments = val; -} - const char* Version::ascii_fingerprint = "07A9615F837F7D0A952B595DD3020972"; const uint8_t Version::binary_fingerprint[16] = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; @@ -217,7 +201,6 @@ uint32_t Version::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Version::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Version"); xfer += oprot->writeFieldBegin("version", ::apache::thrift::protocol::T_STRING, 1); @@ -230,7 +213,6 @@ uint32_t Version::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -241,43 +223,6 @@ void swap(Version &a, Version &b) { swap(a.__isset, b.__isset); } -Version::Version(const Version& other0) { - version = other0.version; - comments = other0.comments; - __isset = other0.__isset; -} -Version& Version::operator=(const Version& other1) { - version = other1.version; - comments = other1.comments; - __isset = other1.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Version& obj) { - using apache::thrift::to_string; - out << "Version("; - out << "version=" << to_string(obj.version); - out << ", " << "comments=" << to_string(obj.comments); - out << ")"; - return out; -} - - -FieldSchema::~FieldSchema() throw() { -} - - -void FieldSchema::__set_name(const std::string& val) { - this->name = val; -} - -void FieldSchema::__set_type(const std::string& val) { - this->type = val; -} - -void FieldSchema::__set_comment(const std::string& val) { - this->comment = val; -} - const char* FieldSchema::ascii_fingerprint = "AB879940BD15B6B25691265F7384B271"; const uint8_t FieldSchema::binary_fingerprint[16] = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; @@ -339,7 +284,6 @@ uint32_t FieldSchema::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t FieldSchema::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("FieldSchema"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -356,7 +300,6 @@ uint32_t FieldSchema::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -368,53 +311,6 @@ void swap(FieldSchema &a, FieldSchema &b) { swap(a.__isset, b.__isset); } -FieldSchema::FieldSchema(const FieldSchema& other2) { - name = other2.name; - type = other2.type; - comment = other2.comment; - __isset = other2.__isset; -} -FieldSchema& FieldSchema::operator=(const FieldSchema& other3) { - name = other3.name; - type = other3.type; - comment = other3.comment; - __isset = other3.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const FieldSchema& obj) { - using apache::thrift::to_string; - out << "FieldSchema("; - out << "name=" << to_string(obj.name); - out << ", " << "type=" << to_string(obj.type); - out << ", " << "comment=" << to_string(obj.comment); - out << ")"; - return out; -} - - -Type::~Type() throw() { -} - - -void Type::__set_name(const std::string& val) { - this->name = val; -} - -void Type::__set_type1(const std::string& val) { - this->type1 = val; -__isset.type1 = true; -} - -void Type::__set_type2(const std::string& val) { - this->type2 = val; -__isset.type2 = true; -} - -void Type::__set_fields(const std::vector & val) { - this->fields = val; -__isset.fields = true; -} - const char* Type::ascii_fingerprint = "20DF02DE523C27F7066C7BD4D9120842"; const uint8_t Type::binary_fingerprint[16] = {0x20,0xDF,0x02,0xDE,0x52,0x3C,0x27,0xF7,0x06,0x6C,0x7B,0xD4,0xD9,0x12,0x08,0x42}; @@ -466,14 +362,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 _size0; + ::apache::thrift::protocol::TType _etype3; + xfer += iprot->readListBegin(_etype3, _size0); + this->fields.resize(_size0); + uint32_t _i4; + for (_i4 = 0; _i4 < _size0; ++_i4) { - xfer += this->fields[_i8].read(iprot); + xfer += this->fields[_i4].read(iprot); } xfer += iprot->readListEnd(); } @@ -496,7 +392,6 @@ uint32_t Type::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Type::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Type"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -517,10 +412,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 _iter5; + for (_iter5 = this->fields.begin(); _iter5 != this->fields.end(); ++_iter5) { - xfer += (*_iter9).write(oprot); + xfer += (*_iter5).write(oprot); } xfer += oprot->writeListEnd(); } @@ -528,7 +423,6 @@ uint32_t Type::write(::apache::thrift::protocol::TProtocol* oprot) const { } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -541,57 +435,6 @@ 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::operator=(const Type& other11) { - name = other11.name; - type1 = other11.type1; - type2 = other11.type2; - fields = other11.fields; - __isset = other11.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Type& obj) { - using apache::thrift::to_string; - out << "Type("; - out << "name=" << to_string(obj.name); - out << ", " << "type1="; (obj.__isset.type1 ? (out << to_string(obj.type1)) : (out << "")); - out << ", " << "type2="; (obj.__isset.type2 ? (out << to_string(obj.type2)) : (out << "")); - out << ", " << "fields="; (obj.__isset.fields ? (out << to_string(obj.fields)) : (out << "")); - out << ")"; - return out; -} - - -HiveObjectRef::~HiveObjectRef() throw() { -} - - -void HiveObjectRef::__set_objectType(const HiveObjectType::type val) { - this->objectType = val; -} - -void HiveObjectRef::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void HiveObjectRef::__set_objectName(const std::string& val) { - this->objectName = val; -} - -void HiveObjectRef::__set_partValues(const std::vector & val) { - this->partValues = val; -} - -void HiveObjectRef::__set_columnName(const std::string& val) { - this->columnName = val; -} - const char* HiveObjectRef::ascii_fingerprint = "205CD8311CF3AA9EC161BAEF8D7C933C"; const uint8_t HiveObjectRef::binary_fingerprint[16] = {0x20,0x5C,0xD8,0x31,0x1C,0xF3,0xAA,0x9E,0xC1,0x61,0xBA,0xEF,0x8D,0x7C,0x93,0x3C}; @@ -617,9 +460,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 ecast6; + xfer += iprot->readI32(ecast6); + this->objectType = (HiveObjectType::type)ecast6; this->__isset.objectType = true; } else { xfer += iprot->skip(ftype); @@ -645,14 +488,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 _size7; + ::apache::thrift::protocol::TType _etype10; + xfer += iprot->readListBegin(_etype10, _size7); + this->partValues.resize(_size7); + uint32_t _i11; + for (_i11 = 0; _i11 < _size7; ++_i11) { - xfer += iprot->readString(this->partValues[_i17]); + xfer += iprot->readString(this->partValues[_i11]); } xfer += iprot->readListEnd(); } @@ -683,7 +526,6 @@ uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t HiveObjectRef::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("HiveObjectRef"); xfer += oprot->writeFieldBegin("objectType", ::apache::thrift::protocol::T_I32, 1); @@ -701,10 +543,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 _iter12; + for (_iter12 = this->partValues.begin(); _iter12 != this->partValues.end(); ++_iter12) { - xfer += oprot->writeString((*_iter18)); + xfer += oprot->writeString((*_iter12)); } xfer += oprot->writeListEnd(); } @@ -716,7 +558,6 @@ uint32_t HiveObjectRef::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -730,60 +571,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const HiveObjectRef& obj) { - using apache::thrift::to_string; - out << "HiveObjectRef("; - out << "objectType=" << to_string(obj.objectType); - out << ", " << "dbName=" << to_string(obj.dbName); - out << ", " << "objectName=" << to_string(obj.objectName); - out << ", " << "partValues=" << to_string(obj.partValues); - out << ", " << "columnName=" << to_string(obj.columnName); - out << ")"; - return out; -} - - -PrivilegeGrantInfo::~PrivilegeGrantInfo() throw() { -} - - -void PrivilegeGrantInfo::__set_privilege(const std::string& val) { - this->privilege = val; -} - -void PrivilegeGrantInfo::__set_createTime(const int32_t val) { - this->createTime = val; -} - -void PrivilegeGrantInfo::__set_grantor(const std::string& val) { - this->grantor = val; -} - -void PrivilegeGrantInfo::__set_grantorType(const PrincipalType::type val) { - this->grantorType = val; -} - -void PrivilegeGrantInfo::__set_grantOption(const bool val) { - this->grantOption = val; -} - const char* PrivilegeGrantInfo::ascii_fingerprint = "A58923AF7294BE492D6F90E07E8CEE1F"; const uint8_t PrivilegeGrantInfo::binary_fingerprint[16] = {0xA5,0x89,0x23,0xAF,0x72,0x94,0xBE,0x49,0x2D,0x6F,0x90,0xE0,0x7E,0x8C,0xEE,0x1F}; @@ -833,9 +620,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 ecast13; + xfer += iprot->readI32(ecast13); + this->grantorType = (PrincipalType::type)ecast13; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -863,7 +650,6 @@ uint32_t PrivilegeGrantInfo::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t PrivilegeGrantInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("PrivilegeGrantInfo"); xfer += oprot->writeFieldBegin("privilege", ::apache::thrift::protocol::T_STRING, 1); @@ -888,7 +674,6 @@ uint32_t PrivilegeGrantInfo::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -902,56 +687,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const PrivilegeGrantInfo& obj) { - using apache::thrift::to_string; - out << "PrivilegeGrantInfo("; - out << "privilege=" << to_string(obj.privilege); - out << ", " << "createTime=" << to_string(obj.createTime); - out << ", " << "grantor=" << to_string(obj.grantor); - out << ", " << "grantorType=" << to_string(obj.grantorType); - out << ", " << "grantOption=" << to_string(obj.grantOption); - out << ")"; - return out; -} - - -HiveObjectPrivilege::~HiveObjectPrivilege() throw() { -} - - -void HiveObjectPrivilege::__set_hiveObject(const HiveObjectRef& val) { - this->hiveObject = val; -} - -void HiveObjectPrivilege::__set_principalName(const std::string& val) { - this->principalName = val; -} - -void HiveObjectPrivilege::__set_principalType(const PrincipalType::type val) { - this->principalType = val; -} - -void HiveObjectPrivilege::__set_grantInfo(const PrivilegeGrantInfo& val) { - this->grantInfo = val; -} - const char* HiveObjectPrivilege::ascii_fingerprint = "83D71969B23BD853E29DBA9D43B29AF8"; const uint8_t HiveObjectPrivilege::binary_fingerprint[16] = {0x83,0xD7,0x19,0x69,0xB2,0x3B,0xD8,0x53,0xE2,0x9D,0xBA,0x9D,0x43,0xB2,0x9A,0xF8}; @@ -993,9 +728,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 ecast14; + xfer += iprot->readI32(ecast14); + this->principalType = (PrincipalType::type)ecast14; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -1023,7 +758,6 @@ uint32_t HiveObjectPrivilege::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t HiveObjectPrivilege::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("HiveObjectPrivilege"); xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1044,7 +778,6 @@ uint32_t HiveObjectPrivilege::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1057,41 +790,6 @@ 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::operator=(const HiveObjectPrivilege& other26) { - hiveObject = other26.hiveObject; - principalName = other26.principalName; - principalType = other26.principalType; - grantInfo = other26.grantInfo; - __isset = other26.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const HiveObjectPrivilege& obj) { - using apache::thrift::to_string; - out << "HiveObjectPrivilege("; - out << "hiveObject=" << to_string(obj.hiveObject); - out << ", " << "principalName=" << to_string(obj.principalName); - out << ", " << "principalType=" << to_string(obj.principalType); - out << ", " << "grantInfo=" << to_string(obj.grantInfo); - out << ")"; - return out; -} - - -PrivilegeBag::~PrivilegeBag() throw() { -} - - -void PrivilegeBag::__set_privileges(const std::vector & val) { - this->privileges = val; -} - const char* PrivilegeBag::ascii_fingerprint = "BB89E4701B7B709B046A74C90B1147F2"; const uint8_t PrivilegeBag::binary_fingerprint[16] = {0xBB,0x89,0xE4,0x70,0x1B,0x7B,0x70,0x9B,0x04,0x6A,0x74,0xC9,0x0B,0x11,0x47,0xF2}; @@ -1119,14 +817,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 _size15; + ::apache::thrift::protocol::TType _etype18; + xfer += iprot->readListBegin(_etype18, _size15); + this->privileges.resize(_size15); + uint32_t _i19; + for (_i19 = 0; _i19 < _size15; ++_i19) { - xfer += this->privileges[_i31].read(iprot); + xfer += this->privileges[_i19].read(iprot); } xfer += iprot->readListEnd(); } @@ -1149,16 +847,15 @@ uint32_t PrivilegeBag::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t PrivilegeBag::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("PrivilegeBag"); 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 _iter20; + for (_iter20 = this->privileges.begin(); _iter20 != this->privileges.end(); ++_iter20) { - xfer += (*_iter32).write(oprot); + xfer += (*_iter20).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1166,7 +863,6 @@ uint32_t PrivilegeBag::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1176,40 +872,6 @@ void swap(PrivilegeBag &a, PrivilegeBag &b) { swap(a.__isset, b.__isset); } -PrivilegeBag::PrivilegeBag(const PrivilegeBag& other33) { - privileges = other33.privileges; - __isset = other33.__isset; -} -PrivilegeBag& PrivilegeBag::operator=(const PrivilegeBag& other34) { - privileges = other34.privileges; - __isset = other34.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const PrivilegeBag& obj) { - using apache::thrift::to_string; - out << "PrivilegeBag("; - out << "privileges=" << to_string(obj.privileges); - out << ")"; - return out; -} - - -PrincipalPrivilegeSet::~PrincipalPrivilegeSet() throw() { -} - - -void PrincipalPrivilegeSet::__set_userPrivileges(const std::map > & val) { - this->userPrivileges = val; -} - -void PrincipalPrivilegeSet::__set_groupPrivileges(const std::map > & val) { - this->groupPrivileges = val; -} - -void PrincipalPrivilegeSet::__set_rolePrivileges(const std::map > & val) { - this->rolePrivileges = val; -} - const char* PrincipalPrivilegeSet::ascii_fingerprint = "08F75D2533906EA87BE34EA640856683"; const uint8_t PrincipalPrivilegeSet::binary_fingerprint[16] = {0x08,0xF7,0x5D,0x25,0x33,0x90,0x6E,0xA8,0x7B,0xE3,0x4E,0xA6,0x40,0x85,0x66,0x83}; @@ -1237,26 +899,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 _size21; + ::apache::thrift::protocol::TType _ktype22; + ::apache::thrift::protocol::TType _vtype23; + xfer += iprot->readMapBegin(_ktype22, _vtype23, _size21); + uint32_t _i25; + for (_i25 = 0; _i25 < _size21; ++_i25) { - std::string _key40; - xfer += iprot->readString(_key40); - std::vector & _val41 = this->userPrivileges[_key40]; + std::string _key26; + xfer += iprot->readString(_key26); + std::vector & _val27 = this->userPrivileges[_key26]; { - _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) + _val27.clear(); + uint32_t _size28; + ::apache::thrift::protocol::TType _etype31; + xfer += iprot->readListBegin(_etype31, _size28); + _val27.resize(_size28); + uint32_t _i32; + for (_i32 = 0; _i32 < _size28; ++_i32) { - xfer += _val41[_i46].read(iprot); + xfer += _val27[_i32].read(iprot); } xfer += iprot->readListEnd(); } @@ -1272,26 +934,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 _size33; + ::apache::thrift::protocol::TType _ktype34; + ::apache::thrift::protocol::TType _vtype35; + xfer += iprot->readMapBegin(_ktype34, _vtype35, _size33); + uint32_t _i37; + for (_i37 = 0; _i37 < _size33; ++_i37) { - std::string _key52; - xfer += iprot->readString(_key52); - std::vector & _val53 = this->groupPrivileges[_key52]; + std::string _key38; + xfer += iprot->readString(_key38); + std::vector & _val39 = this->groupPrivileges[_key38]; { - _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) + _val39.clear(); + uint32_t _size40; + ::apache::thrift::protocol::TType _etype43; + xfer += iprot->readListBegin(_etype43, _size40); + _val39.resize(_size40); + uint32_t _i44; + for (_i44 = 0; _i44 < _size40; ++_i44) { - xfer += _val53[_i58].read(iprot); + xfer += _val39[_i44].read(iprot); } xfer += iprot->readListEnd(); } @@ -1307,26 +969,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 _size45; + ::apache::thrift::protocol::TType _ktype46; + ::apache::thrift::protocol::TType _vtype47; + xfer += iprot->readMapBegin(_ktype46, _vtype47, _size45); + uint32_t _i49; + for (_i49 = 0; _i49 < _size45; ++_i49) { - std::string _key64; - xfer += iprot->readString(_key64); - std::vector & _val65 = this->rolePrivileges[_key64]; + std::string _key50; + xfer += iprot->readString(_key50); + std::vector & _val51 = this->rolePrivileges[_key50]; { - _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) + _val51.clear(); + uint32_t _size52; + ::apache::thrift::protocol::TType _etype55; + xfer += iprot->readListBegin(_etype55, _size52); + _val51.resize(_size52); + uint32_t _i56; + for (_i56 = 0; _i56 < _size52; ++_i56) { - xfer += _val65[_i70].read(iprot); + xfer += _val51[_i56].read(iprot); } xfer += iprot->readListEnd(); } @@ -1352,22 +1014,21 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("PrincipalPrivilegeSet"); 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 _iter57; + for (_iter57 = this->userPrivileges.begin(); _iter57 != this->userPrivileges.end(); ++_iter57) { - xfer += oprot->writeString(_iter71->first); + xfer += oprot->writeString(_iter57->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(_iter57->second.size())); + std::vector ::const_iterator _iter58; + for (_iter58 = _iter57->second.begin(); _iter58 != _iter57->second.end(); ++_iter58) { - xfer += (*_iter72).write(oprot); + xfer += (*_iter58).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1379,16 +1040,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 _iter59; + for (_iter59 = this->groupPrivileges.begin(); _iter59 != this->groupPrivileges.end(); ++_iter59) { - xfer += oprot->writeString(_iter73->first); + xfer += oprot->writeString(_iter59->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(_iter59->second.size())); + std::vector ::const_iterator _iter60; + for (_iter60 = _iter59->second.begin(); _iter60 != _iter59->second.end(); ++_iter60) { - xfer += (*_iter74).write(oprot); + xfer += (*_iter60).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1400,16 +1061,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 _iter61; + for (_iter61 = this->rolePrivileges.begin(); _iter61 != this->rolePrivileges.end(); ++_iter61) { - xfer += oprot->writeString(_iter75->first); + xfer += oprot->writeString(_iter61->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(_iter61->second.size())); + std::vector ::const_iterator _iter62; + for (_iter62 = _iter61->second.begin(); _iter62 != _iter61->second.end(); ++_iter62) { - xfer += (*_iter76).write(oprot); + xfer += (*_iter62).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1420,7 +1081,6 @@ uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1432,47 +1092,6 @@ 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::operator=(const PrincipalPrivilegeSet& other78) { - userPrivileges = other78.userPrivileges; - groupPrivileges = other78.groupPrivileges; - rolePrivileges = other78.rolePrivileges; - __isset = other78.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const PrincipalPrivilegeSet& obj) { - using apache::thrift::to_string; - out << "PrincipalPrivilegeSet("; - out << "userPrivileges=" << to_string(obj.userPrivileges); - out << ", " << "groupPrivileges=" << to_string(obj.groupPrivileges); - out << ", " << "rolePrivileges=" << to_string(obj.rolePrivileges); - out << ")"; - return out; -} - - -GrantRevokePrivilegeRequest::~GrantRevokePrivilegeRequest() throw() { -} - - -void GrantRevokePrivilegeRequest::__set_requestType(const GrantRevokeType::type val) { - this->requestType = val; -} - -void GrantRevokePrivilegeRequest::__set_privileges(const PrivilegeBag& val) { - this->privileges = val; -} - -void GrantRevokePrivilegeRequest::__set_revokeGrantOption(const bool val) { - this->revokeGrantOption = val; -__isset.revokeGrantOption = true; -} - const char* GrantRevokePrivilegeRequest::ascii_fingerprint = "DF474A3CB526AD40DC0F2C3702F7AA2C"; const uint8_t GrantRevokePrivilegeRequest::binary_fingerprint[16] = {0xDF,0x47,0x4A,0x3C,0xB5,0x26,0xAD,0x40,0xDC,0x0F,0x2C,0x37,0x02,0xF7,0xAA,0x2C}; @@ -1498,9 +1117,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 ecast63; + xfer += iprot->readI32(ecast63); + this->requestType = (GrantRevokeType::type)ecast63; this->__isset.requestType = true; } else { xfer += iprot->skip(ftype); @@ -1536,7 +1155,6 @@ uint32_t GrantRevokePrivilegeRequest::read(::apache::thrift::protocol::TProtocol uint32_t GrantRevokePrivilegeRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("GrantRevokePrivilegeRequest"); xfer += oprot->writeFieldBegin("requestType", ::apache::thrift::protocol::T_I32, 1); @@ -1554,7 +1172,6 @@ uint32_t GrantRevokePrivilegeRequest::write(::apache::thrift::protocol::TProtoco } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1566,39 +1183,6 @@ 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::operator=(const GrantRevokePrivilegeRequest& other81) { - requestType = other81.requestType; - privileges = other81.privileges; - revokeGrantOption = other81.revokeGrantOption; - __isset = other81.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const GrantRevokePrivilegeRequest& obj) { - using apache::thrift::to_string; - out << "GrantRevokePrivilegeRequest("; - out << "requestType=" << to_string(obj.requestType); - out << ", " << "privileges=" << to_string(obj.privileges); - out << ", " << "revokeGrantOption="; (obj.__isset.revokeGrantOption ? (out << to_string(obj.revokeGrantOption)) : (out << "")); - out << ")"; - return out; -} - - -GrantRevokePrivilegeResponse::~GrantRevokePrivilegeResponse() throw() { -} - - -void GrantRevokePrivilegeResponse::__set_success(const bool val) { - this->success = val; -__isset.success = true; -} - const char* GrantRevokePrivilegeResponse::ascii_fingerprint = "BF054652DEF86253C2BEE7D947F167DD"; const uint8_t GrantRevokePrivilegeResponse::binary_fingerprint[16] = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD}; @@ -1644,7 +1228,6 @@ uint32_t GrantRevokePrivilegeResponse::read(::apache::thrift::protocol::TProtoco uint32_t GrantRevokePrivilegeResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("GrantRevokePrivilegeResponse"); if (this->__isset.success) { @@ -1654,7 +1237,6 @@ uint32_t GrantRevokePrivilegeResponse::write(::apache::thrift::protocol::TProtoc } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1664,40 +1246,6 @@ void swap(GrantRevokePrivilegeResponse &a, GrantRevokePrivilegeResponse &b) { swap(a.__isset, b.__isset); } -GrantRevokePrivilegeResponse::GrantRevokePrivilegeResponse(const GrantRevokePrivilegeResponse& other82) { - success = other82.success; - __isset = other82.__isset; -} -GrantRevokePrivilegeResponse& GrantRevokePrivilegeResponse::operator=(const GrantRevokePrivilegeResponse& other83) { - success = other83.success; - __isset = other83.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const GrantRevokePrivilegeResponse& obj) { - using apache::thrift::to_string; - out << "GrantRevokePrivilegeResponse("; - out << "success="; (obj.__isset.success ? (out << to_string(obj.success)) : (out << "")); - out << ")"; - return out; -} - - -Role::~Role() throw() { -} - - -void Role::__set_roleName(const std::string& val) { - this->roleName = val; -} - -void Role::__set_createTime(const int32_t val) { - this->createTime = val; -} - -void Role::__set_ownerName(const std::string& val) { - this->ownerName = val; -} - const char* Role::ascii_fingerprint = "70563A0628F75DF9555F4D24690B1E26"; const uint8_t Role::binary_fingerprint[16] = {0x70,0x56,0x3A,0x06,0x28,0xF7,0x5D,0xF9,0x55,0x5F,0x4D,0x24,0x69,0x0B,0x1E,0x26}; @@ -1759,7 +1307,6 @@ uint32_t Role::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Role::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Role"); xfer += oprot->writeFieldBegin("roleName", ::apache::thrift::protocol::T_STRING, 1); @@ -1776,7 +1323,6 @@ uint32_t Role::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1788,62 +1334,6 @@ 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::operator=(const Role& other85) { - roleName = other85.roleName; - createTime = other85.createTime; - ownerName = other85.ownerName; - __isset = other85.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Role& obj) { - using apache::thrift::to_string; - out << "Role("; - out << "roleName=" << to_string(obj.roleName); - out << ", " << "createTime=" << to_string(obj.createTime); - out << ", " << "ownerName=" << to_string(obj.ownerName); - out << ")"; - return out; -} - - -RolePrincipalGrant::~RolePrincipalGrant() throw() { -} - - -void RolePrincipalGrant::__set_roleName(const std::string& val) { - this->roleName = val; -} - -void RolePrincipalGrant::__set_principalName(const std::string& val) { - this->principalName = val; -} - -void RolePrincipalGrant::__set_principalType(const PrincipalType::type val) { - this->principalType = val; -} - -void RolePrincipalGrant::__set_grantOption(const bool val) { - this->grantOption = val; -} - -void RolePrincipalGrant::__set_grantTime(const int32_t val) { - this->grantTime = val; -} - -void RolePrincipalGrant::__set_grantorName(const std::string& val) { - this->grantorName = val; -} - -void RolePrincipalGrant::__set_grantorPrincipalType(const PrincipalType::type val) { - this->grantorPrincipalType = val; -} - const char* RolePrincipalGrant::ascii_fingerprint = "899BA3F6214DD1B79D27206BA857C772"; const uint8_t RolePrincipalGrant::binary_fingerprint[16] = {0x89,0x9B,0xA3,0xF6,0x21,0x4D,0xD1,0xB7,0x9D,0x27,0x20,0x6B,0xA8,0x57,0xC7,0x72}; @@ -1885,9 +1375,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 ecast64; + xfer += iprot->readI32(ecast64); + this->principalType = (PrincipalType::type)ecast64; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -1919,9 +1409,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 ecast65; + xfer += iprot->readI32(ecast65); + this->grantorPrincipalType = (PrincipalType::type)ecast65; this->__isset.grantorPrincipalType = true; } else { xfer += iprot->skip(ftype); @@ -1941,7 +1431,6 @@ uint32_t RolePrincipalGrant::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t RolePrincipalGrant::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("RolePrincipalGrant"); xfer += oprot->writeFieldBegin("roleName", ::apache::thrift::protocol::T_STRING, 1); @@ -1974,7 +1463,6 @@ uint32_t RolePrincipalGrant::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1990,54 +1478,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const RolePrincipalGrant& obj) { - using apache::thrift::to_string; - out << "RolePrincipalGrant("; - out << "roleName=" << to_string(obj.roleName); - out << ", " << "principalName=" << to_string(obj.principalName); - out << ", " << "principalType=" << to_string(obj.principalType); - out << ", " << "grantOption=" << to_string(obj.grantOption); - out << ", " << "grantTime=" << to_string(obj.grantTime); - out << ", " << "grantorName=" << to_string(obj.grantorName); - out << ", " << "grantorPrincipalType=" << to_string(obj.grantorPrincipalType); - out << ")"; - return out; -} - - -GetRoleGrantsForPrincipalRequest::~GetRoleGrantsForPrincipalRequest() throw() { -} - - -void GetRoleGrantsForPrincipalRequest::__set_principal_name(const std::string& val) { - this->principal_name = val; -} - -void GetRoleGrantsForPrincipalRequest::__set_principal_type(const PrincipalType::type val) { - this->principal_type = val; -} - const char* GetRoleGrantsForPrincipalRequest::ascii_fingerprint = "D6FD826D949221396F4FFC3ECCD3D192"; const uint8_t GetRoleGrantsForPrincipalRequest::binary_fingerprint[16] = {0xD6,0xFD,0x82,0x6D,0x94,0x92,0x21,0x39,0x6F,0x4F,0xFC,0x3E,0xCC,0xD3,0xD1,0x92}; @@ -2073,9 +1513,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 ecast66; + xfer += iprot->readI32(ecast66); + this->principal_type = (PrincipalType::type)ecast66; isset_principal_type = true; } else { xfer += iprot->skip(ftype); @@ -2099,7 +1539,6 @@ uint32_t GetRoleGrantsForPrincipalRequest::read(::apache::thrift::protocol::TPro uint32_t GetRoleGrantsForPrincipalRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("GetRoleGrantsForPrincipalRequest"); xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1); @@ -2112,7 +1551,6 @@ uint32_t GetRoleGrantsForPrincipalRequest::write(::apache::thrift::protocol::TPr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2122,33 +1560,6 @@ 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::operator=(const GetRoleGrantsForPrincipalRequest& other92) { - principal_name = other92.principal_name; - principal_type = other92.principal_type; - return *this; -} -std::ostream& operator<<(std::ostream& out, const GetRoleGrantsForPrincipalRequest& obj) { - using apache::thrift::to_string; - out << "GetRoleGrantsForPrincipalRequest("; - out << "principal_name=" << to_string(obj.principal_name); - out << ", " << "principal_type=" << to_string(obj.principal_type); - out << ")"; - return out; -} - - -GetRoleGrantsForPrincipalResponse::~GetRoleGrantsForPrincipalResponse() throw() { -} - - -void GetRoleGrantsForPrincipalResponse::__set_principalGrants(const std::vector & val) { - this->principalGrants = val; -} - const char* GetRoleGrantsForPrincipalResponse::ascii_fingerprint = "5926B4B3541A62E17663820C7E3BE690"; const uint8_t GetRoleGrantsForPrincipalResponse::binary_fingerprint[16] = {0x59,0x26,0xB4,0xB3,0x54,0x1A,0x62,0xE1,0x76,0x63,0x82,0x0C,0x7E,0x3B,0xE6,0x90}; @@ -2177,14 +1588,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 _size67; + ::apache::thrift::protocol::TType _etype70; + xfer += iprot->readListBegin(_etype70, _size67); + this->principalGrants.resize(_size67); + uint32_t _i71; + for (_i71 = 0; _i71 < _size67; ++_i71) { - xfer += this->principalGrants[_i97].read(iprot); + xfer += this->principalGrants[_i71].read(iprot); } xfer += iprot->readListEnd(); } @@ -2209,16 +1620,15 @@ uint32_t GetRoleGrantsForPrincipalResponse::read(::apache::thrift::protocol::TPr uint32_t GetRoleGrantsForPrincipalResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("GetRoleGrantsForPrincipalResponse"); xfer += oprot->writeFieldBegin("principalGrants", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->principalGrants.size())); - std::vector ::const_iterator _iter98; - for (_iter98 = this->principalGrants.begin(); _iter98 != this->principalGrants.end(); ++_iter98) + std::vector ::const_iterator _iter72; + for (_iter72 = this->principalGrants.begin(); _iter72 != this->principalGrants.end(); ++_iter72) { - xfer += (*_iter98).write(oprot); + xfer += (*_iter72).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2226,7 +1636,6 @@ uint32_t GetRoleGrantsForPrincipalResponse::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2235,30 +1644,6 @@ void swap(GetRoleGrantsForPrincipalResponse &a, GetRoleGrantsForPrincipalRespons swap(a.principalGrants, b.principalGrants); } -GetRoleGrantsForPrincipalResponse::GetRoleGrantsForPrincipalResponse(const GetRoleGrantsForPrincipalResponse& other99) { - principalGrants = other99.principalGrants; -} -GetRoleGrantsForPrincipalResponse& GetRoleGrantsForPrincipalResponse::operator=(const GetRoleGrantsForPrincipalResponse& other100) { - principalGrants = other100.principalGrants; - return *this; -} -std::ostream& operator<<(std::ostream& out, const GetRoleGrantsForPrincipalResponse& obj) { - using apache::thrift::to_string; - out << "GetRoleGrantsForPrincipalResponse("; - out << "principalGrants=" << to_string(obj.principalGrants); - out << ")"; - return out; -} - - -GetPrincipalsInRoleRequest::~GetPrincipalsInRoleRequest() throw() { -} - - -void GetPrincipalsInRoleRequest::__set_roleName(const std::string& val) { - this->roleName = val; -} - const char* GetPrincipalsInRoleRequest::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t GetPrincipalsInRoleRequest::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -2307,7 +1692,6 @@ uint32_t GetPrincipalsInRoleRequest::read(::apache::thrift::protocol::TProtocol* uint32_t GetPrincipalsInRoleRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("GetPrincipalsInRoleRequest"); xfer += oprot->writeFieldBegin("roleName", ::apache::thrift::protocol::T_STRING, 1); @@ -2316,7 +1700,6 @@ uint32_t GetPrincipalsInRoleRequest::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2325,30 +1708,6 @@ void swap(GetPrincipalsInRoleRequest &a, GetPrincipalsInRoleRequest &b) { swap(a.roleName, b.roleName); } -GetPrincipalsInRoleRequest::GetPrincipalsInRoleRequest(const GetPrincipalsInRoleRequest& other101) { - roleName = other101.roleName; -} -GetPrincipalsInRoleRequest& GetPrincipalsInRoleRequest::operator=(const GetPrincipalsInRoleRequest& other102) { - roleName = other102.roleName; - return *this; -} -std::ostream& operator<<(std::ostream& out, const GetPrincipalsInRoleRequest& obj) { - using apache::thrift::to_string; - out << "GetPrincipalsInRoleRequest("; - out << "roleName=" << to_string(obj.roleName); - out << ")"; - return out; -} - - -GetPrincipalsInRoleResponse::~GetPrincipalsInRoleResponse() throw() { -} - - -void GetPrincipalsInRoleResponse::__set_principalGrants(const std::vector & val) { - this->principalGrants = val; -} - const char* GetPrincipalsInRoleResponse::ascii_fingerprint = "5926B4B3541A62E17663820C7E3BE690"; const uint8_t GetPrincipalsInRoleResponse::binary_fingerprint[16] = {0x59,0x26,0xB4,0xB3,0x54,0x1A,0x62,0xE1,0x76,0x63,0x82,0x0C,0x7E,0x3B,0xE6,0x90}; @@ -2377,14 +1736,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 _size73; + ::apache::thrift::protocol::TType _etype76; + xfer += iprot->readListBegin(_etype76, _size73); + this->principalGrants.resize(_size73); + uint32_t _i77; + for (_i77 = 0; _i77 < _size73; ++_i77) { - xfer += this->principalGrants[_i107].read(iprot); + xfer += this->principalGrants[_i77].read(iprot); } xfer += iprot->readListEnd(); } @@ -2409,16 +1768,15 @@ uint32_t GetPrincipalsInRoleResponse::read(::apache::thrift::protocol::TProtocol uint32_t GetPrincipalsInRoleResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("GetPrincipalsInRoleResponse"); xfer += oprot->writeFieldBegin("principalGrants", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->principalGrants.size())); - std::vector ::const_iterator _iter108; - for (_iter108 = this->principalGrants.begin(); _iter108 != this->principalGrants.end(); ++_iter108) + std::vector ::const_iterator _iter78; + for (_iter78 = this->principalGrants.begin(); _iter78 != this->principalGrants.end(); ++_iter78) { - xfer += (*_iter108).write(oprot); + xfer += (*_iter78).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2426,7 +1784,6 @@ uint32_t GetPrincipalsInRoleResponse::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2435,57 +1792,6 @@ void swap(GetPrincipalsInRoleResponse &a, GetPrincipalsInRoleResponse &b) { swap(a.principalGrants, b.principalGrants); } -GetPrincipalsInRoleResponse::GetPrincipalsInRoleResponse(const GetPrincipalsInRoleResponse& other109) { - principalGrants = other109.principalGrants; -} -GetPrincipalsInRoleResponse& GetPrincipalsInRoleResponse::operator=(const GetPrincipalsInRoleResponse& other110) { - principalGrants = other110.principalGrants; - return *this; -} -std::ostream& operator<<(std::ostream& out, const GetPrincipalsInRoleResponse& obj) { - using apache::thrift::to_string; - out << "GetPrincipalsInRoleResponse("; - out << "principalGrants=" << to_string(obj.principalGrants); - out << ")"; - return out; -} - - -GrantRevokeRoleRequest::~GrantRevokeRoleRequest() throw() { -} - - -void GrantRevokeRoleRequest::__set_requestType(const GrantRevokeType::type val) { - this->requestType = val; -} - -void GrantRevokeRoleRequest::__set_roleName(const std::string& val) { - this->roleName = val; -} - -void GrantRevokeRoleRequest::__set_principalName(const std::string& val) { - this->principalName = val; -} - -void GrantRevokeRoleRequest::__set_principalType(const PrincipalType::type val) { - this->principalType = val; -} - -void GrantRevokeRoleRequest::__set_grantor(const std::string& val) { - this->grantor = val; -__isset.grantor = true; -} - -void GrantRevokeRoleRequest::__set_grantorType(const PrincipalType::type val) { - this->grantorType = val; -__isset.grantorType = true; -} - -void GrantRevokeRoleRequest::__set_grantOption(const bool val) { - this->grantOption = val; -__isset.grantOption = true; -} - const char* GrantRevokeRoleRequest::ascii_fingerprint = "907DEA796F2BA7AF76DC2566E75FAEE7"; const uint8_t GrantRevokeRoleRequest::binary_fingerprint[16] = {0x90,0x7D,0xEA,0x79,0x6F,0x2B,0xA7,0xAF,0x76,0xDC,0x25,0x66,0xE7,0x5F,0xAE,0xE7}; @@ -2511,9 +1817,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 ecast79; + xfer += iprot->readI32(ecast79); + this->requestType = (GrantRevokeType::type)ecast79; this->__isset.requestType = true; } else { xfer += iprot->skip(ftype); @@ -2537,9 +1843,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 ecast80; + xfer += iprot->readI32(ecast80); + this->principalType = (PrincipalType::type)ecast80; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -2555,9 +1861,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 ecast81; + xfer += iprot->readI32(ecast81); + this->grantorType = (PrincipalType::type)ecast81; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -2585,7 +1891,6 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr uint32_t GrantRevokeRoleRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("GrantRevokeRoleRequest"); xfer += oprot->writeFieldBegin("requestType", ::apache::thrift::protocol::T_I32, 1); @@ -2621,7 +1926,6 @@ uint32_t GrantRevokeRoleRequest::write(::apache::thrift::protocol::TProtocol* op } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2637,51 +1941,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const GrantRevokeRoleRequest& obj) { - using apache::thrift::to_string; - out << "GrantRevokeRoleRequest("; - out << "requestType=" << to_string(obj.requestType); - out << ", " << "roleName=" << to_string(obj.roleName); - out << ", " << "principalName=" << to_string(obj.principalName); - out << ", " << "principalType=" << to_string(obj.principalType); - out << ", " << "grantor="; (obj.__isset.grantor ? (out << to_string(obj.grantor)) : (out << "")); - out << ", " << "grantorType="; (obj.__isset.grantorType ? (out << to_string(obj.grantorType)) : (out << "")); - out << ", " << "grantOption="; (obj.__isset.grantOption ? (out << to_string(obj.grantOption)) : (out << "")); - out << ")"; - return out; -} - - -GrantRevokeRoleResponse::~GrantRevokeRoleResponse() throw() { -} - - -void GrantRevokeRoleResponse::__set_success(const bool val) { - this->success = val; -__isset.success = true; -} - const char* GrantRevokeRoleResponse::ascii_fingerprint = "BF054652DEF86253C2BEE7D947F167DD"; const uint8_t GrantRevokeRoleResponse::binary_fingerprint[16] = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD}; @@ -2727,7 +1986,6 @@ uint32_t GrantRevokeRoleResponse::read(::apache::thrift::protocol::TProtocol* ip uint32_t GrantRevokeRoleResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("GrantRevokeRoleResponse"); if (this->__isset.success) { @@ -2737,7 +1995,6 @@ uint32_t GrantRevokeRoleResponse::write(::apache::thrift::protocol::TProtocol* o } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2747,59 +2004,6 @@ void swap(GrantRevokeRoleResponse &a, GrantRevokeRoleResponse &b) { swap(a.__isset, b.__isset); } -GrantRevokeRoleResponse::GrantRevokeRoleResponse(const GrantRevokeRoleResponse& other116) { - success = other116.success; - __isset = other116.__isset; -} -GrantRevokeRoleResponse& GrantRevokeRoleResponse::operator=(const GrantRevokeRoleResponse& other117) { - success = other117.success; - __isset = other117.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const GrantRevokeRoleResponse& obj) { - using apache::thrift::to_string; - out << "GrantRevokeRoleResponse("; - out << "success="; (obj.__isset.success ? (out << to_string(obj.success)) : (out << "")); - out << ")"; - return out; -} - - -Database::~Database() throw() { -} - - -void Database::__set_name(const std::string& val) { - this->name = val; -} - -void Database::__set_description(const std::string& val) { - this->description = val; -} - -void Database::__set_locationUri(const std::string& val) { - this->locationUri = val; -} - -void Database::__set_parameters(const std::map & val) { - this->parameters = val; -} - -void Database::__set_privileges(const PrincipalPrivilegeSet& val) { - this->privileges = val; -__isset.privileges = true; -} - -void Database::__set_ownerName(const std::string& val) { - this->ownerName = val; -__isset.ownerName = true; -} - -void Database::__set_ownerType(const PrincipalType::type val) { - this->ownerType = val; -__isset.ownerType = true; -} - const char* Database::ascii_fingerprint = "553495CAE243A1C583D5C3DD990AED53"; const uint8_t Database::binary_fingerprint[16] = {0x55,0x34,0x95,0xCA,0xE2,0x43,0xA1,0xC5,0x83,0xD5,0xC3,0xDD,0x99,0x0A,0xED,0x53}; @@ -2851,17 +2055,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 _size82; + ::apache::thrift::protocol::TType _ktype83; + ::apache::thrift::protocol::TType _vtype84; + xfer += iprot->readMapBegin(_ktype83, _vtype84, _size82); + uint32_t _i86; + for (_i86 = 0; _i86 < _size82; ++_i86) { - std::string _key123; - xfer += iprot->readString(_key123); - std::string& _val124 = this->parameters[_key123]; - xfer += iprot->readString(_val124); + std::string _key87; + xfer += iprot->readString(_key87); + std::string& _val88 = this->parameters[_key87]; + xfer += iprot->readString(_val88); } xfer += iprot->readMapEnd(); } @@ -2888,9 +2092,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 ecast89; + xfer += iprot->readI32(ecast89); + this->ownerType = (PrincipalType::type)ecast89; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -2910,7 +2114,6 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Database::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Database"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -2928,11 +2131,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 _iter90; + for (_iter90 = this->parameters.begin(); _iter90 != this->parameters.end(); ++_iter90) { - xfer += oprot->writeString(_iter126->first); - xfer += oprot->writeString(_iter126->second); + xfer += oprot->writeString(_iter90->first); + xfer += oprot->writeString(_iter90->second); } xfer += oprot->writeMapEnd(); } @@ -2955,7 +2158,6 @@ uint32_t Database::write(::apache::thrift::protocol::TProtocol* oprot) const { } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2971,58 +2173,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Database& obj) { - using apache::thrift::to_string; - out << "Database("; - out << "name=" << to_string(obj.name); - out << ", " << "description=" << to_string(obj.description); - out << ", " << "locationUri=" << to_string(obj.locationUri); - out << ", " << "parameters=" << to_string(obj.parameters); - out << ", " << "privileges="; (obj.__isset.privileges ? (out << to_string(obj.privileges)) : (out << "")); - out << ", " << "ownerName="; (obj.__isset.ownerName ? (out << to_string(obj.ownerName)) : (out << "")); - out << ", " << "ownerType="; (obj.__isset.ownerType ? (out << to_string(obj.ownerType)) : (out << "")); - out << ")"; - return out; -} - - -SerDeInfo::~SerDeInfo() throw() { -} - - -void SerDeInfo::__set_name(const std::string& val) { - this->name = val; -} - -void SerDeInfo::__set_serializationLib(const std::string& val) { - this->serializationLib = val; -} - -void SerDeInfo::__set_parameters(const std::map & val) { - this->parameters = val; -} - const char* SerDeInfo::ascii_fingerprint = "B1021C32A35A2AEFCD2F57A5424159A7"; const uint8_t SerDeInfo::binary_fingerprint[16] = {0xB1,0x02,0x1C,0x32,0xA3,0x5A,0x2A,0xEF,0xCD,0x2F,0x57,0xA5,0x42,0x41,0x59,0xA7}; @@ -3066,17 +2216,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 _size91; + ::apache::thrift::protocol::TType _ktype92; + ::apache::thrift::protocol::TType _vtype93; + xfer += iprot->readMapBegin(_ktype92, _vtype93, _size91); + uint32_t _i95; + for (_i95 = 0; _i95 < _size91; ++_i95) { - std::string _key134; - xfer += iprot->readString(_key134); - std::string& _val135 = this->parameters[_key134]; - xfer += iprot->readString(_val135); + std::string _key96; + xfer += iprot->readString(_key96); + std::string& _val97 = this->parameters[_key96]; + xfer += iprot->readString(_val97); } xfer += iprot->readMapEnd(); } @@ -3099,7 +2249,6 @@ uint32_t SerDeInfo::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t SerDeInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("SerDeInfo"); xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); @@ -3113,11 +2262,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 _iter98; + for (_iter98 = this->parameters.begin(); _iter98 != this->parameters.end(); ++_iter98) { - xfer += oprot->writeString(_iter136->first); - xfer += oprot->writeString(_iter136->second); + xfer += oprot->writeString(_iter98->first); + xfer += oprot->writeString(_iter98->second); } xfer += oprot->writeMapEnd(); } @@ -3125,7 +2274,6 @@ uint32_t SerDeInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -3137,42 +2285,6 @@ 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::operator=(const SerDeInfo& other138) { - name = other138.name; - serializationLib = other138.serializationLib; - parameters = other138.parameters; - __isset = other138.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const SerDeInfo& obj) { - using apache::thrift::to_string; - out << "SerDeInfo("; - out << "name=" << to_string(obj.name); - out << ", " << "serializationLib=" << to_string(obj.serializationLib); - out << ", " << "parameters=" << to_string(obj.parameters); - out << ")"; - return out; -} - - -Order::~Order() throw() { -} - - -void Order::__set_col(const std::string& val) { - this->col = val; -} - -void Order::__set_order(const int32_t val) { - this->order = val; -} - const char* Order::ascii_fingerprint = "EEBC915CE44901401D881E6091423036"; const uint8_t Order::binary_fingerprint[16] = {0xEE,0xBC,0x91,0x5C,0xE4,0x49,0x01,0x40,0x1D,0x88,0x1E,0x60,0x91,0x42,0x30,0x36}; @@ -3226,7 +2338,6 @@ uint32_t Order::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Order::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Order"); xfer += oprot->writeFieldBegin("col", ::apache::thrift::protocol::T_STRING, 1); @@ -3239,7 +2350,6 @@ uint32_t Order::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -3250,43 +2360,6 @@ 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::operator=(const Order& other140) { - col = other140.col; - order = other140.order; - __isset = other140.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Order& obj) { - using apache::thrift::to_string; - out << "Order("; - out << "col=" << to_string(obj.col); - out << ", " << "order=" << to_string(obj.order); - out << ")"; - return out; -} - - -SkewedInfo::~SkewedInfo() throw() { -} - - -void SkewedInfo::__set_skewedColNames(const std::vector & val) { - this->skewedColNames = val; -} - -void SkewedInfo::__set_skewedColValues(const std::vector > & val) { - this->skewedColValues = val; -} - -void SkewedInfo::__set_skewedColValueLocationMaps(const std::map , std::string> & val) { - this->skewedColValueLocationMaps = val; -} - const char* SkewedInfo::ascii_fingerprint = "4BF2ED84BC3C3EB297A2AE2FA8427EB1"; const uint8_t SkewedInfo::binary_fingerprint[16] = {0x4B,0xF2,0xED,0x84,0xBC,0x3C,0x3E,0xB2,0x97,0xA2,0xAE,0x2F,0xA8,0x42,0x7E,0xB1}; @@ -3314,14 +2387,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 _size99; + ::apache::thrift::protocol::TType _etype102; + xfer += iprot->readListBegin(_etype102, _size99); + this->skewedColNames.resize(_size99); + uint32_t _i103; + for (_i103 = 0; _i103 < _size99; ++_i103) { - xfer += iprot->readString(this->skewedColNames[_i145]); + xfer += iprot->readString(this->skewedColNames[_i103]); } xfer += iprot->readListEnd(); } @@ -3334,23 +2407,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 _size104; + ::apache::thrift::protocol::TType _etype107; + xfer += iprot->readListBegin(_etype107, _size104); + this->skewedColValues.resize(_size104); + uint32_t _i108; + for (_i108 = 0; _i108 < _size104; ++_i108) { { - 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[_i108].clear(); + uint32_t _size109; + ::apache::thrift::protocol::TType _etype112; + xfer += iprot->readListBegin(_etype112, _size109); + this->skewedColValues[_i108].resize(_size109); + uint32_t _i113; + for (_i113 = 0; _i113 < _size109; ++_i113) { - xfer += iprot->readString(this->skewedColValues[_i150][_i155]); + xfer += iprot->readString(this->skewedColValues[_i108][_i113]); } xfer += iprot->readListEnd(); } @@ -3366,29 +2439,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 _size114; + ::apache::thrift::protocol::TType _ktype115; + ::apache::thrift::protocol::TType _vtype116; + xfer += iprot->readMapBegin(_ktype115, _vtype116, _size114); + uint32_t _i118; + for (_i118 = 0; _i118 < _size114; ++_i118) { - std::vector _key161; + std::vector _key119; { - _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) + _key119.clear(); + uint32_t _size121; + ::apache::thrift::protocol::TType _etype124; + xfer += iprot->readListBegin(_etype124, _size121); + _key119.resize(_size121); + uint32_t _i125; + for (_i125 = 0; _i125 < _size121; ++_i125) { - xfer += iprot->readString(_key161[_i167]); + xfer += iprot->readString(_key119[_i125]); } xfer += iprot->readListEnd(); } - std::string& _val162 = this->skewedColValueLocationMaps[_key161]; - xfer += iprot->readString(_val162); + std::string& _val120 = this->skewedColValueLocationMaps[_key119]; + xfer += iprot->readString(_val120); } xfer += iprot->readMapEnd(); } @@ -3411,16 +2484,15 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("SkewedInfo"); 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 _iter126; + for (_iter126 = this->skewedColNames.begin(); _iter126 != this->skewedColNames.end(); ++_iter126) { - xfer += oprot->writeString((*_iter168)); + xfer += oprot->writeString((*_iter126)); } xfer += oprot->writeListEnd(); } @@ -3429,15 +2501,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 _iter127; + for (_iter127 = this->skewedColValues.begin(); _iter127 != this->skewedColValues.end(); ++_iter127) { { - 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((*_iter127).size())); + std::vector ::const_iterator _iter128; + for (_iter128 = (*_iter127).begin(); _iter128 != (*_iter127).end(); ++_iter128) { - xfer += oprot->writeString((*_iter170)); + xfer += oprot->writeString((*_iter128)); } xfer += oprot->writeListEnd(); } @@ -3449,19 +2521,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 _iter129; + for (_iter129 = this->skewedColValueLocationMaps.begin(); _iter129 != this->skewedColValueLocationMaps.end(); ++_iter129) { { - 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(_iter129->first.size())); + std::vector ::const_iterator _iter130; + for (_iter130 = _iter129->first.begin(); _iter130 != _iter129->first.end(); ++_iter130) { - xfer += oprot->writeString((*_iter172)); + xfer += oprot->writeString((*_iter130)); } xfer += oprot->writeListEnd(); } - xfer += oprot->writeString(_iter171->second); + xfer += oprot->writeString(_iter129->second); } xfer += oprot->writeMapEnd(); } @@ -3469,7 +2541,6 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -3481,84 +2552,6 @@ 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::operator=(const SkewedInfo& other174) { - skewedColNames = other174.skewedColNames; - skewedColValues = other174.skewedColValues; - skewedColValueLocationMaps = other174.skewedColValueLocationMaps; - __isset = other174.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const SkewedInfo& obj) { - using apache::thrift::to_string; - out << "SkewedInfo("; - out << "skewedColNames=" << to_string(obj.skewedColNames); - out << ", " << "skewedColValues=" << to_string(obj.skewedColValues); - out << ", " << "skewedColValueLocationMaps=" << to_string(obj.skewedColValueLocationMaps); - out << ")"; - return out; -} - - -StorageDescriptor::~StorageDescriptor() throw() { -} - - -void StorageDescriptor::__set_cols(const std::vector & val) { - this->cols = val; -} - -void StorageDescriptor::__set_location(const std::string& val) { - this->location = val; -} - -void StorageDescriptor::__set_inputFormat(const std::string& val) { - this->inputFormat = val; -} - -void StorageDescriptor::__set_outputFormat(const std::string& val) { - this->outputFormat = val; -} - -void StorageDescriptor::__set_compressed(const bool val) { - this->compressed = val; -} - -void StorageDescriptor::__set_numBuckets(const int32_t val) { - this->numBuckets = val; -} - -void StorageDescriptor::__set_serdeInfo(const SerDeInfo& val) { - this->serdeInfo = val; -} - -void StorageDescriptor::__set_bucketCols(const std::vector & val) { - this->bucketCols = val; -} - -void StorageDescriptor::__set_sortCols(const std::vector & val) { - this->sortCols = val; -} - -void StorageDescriptor::__set_parameters(const std::map & val) { - this->parameters = val; -} - -void StorageDescriptor::__set_skewedInfo(const SkewedInfo& val) { - this->skewedInfo = val; -__isset.skewedInfo = true; -} - -void StorageDescriptor::__set_storedAsSubDirectories(const bool val) { - this->storedAsSubDirectories = val; -__isset.storedAsSubDirectories = true; -} - const char* StorageDescriptor::ascii_fingerprint = "CA8C9AA5FE4C32643757D8639CEF0CD7"; const uint8_t StorageDescriptor::binary_fingerprint[16] = {0xCA,0x8C,0x9A,0xA5,0xFE,0x4C,0x32,0x64,0x37,0x57,0xD8,0x63,0x9C,0xEF,0x0C,0xD7}; @@ -3586,14 +2579,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 _size131; + ::apache::thrift::protocol::TType _etype134; + xfer += iprot->readListBegin(_etype134, _size131); + this->cols.resize(_size131); + uint32_t _i135; + for (_i135 = 0; _i135 < _size131; ++_i135) { - xfer += this->cols[_i179].read(iprot); + xfer += this->cols[_i135].read(iprot); } xfer += iprot->readListEnd(); } @@ -3654,14 +2647,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 _size136; + ::apache::thrift::protocol::TType _etype139; + xfer += iprot->readListBegin(_etype139, _size136); + this->bucketCols.resize(_size136); + uint32_t _i140; + for (_i140 = 0; _i140 < _size136; ++_i140) { - xfer += iprot->readString(this->bucketCols[_i184]); + xfer += iprot->readString(this->bucketCols[_i140]); } xfer += iprot->readListEnd(); } @@ -3674,14 +2667,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 _size141; + ::apache::thrift::protocol::TType _etype144; + xfer += iprot->readListBegin(_etype144, _size141); + this->sortCols.resize(_size141); + uint32_t _i145; + for (_i145 = 0; _i145 < _size141; ++_i145) { - xfer += this->sortCols[_i189].read(iprot); + xfer += this->sortCols[_i145].read(iprot); } xfer += iprot->readListEnd(); } @@ -3694,17 +2687,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 _size146; + ::apache::thrift::protocol::TType _ktype147; + ::apache::thrift::protocol::TType _vtype148; + xfer += iprot->readMapBegin(_ktype147, _vtype148, _size146); + uint32_t _i150; + for (_i150 = 0; _i150 < _size146; ++_i150) { - std::string _key195; - xfer += iprot->readString(_key195); - std::string& _val196 = this->parameters[_key195]; - xfer += iprot->readString(_val196); + std::string _key151; + xfer += iprot->readString(_key151); + std::string& _val152 = this->parameters[_key151]; + xfer += iprot->readString(_val152); } xfer += iprot->readMapEnd(); } @@ -3743,16 +2736,15 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("StorageDescriptor"); 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 _iter153; + for (_iter153 = this->cols.begin(); _iter153 != this->cols.end(); ++_iter153) { - xfer += (*_iter197).write(oprot); + xfer += (*_iter153).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3785,10 +2777,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 _iter154; + for (_iter154 = this->bucketCols.begin(); _iter154 != this->bucketCols.end(); ++_iter154) { - xfer += oprot->writeString((*_iter198)); + xfer += oprot->writeString((*_iter154)); } xfer += oprot->writeListEnd(); } @@ -3797,10 +2789,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 _iter155; + for (_iter155 = this->sortCols.begin(); _iter155 != this->sortCols.end(); ++_iter155) { - xfer += (*_iter199).write(oprot); + xfer += (*_iter155).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3809,11 +2801,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 _iter156; + for (_iter156 = this->parameters.begin(); _iter156 != this->parameters.end(); ++_iter156) { - xfer += oprot->writeString(_iter200->first); - xfer += oprot->writeString(_iter200->second); + xfer += oprot->writeString(_iter156->first); + xfer += oprot->writeString(_iter156->second); } xfer += oprot->writeMapEnd(); } @@ -3831,7 +2823,6 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -3852,119 +2843,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const StorageDescriptor& obj) { - using apache::thrift::to_string; - out << "StorageDescriptor("; - out << "cols=" << to_string(obj.cols); - out << ", " << "location=" << to_string(obj.location); - out << ", " << "inputFormat=" << to_string(obj.inputFormat); - out << ", " << "outputFormat=" << to_string(obj.outputFormat); - out << ", " << "compressed=" << to_string(obj.compressed); - out << ", " << "numBuckets=" << to_string(obj.numBuckets); - out << ", " << "serdeInfo=" << to_string(obj.serdeInfo); - out << ", " << "bucketCols=" << to_string(obj.bucketCols); - out << ", " << "sortCols=" << to_string(obj.sortCols); - out << ", " << "parameters=" << to_string(obj.parameters); - out << ", " << "skewedInfo="; (obj.__isset.skewedInfo ? (out << to_string(obj.skewedInfo)) : (out << "")); - out << ", " << "storedAsSubDirectories="; (obj.__isset.storedAsSubDirectories ? (out << to_string(obj.storedAsSubDirectories)) : (out << "")); - out << ")"; - return out; -} - - -Table::~Table() throw() { -} - - -void Table::__set_tableName(const std::string& val) { - this->tableName = val; -} - -void Table::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void Table::__set_owner(const std::string& val) { - this->owner = val; -} - -void Table::__set_createTime(const int32_t val) { - this->createTime = val; -} - -void Table::__set_lastAccessTime(const int32_t val) { - this->lastAccessTime = val; -} - -void Table::__set_retention(const int32_t val) { - this->retention = val; -} - -void Table::__set_sd(const StorageDescriptor& val) { - this->sd = val; -} - -void Table::__set_partitionKeys(const std::vector & val) { - this->partitionKeys = val; -} - -void Table::__set_parameters(const std::map & val) { - this->parameters = val; -} - -void Table::__set_viewOriginalText(const std::string& val) { - this->viewOriginalText = val; -} - -void Table::__set_viewExpandedText(const std::string& val) { - this->viewExpandedText = val; -} - -void Table::__set_tableType(const std::string& val) { - this->tableType = val; -} - -void Table::__set_privileges(const PrincipalPrivilegeSet& val) { - this->privileges = val; -__isset.privileges = true; -} - -void Table::__set_temporary(const bool val) { - this->temporary = val; -__isset.temporary = true; -} - const char* Table::ascii_fingerprint = "29EFB2A5970EF572039E5D94CC78AA85"; const uint8_t Table::binary_fingerprint[16] = {0x29,0xEF,0xB2,0xA5,0x97,0x0E,0xF5,0x72,0x03,0x9E,0x5D,0x94,0xCC,0x78,0xAA,0x85}; @@ -4048,14 +2926,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 _size157; + ::apache::thrift::protocol::TType _etype160; + xfer += iprot->readListBegin(_etype160, _size157); + this->partitionKeys.resize(_size157); + uint32_t _i161; + for (_i161 = 0; _i161 < _size157; ++_i161) { - xfer += this->partitionKeys[_i207].read(iprot); + xfer += this->partitionKeys[_i161].read(iprot); } xfer += iprot->readListEnd(); } @@ -4068,17 +2946,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 _size162; + ::apache::thrift::protocol::TType _ktype163; + ::apache::thrift::protocol::TType _vtype164; + xfer += iprot->readMapBegin(_ktype163, _vtype164, _size162); + uint32_t _i166; + for (_i166 = 0; _i166 < _size162; ++_i166) { - std::string _key213; - xfer += iprot->readString(_key213); - std::string& _val214 = this->parameters[_key213]; - xfer += iprot->readString(_val214); + std::string _key167; + xfer += iprot->readString(_key167); + std::string& _val168 = this->parameters[_key167]; + xfer += iprot->readString(_val168); } xfer += iprot->readMapEnd(); } @@ -4141,7 +3019,6 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Table"); xfer += oprot->writeFieldBegin("tableName", ::apache::thrift::protocol::T_STRING, 1); @@ -4175,10 +3052,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 _iter169; + for (_iter169 = this->partitionKeys.begin(); _iter169 != this->partitionKeys.end(); ++_iter169) { - xfer += (*_iter215).write(oprot); + xfer += (*_iter169).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4187,11 +3064,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 _iter170; + for (_iter170 = this->parameters.begin(); _iter170 != this->parameters.end(); ++_iter170) { - xfer += oprot->writeString(_iter216->first); - xfer += oprot->writeString(_iter216->second); + xfer += oprot->writeString(_iter170->first); + xfer += oprot->writeString(_iter170->second); } xfer += oprot->writeMapEnd(); } @@ -4221,7 +3098,6 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -4244,100 +3120,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Table& obj) { - using apache::thrift::to_string; - out << "Table("; - out << "tableName=" << to_string(obj.tableName); - out << ", " << "dbName=" << to_string(obj.dbName); - out << ", " << "owner=" << to_string(obj.owner); - out << ", " << "createTime=" << to_string(obj.createTime); - out << ", " << "lastAccessTime=" << to_string(obj.lastAccessTime); - out << ", " << "retention=" << to_string(obj.retention); - out << ", " << "sd=" << to_string(obj.sd); - out << ", " << "partitionKeys=" << to_string(obj.partitionKeys); - out << ", " << "parameters=" << to_string(obj.parameters); - out << ", " << "viewOriginalText=" << to_string(obj.viewOriginalText); - out << ", " << "viewExpandedText=" << to_string(obj.viewExpandedText); - out << ", " << "tableType=" << to_string(obj.tableType); - out << ", " << "privileges="; (obj.__isset.privileges ? (out << to_string(obj.privileges)) : (out << "")); - out << ", " << "temporary="; (obj.__isset.temporary ? (out << to_string(obj.temporary)) : (out << "")); - out << ")"; - return out; -} - - -Partition::~Partition() throw() { -} - - -void Partition::__set_values(const std::vector & val) { - this->values = val; -} - -void Partition::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void Partition::__set_tableName(const std::string& val) { - this->tableName = val; -} - -void Partition::__set_createTime(const int32_t val) { - this->createTime = val; -} - -void Partition::__set_lastAccessTime(const int32_t val) { - this->lastAccessTime = val; -} - -void Partition::__set_sd(const StorageDescriptor& val) { - this->sd = val; -} - -void Partition::__set_parameters(const std::map & val) { - this->parameters = val; -} - -void Partition::__set_privileges(const PrincipalPrivilegeSet& val) { - this->privileges = val; -__isset.privileges = true; -} - const char* Partition::ascii_fingerprint = "31A52241B88A426C34087FE38343FF51"; const uint8_t Partition::binary_fingerprint[16] = {0x31,0xA5,0x22,0x41,0xB8,0x8A,0x42,0x6C,0x34,0x08,0x7F,0xE3,0x83,0x43,0xFF,0x51}; @@ -4365,14 +3147,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 _size171; + ::apache::thrift::protocol::TType _etype174; + xfer += iprot->readListBegin(_etype174, _size171); + this->values.resize(_size171); + uint32_t _i175; + for (_i175 = 0; _i175 < _size171; ++_i175) { - xfer += iprot->readString(this->values[_i223]); + xfer += iprot->readString(this->values[_i175]); } xfer += iprot->readListEnd(); } @@ -4425,17 +3207,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 _size176; + ::apache::thrift::protocol::TType _ktype177; + ::apache::thrift::protocol::TType _vtype178; + xfer += iprot->readMapBegin(_ktype177, _vtype178, _size176); + uint32_t _i180; + for (_i180 = 0; _i180 < _size176; ++_i180) { - std::string _key229; - xfer += iprot->readString(_key229); - std::string& _val230 = this->parameters[_key229]; - xfer += iprot->readString(_val230); + std::string _key181; + xfer += iprot->readString(_key181); + std::string& _val182 = this->parameters[_key181]; + xfer += iprot->readString(_val182); } xfer += iprot->readMapEnd(); } @@ -4466,16 +3248,15 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Partition"); 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 _iter183; + for (_iter183 = this->values.begin(); _iter183 != this->values.end(); ++_iter183) { - xfer += oprot->writeString((*_iter231)); + xfer += oprot->writeString((*_iter183)); } xfer += oprot->writeListEnd(); } @@ -4504,11 +3285,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 _iter184; + for (_iter184 = this->parameters.begin(); _iter184 != this->parameters.end(); ++_iter184) { - xfer += oprot->writeString(_iter232->first); - xfer += oprot->writeString(_iter232->second); + xfer += oprot->writeString(_iter184->first); + xfer += oprot->writeString(_iter184->second); } xfer += oprot->writeMapEnd(); } @@ -4521,7 +3302,6 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -4538,74 +3318,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Partition& obj) { - using apache::thrift::to_string; - out << "Partition("; - out << "values=" << to_string(obj.values); - out << ", " << "dbName=" << to_string(obj.dbName); - out << ", " << "tableName=" << to_string(obj.tableName); - out << ", " << "createTime=" << to_string(obj.createTime); - out << ", " << "lastAccessTime=" << to_string(obj.lastAccessTime); - out << ", " << "sd=" << to_string(obj.sd); - out << ", " << "parameters=" << to_string(obj.parameters); - out << ", " << "privileges="; (obj.__isset.privileges ? (out << to_string(obj.privileges)) : (out << "")); - out << ")"; - return out; -} - - -PartitionWithoutSD::~PartitionWithoutSD() throw() { -} - - -void PartitionWithoutSD::__set_values(const std::vector & val) { - this->values = val; -} - -void PartitionWithoutSD::__set_createTime(const int32_t val) { - this->createTime = val; -} - -void PartitionWithoutSD::__set_lastAccessTime(const int32_t val) { - this->lastAccessTime = val; -} - -void PartitionWithoutSD::__set_relativePath(const std::string& val) { - this->relativePath = val; -} - -void PartitionWithoutSD::__set_parameters(const std::map & val) { - this->parameters = val; -} - -void PartitionWithoutSD::__set_privileges(const PrincipalPrivilegeSet& val) { - this->privileges = val; -__isset.privileges = true; -} - const char* PartitionWithoutSD::ascii_fingerprint = "D79FA44499888D0E50B5625E0C536DEA"; const uint8_t PartitionWithoutSD::binary_fingerprint[16] = {0xD7,0x9F,0xA4,0x44,0x99,0x88,0x8D,0x0E,0x50,0xB5,0x62,0x5E,0x0C,0x53,0x6D,0xEA}; @@ -4633,14 +3345,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 _size185; + ::apache::thrift::protocol::TType _etype188; + xfer += iprot->readListBegin(_etype188, _size185); + this->values.resize(_size185); + uint32_t _i189; + for (_i189 = 0; _i189 < _size185; ++_i189) { - xfer += iprot->readString(this->values[_i239]); + xfer += iprot->readString(this->values[_i189]); } xfer += iprot->readListEnd(); } @@ -4677,17 +3389,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 _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) { - std::string _key245; - xfer += iprot->readString(_key245); - std::string& _val246 = this->parameters[_key245]; - xfer += iprot->readString(_val246); + std::string _key195; + xfer += iprot->readString(_key195); + std::string& _val196 = this->parameters[_key195]; + xfer += iprot->readString(_val196); } xfer += iprot->readMapEnd(); } @@ -4718,16 +3430,15 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t PartitionWithoutSD::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("PartitionWithoutSD"); 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 _iter197; + for (_iter197 = this->values.begin(); _iter197 != this->values.end(); ++_iter197) { - xfer += oprot->writeString((*_iter247)); + xfer += oprot->writeString((*_iter197)); } xfer += oprot->writeListEnd(); } @@ -4748,11 +3459,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 _iter198; + for (_iter198 = this->parameters.begin(); _iter198 != this->parameters.end(); ++_iter198) { - xfer += oprot->writeString(_iter248->first); - xfer += oprot->writeString(_iter248->second); + xfer += oprot->writeString(_iter198->first); + xfer += oprot->writeString(_iter198->second); } xfer += oprot->writeMapEnd(); } @@ -4765,7 +3476,6 @@ uint32_t PartitionWithoutSD::write(::apache::thrift::protocol::TProtocol* oprot) } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -4780,51 +3490,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const PartitionWithoutSD& obj) { - using apache::thrift::to_string; - out << "PartitionWithoutSD("; - out << "values=" << to_string(obj.values); - out << ", " << "createTime=" << to_string(obj.createTime); - out << ", " << "lastAccessTime=" << to_string(obj.lastAccessTime); - out << ", " << "relativePath=" << to_string(obj.relativePath); - out << ", " << "parameters=" << to_string(obj.parameters); - out << ", " << "privileges="; (obj.__isset.privileges ? (out << to_string(obj.privileges)) : (out << "")); - out << ")"; - return out; -} - - -PartitionSpecWithSharedSD::~PartitionSpecWithSharedSD() throw() { -} - - -void PartitionSpecWithSharedSD::__set_partitions(const std::vector & val) { - this->partitions = val; -} - -void PartitionSpecWithSharedSD::__set_sd(const StorageDescriptor& val) { - this->sd = val; -} - const char* PartitionSpecWithSharedSD::ascii_fingerprint = "7BEE9305B42DCD083FF06BEE6DDC61CF"; const uint8_t PartitionSpecWithSharedSD::binary_fingerprint[16] = {0x7B,0xEE,0x93,0x05,0xB4,0x2D,0xCD,0x08,0x3F,0xF0,0x6B,0xEE,0x6D,0xDC,0x61,0xCF}; @@ -4852,14 +3517,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 _size199; + ::apache::thrift::protocol::TType _etype202; + xfer += iprot->readListBegin(_etype202, _size199); + this->partitions.resize(_size199); + uint32_t _i203; + for (_i203 = 0; _i203 < _size199; ++_i203) { - xfer += this->partitions[_i255].read(iprot); + xfer += this->partitions[_i203].read(iprot); } xfer += iprot->readListEnd(); } @@ -4890,16 +3555,15 @@ uint32_t PartitionSpecWithSharedSD::read(::apache::thrift::protocol::TProtocol* uint32_t PartitionSpecWithSharedSD::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("PartitionSpecWithSharedSD"); 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 _iter204; + for (_iter204 = this->partitions.begin(); _iter204 != this->partitions.end(); ++_iter204) { - xfer += (*_iter256).write(oprot); + xfer += (*_iter204).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4911,7 +3575,6 @@ uint32_t PartitionSpecWithSharedSD::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -4922,35 +3585,6 @@ 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::operator=(const PartitionSpecWithSharedSD& other258) { - partitions = other258.partitions; - sd = other258.sd; - __isset = other258.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const PartitionSpecWithSharedSD& obj) { - using apache::thrift::to_string; - out << "PartitionSpecWithSharedSD("; - out << "partitions=" << to_string(obj.partitions); - out << ", " << "sd=" << to_string(obj.sd); - out << ")"; - return out; -} - - -PartitionListComposingSpec::~PartitionListComposingSpec() throw() { -} - - -void PartitionListComposingSpec::__set_partitions(const std::vector & val) { - this->partitions = val; -} - const char* PartitionListComposingSpec::ascii_fingerprint = "A048235CB9A257C8A74E3691BEFE0674"; const uint8_t PartitionListComposingSpec::binary_fingerprint[16] = {0xA0,0x48,0x23,0x5C,0xB9,0xA2,0x57,0xC8,0xA7,0x4E,0x36,0x91,0xBE,0xFE,0x06,0x74}; @@ -4978,14 +3612,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 _size205; + ::apache::thrift::protocol::TType _etype208; + xfer += iprot->readListBegin(_etype208, _size205); + this->partitions.resize(_size205); + uint32_t _i209; + for (_i209 = 0; _i209 < _size205; ++_i209) { - xfer += this->partitions[_i263].read(iprot); + xfer += this->partitions[_i209].read(iprot); } xfer += iprot->readListEnd(); } @@ -5008,16 +3642,15 @@ uint32_t PartitionListComposingSpec::read(::apache::thrift::protocol::TProtocol* uint32_t PartitionListComposingSpec::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("PartitionListComposingSpec"); 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 _iter210; + for (_iter210 = this->partitions.begin(); _iter210 != this->partitions.end(); ++_iter210) { - xfer += (*_iter264).write(oprot); + xfer += (*_iter210).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5025,7 +3658,6 @@ uint32_t PartitionListComposingSpec::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5035,50 +3667,6 @@ void swap(PartitionListComposingSpec &a, PartitionListComposingSpec &b) { swap(a.__isset, b.__isset); } -PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other265) { - partitions = other265.partitions; - __isset = other265.__isset; -} -PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other266) { - partitions = other266.partitions; - __isset = other266.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const PartitionListComposingSpec& obj) { - using apache::thrift::to_string; - out << "PartitionListComposingSpec("; - out << "partitions=" << to_string(obj.partitions); - out << ")"; - return out; -} - - -PartitionSpec::~PartitionSpec() throw() { -} - - -void PartitionSpec::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void PartitionSpec::__set_tableName(const std::string& val) { - this->tableName = val; -} - -void PartitionSpec::__set_rootPath(const std::string& val) { - this->rootPath = val; -} - -void PartitionSpec::__set_sharedSDPartitionSpec(const PartitionSpecWithSharedSD& val) { - this->sharedSDPartitionSpec = val; -__isset.sharedSDPartitionSpec = true; -} - -void PartitionSpec::__set_partitionList(const PartitionListComposingSpec& val) { - this->partitionList = val; -__isset.partitionList = true; -} - const char* PartitionSpec::ascii_fingerprint = "C3F548C24D072CF6422F25096143E3E8"; const uint8_t PartitionSpec::binary_fingerprint[16] = {0xC3,0xF5,0x48,0xC2,0x4D,0x07,0x2C,0xF6,0x42,0x2F,0x25,0x09,0x61,0x43,0xE3,0xE8}; @@ -5156,7 +3744,6 @@ uint32_t PartitionSpec::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t PartitionSpec::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("PartitionSpec"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -5183,7 +3770,6 @@ uint32_t PartitionSpec::write(::apache::thrift::protocol::TProtocol* oprot) cons } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5197,80 +3783,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const PartitionSpec& obj) { - using apache::thrift::to_string; - out << "PartitionSpec("; - out << "dbName=" << to_string(obj.dbName); - out << ", " << "tableName=" << to_string(obj.tableName); - out << ", " << "rootPath=" << to_string(obj.rootPath); - out << ", " << "sharedSDPartitionSpec="; (obj.__isset.sharedSDPartitionSpec ? (out << to_string(obj.sharedSDPartitionSpec)) : (out << "")); - out << ", " << "partitionList="; (obj.__isset.partitionList ? (out << to_string(obj.partitionList)) : (out << "")); - out << ")"; - return out; -} - - -Index::~Index() throw() { -} - - -void Index::__set_indexName(const std::string& val) { - this->indexName = val; -} - -void Index::__set_indexHandlerClass(const std::string& val) { - this->indexHandlerClass = val; -} - -void Index::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void Index::__set_origTableName(const std::string& val) { - this->origTableName = val; -} - -void Index::__set_createTime(const int32_t val) { - this->createTime = val; -} - -void Index::__set_lastAccessTime(const int32_t val) { - this->lastAccessTime = val; -} - -void Index::__set_indexTableName(const std::string& val) { - this->indexTableName = val; -} - -void Index::__set_sd(const StorageDescriptor& val) { - this->sd = val; -} - -void Index::__set_parameters(const std::map & val) { - this->parameters = val; -} - -void Index::__set_deferredRebuild(const bool val) { - this->deferredRebuild = val; -} - const char* Index::ascii_fingerprint = "09EEF655216AC81802850988D6C470A6"; const uint8_t Index::binary_fingerprint[16] = {0x09,0xEE,0xF6,0x55,0x21,0x6A,0xC8,0x18,0x02,0x85,0x09,0x88,0xD6,0xC4,0x70,0xA6}; @@ -5362,17 +3874,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 _size211; + ::apache::thrift::protocol::TType _ktype212; + ::apache::thrift::protocol::TType _vtype213; + xfer += iprot->readMapBegin(_ktype212, _vtype213, _size211); + uint32_t _i215; + for (_i215 = 0; _i215 < _size211; ++_i215) { - std::string _key274; - xfer += iprot->readString(_key274); - std::string& _val275 = this->parameters[_key274]; - xfer += iprot->readString(_val275); + std::string _key216; + xfer += iprot->readString(_key216); + std::string& _val217 = this->parameters[_key216]; + xfer += iprot->readString(_val217); } xfer += iprot->readMapEnd(); } @@ -5403,7 +3915,6 @@ uint32_t Index::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Index::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Index"); xfer += oprot->writeFieldBegin("indexName", ::apache::thrift::protocol::T_STRING, 1); @@ -5441,11 +3952,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 _iter218; + for (_iter218 = this->parameters.begin(); _iter218 != this->parameters.end(); ++_iter218) { - xfer += oprot->writeString(_iter276->first); - xfer += oprot->writeString(_iter276->second); + xfer += oprot->writeString(_iter218->first); + xfer += oprot->writeString(_iter218->second); } xfer += oprot->writeMapEnd(); } @@ -5457,7 +3968,6 @@ uint32_t Index::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5476,67 +3986,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Index& obj) { - using apache::thrift::to_string; - out << "Index("; - out << "indexName=" << to_string(obj.indexName); - out << ", " << "indexHandlerClass=" << to_string(obj.indexHandlerClass); - out << ", " << "dbName=" << to_string(obj.dbName); - out << ", " << "origTableName=" << to_string(obj.origTableName); - out << ", " << "createTime=" << to_string(obj.createTime); - out << ", " << "lastAccessTime=" << to_string(obj.lastAccessTime); - out << ", " << "indexTableName=" << to_string(obj.indexTableName); - out << ", " << "sd=" << to_string(obj.sd); - out << ", " << "parameters=" << to_string(obj.parameters); - out << ", " << "deferredRebuild=" << to_string(obj.deferredRebuild); - out << ")"; - return out; -} - - -BooleanColumnStatsData::~BooleanColumnStatsData() throw() { -} - - -void BooleanColumnStatsData::__set_numTrues(const int64_t val) { - this->numTrues = val; -} - -void BooleanColumnStatsData::__set_numFalses(const int64_t val) { - this->numFalses = val; -} - -void BooleanColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; -} - const char* BooleanColumnStatsData::ascii_fingerprint = "EA2D65F1E0BB78760205682082304B41"; const uint8_t BooleanColumnStatsData::binary_fingerprint[16] = {0xEA,0x2D,0x65,0xF1,0xE0,0xBB,0x78,0x76,0x02,0x05,0x68,0x20,0x82,0x30,0x4B,0x41}; @@ -5607,7 +4056,6 @@ uint32_t BooleanColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipr uint32_t BooleanColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("BooleanColumnStatsData"); xfer += oprot->writeFieldBegin("numTrues", ::apache::thrift::protocol::T_I64, 1); @@ -5624,7 +4072,6 @@ uint32_t BooleanColumnStatsData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5635,50 +4082,6 @@ void swap(BooleanColumnStatsData &a, BooleanColumnStatsData &b) { swap(a.numNulls, b.numNulls); } -BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other279) { - numTrues = other279.numTrues; - numFalses = other279.numFalses; - numNulls = other279.numNulls; -} -BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other280) { - numTrues = other280.numTrues; - numFalses = other280.numFalses; - numNulls = other280.numNulls; - return *this; -} -std::ostream& operator<<(std::ostream& out, const BooleanColumnStatsData& obj) { - using apache::thrift::to_string; - out << "BooleanColumnStatsData("; - out << "numTrues=" << to_string(obj.numTrues); - out << ", " << "numFalses=" << to_string(obj.numFalses); - out << ", " << "numNulls=" << to_string(obj.numNulls); - out << ")"; - return out; -} - - -DoubleColumnStatsData::~DoubleColumnStatsData() throw() { -} - - -void DoubleColumnStatsData::__set_lowValue(const double val) { - this->lowValue = val; -__isset.lowValue = true; -} - -void DoubleColumnStatsData::__set_highValue(const double val) { - this->highValue = val; -__isset.highValue = true; -} - -void DoubleColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; -} - -void DoubleColumnStatsData::__set_numDVs(const int64_t val) { - this->numDVs = val; -} - const char* DoubleColumnStatsData::ascii_fingerprint = "DA7C011321D74C48396AA002E61A0CBB"; const uint8_t DoubleColumnStatsData::binary_fingerprint[16] = {0xDA,0x7C,0x01,0x13,0x21,0xD7,0x4C,0x48,0x39,0x6A,0xA0,0x02,0xE6,0x1A,0x0C,0xBB}; @@ -5754,7 +4157,6 @@ uint32_t DoubleColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipro uint32_t DoubleColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("DoubleColumnStatsData"); if (this->__isset.lowValue) { @@ -5777,7 +4179,6 @@ uint32_t DoubleColumnStatsData::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5790,55 +4191,6 @@ 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; - __isset = other281.__isset; -} -DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other282) { - lowValue = other282.lowValue; - highValue = other282.highValue; - numNulls = other282.numNulls; - numDVs = other282.numDVs; - __isset = other282.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const DoubleColumnStatsData& obj) { - using apache::thrift::to_string; - out << "DoubleColumnStatsData("; - out << "lowValue="; (obj.__isset.lowValue ? (out << to_string(obj.lowValue)) : (out << "")); - out << ", " << "highValue="; (obj.__isset.highValue ? (out << to_string(obj.highValue)) : (out << "")); - out << ", " << "numNulls=" << to_string(obj.numNulls); - out << ", " << "numDVs=" << to_string(obj.numDVs); - out << ")"; - return out; -} - - -LongColumnStatsData::~LongColumnStatsData() throw() { -} - - -void LongColumnStatsData::__set_lowValue(const int64_t val) { - this->lowValue = val; -__isset.lowValue = true; -} - -void LongColumnStatsData::__set_highValue(const int64_t val) { - this->highValue = val; -__isset.highValue = true; -} - -void LongColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; -} - -void LongColumnStatsData::__set_numDVs(const int64_t val) { - this->numDVs = val; -} - const char* LongColumnStatsData::ascii_fingerprint = "E685FC220B24E3B8B93604790DCB9AEA"; const uint8_t LongColumnStatsData::binary_fingerprint[16] = {0xE6,0x85,0xFC,0x22,0x0B,0x24,0xE3,0xB8,0xB9,0x36,0x04,0x79,0x0D,0xCB,0x9A,0xEA}; @@ -5914,7 +4266,6 @@ uint32_t LongColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t LongColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("LongColumnStatsData"); if (this->__isset.lowValue) { @@ -5937,7 +4288,6 @@ uint32_t LongColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5950,53 +4300,6 @@ 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; - __isset = other283.__isset; -} -LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other284) { - lowValue = other284.lowValue; - highValue = other284.highValue; - numNulls = other284.numNulls; - numDVs = other284.numDVs; - __isset = other284.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const LongColumnStatsData& obj) { - using apache::thrift::to_string; - out << "LongColumnStatsData("; - out << "lowValue="; (obj.__isset.lowValue ? (out << to_string(obj.lowValue)) : (out << "")); - out << ", " << "highValue="; (obj.__isset.highValue ? (out << to_string(obj.highValue)) : (out << "")); - out << ", " << "numNulls=" << to_string(obj.numNulls); - out << ", " << "numDVs=" << to_string(obj.numDVs); - out << ")"; - return out; -} - - -StringColumnStatsData::~StringColumnStatsData() throw() { -} - - -void StringColumnStatsData::__set_maxColLen(const int64_t val) { - this->maxColLen = val; -} - -void StringColumnStatsData::__set_avgColLen(const double val) { - this->avgColLen = val; -} - -void StringColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; -} - -void StringColumnStatsData::__set_numDVs(const int64_t val) { - this->numDVs = val; -} - const char* StringColumnStatsData::ascii_fingerprint = "D017B08C3DF12C3AB98788B2E67DAAB3"; const uint8_t StringColumnStatsData::binary_fingerprint[16] = {0xD0,0x17,0xB0,0x8C,0x3D,0xF1,0x2C,0x3A,0xB9,0x87,0x88,0xB2,0xE6,0x7D,0xAA,0xB3}; @@ -6078,7 +4381,6 @@ uint32_t StringColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipro uint32_t StringColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("StringColumnStatsData"); xfer += oprot->writeFieldBegin("maxColLen", ::apache::thrift::protocol::T_I64, 1); @@ -6099,7 +4401,6 @@ uint32_t StringColumnStatsData::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6111,47 +4412,6 @@ void swap(StringColumnStatsData &a, StringColumnStatsData &b) { swap(a.numDVs, b.numDVs); } -StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other285) { - maxColLen = other285.maxColLen; - avgColLen = other285.avgColLen; - numNulls = other285.numNulls; - numDVs = other285.numDVs; -} -StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other286) { - maxColLen = other286.maxColLen; - avgColLen = other286.avgColLen; - numNulls = other286.numNulls; - numDVs = other286.numDVs; - return *this; -} -std::ostream& operator<<(std::ostream& out, const StringColumnStatsData& obj) { - using apache::thrift::to_string; - out << "StringColumnStatsData("; - out << "maxColLen=" << to_string(obj.maxColLen); - out << ", " << "avgColLen=" << to_string(obj.avgColLen); - out << ", " << "numNulls=" << to_string(obj.numNulls); - out << ", " << "numDVs=" << to_string(obj.numDVs); - out << ")"; - return out; -} - - -BinaryColumnStatsData::~BinaryColumnStatsData() throw() { -} - - -void BinaryColumnStatsData::__set_maxColLen(const int64_t val) { - this->maxColLen = val; -} - -void BinaryColumnStatsData::__set_avgColLen(const double val) { - this->avgColLen = val; -} - -void BinaryColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; -} - const char* BinaryColumnStatsData::ascii_fingerprint = "22B0CB67183FCDB945892B9974518D06"; const uint8_t BinaryColumnStatsData::binary_fingerprint[16] = {0x22,0xB0,0xCB,0x67,0x18,0x3F,0xCD,0xB9,0x45,0x89,0x2B,0x99,0x74,0x51,0x8D,0x06}; @@ -6222,7 +4482,6 @@ uint32_t BinaryColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipro uint32_t BinaryColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("BinaryColumnStatsData"); xfer += oprot->writeFieldBegin("maxColLen", ::apache::thrift::protocol::T_I64, 1); @@ -6239,7 +4498,6 @@ uint32_t BinaryColumnStatsData::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6250,40 +4508,6 @@ void swap(BinaryColumnStatsData &a, BinaryColumnStatsData &b) { swap(a.numNulls, b.numNulls); } -BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other287) { - maxColLen = other287.maxColLen; - avgColLen = other287.avgColLen; - numNulls = other287.numNulls; -} -BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other288) { - maxColLen = other288.maxColLen; - avgColLen = other288.avgColLen; - numNulls = other288.numNulls; - return *this; -} -std::ostream& operator<<(std::ostream& out, const BinaryColumnStatsData& obj) { - using apache::thrift::to_string; - out << "BinaryColumnStatsData("; - out << "maxColLen=" << to_string(obj.maxColLen); - out << ", " << "avgColLen=" << to_string(obj.avgColLen); - out << ", " << "numNulls=" << to_string(obj.numNulls); - out << ")"; - return out; -} - - -Decimal::~Decimal() throw() { -} - - -void Decimal::__set_unscaled(const std::string& val) { - this->unscaled = val; -} - -void Decimal::__set_scale(const int16_t val) { - this->scale = val; -} - const char* Decimal::ascii_fingerprint = "C4DDF6759F9B17C5C380806CE743DE8E"; const uint8_t Decimal::binary_fingerprint[16] = {0xC4,0xDD,0xF6,0x75,0x9F,0x9B,0x17,0xC5,0xC3,0x80,0x80,0x6C,0xE7,0x43,0xDE,0x8E}; @@ -6343,68 +4567,25 @@ uint32_t Decimal::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Decimal::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Decimal"); xfer += oprot->writeFieldBegin("unscaled", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeBinary(this->unscaled); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("scale", ::apache::thrift::protocol::T_I16, 3); - xfer += oprot->writeI16(this->scale); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - -void swap(Decimal &a, Decimal &b) { - using ::std::swap; - swap(a.unscaled, b.unscaled); - swap(a.scale, b.scale); -} - -Decimal::Decimal(const Decimal& other289) { - unscaled = other289.unscaled; - scale = other289.scale; -} -Decimal& Decimal::operator=(const Decimal& other290) { - unscaled = other290.unscaled; - scale = other290.scale; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Decimal& obj) { - using apache::thrift::to_string; - out << "Decimal("; - out << "unscaled=" << to_string(obj.unscaled); - out << ", " << "scale=" << to_string(obj.scale); - out << ")"; - return out; -} - - -DecimalColumnStatsData::~DecimalColumnStatsData() throw() { -} - - -void DecimalColumnStatsData::__set_lowValue(const Decimal& val) { - this->lowValue = val; -__isset.lowValue = true; -} - -void DecimalColumnStatsData::__set_highValue(const Decimal& val) { - this->highValue = val; -__isset.highValue = true; -} + xfer += oprot->writeFieldBegin("scale", ::apache::thrift::protocol::T_I16, 3); + xfer += oprot->writeI16(this->scale); + xfer += oprot->writeFieldEnd(); -void DecimalColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void DecimalColumnStatsData::__set_numDVs(const int64_t val) { - this->numDVs = val; +void swap(Decimal &a, Decimal &b) { + using ::std::swap; + swap(a.unscaled, b.unscaled); + swap(a.scale, b.scale); } const char* DecimalColumnStatsData::ascii_fingerprint = "B6D47E7A28922BFA93FE05E9F1B04748"; @@ -6482,7 +4663,6 @@ uint32_t DecimalColumnStatsData::read(::apache::thrift::protocol::TProtocol* ipr uint32_t DecimalColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("DecimalColumnStatsData"); if (this->__isset.lowValue) { @@ -6505,7 +4685,6 @@ uint32_t DecimalColumnStatsData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6518,41 +4697,6 @@ 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; - __isset = other291.__isset; -} -DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other292) { - lowValue = other292.lowValue; - highValue = other292.highValue; - numNulls = other292.numNulls; - numDVs = other292.numDVs; - __isset = other292.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const DecimalColumnStatsData& obj) { - using apache::thrift::to_string; - out << "DecimalColumnStatsData("; - out << "lowValue="; (obj.__isset.lowValue ? (out << to_string(obj.lowValue)) : (out << "")); - out << ", " << "highValue="; (obj.__isset.highValue ? (out << to_string(obj.highValue)) : (out << "")); - out << ", " << "numNulls=" << to_string(obj.numNulls); - out << ", " << "numDVs=" << to_string(obj.numDVs); - out << ")"; - return out; -} - - -Date::~Date() throw() { -} - - -void Date::__set_daysSinceEpoch(const int64_t val) { - this->daysSinceEpoch = val; -} - const char* Date::ascii_fingerprint = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; const uint8_t Date::binary_fingerprint[16] = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; @@ -6601,7 +4745,6 @@ uint32_t Date::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Date::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Date"); xfer += oprot->writeFieldBegin("daysSinceEpoch", ::apache::thrift::protocol::T_I64, 1); @@ -6610,7 +4753,6 @@ uint32_t Date::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6619,44 +4761,6 @@ void swap(Date &a, Date &b) { swap(a.daysSinceEpoch, b.daysSinceEpoch); } -Date::Date(const Date& other293) { - daysSinceEpoch = other293.daysSinceEpoch; -} -Date& Date::operator=(const Date& other294) { - daysSinceEpoch = other294.daysSinceEpoch; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Date& obj) { - using apache::thrift::to_string; - out << "Date("; - out << "daysSinceEpoch=" << to_string(obj.daysSinceEpoch); - out << ")"; - return out; -} - - -DateColumnStatsData::~DateColumnStatsData() throw() { -} - - -void DateColumnStatsData::__set_lowValue(const Date& val) { - this->lowValue = val; -__isset.lowValue = true; -} - -void DateColumnStatsData::__set_highValue(const Date& val) { - this->highValue = val; -__isset.highValue = true; -} - -void DateColumnStatsData::__set_numNulls(const int64_t val) { - this->numNulls = val; -} - -void DateColumnStatsData::__set_numDVs(const int64_t val) { - this->numDVs = val; -} - const char* DateColumnStatsData::ascii_fingerprint = "D0719F3BBA8248297BB5287552897F59"; const uint8_t DateColumnStatsData::binary_fingerprint[16] = {0xD0,0x71,0x9F,0x3B,0xBA,0x82,0x48,0x29,0x7B,0xB5,0x28,0x75,0x52,0x89,0x7F,0x59}; @@ -6732,7 +4836,6 @@ uint32_t DateColumnStatsData::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t DateColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("DateColumnStatsData"); if (this->__isset.lowValue) { @@ -6755,7 +4858,6 @@ uint32_t DateColumnStatsData::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6768,65 +4870,6 @@ 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; - __isset = other295.__isset; -} -DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other296) { - lowValue = other296.lowValue; - highValue = other296.highValue; - numNulls = other296.numNulls; - numDVs = other296.numDVs; - __isset = other296.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const DateColumnStatsData& obj) { - using apache::thrift::to_string; - out << "DateColumnStatsData("; - out << "lowValue="; (obj.__isset.lowValue ? (out << to_string(obj.lowValue)) : (out << "")); - out << ", " << "highValue="; (obj.__isset.highValue ? (out << to_string(obj.highValue)) : (out << "")); - out << ", " << "numNulls=" << to_string(obj.numNulls); - out << ", " << "numDVs=" << to_string(obj.numDVs); - out << ")"; - return out; -} - - -ColumnStatisticsData::~ColumnStatisticsData() throw() { -} - - -void ColumnStatisticsData::__set_booleanStats(const BooleanColumnStatsData& val) { - this->booleanStats = val; -} - -void ColumnStatisticsData::__set_longStats(const LongColumnStatsData& val) { - this->longStats = val; -} - -void ColumnStatisticsData::__set_doubleStats(const DoubleColumnStatsData& val) { - this->doubleStats = val; -} - -void ColumnStatisticsData::__set_stringStats(const StringColumnStatsData& val) { - this->stringStats = val; -} - -void ColumnStatisticsData::__set_binaryStats(const BinaryColumnStatsData& val) { - this->binaryStats = val; -} - -void ColumnStatisticsData::__set_decimalStats(const DecimalColumnStatsData& val) { - this->decimalStats = val; -} - -void ColumnStatisticsData::__set_dateStats(const DateColumnStatsData& val) { - this->dateStats = val; -} - const char* ColumnStatisticsData::ascii_fingerprint = "15E449CA15A23E37F2D54C31ACA52106"; const uint8_t ColumnStatisticsData::binary_fingerprint[16] = {0x15,0xE4,0x49,0xCA,0x15,0xA2,0x3E,0x37,0xF2,0xD5,0x4C,0x31,0xAC,0xA5,0x21,0x06}; @@ -6920,7 +4963,6 @@ uint32_t ColumnStatisticsData::read(::apache::thrift::protocol::TProtocol* iprot uint32_t ColumnStatisticsData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ColumnStatisticsData"); xfer += oprot->writeFieldBegin("booleanStats", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6953,7 +4995,6 @@ uint32_t ColumnStatisticsData::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6969,58 +5010,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const ColumnStatisticsData& obj) { - using apache::thrift::to_string; - out << "ColumnStatisticsData("; - out << "booleanStats=" << to_string(obj.booleanStats); - out << ", " << "longStats=" << to_string(obj.longStats); - out << ", " << "doubleStats=" << to_string(obj.doubleStats); - out << ", " << "stringStats=" << to_string(obj.stringStats); - out << ", " << "binaryStats=" << to_string(obj.binaryStats); - out << ", " << "decimalStats=" << to_string(obj.decimalStats); - out << ", " << "dateStats=" << to_string(obj.dateStats); - out << ")"; - return out; -} - - -ColumnStatisticsObj::~ColumnStatisticsObj() throw() { -} - - -void ColumnStatisticsObj::__set_colName(const std::string& val) { - this->colName = val; -} - -void ColumnStatisticsObj::__set_colType(const std::string& val) { - this->colType = val; -} - -void ColumnStatisticsObj::__set_statsData(const ColumnStatisticsData& val) { - this->statsData = val; -} - const char* ColumnStatisticsObj::ascii_fingerprint = "A82BA819C9FFEDDEBC0D50F6F4E46534"; const uint8_t ColumnStatisticsObj::binary_fingerprint[16] = {0xA8,0x2B,0xA8,0x19,0xC9,0xFF,0xED,0xDE,0xBC,0x0D,0x50,0xF6,0xF4,0xE4,0x65,0x34}; @@ -7091,7 +5080,6 @@ uint32_t ColumnStatisticsObj::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t ColumnStatisticsObj::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ColumnStatisticsObj"); xfer += oprot->writeFieldBegin("colName", ::apache::thrift::protocol::T_STRING, 1); @@ -7108,7 +5096,6 @@ uint32_t ColumnStatisticsObj::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7119,54 +5106,6 @@ 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::operator=(const ColumnStatisticsObj& other300) { - colName = other300.colName; - colType = other300.colType; - statsData = other300.statsData; - return *this; -} -std::ostream& operator<<(std::ostream& out, const ColumnStatisticsObj& obj) { - using apache::thrift::to_string; - out << "ColumnStatisticsObj("; - out << "colName=" << to_string(obj.colName); - out << ", " << "colType=" << to_string(obj.colType); - out << ", " << "statsData=" << to_string(obj.statsData); - out << ")"; - return out; -} - - -ColumnStatisticsDesc::~ColumnStatisticsDesc() throw() { -} - - -void ColumnStatisticsDesc::__set_isTblLevel(const bool val) { - this->isTblLevel = val; -} - -void ColumnStatisticsDesc::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void ColumnStatisticsDesc::__set_tableName(const std::string& val) { - this->tableName = val; -} - -void ColumnStatisticsDesc::__set_partName(const std::string& val) { - this->partName = val; -__isset.partName = true; -} - -void ColumnStatisticsDesc::__set_lastAnalyzed(const int64_t val) { - this->lastAnalyzed = val; -__isset.lastAnalyzed = true; -} - const char* ColumnStatisticsDesc::ascii_fingerprint = "261759FF6F8FAB53F941453007FE18CB"; const uint8_t ColumnStatisticsDesc::binary_fingerprint[16] = {0x26,0x17,0x59,0xFF,0x6F,0x8F,0xAB,0x53,0xF9,0x41,0x45,0x30,0x07,0xFE,0x18,0xCB}; @@ -7253,7 +5192,6 @@ uint32_t ColumnStatisticsDesc::read(::apache::thrift::protocol::TProtocol* iprot uint32_t ColumnStatisticsDesc::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ColumnStatisticsDesc"); xfer += oprot->writeFieldBegin("isTblLevel", ::apache::thrift::protocol::T_BOOL, 1); @@ -7280,7 +5218,6 @@ uint32_t ColumnStatisticsDesc::write(::apache::thrift::protocol::TProtocol* opro } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7294,48 +5231,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const ColumnStatisticsDesc& obj) { - using apache::thrift::to_string; - out << "ColumnStatisticsDesc("; - out << "isTblLevel=" << to_string(obj.isTblLevel); - out << ", " << "dbName=" << to_string(obj.dbName); - out << ", " << "tableName=" << to_string(obj.tableName); - out << ", " << "partName="; (obj.__isset.partName ? (out << to_string(obj.partName)) : (out << "")); - out << ", " << "lastAnalyzed="; (obj.__isset.lastAnalyzed ? (out << to_string(obj.lastAnalyzed)) : (out << "")); - out << ")"; - return out; -} - - -ColumnStatistics::~ColumnStatistics() throw() { -} - - -void ColumnStatistics::__set_statsDesc(const ColumnStatisticsDesc& val) { - this->statsDesc = val; -} - -void ColumnStatistics::__set_statsObj(const std::vector & val) { - this->statsObj = val; -} - const char* ColumnStatistics::ascii_fingerprint = "8A64D0A67FFD3A372726A320B3913D5A"; const uint8_t ColumnStatistics::binary_fingerprint[16] = {0x8A,0x64,0xD0,0xA6,0x7F,0xFD,0x3A,0x37,0x27,0x26,0xA3,0x20,0xB3,0x91,0x3D,0x5A}; @@ -7373,14 +5268,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 _size219; + ::apache::thrift::protocol::TType _etype222; + xfer += iprot->readListBegin(_etype222, _size219); + this->statsObj.resize(_size219); + uint32_t _i223; + for (_i223 = 0; _i223 < _size219; ++_i223) { - xfer += this->statsObj[_i307].read(iprot); + xfer += this->statsObj[_i223].read(iprot); } xfer += iprot->readListEnd(); } @@ -7407,7 +5302,6 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t ColumnStatistics::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ColumnStatistics"); xfer += oprot->writeFieldBegin("statsDesc", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7417,10 +5311,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 _iter224; + for (_iter224 = this->statsObj.begin(); _iter224 != this->statsObj.end(); ++_iter224) { - xfer += (*_iter308).write(oprot); + xfer += (*_iter224).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7428,7 +5322,6 @@ uint32_t ColumnStatistics::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7438,37 +5331,6 @@ void swap(ColumnStatistics &a, ColumnStatistics &b) { swap(a.statsObj, b.statsObj); } -ColumnStatistics::ColumnStatistics(const ColumnStatistics& other309) { - statsDesc = other309.statsDesc; - statsObj = other309.statsObj; -} -ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other310) { - statsDesc = other310.statsDesc; - statsObj = other310.statsObj; - return *this; -} -std::ostream& operator<<(std::ostream& out, const ColumnStatistics& obj) { - using apache::thrift::to_string; - out << "ColumnStatistics("; - out << "statsDesc=" << to_string(obj.statsDesc); - out << ", " << "statsObj=" << to_string(obj.statsObj); - out << ")"; - return out; -} - - -AggrStats::~AggrStats() throw() { -} - - -void AggrStats::__set_colStats(const std::vector & val) { - this->colStats = val; -} - -void AggrStats::__set_partsFound(const int64_t val) { - this->partsFound = val; -} - const char* AggrStats::ascii_fingerprint = "1FC765A3AB2954591C14B0D946778213"; const uint8_t AggrStats::binary_fingerprint[16] = {0x1F,0xC7,0x65,0xA3,0xAB,0x29,0x54,0x59,0x1C,0x14,0xB0,0xD9,0x46,0x77,0x82,0x13}; @@ -7498,14 +5360,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 _size225; + ::apache::thrift::protocol::TType _etype228; + xfer += iprot->readListBegin(_etype228, _size225); + this->colStats.resize(_size225); + uint32_t _i229; + for (_i229 = 0; _i229 < _size225; ++_i229) { - xfer += this->colStats[_i315].read(iprot); + xfer += this->colStats[_i229].read(iprot); } xfer += iprot->readListEnd(); } @@ -7540,16 +5402,15 @@ uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t AggrStats::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("AggrStats"); 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 _iter230; + for (_iter230 = this->colStats.begin(); _iter230 != this->colStats.end(); ++_iter230) { - xfer += (*_iter316).write(oprot); + xfer += (*_iter230).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7561,7 +5422,6 @@ uint32_t AggrStats::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7571,33 +5431,6 @@ void swap(AggrStats &a, AggrStats &b) { swap(a.partsFound, b.partsFound); } -AggrStats::AggrStats(const AggrStats& other317) { - colStats = other317.colStats; - partsFound = other317.partsFound; -} -AggrStats& AggrStats::operator=(const AggrStats& other318) { - colStats = other318.colStats; - partsFound = other318.partsFound; - return *this; -} -std::ostream& operator<<(std::ostream& out, const AggrStats& obj) { - using apache::thrift::to_string; - out << "AggrStats("; - out << "colStats=" << to_string(obj.colStats); - out << ", " << "partsFound=" << to_string(obj.partsFound); - out << ")"; - return out; -} - - -SetPartitionsStatsRequest::~SetPartitionsStatsRequest() throw() { -} - - -void SetPartitionsStatsRequest::__set_colStats(const std::vector & val) { - this->colStats = val; -} - const char* SetPartitionsStatsRequest::ascii_fingerprint = "8BCBF2CE9E942D0FB7D8F4ED57D8DC27"; const uint8_t SetPartitionsStatsRequest::binary_fingerprint[16] = {0x8B,0xCB,0xF2,0xCE,0x9E,0x94,0x2D,0x0F,0xB7,0xD8,0xF4,0xED,0x57,0xD8,0xDC,0x27}; @@ -7626,14 +5459,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 _size231; + ::apache::thrift::protocol::TType _etype234; + xfer += iprot->readListBegin(_etype234, _size231); + this->colStats.resize(_size231); + uint32_t _i235; + for (_i235 = 0; _i235 < _size231; ++_i235) { - xfer += this->colStats[_i323].read(iprot); + xfer += this->colStats[_i235].read(iprot); } xfer += iprot->readListEnd(); } @@ -7658,16 +5491,15 @@ uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* uint32_t SetPartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("SetPartitionsStatsRequest"); 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 _iter236; + for (_iter236 = this->colStats.begin(); _iter236 != this->colStats.end(); ++_iter236) { - xfer += (*_iter324).write(oprot); + xfer += (*_iter236).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7675,7 +5507,6 @@ uint32_t SetPartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7684,34 +5515,6 @@ void swap(SetPartitionsStatsRequest &a, SetPartitionsStatsRequest &b) { swap(a.colStats, b.colStats); } -SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other325) { - colStats = other325.colStats; -} -SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other326) { - colStats = other326.colStats; - return *this; -} -std::ostream& operator<<(std::ostream& out, const SetPartitionsStatsRequest& obj) { - using apache::thrift::to_string; - out << "SetPartitionsStatsRequest("; - out << "colStats=" << to_string(obj.colStats); - out << ")"; - return out; -} - - -Schema::~Schema() throw() { -} - - -void Schema::__set_fieldSchemas(const std::vector & val) { - this->fieldSchemas = val; -} - -void Schema::__set_properties(const std::map & val) { - this->properties = val; -} - const char* Schema::ascii_fingerprint = "5CFEE46C975F4E2368D905109B8E3B5B"; const uint8_t Schema::binary_fingerprint[16] = {0x5C,0xFE,0xE4,0x6C,0x97,0x5F,0x4E,0x23,0x68,0xD9,0x05,0x10,0x9B,0x8E,0x3B,0x5B}; @@ -7739,14 +5542,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 _size237; + ::apache::thrift::protocol::TType _etype240; + xfer += iprot->readListBegin(_etype240, _size237); + this->fieldSchemas.resize(_size237); + uint32_t _i241; + for (_i241 = 0; _i241 < _size237; ++_i241) { - xfer += this->fieldSchemas[_i331].read(iprot); + xfer += this->fieldSchemas[_i241].read(iprot); } xfer += iprot->readListEnd(); } @@ -7759,17 +5562,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 _size242; + ::apache::thrift::protocol::TType _ktype243; + ::apache::thrift::protocol::TType _vtype244; + xfer += iprot->readMapBegin(_ktype243, _vtype244, _size242); + uint32_t _i246; + for (_i246 = 0; _i246 < _size242; ++_i246) { - std::string _key337; - xfer += iprot->readString(_key337); - std::string& _val338 = this->properties[_key337]; - xfer += iprot->readString(_val338); + std::string _key247; + xfer += iprot->readString(_key247); + std::string& _val248 = this->properties[_key247]; + xfer += iprot->readString(_val248); } xfer += iprot->readMapEnd(); } @@ -7792,16 +5595,15 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Schema"); 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 _iter249; + for (_iter249 = this->fieldSchemas.begin(); _iter249 != this->fieldSchemas.end(); ++_iter249) { - xfer += (*_iter339).write(oprot); + xfer += (*_iter249).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7810,11 +5612,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 _iter250; + for (_iter250 = this->properties.begin(); _iter250 != this->properties.end(); ++_iter250) { - xfer += oprot->writeString(_iter340->first); - xfer += oprot->writeString(_iter340->second); + xfer += oprot->writeString(_iter250->first); + xfer += oprot->writeString(_iter250->second); } xfer += oprot->writeMapEnd(); } @@ -7822,7 +5624,6 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7833,35 +5634,6 @@ 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::operator=(const Schema& other342) { - fieldSchemas = other342.fieldSchemas; - properties = other342.properties; - __isset = other342.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Schema& obj) { - using apache::thrift::to_string; - out << "Schema("; - out << "fieldSchemas=" << to_string(obj.fieldSchemas); - out << ", " << "properties=" << to_string(obj.properties); - out << ")"; - return out; -} - - -EnvironmentContext::~EnvironmentContext() throw() { -} - - -void EnvironmentContext::__set_properties(const std::map & val) { - this->properties = val; -} - const char* EnvironmentContext::ascii_fingerprint = "5EA2D527ECA3BA20C77AFC023EE8C05F"; const uint8_t EnvironmentContext::binary_fingerprint[16] = {0x5E,0xA2,0xD5,0x27,0xEC,0xA3,0xBA,0x20,0xC7,0x7A,0xFC,0x02,0x3E,0xE8,0xC0,0x5F}; @@ -7889,17 +5661,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 _size251; + ::apache::thrift::protocol::TType _ktype252; + ::apache::thrift::protocol::TType _vtype253; + xfer += iprot->readMapBegin(_ktype252, _vtype253, _size251); + uint32_t _i255; + for (_i255 = 0; _i255 < _size251; ++_i255) { - std::string _key348; - xfer += iprot->readString(_key348); - std::string& _val349 = this->properties[_key348]; - xfer += iprot->readString(_val349); + std::string _key256; + xfer += iprot->readString(_key256); + std::string& _val257 = this->properties[_key256]; + xfer += iprot->readString(_val257); } xfer += iprot->readMapEnd(); } @@ -7922,17 +5694,16 @@ uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t EnvironmentContext::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("EnvironmentContext"); 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 _iter258; + for (_iter258 = this->properties.begin(); _iter258 != this->properties.end(); ++_iter258) { - xfer += oprot->writeString(_iter350->first); - xfer += oprot->writeString(_iter350->second); + xfer += oprot->writeString(_iter258->first); + xfer += oprot->writeString(_iter258->second); } xfer += oprot->writeMapEnd(); } @@ -7940,7 +5711,6 @@ uint32_t EnvironmentContext::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7950,36 +5720,6 @@ void swap(EnvironmentContext &a, EnvironmentContext &b) { swap(a.__isset, b.__isset); } -EnvironmentContext::EnvironmentContext(const EnvironmentContext& other351) { - properties = other351.properties; - __isset = other351.__isset; -} -EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other352) { - properties = other352.properties; - __isset = other352.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const EnvironmentContext& obj) { - using apache::thrift::to_string; - out << "EnvironmentContext("; - out << "properties=" << to_string(obj.properties); - out << ")"; - return out; -} - - -PartitionsByExprResult::~PartitionsByExprResult() throw() { -} - - -void PartitionsByExprResult::__set_partitions(const std::vector & val) { - this->partitions = val; -} - -void PartitionsByExprResult::__set_hasUnknownPartitions(const bool val) { - this->hasUnknownPartitions = val; -} - const char* PartitionsByExprResult::ascii_fingerprint = "40B789CC91B508FE36600A14E3F80425"; const uint8_t PartitionsByExprResult::binary_fingerprint[16] = {0x40,0xB7,0x89,0xCC,0x91,0xB5,0x08,0xFE,0x36,0x60,0x0A,0x14,0xE3,0xF8,0x04,0x25}; @@ -8009,14 +5749,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 _size259; + ::apache::thrift::protocol::TType _etype262; + xfer += iprot->readListBegin(_etype262, _size259); + this->partitions.resize(_size259); + uint32_t _i263; + for (_i263 = 0; _i263 < _size259; ++_i263) { - xfer += this->partitions[_i357].read(iprot); + xfer += this->partitions[_i263].read(iprot); } xfer += iprot->readListEnd(); } @@ -8051,16 +5791,15 @@ uint32_t PartitionsByExprResult::read(::apache::thrift::protocol::TProtocol* ipr uint32_t PartitionsByExprResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("PartitionsByExprResult"); 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 _iter264; + for (_iter264 = this->partitions.begin(); _iter264 != this->partitions.end(); ++_iter264) { - xfer += (*_iter358).write(oprot); + xfer += (*_iter264).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8072,7 +5811,6 @@ uint32_t PartitionsByExprResult::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8082,51 +5820,6 @@ void swap(PartitionsByExprResult &a, PartitionsByExprResult &b) { swap(a.hasUnknownPartitions, b.hasUnknownPartitions); } -PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other359) { - partitions = other359.partitions; - hasUnknownPartitions = other359.hasUnknownPartitions; -} -PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other360) { - partitions = other360.partitions; - hasUnknownPartitions = other360.hasUnknownPartitions; - return *this; -} -std::ostream& operator<<(std::ostream& out, const PartitionsByExprResult& obj) { - using apache::thrift::to_string; - out << "PartitionsByExprResult("; - out << "partitions=" << to_string(obj.partitions); - out << ", " << "hasUnknownPartitions=" << to_string(obj.hasUnknownPartitions); - out << ")"; - return out; -} - - -PartitionsByExprRequest::~PartitionsByExprRequest() throw() { -} - - -void PartitionsByExprRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void PartitionsByExprRequest::__set_tblName(const std::string& val) { - this->tblName = val; -} - -void PartitionsByExprRequest::__set_expr(const std::string& val) { - this->expr = val; -} - -void PartitionsByExprRequest::__set_defaultPartitionName(const std::string& val) { - this->defaultPartitionName = val; -__isset.defaultPartitionName = true; -} - -void PartitionsByExprRequest::__set_maxParts(const int16_t val) { - this->maxParts = val; -__isset.maxParts = true; -} - const char* PartitionsByExprRequest::ascii_fingerprint = "835944417A026FE6ABD0DF5A35BF52C5"; const uint8_t PartitionsByExprRequest::binary_fingerprint[16] = {0x83,0x59,0x44,0x41,0x7A,0x02,0x6F,0xE6,0xAB,0xD0,0xDF,0x5A,0x35,0xBF,0x52,0xC5}; @@ -8213,7 +5906,6 @@ uint32_t PartitionsByExprRequest::read(::apache::thrift::protocol::TProtocol* ip uint32_t PartitionsByExprRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("PartitionsByExprRequest"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -8240,7 +5932,6 @@ uint32_t PartitionsByExprRequest::write(::apache::thrift::protocol::TProtocol* o } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8254,44 +5945,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const PartitionsByExprRequest& obj) { - using apache::thrift::to_string; - out << "PartitionsByExprRequest("; - out << "dbName=" << to_string(obj.dbName); - out << ", " << "tblName=" << to_string(obj.tblName); - out << ", " << "expr=" << to_string(obj.expr); - out << ", " << "defaultPartitionName="; (obj.__isset.defaultPartitionName ? (out << to_string(obj.defaultPartitionName)) : (out << "")); - out << ", " << "maxParts="; (obj.__isset.maxParts ? (out << to_string(obj.maxParts)) : (out << "")); - out << ")"; - return out; -} - - -TableStatsResult::~TableStatsResult() throw() { -} - - -void TableStatsResult::__set_tableStats(const std::vector & val) { - this->tableStats = val; -} - const char* TableStatsResult::ascii_fingerprint = "2E398BAC949C93A194F1A19CA5074FF8"; const uint8_t TableStatsResult::binary_fingerprint[16] = {0x2E,0x39,0x8B,0xAC,0x94,0x9C,0x93,0xA1,0x94,0xF1,0xA1,0x9C,0xA5,0x07,0x4F,0xF8}; @@ -8320,14 +5973,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 _size265; + ::apache::thrift::protocol::TType _etype268; + xfer += iprot->readListBegin(_etype268, _size265); + this->tableStats.resize(_size265); + uint32_t _i269; + for (_i269 = 0; _i269 < _size265; ++_i269) { - xfer += this->tableStats[_i367].read(iprot); + xfer += this->tableStats[_i269].read(iprot); } xfer += iprot->readListEnd(); } @@ -8352,16 +6005,15 @@ uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TableStatsResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TableStatsResult"); 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 _iter270; + for (_iter270 = this->tableStats.begin(); _iter270 != this->tableStats.end(); ++_iter270) { - xfer += (*_iter368).write(oprot); + xfer += (*_iter270).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8369,7 +6021,6 @@ uint32_t TableStatsResult::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8378,30 +6029,6 @@ void swap(TableStatsResult &a, TableStatsResult &b) { swap(a.tableStats, b.tableStats); } -TableStatsResult::TableStatsResult(const TableStatsResult& other369) { - tableStats = other369.tableStats; -} -TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other370) { - tableStats = other370.tableStats; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TableStatsResult& obj) { - using apache::thrift::to_string; - out << "TableStatsResult("; - out << "tableStats=" << to_string(obj.tableStats); - out << ")"; - return out; -} - - -PartitionsStatsResult::~PartitionsStatsResult() throw() { -} - - -void PartitionsStatsResult::__set_partStats(const std::map > & val) { - this->partStats = val; -} - const char* PartitionsStatsResult::ascii_fingerprint = "DD38B4AA7D02E288659AA12CBAAEF33B"; const uint8_t PartitionsStatsResult::binary_fingerprint[16] = {0xDD,0x38,0xB4,0xAA,0x7D,0x02,0xE2,0x88,0x65,0x9A,0xA1,0x2C,0xBA,0xAE,0xF3,0x3B}; @@ -8430,26 +6057,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 _size271; + ::apache::thrift::protocol::TType _ktype272; + ::apache::thrift::protocol::TType _vtype273; + xfer += iprot->readMapBegin(_ktype272, _vtype273, _size271); + uint32_t _i275; + for (_i275 = 0; _i275 < _size271; ++_i275) { - std::string _key376; - xfer += iprot->readString(_key376); - std::vector & _val377 = this->partStats[_key376]; + std::string _key276; + xfer += iprot->readString(_key276); + std::vector & _val277 = this->partStats[_key276]; { - _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) + _val277.clear(); + uint32_t _size278; + ::apache::thrift::protocol::TType _etype281; + xfer += iprot->readListBegin(_etype281, _size278); + _val277.resize(_size278); + uint32_t _i282; + for (_i282 = 0; _i282 < _size278; ++_i282) { - xfer += _val377[_i382].read(iprot); + xfer += _val277[_i282].read(iprot); } xfer += iprot->readListEnd(); } @@ -8477,22 +6104,21 @@ uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* ipro uint32_t PartitionsStatsResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("PartitionsStatsResult"); 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 _iter283; + for (_iter283 = this->partStats.begin(); _iter283 != this->partStats.end(); ++_iter283) { - xfer += oprot->writeString(_iter383->first); + xfer += oprot->writeString(_iter283->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(_iter283->second.size())); + std::vector ::const_iterator _iter284; + for (_iter284 = _iter283->second.begin(); _iter284 != _iter283->second.end(); ++_iter284) { - xfer += (*_iter384).write(oprot); + xfer += (*_iter284).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8503,7 +6129,6 @@ uint32_t PartitionsStatsResult::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8512,38 +6137,6 @@ void swap(PartitionsStatsResult &a, PartitionsStatsResult &b) { swap(a.partStats, b.partStats); } -PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other385) { - partStats = other385.partStats; -} -PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other386) { - partStats = other386.partStats; - return *this; -} -std::ostream& operator<<(std::ostream& out, const PartitionsStatsResult& obj) { - using apache::thrift::to_string; - out << "PartitionsStatsResult("; - out << "partStats=" << to_string(obj.partStats); - out << ")"; - return out; -} - - -TableStatsRequest::~TableStatsRequest() throw() { -} - - -void TableStatsRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void TableStatsRequest::__set_tblName(const std::string& val) { - this->tblName = val; -} - -void TableStatsRequest::__set_colNames(const std::vector & val) { - this->colNames = val; -} - const char* TableStatsRequest::ascii_fingerprint = "8E2AD6401E83558ECFD6A13D74DD0A3F"; const uint8_t TableStatsRequest::binary_fingerprint[16] = {0x8E,0x2A,0xD6,0x40,0x1E,0x83,0x55,0x8E,0xCF,0xD6,0xA1,0x3D,0x74,0xDD,0x0A,0x3F}; @@ -8590,14 +6183,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 _size285; + ::apache::thrift::protocol::TType _etype288; + xfer += iprot->readListBegin(_etype288, _size285); + this->colNames.resize(_size285); + uint32_t _i289; + for (_i289 = 0; _i289 < _size285; ++_i289) { - xfer += iprot->readString(this->colNames[_i391]); + xfer += iprot->readString(this->colNames[_i289]); } xfer += iprot->readListEnd(); } @@ -8626,7 +6219,6 @@ uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TableStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TableStatsRequest"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -8640,10 +6232,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 _iter290; + for (_iter290 = this->colNames.begin(); _iter290 != this->colNames.end(); ++_iter290) { - xfer += oprot->writeString((*_iter392)); + xfer += oprot->writeString((*_iter290)); } xfer += oprot->writeListEnd(); } @@ -8651,57 +6243,14 @@ uint32_t TableStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } void swap(TableStatsRequest &a, TableStatsRequest &b) { - using ::std::swap; - swap(a.dbName, b.dbName); - swap(a.tblName, b.tblName); - swap(a.colNames, b.colNames); -} - -TableStatsRequest::TableStatsRequest(const TableStatsRequest& other393) { - dbName = other393.dbName; - tblName = other393.tblName; - colNames = other393.colNames; -} -TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other394) { - dbName = other394.dbName; - tblName = other394.tblName; - colNames = other394.colNames; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TableStatsRequest& obj) { - using apache::thrift::to_string; - out << "TableStatsRequest("; - out << "dbName=" << to_string(obj.dbName); - out << ", " << "tblName=" << to_string(obj.tblName); - out << ", " << "colNames=" << to_string(obj.colNames); - out << ")"; - return out; -} - - -PartitionsStatsRequest::~PartitionsStatsRequest() throw() { -} - - -void PartitionsStatsRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void PartitionsStatsRequest::__set_tblName(const std::string& val) { - this->tblName = val; -} - -void PartitionsStatsRequest::__set_colNames(const std::vector & val) { - this->colNames = val; -} - -void PartitionsStatsRequest::__set_partNames(const std::vector & val) { - this->partNames = val; + using ::std::swap; + swap(a.dbName, b.dbName); + swap(a.tblName, b.tblName); + swap(a.colNames, b.colNames); } const char* PartitionsStatsRequest::ascii_fingerprint = "5F51D90BC323BCE4B704B7D98EDA0BD4"; @@ -8751,14 +6300,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 _size291; + ::apache::thrift::protocol::TType _etype294; + xfer += iprot->readListBegin(_etype294, _size291); + this->colNames.resize(_size291); + uint32_t _i295; + for (_i295 = 0; _i295 < _size291; ++_i295) { - xfer += iprot->readString(this->colNames[_i399]); + xfer += iprot->readString(this->colNames[_i295]); } xfer += iprot->readListEnd(); } @@ -8771,14 +6320,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 _size296; + ::apache::thrift::protocol::TType _etype299; + xfer += iprot->readListBegin(_etype299, _size296); + this->partNames.resize(_size296); + uint32_t _i300; + for (_i300 = 0; _i300 < _size296; ++_i300) { - xfer += iprot->readString(this->partNames[_i404]); + xfer += iprot->readString(this->partNames[_i300]); } xfer += iprot->readListEnd(); } @@ -8809,7 +6358,6 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr uint32_t PartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("PartitionsStatsRequest"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -8823,10 +6371,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 _iter301; + for (_iter301 = this->colNames.begin(); _iter301 != this->colNames.end(); ++_iter301) { - xfer += oprot->writeString((*_iter405)); + xfer += oprot->writeString((*_iter301)); } xfer += oprot->writeListEnd(); } @@ -8835,10 +6383,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 _iter302; + for (_iter302 = this->partNames.begin(); _iter302 != this->partNames.end(); ++_iter302) { - xfer += oprot->writeString((*_iter406)); + xfer += oprot->writeString((*_iter302)); } xfer += oprot->writeListEnd(); } @@ -8846,7 +6394,6 @@ uint32_t PartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8858,40 +6405,6 @@ 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::operator=(const PartitionsStatsRequest& other408) { - dbName = other408.dbName; - tblName = other408.tblName; - colNames = other408.colNames; - partNames = other408.partNames; - return *this; -} -std::ostream& operator<<(std::ostream& out, const PartitionsStatsRequest& obj) { - using apache::thrift::to_string; - out << "PartitionsStatsRequest("; - out << "dbName=" << to_string(obj.dbName); - out << ", " << "tblName=" << to_string(obj.tblName); - out << ", " << "colNames=" << to_string(obj.colNames); - out << ", " << "partNames=" << to_string(obj.partNames); - out << ")"; - return out; -} - - -AddPartitionsResult::~AddPartitionsResult() throw() { -} - - -void AddPartitionsResult::__set_partitions(const std::vector & val) { - this->partitions = val; -__isset.partitions = true; -} - const char* AddPartitionsResult::ascii_fingerprint = "5A689D0823E7BFBB60C799BA60065C31"; const uint8_t AddPartitionsResult::binary_fingerprint[16] = {0x5A,0x68,0x9D,0x08,0x23,0xE7,0xBF,0xBB,0x60,0xC7,0x99,0xBA,0x60,0x06,0x5C,0x31}; @@ -8919,14 +6432,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 _size303; + ::apache::thrift::protocol::TType _etype306; + xfer += iprot->readListBegin(_etype306, _size303); + this->partitions.resize(_size303); + uint32_t _i307; + for (_i307 = 0; _i307 < _size303; ++_i307) { - xfer += this->partitions[_i413].read(iprot); + xfer += this->partitions[_i307].read(iprot); } xfer += iprot->readListEnd(); } @@ -8949,17 +6462,16 @@ uint32_t AddPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t AddPartitionsResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("AddPartitionsResult"); if (this->__isset.partitions) { 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 _iter308; + for (_iter308 = this->partitions.begin(); _iter308 != this->partitions.end(); ++_iter308) { - xfer += (*_iter414).write(oprot); + xfer += (*_iter308).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8967,7 +6479,6 @@ uint32_t AddPartitionsResult::write(::apache::thrift::protocol::TProtocol* oprot } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8977,49 +6488,6 @@ void swap(AddPartitionsResult &a, AddPartitionsResult &b) { swap(a.__isset, b.__isset); } -AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other415) { - partitions = other415.partitions; - __isset = other415.__isset; -} -AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other416) { - partitions = other416.partitions; - __isset = other416.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const AddPartitionsResult& obj) { - using apache::thrift::to_string; - out << "AddPartitionsResult("; - out << "partitions="; (obj.__isset.partitions ? (out << to_string(obj.partitions)) : (out << "")); - out << ")"; - return out; -} - - -AddPartitionsRequest::~AddPartitionsRequest() throw() { -} - - -void AddPartitionsRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void AddPartitionsRequest::__set_tblName(const std::string& val) { - this->tblName = val; -} - -void AddPartitionsRequest::__set_parts(const std::vector & val) { - this->parts = val; -} - -void AddPartitionsRequest::__set_ifNotExists(const bool val) { - this->ifNotExists = val; -} - -void AddPartitionsRequest::__set_needResult(const bool val) { - this->needResult = val; -__isset.needResult = true; -} - const char* AddPartitionsRequest::ascii_fingerprint = "94F938D035892CF6873DEDB99358F069"; const uint8_t AddPartitionsRequest::binary_fingerprint[16] = {0x94,0xF9,0x38,0xD0,0x35,0x89,0x2C,0xF6,0x87,0x3D,0xED,0xB9,0x93,0x58,0xF0,0x69}; @@ -9067,14 +6535,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 _size309; + ::apache::thrift::protocol::TType _etype312; + xfer += iprot->readListBegin(_etype312, _size309); + this->parts.resize(_size309); + uint32_t _i313; + for (_i313 = 0; _i313 < _size309; ++_i313) { - xfer += this->parts[_i421].read(iprot); + xfer += this->parts[_i313].read(iprot); } xfer += iprot->readListEnd(); } @@ -9121,7 +6589,6 @@ uint32_t AddPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot uint32_t AddPartitionsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("AddPartitionsRequest"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -9135,10 +6602,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 _iter314; + for (_iter314 = this->parts.begin(); _iter314 != this->parts.end(); ++_iter314) { - xfer += (*_iter422).write(oprot); + xfer += (*_iter314).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9155,7 +6622,6 @@ uint32_t AddPartitionsRequest::write(::apache::thrift::protocol::TProtocol* opro } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -9169,45 +6635,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const AddPartitionsRequest& obj) { - using apache::thrift::to_string; - out << "AddPartitionsRequest("; - out << "dbName=" << to_string(obj.dbName); - out << ", " << "tblName=" << to_string(obj.tblName); - out << ", " << "parts=" << to_string(obj.parts); - out << ", " << "ifNotExists=" << to_string(obj.ifNotExists); - out << ", " << "needResult="; (obj.__isset.needResult ? (out << to_string(obj.needResult)) : (out << "")); - out << ")"; - return out; -} - - -DropPartitionsResult::~DropPartitionsResult() throw() { -} - - -void DropPartitionsResult::__set_partitions(const std::vector & val) { - this->partitions = val; -__isset.partitions = true; -} - const char* DropPartitionsResult::ascii_fingerprint = "5A689D0823E7BFBB60C799BA60065C31"; const uint8_t DropPartitionsResult::binary_fingerprint[16] = {0x5A,0x68,0x9D,0x08,0x23,0xE7,0xBF,0xBB,0x60,0xC7,0x99,0xBA,0x60,0x06,0x5C,0x31}; @@ -9235,14 +6662,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 _size315; + ::apache::thrift::protocol::TType _etype318; + xfer += iprot->readListBegin(_etype318, _size315); + this->partitions.resize(_size315); + uint32_t _i319; + for (_i319 = 0; _i319 < _size315; ++_i319) { - xfer += this->partitions[_i429].read(iprot); + xfer += this->partitions[_i319].read(iprot); } xfer += iprot->readListEnd(); } @@ -9265,17 +6692,16 @@ uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot uint32_t DropPartitionsResult::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("DropPartitionsResult"); if (this->__isset.partitions) { 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 _iter320; + for (_iter320 = this->partitions.begin(); _iter320 != this->partitions.end(); ++_iter320) { - xfer += (*_iter430).write(oprot); + xfer += (*_iter320).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9283,7 +6709,6 @@ uint32_t DropPartitionsResult::write(::apache::thrift::protocol::TProtocol* opro } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -9293,37 +6718,6 @@ void swap(DropPartitionsResult &a, DropPartitionsResult &b) { swap(a.__isset, b.__isset); } -DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other431) { - partitions = other431.partitions; - __isset = other431.__isset; -} -DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other432) { - partitions = other432.partitions; - __isset = other432.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const DropPartitionsResult& obj) { - using apache::thrift::to_string; - out << "DropPartitionsResult("; - out << "partitions="; (obj.__isset.partitions ? (out << to_string(obj.partitions)) : (out << "")); - out << ")"; - return out; -} - - -DropPartitionsExpr::~DropPartitionsExpr() throw() { -} - - -void DropPartitionsExpr::__set_expr(const std::string& val) { - this->expr = val; -} - -void DropPartitionsExpr::__set_partArchiveLevel(const int32_t val) { - this->partArchiveLevel = val; -__isset.partArchiveLevel = true; -} - const char* DropPartitionsExpr::ascii_fingerprint = "18B162B1D15D8D46509D3911A9F1C2AA"; const uint8_t DropPartitionsExpr::binary_fingerprint[16] = {0x18,0xB1,0x62,0xB1,0xD1,0x5D,0x8D,0x46,0x50,0x9D,0x39,0x11,0xA9,0xF1,0xC2,0xAA}; @@ -9380,7 +6774,6 @@ uint32_t DropPartitionsExpr::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t DropPartitionsExpr::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("DropPartitionsExpr"); xfer += oprot->writeFieldBegin("expr", ::apache::thrift::protocol::T_STRING, 1); @@ -9394,7 +6787,6 @@ uint32_t DropPartitionsExpr::write(::apache::thrift::protocol::TProtocol* oprot) } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -9405,39 +6797,6 @@ 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::operator=(const DropPartitionsExpr& other434) { - expr = other434.expr; - partArchiveLevel = other434.partArchiveLevel; - __isset = other434.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const DropPartitionsExpr& obj) { - using apache::thrift::to_string; - out << "DropPartitionsExpr("; - out << "expr=" << to_string(obj.expr); - out << ", " << "partArchiveLevel="; (obj.__isset.partArchiveLevel ? (out << to_string(obj.partArchiveLevel)) : (out << "")); - out << ")"; - return out; -} - - -RequestPartsSpec::~RequestPartsSpec() throw() { -} - - -void RequestPartsSpec::__set_names(const std::vector & val) { - this->names = val; -} - -void RequestPartsSpec::__set_exprs(const std::vector & val) { - this->exprs = val; -} - const char* RequestPartsSpec::ascii_fingerprint = "864492ECAB27996CD222AACDA10C292E"; const uint8_t RequestPartsSpec::binary_fingerprint[16] = {0x86,0x44,0x92,0xEC,0xAB,0x27,0x99,0x6C,0xD2,0x22,0xAA,0xCD,0xA1,0x0C,0x29,0x2E}; @@ -9465,14 +6824,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 _size321; + ::apache::thrift::protocol::TType _etype324; + xfer += iprot->readListBegin(_etype324, _size321); + this->names.resize(_size321); + uint32_t _i325; + for (_i325 = 0; _i325 < _size321; ++_i325) { - xfer += iprot->readString(this->names[_i439]); + xfer += iprot->readString(this->names[_i325]); } xfer += iprot->readListEnd(); } @@ -9485,14 +6844,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 _size326; + ::apache::thrift::protocol::TType _etype329; + xfer += iprot->readListBegin(_etype329, _size326); + this->exprs.resize(_size326); + uint32_t _i330; + for (_i330 = 0; _i330 < _size326; ++_i330) { - xfer += this->exprs[_i444].read(iprot); + xfer += this->exprs[_i330].read(iprot); } xfer += iprot->readListEnd(); } @@ -9515,16 +6874,15 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t RequestPartsSpec::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("RequestPartsSpec"); 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 _iter331; + for (_iter331 = this->names.begin(); _iter331 != this->names.end(); ++_iter331) { - xfer += oprot->writeString((*_iter445)); + xfer += oprot->writeString((*_iter331)); } xfer += oprot->writeListEnd(); } @@ -9533,10 +6891,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 _iter332; + for (_iter332 = this->exprs.begin(); _iter332 != this->exprs.end(); ++_iter332) { - xfer += (*_iter446).write(oprot); + xfer += (*_iter332).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9544,7 +6902,6 @@ uint32_t RequestPartsSpec::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -9555,68 +6912,6 @@ 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::operator=(const RequestPartsSpec& other448) { - names = other448.names; - exprs = other448.exprs; - __isset = other448.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const RequestPartsSpec& obj) { - using apache::thrift::to_string; - out << "RequestPartsSpec("; - out << "names=" << to_string(obj.names); - out << ", " << "exprs=" << to_string(obj.exprs); - out << ")"; - return out; -} - - -DropPartitionsRequest::~DropPartitionsRequest() throw() { -} - - -void DropPartitionsRequest::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void DropPartitionsRequest::__set_tblName(const std::string& val) { - this->tblName = val; -} - -void DropPartitionsRequest::__set_parts(const RequestPartsSpec& val) { - this->parts = val; -} - -void DropPartitionsRequest::__set_deleteData(const bool val) { - this->deleteData = val; -__isset.deleteData = true; -} - -void DropPartitionsRequest::__set_ifExists(const bool val) { - this->ifExists = val; -__isset.ifExists = true; -} - -void DropPartitionsRequest::__set_ignoreProtection(const bool val) { - this->ignoreProtection = val; -__isset.ignoreProtection = true; -} - -void DropPartitionsRequest::__set_environmentContext(const EnvironmentContext& val) { - this->environmentContext = val; -__isset.environmentContext = true; -} - -void DropPartitionsRequest::__set_needResult(const bool val) { - this->needResult = val; -__isset.needResult = true; -} - const char* DropPartitionsRequest::ascii_fingerprint = "EB263FBA01215C480A9A24C11D69E672"; const uint8_t DropPartitionsRequest::binary_fingerprint[16] = {0xEB,0x26,0x3F,0xBA,0x01,0x21,0x5C,0x48,0x0A,0x9A,0x24,0xC1,0x1D,0x69,0xE6,0x72}; @@ -9727,7 +7022,6 @@ uint32_t DropPartitionsRequest::read(::apache::thrift::protocol::TProtocol* ipro uint32_t DropPartitionsRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("DropPartitionsRequest"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); @@ -9769,7 +7063,6 @@ uint32_t DropPartitionsRequest::write(::apache::thrift::protocol::TProtocol* opr } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -9786,57 +7079,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const DropPartitionsRequest& obj) { - using apache::thrift::to_string; - out << "DropPartitionsRequest("; - out << "dbName=" << to_string(obj.dbName); - out << ", " << "tblName=" << to_string(obj.tblName); - out << ", " << "parts=" << to_string(obj.parts); - out << ", " << "deleteData="; (obj.__isset.deleteData ? (out << to_string(obj.deleteData)) : (out << "")); - out << ", " << "ifExists="; (obj.__isset.ifExists ? (out << to_string(obj.ifExists)) : (out << "")); - out << ", " << "ignoreProtection="; (obj.__isset.ignoreProtection ? (out << to_string(obj.ignoreProtection)) : (out << "")); - out << ", " << "environmentContext="; (obj.__isset.environmentContext ? (out << to_string(obj.environmentContext)) : (out << "")); - out << ", " << "needResult="; (obj.__isset.needResult ? (out << to_string(obj.needResult)) : (out << "")); - out << ")"; - return out; -} - - -ResourceUri::~ResourceUri() throw() { -} - - -void ResourceUri::__set_resourceType(const ResourceType::type val) { - this->resourceType = val; -} - -void ResourceUri::__set_uri(const std::string& val) { - this->uri = val; -} - const char* ResourceUri::ascii_fingerprint = "19B5240589E680301A7E32DF3971EFBE"; const uint8_t ResourceUri::binary_fingerprint[16] = {0x19,0xB5,0x24,0x05,0x89,0xE6,0x80,0x30,0x1A,0x7E,0x32,0xDF,0x39,0x71,0xEF,0xBE}; @@ -9862,9 +7104,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 ecast333; + xfer += iprot->readI32(ecast333); + this->resourceType = (ResourceType::type)ecast333; this->__isset.resourceType = true; } else { xfer += iprot->skip(ftype); @@ -9892,7 +7134,6 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t ResourceUri::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ResourceUri"); xfer += oprot->writeFieldBegin("resourceType", ::apache::thrift::protocol::T_I32, 1); @@ -9905,7 +7146,6 @@ uint32_t ResourceUri::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -9916,63 +7156,6 @@ 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::operator=(const ResourceUri& other453) { - resourceType = other453.resourceType; - uri = other453.uri; - __isset = other453.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const ResourceUri& obj) { - using apache::thrift::to_string; - out << "ResourceUri("; - out << "resourceType=" << to_string(obj.resourceType); - out << ", " << "uri=" << to_string(obj.uri); - out << ")"; - return out; -} - - -Function::~Function() throw() { -} - - -void Function::__set_functionName(const std::string& val) { - this->functionName = val; -} - -void Function::__set_dbName(const std::string& val) { - this->dbName = val; -} - -void Function::__set_className(const std::string& val) { - this->className = val; -} - -void Function::__set_ownerName(const std::string& val) { - this->ownerName = val; -} - -void Function::__set_ownerType(const PrincipalType::type val) { - this->ownerType = val; -} - -void Function::__set_createTime(const int32_t val) { - this->createTime = val; -} - -void Function::__set_functionType(const FunctionType::type val) { - this->functionType = val; -} - -void Function::__set_resourceUris(const std::vector & val) { - this->resourceUris = val; -} - const char* Function::ascii_fingerprint = "72279C515E70F888568542F97616ADB8"; const uint8_t Function::binary_fingerprint[16] = {0x72,0x27,0x9C,0x51,0x5E,0x70,0xF8,0x88,0x56,0x85,0x42,0xF9,0x76,0x16,0xAD,0xB8}; @@ -10030,9 +7213,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 ecast334; + xfer += iprot->readI32(ecast334); + this->ownerType = (PrincipalType::type)ecast334; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -10048,9 +7231,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 ecast335; + xfer += iprot->readI32(ecast335); + this->functionType = (FunctionType::type)ecast335; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); @@ -10060,14 +7243,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 _size336; + ::apache::thrift::protocol::TType _etype339; + xfer += iprot->readListBegin(_etype339, _size336); + this->resourceUris.resize(_size336); + uint32_t _i340; + for (_i340 = 0; _i340 < _size336; ++_i340) { - xfer += this->resourceUris[_i460].read(iprot); + xfer += this->resourceUris[_i340].read(iprot); } xfer += iprot->readListEnd(); } @@ -10090,7 +7273,6 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Function::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Function"); xfer += oprot->writeFieldBegin("functionName", ::apache::thrift::protocol::T_STRING, 1); @@ -10124,10 +7306,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 _iter341; + for (_iter341 = this->resourceUris.begin(); _iter341 != this->resourceUris.end(); ++_iter341) { - xfer += (*_iter461).write(oprot); + xfer += (*_iter341).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10135,7 +7317,6 @@ uint32_t Function::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -10152,65 +7333,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Function& obj) { - using apache::thrift::to_string; - out << "Function("; - out << "functionName=" << to_string(obj.functionName); - out << ", " << "dbName=" << to_string(obj.dbName); - out << ", " << "className=" << to_string(obj.className); - out << ", " << "ownerName=" << to_string(obj.ownerName); - out << ", " << "ownerType=" << to_string(obj.ownerType); - out << ", " << "createTime=" << to_string(obj.createTime); - out << ", " << "functionType=" << to_string(obj.functionType); - out << ", " << "resourceUris=" << to_string(obj.resourceUris); - out << ")"; - return out; -} - - -TxnInfo::~TxnInfo() throw() { -} - - -void TxnInfo::__set_id(const int64_t val) { - this->id = val; -} - -void TxnInfo::__set_state(const TxnState::type val) { - this->state = val; -} - -void TxnInfo::__set_user(const std::string& val) { - this->user = val; -} - -void TxnInfo::__set_hostname(const std::string& val) { - this->hostname = val; -} - const char* TxnInfo::ascii_fingerprint = "6C5C0773A901CCA3BE9D085B3B47A767"; const uint8_t TxnInfo::binary_fingerprint[16] = {0x6C,0x5C,0x07,0x73,0xA9,0x01,0xCC,0xA3,0xBE,0x9D,0x08,0x5B,0x3B,0x47,0xA7,0x67}; @@ -10248,9 +7370,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 ecast342; + xfer += iprot->readI32(ecast342); + this->state = (TxnState::type)ecast342; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -10294,7 +7416,6 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TxnInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TxnInfo"); xfer += oprot->writeFieldBegin("id", ::apache::thrift::protocol::T_I64, 1); @@ -10315,7 +7436,6 @@ uint32_t TxnInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -10327,43 +7447,6 @@ void swap(TxnInfo &a, TxnInfo &b) { swap(a.hostname, b.hostname); } -TxnInfo::TxnInfo(const TxnInfo& other465) { - id = other465.id; - state = other465.state; - user = other465.user; - hostname = other465.hostname; -} -TxnInfo& TxnInfo::operator=(const TxnInfo& other466) { - id = other466.id; - state = other466.state; - user = other466.user; - hostname = other466.hostname; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TxnInfo& obj) { - using apache::thrift::to_string; - out << "TxnInfo("; - out << "id=" << to_string(obj.id); - out << ", " << "state=" << to_string(obj.state); - out << ", " << "user=" << to_string(obj.user); - out << ", " << "hostname=" << to_string(obj.hostname); - out << ")"; - return out; -} - - -GetOpenTxnsInfoResponse::~GetOpenTxnsInfoResponse() throw() { -} - - -void GetOpenTxnsInfoResponse::__set_txn_high_water_mark(const int64_t val) { - this->txn_high_water_mark = val; -} - -void GetOpenTxnsInfoResponse::__set_open_txns(const std::vector & val) { - this->open_txns = val; -} - const char* GetOpenTxnsInfoResponse::ascii_fingerprint = "CCF769BBD33005B61F2079A6665E3B9C"; const uint8_t GetOpenTxnsInfoResponse::binary_fingerprint[16] = {0xCC,0xF7,0x69,0xBB,0xD3,0x30,0x05,0xB6,0x1F,0x20,0x79,0xA6,0x66,0x5E,0x3B,0x9C}; @@ -10401,14 +7484,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 _size343; + ::apache::thrift::protocol::TType _etype346; + xfer += iprot->readListBegin(_etype346, _size343); + this->open_txns.resize(_size343); + uint32_t _i347; + for (_i347 = 0; _i347 < _size343; ++_i347) { - xfer += this->open_txns[_i471].read(iprot); + xfer += this->open_txns[_i347].read(iprot); } xfer += iprot->readListEnd(); } @@ -10435,7 +7518,6 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip uint32_t GetOpenTxnsInfoResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("GetOpenTxnsInfoResponse"); xfer += oprot->writeFieldBegin("txn_high_water_mark", ::apache::thrift::protocol::T_I64, 1); @@ -10445,10 +7527,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 _iter348; + for (_iter348 = this->open_txns.begin(); _iter348 != this->open_txns.end(); ++_iter348) { - xfer += (*_iter472).write(oprot); + xfer += (*_iter348).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10456,7 +7538,6 @@ uint32_t GetOpenTxnsInfoResponse::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -10466,37 +7547,6 @@ 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::operator=(const GetOpenTxnsInfoResponse& other474) { - txn_high_water_mark = other474.txn_high_water_mark; - open_txns = other474.open_txns; - return *this; -} -std::ostream& operator<<(std::ostream& out, const GetOpenTxnsInfoResponse& obj) { - using apache::thrift::to_string; - out << "GetOpenTxnsInfoResponse("; - out << "txn_high_water_mark=" << to_string(obj.txn_high_water_mark); - out << ", " << "open_txns=" << to_string(obj.open_txns); - out << ")"; - return out; -} - - -GetOpenTxnsResponse::~GetOpenTxnsResponse() throw() { -} - - -void GetOpenTxnsResponse::__set_txn_high_water_mark(const int64_t val) { - this->txn_high_water_mark = val; -} - -void GetOpenTxnsResponse::__set_open_txns(const std::set & val) { - this->open_txns = val; -} - const char* GetOpenTxnsResponse::ascii_fingerprint = "590531FF1BE8611678B255374F6109EE"; const uint8_t GetOpenTxnsResponse::binary_fingerprint[16] = {0x59,0x05,0x31,0xFF,0x1B,0xE8,0x61,0x16,0x78,0xB2,0x55,0x37,0x4F,0x61,0x09,0xEE}; @@ -10534,15 +7584,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 _size349; + ::apache::thrift::protocol::TType _etype352; + xfer += iprot->readSetBegin(_etype352, _size349); + uint32_t _i353; + for (_i353 = 0; _i353 < _size349; ++_i353) { - int64_t _elem480; - xfer += iprot->readI64(_elem480); - this->open_txns.insert(_elem480); + int64_t _elem354; + xfer += iprot->readI64(_elem354); + this->open_txns.insert(_elem354); } xfer += iprot->readSetEnd(); } @@ -10569,7 +7619,6 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t GetOpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("GetOpenTxnsResponse"); xfer += oprot->writeFieldBegin("txn_high_water_mark", ::apache::thrift::protocol::T_I64, 1); @@ -10579,10 +7628,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 _iter355; + for (_iter355 = this->open_txns.begin(); _iter355 != this->open_txns.end(); ++_iter355) { - xfer += oprot->writeI64((*_iter481)); + xfer += oprot->writeI64((*_iter355)); } xfer += oprot->writeSetEnd(); } @@ -10590,7 +7639,6 @@ uint32_t GetOpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -10600,41 +7648,6 @@ 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::operator=(const GetOpenTxnsResponse& other483) { - txn_high_water_mark = other483.txn_high_water_mark; - open_txns = other483.open_txns; - return *this; -} -std::ostream& operator<<(std::ostream& out, const GetOpenTxnsResponse& obj) { - using apache::thrift::to_string; - out << "GetOpenTxnsResponse("; - out << "txn_high_water_mark=" << to_string(obj.txn_high_water_mark); - out << ", " << "open_txns=" << to_string(obj.open_txns); - out << ")"; - return out; -} - - -OpenTxnRequest::~OpenTxnRequest() throw() { -} - - -void OpenTxnRequest::__set_num_txns(const int32_t val) { - this->num_txns = val; -} - -void OpenTxnRequest::__set_user(const std::string& val) { - this->user = val; -} - -void OpenTxnRequest::__set_hostname(const std::string& val) { - this->hostname = val; -} - const char* OpenTxnRequest::ascii_fingerprint = "3368C2F81F2FEF71F11EDACDB2A3ECEF"; const uint8_t OpenTxnRequest::binary_fingerprint[16] = {0x33,0x68,0xC2,0xF8,0x1F,0x2F,0xEF,0x71,0xF1,0x1E,0xDA,0xCD,0xB2,0xA3,0xEC,0xEF}; @@ -10705,7 +7718,6 @@ uint32_t OpenTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t OpenTxnRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("OpenTxnRequest"); xfer += oprot->writeFieldBegin("num_txns", ::apache::thrift::protocol::T_I32, 1); @@ -10722,7 +7734,6 @@ uint32_t OpenTxnRequest::write(::apache::thrift::protocol::TProtocol* oprot) con xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -10733,36 +7744,6 @@ void swap(OpenTxnRequest &a, OpenTxnRequest &b) { swap(a.hostname, b.hostname); } -OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other484) { - num_txns = other484.num_txns; - user = other484.user; - hostname = other484.hostname; -} -OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other485) { - num_txns = other485.num_txns; - user = other485.user; - hostname = other485.hostname; - return *this; -} -std::ostream& operator<<(std::ostream& out, const OpenTxnRequest& obj) { - using apache::thrift::to_string; - out << "OpenTxnRequest("; - out << "num_txns=" << to_string(obj.num_txns); - out << ", " << "user=" << to_string(obj.user); - out << ", " << "hostname=" << to_string(obj.hostname); - out << ")"; - return out; -} - - -OpenTxnsResponse::~OpenTxnsResponse() throw() { -} - - -void OpenTxnsResponse::__set_txn_ids(const std::vector & val) { - this->txn_ids = val; -} - const char* OpenTxnsResponse::ascii_fingerprint = "E49D7D1A9013CC81CD0F69D631EF82E4"; const uint8_t OpenTxnsResponse::binary_fingerprint[16] = {0xE4,0x9D,0x7D,0x1A,0x90,0x13,0xCC,0x81,0xCD,0x0F,0x69,0xD6,0x31,0xEF,0x82,0xE4}; @@ -10791,14 +7772,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 _size356; + ::apache::thrift::protocol::TType _etype359; + xfer += iprot->readListBegin(_etype359, _size356); + this->txn_ids.resize(_size356); + uint32_t _i360; + for (_i360 = 0; _i360 < _size356; ++_i360) { - xfer += iprot->readI64(this->txn_ids[_i490]); + xfer += iprot->readI64(this->txn_ids[_i360]); } xfer += iprot->readListEnd(); } @@ -10823,16 +7804,15 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t OpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("OpenTxnsResponse"); 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 _iter361; + for (_iter361 = this->txn_ids.begin(); _iter361 != this->txn_ids.end(); ++_iter361) { - xfer += oprot->writeI64((*_iter491)); + xfer += oprot->writeI64((*_iter361)); } xfer += oprot->writeListEnd(); } @@ -10840,7 +7820,6 @@ uint32_t OpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -10849,30 +7828,6 @@ 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::operator=(const OpenTxnsResponse& other493) { - txn_ids = other493.txn_ids; - return *this; -} -std::ostream& operator<<(std::ostream& out, const OpenTxnsResponse& obj) { - using apache::thrift::to_string; - out << "OpenTxnsResponse("; - out << "txn_ids=" << to_string(obj.txn_ids); - out << ")"; - return out; -} - - -AbortTxnRequest::~AbortTxnRequest() throw() { -} - - -void AbortTxnRequest::__set_txnid(const int64_t val) { - this->txnid = val; -} - const char* AbortTxnRequest::ascii_fingerprint = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; const uint8_t AbortTxnRequest::binary_fingerprint[16] = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; @@ -10921,7 +7876,6 @@ uint32_t AbortTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t AbortTxnRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("AbortTxnRequest"); xfer += oprot->writeFieldBegin("txnid", ::apache::thrift::protocol::T_I64, 1); @@ -10930,7 +7884,6 @@ uint32_t AbortTxnRequest::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -10939,30 +7892,6 @@ void swap(AbortTxnRequest &a, AbortTxnRequest &b) { swap(a.txnid, b.txnid); } -AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other494) { - txnid = other494.txnid; -} -AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other495) { - txnid = other495.txnid; - return *this; -} -std::ostream& operator<<(std::ostream& out, const AbortTxnRequest& obj) { - using apache::thrift::to_string; - out << "AbortTxnRequest("; - out << "txnid=" << to_string(obj.txnid); - out << ")"; - return out; -} - - -CommitTxnRequest::~CommitTxnRequest() throw() { -} - - -void CommitTxnRequest::__set_txnid(const int64_t val) { - this->txnid = val; -} - const char* CommitTxnRequest::ascii_fingerprint = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; const uint8_t CommitTxnRequest::binary_fingerprint[16] = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; @@ -11011,64 +7940,20 @@ uint32_t CommitTxnRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t CommitTxnRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("CommitTxnRequest"); xfer += oprot->writeFieldBegin("txnid", ::apache::thrift::protocol::T_I64, 1); xfer += oprot->writeI64(this->txnid); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - -void swap(CommitTxnRequest &a, CommitTxnRequest &b) { - using ::std::swap; - swap(a.txnid, b.txnid); -} - -CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other496) { - txnid = other496.txnid; -} -CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other497) { - txnid = other497.txnid; - return *this; -} -std::ostream& operator<<(std::ostream& out, const CommitTxnRequest& obj) { - using apache::thrift::to_string; - out << "CommitTxnRequest("; - out << "txnid=" << to_string(obj.txnid); - out << ")"; - return out; -} - - -LockComponent::~LockComponent() throw() { -} - - -void LockComponent::__set_type(const LockType::type val) { - this->type = val; -} - -void LockComponent::__set_level(const LockLevel::type val) { - this->level = val; -} - -void LockComponent::__set_dbname(const std::string& val) { - this->dbname = val; -} + xfer += oprot->writeFieldEnd(); -void LockComponent::__set_tablename(const std::string& val) { - this->tablename = val; -__isset.tablename = true; + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void LockComponent::__set_partitionname(const std::string& val) { - this->partitionname = val; -__isset.partitionname = true; +void swap(CommitTxnRequest &a, CommitTxnRequest &b) { + using ::std::swap; + swap(a.txnid, b.txnid); } const char* LockComponent::ascii_fingerprint = "38B02531B0840AC9C72904A4649FD15F"; @@ -11099,9 +7984,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 ecast362; + xfer += iprot->readI32(ecast362); + this->type = (LockType::type)ecast362; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -11109,9 +7994,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 ecast363; + xfer += iprot->readI32(ecast363); + this->level = (LockLevel::type)ecast363; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -11161,7 +8046,6 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t LockComponent::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("LockComponent"); xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 1); @@ -11188,7 +8072,6 @@ uint32_t LockComponent::write(::apache::thrift::protocol::TProtocol* oprot) cons } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -11202,57 +8085,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const LockComponent& obj) { - using apache::thrift::to_string; - out << "LockComponent("; - out << "type=" << to_string(obj.type); - out << ", " << "level=" << to_string(obj.level); - out << ", " << "dbname=" << to_string(obj.dbname); - out << ", " << "tablename="; (obj.__isset.tablename ? (out << to_string(obj.tablename)) : (out << "")); - out << ", " << "partitionname="; (obj.__isset.partitionname ? (out << to_string(obj.partitionname)) : (out << "")); - out << ")"; - return out; -} - - -LockRequest::~LockRequest() throw() { -} - - -void LockRequest::__set_component(const std::vector & val) { - this->component = val; -} - -void LockRequest::__set_txnid(const int64_t val) { - this->txnid = val; -__isset.txnid = true; -} - -void LockRequest::__set_user(const std::string& val) { - this->user = val; -} - -void LockRequest::__set_hostname(const std::string& val) { - this->hostname = val; -} - const char* LockRequest::ascii_fingerprint = "46BC5ED7196BC16CB216AD5CC67C6930"; const uint8_t LockRequest::binary_fingerprint[16] = {0x46,0xBC,0x5E,0xD7,0x19,0x6B,0xC1,0x6C,0xB2,0x16,0xAD,0x5C,0xC6,0x7C,0x69,0x30}; @@ -11283,14 +8115,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 _size364; + ::apache::thrift::protocol::TType _etype367; + xfer += iprot->readListBegin(_etype367, _size364); + this->component.resize(_size364); + uint32_t _i368; + for (_i368 = 0; _i368 < _size364; ++_i368) { - xfer += this->component[_i506].read(iprot); + xfer += this->component[_i368].read(iprot); } xfer += iprot->readListEnd(); } @@ -11343,16 +8175,15 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t LockRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("LockRequest"); 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 _iter369; + for (_iter369 = this->component.begin(); _iter369 != this->component.end(); ++_iter369) { - xfer += (*_iter507).write(oprot); + xfer += (*_iter369).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11373,7 +8204,6 @@ uint32_t LockRequest::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -11386,45 +8216,6 @@ 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; - __isset = other508.__isset; -} -LockRequest& LockRequest::operator=(const LockRequest& other509) { - component = other509.component; - txnid = other509.txnid; - user = other509.user; - hostname = other509.hostname; - __isset = other509.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const LockRequest& obj) { - using apache::thrift::to_string; - out << "LockRequest("; - out << "component=" << to_string(obj.component); - out << ", " << "txnid="; (obj.__isset.txnid ? (out << to_string(obj.txnid)) : (out << "")); - out << ", " << "user=" << to_string(obj.user); - out << ", " << "hostname=" << to_string(obj.hostname); - out << ")"; - return out; -} - - -LockResponse::~LockResponse() throw() { -} - - -void LockResponse::__set_lockid(const int64_t val) { - this->lockid = val; -} - -void LockResponse::__set_state(const LockState::type val) { - this->state = val; -} - const char* LockResponse::ascii_fingerprint = "DFA40D9D2884599F3D1E7A57578F1384"; const uint8_t LockResponse::binary_fingerprint[16] = {0xDF,0xA4,0x0D,0x9D,0x28,0x84,0x59,0x9F,0x3D,0x1E,0x7A,0x57,0x57,0x8F,0x13,0x84}; @@ -11460,9 +8251,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 ecast370; + xfer += iprot->readI32(ecast370); + this->state = (LockState::type)ecast370; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -11486,7 +8277,6 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t LockResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("LockResponse"); xfer += oprot->writeFieldBegin("lockid", ::apache::thrift::protocol::T_I64, 1); @@ -11499,7 +8289,6 @@ uint32_t LockResponse::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -11509,33 +8298,6 @@ void swap(LockResponse &a, LockResponse &b) { swap(a.state, b.state); } -LockResponse::LockResponse(const LockResponse& other511) { - lockid = other511.lockid; - state = other511.state; -} -LockResponse& LockResponse::operator=(const LockResponse& other512) { - lockid = other512.lockid; - state = other512.state; - return *this; -} -std::ostream& operator<<(std::ostream& out, const LockResponse& obj) { - using apache::thrift::to_string; - out << "LockResponse("; - out << "lockid=" << to_string(obj.lockid); - out << ", " << "state=" << to_string(obj.state); - out << ")"; - return out; -} - - -CheckLockRequest::~CheckLockRequest() throw() { -} - - -void CheckLockRequest::__set_lockid(const int64_t val) { - this->lockid = val; -} - const char* CheckLockRequest::ascii_fingerprint = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; const uint8_t CheckLockRequest::binary_fingerprint[16] = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; @@ -11584,7 +8346,6 @@ uint32_t CheckLockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t CheckLockRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("CheckLockRequest"); xfer += oprot->writeFieldBegin("lockid", ::apache::thrift::protocol::T_I64, 1); @@ -11593,7 +8354,6 @@ uint32_t CheckLockRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -11602,30 +8362,6 @@ void swap(CheckLockRequest &a, CheckLockRequest &b) { swap(a.lockid, b.lockid); } -CheckLockRequest::CheckLockRequest(const CheckLockRequest& other513) { - lockid = other513.lockid; -} -CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other514) { - lockid = other514.lockid; - return *this; -} -std::ostream& operator<<(std::ostream& out, const CheckLockRequest& obj) { - using apache::thrift::to_string; - out << "CheckLockRequest("; - out << "lockid=" << to_string(obj.lockid); - out << ")"; - return out; -} - - -UnlockRequest::~UnlockRequest() throw() { -} - - -void UnlockRequest::__set_lockid(const int64_t val) { - this->lockid = val; -} - const char* UnlockRequest::ascii_fingerprint = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; const uint8_t UnlockRequest::binary_fingerprint[16] = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; @@ -11674,7 +8410,6 @@ uint32_t UnlockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t UnlockRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("UnlockRequest"); xfer += oprot->writeFieldBegin("lockid", ::apache::thrift::protocol::T_I64, 1); @@ -11683,7 +8418,6 @@ uint32_t UnlockRequest::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -11692,26 +8426,6 @@ void swap(UnlockRequest &a, UnlockRequest &b) { swap(a.lockid, b.lockid); } -UnlockRequest::UnlockRequest(const UnlockRequest& other515) { - lockid = other515.lockid; -} -UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other516) { - lockid = other516.lockid; - return *this; -} -std::ostream& operator<<(std::ostream& out, const UnlockRequest& obj) { - using apache::thrift::to_string; - out << "UnlockRequest("; - out << "lockid=" << to_string(obj.lockid); - out << ")"; - return out; -} - - -ShowLocksRequest::~ShowLocksRequest() throw() { -} - - const char* ShowLocksRequest::ascii_fingerprint = "99914B932BD37A50B983C5E7C90AE93B"; const uint8_t ShowLocksRequest::binary_fingerprint[16] = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; @@ -11744,12 +8458,10 @@ uint32_t ShowLocksRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t ShowLocksRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ShowLocksRequest"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -11759,74 +8471,6 @@ void swap(ShowLocksRequest &a, ShowLocksRequest &b) { (void) b; } -ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other517) { - (void) other517; -} -ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other518) { - (void) other518; - return *this; -} -std::ostream& operator<<(std::ostream& out, const ShowLocksRequest& obj) { - using apache::thrift::to_string; - (void) obj; - out << "ShowLocksRequest("; - out << ")"; - return out; -} - - -ShowLocksResponseElement::~ShowLocksResponseElement() throw() { -} - - -void ShowLocksResponseElement::__set_lockid(const int64_t val) { - this->lockid = val; -} - -void ShowLocksResponseElement::__set_dbname(const std::string& val) { - this->dbname = val; -} - -void ShowLocksResponseElement::__set_tablename(const std::string& val) { - this->tablename = val; -__isset.tablename = true; -} - -void ShowLocksResponseElement::__set_partname(const std::string& val) { - this->partname = val; -__isset.partname = true; -} - -void ShowLocksResponseElement::__set_state(const LockState::type val) { - this->state = val; -} - -void ShowLocksResponseElement::__set_type(const LockType::type val) { - this->type = val; -} - -void ShowLocksResponseElement::__set_txnid(const int64_t val) { - this->txnid = val; -__isset.txnid = true; -} - -void ShowLocksResponseElement::__set_lastheartbeat(const int64_t val) { - this->lastheartbeat = val; -} - -void ShowLocksResponseElement::__set_acquiredat(const int64_t val) { - this->acquiredat = val; -__isset.acquiredat = true; -} - -void ShowLocksResponseElement::__set_user(const std::string& val) { - this->user = val; -} - -void ShowLocksResponseElement::__set_hostname(const std::string& val) { - this->hostname = val; -} - const char* ShowLocksResponseElement::ascii_fingerprint = "5AD11F0E0EF1EE0A7C08B00FEFCFF24F"; const uint8_t ShowLocksResponseElement::binary_fingerprint[16] = {0x5A,0xD1,0x1F,0x0E,0x0E,0xF1,0xEE,0x0A,0x7C,0x08,0xB0,0x0F,0xEF,0xCF,0xF2,0x4F}; @@ -11891,9 +8535,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 ecast371; + xfer += iprot->readI32(ecast371); + this->state = (LockState::type)ecast371; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -11901,9 +8545,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 ecast372; + xfer += iprot->readI32(ecast372); + this->type = (LockType::type)ecast372; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -11977,7 +8621,6 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i uint32_t ShowLocksResponseElement::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ShowLocksResponseElement"); xfer += oprot->writeFieldBegin("lockid", ::apache::thrift::protocol::T_I64, 1); @@ -12030,7 +8673,6 @@ uint32_t ShowLocksResponseElement::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -12050,62 +8692,6 @@ 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; - __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; - __isset = other522.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const ShowLocksResponseElement& obj) { - using apache::thrift::to_string; - out << "ShowLocksResponseElement("; - out << "lockid=" << to_string(obj.lockid); - out << ", " << "dbname=" << to_string(obj.dbname); - out << ", " << "tablename="; (obj.__isset.tablename ? (out << to_string(obj.tablename)) : (out << "")); - out << ", " << "partname="; (obj.__isset.partname ? (out << to_string(obj.partname)) : (out << "")); - out << ", " << "state=" << to_string(obj.state); - out << ", " << "type=" << to_string(obj.type); - out << ", " << "txnid="; (obj.__isset.txnid ? (out << to_string(obj.txnid)) : (out << "")); - out << ", " << "lastheartbeat=" << to_string(obj.lastheartbeat); - out << ", " << "acquiredat="; (obj.__isset.acquiredat ? (out << to_string(obj.acquiredat)) : (out << "")); - out << ", " << "user=" << to_string(obj.user); - out << ", " << "hostname=" << to_string(obj.hostname); - out << ")"; - return out; -} - - -ShowLocksResponse::~ShowLocksResponse() throw() { -} - - -void ShowLocksResponse::__set_locks(const std::vector & val) { - this->locks = val; -} - const char* ShowLocksResponse::ascii_fingerprint = "BD598AA60FE941361FB54C43973C011F"; const uint8_t ShowLocksResponse::binary_fingerprint[16] = {0xBD,0x59,0x8A,0xA6,0x0F,0xE9,0x41,0x36,0x1F,0xB5,0x4C,0x43,0x97,0x3C,0x01,0x1F}; @@ -12133,14 +8719,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 _size373; + ::apache::thrift::protocol::TType _etype376; + xfer += iprot->readListBegin(_etype376, _size373); + this->locks.resize(_size373); + uint32_t _i377; + for (_i377 = 0; _i377 < _size373; ++_i377) { - xfer += this->locks[_i527].read(iprot); + xfer += this->locks[_i377].read(iprot); } xfer += iprot->readListEnd(); } @@ -12163,16 +8749,15 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t ShowLocksResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ShowLocksResponse"); 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 _iter378; + for (_iter378 = this->locks.begin(); _iter378 != this->locks.end(); ++_iter378) { - xfer += (*_iter528).write(oprot); + xfer += (*_iter378).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12180,7 +8765,6 @@ uint32_t ShowLocksResponse::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -12190,38 +8774,6 @@ void swap(ShowLocksResponse &a, ShowLocksResponse &b) { swap(a.__isset, b.__isset); } -ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other529) { - locks = other529.locks; - __isset = other529.__isset; -} -ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other530) { - locks = other530.locks; - __isset = other530.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const ShowLocksResponse& obj) { - using apache::thrift::to_string; - out << "ShowLocksResponse("; - out << "locks=" << to_string(obj.locks); - out << ")"; - return out; -} - - -HeartbeatRequest::~HeartbeatRequest() throw() { -} - - -void HeartbeatRequest::__set_lockid(const int64_t val) { - this->lockid = val; -__isset.lockid = true; -} - -void HeartbeatRequest::__set_txnid(const int64_t val) { - this->txnid = val; -__isset.txnid = true; -} - const char* HeartbeatRequest::ascii_fingerprint = "0354D07C94CB8542872CA1277008860A"; const uint8_t HeartbeatRequest::binary_fingerprint[16] = {0x03,0x54,0xD0,0x7C,0x94,0xCB,0x85,0x42,0x87,0x2C,0xA1,0x27,0x70,0x08,0x86,0x0A}; @@ -12275,7 +8827,6 @@ uint32_t HeartbeatRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t HeartbeatRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("HeartbeatRequest"); if (this->__isset.lockid) { @@ -12290,7 +8841,6 @@ uint32_t HeartbeatRequest::write(::apache::thrift::protocol::TProtocol* oprot) c } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -12301,39 +8851,6 @@ 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::operator=(const HeartbeatRequest& other532) { - lockid = other532.lockid; - txnid = other532.txnid; - __isset = other532.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const HeartbeatRequest& obj) { - using apache::thrift::to_string; - out << "HeartbeatRequest("; - out << "lockid="; (obj.__isset.lockid ? (out << to_string(obj.lockid)) : (out << "")); - out << ", " << "txnid="; (obj.__isset.txnid ? (out << to_string(obj.txnid)) : (out << "")); - out << ")"; - return out; -} - - -HeartbeatTxnRangeRequest::~HeartbeatTxnRangeRequest() throw() { -} - - -void HeartbeatTxnRangeRequest::__set_min(const int64_t val) { - this->min = val; -} - -void HeartbeatTxnRangeRequest::__set_max(const int64_t val) { - this->max = val; -} - const char* HeartbeatTxnRangeRequest::ascii_fingerprint = "F33135321253DAEB67B0E79E416CA831"; const uint8_t HeartbeatTxnRangeRequest::binary_fingerprint[16] = {0xF3,0x31,0x35,0x32,0x12,0x53,0xDA,0xEB,0x67,0xB0,0xE7,0x9E,0x41,0x6C,0xA8,0x31}; @@ -12393,7 +8910,6 @@ uint32_t HeartbeatTxnRangeRequest::read(::apache::thrift::protocol::TProtocol* i uint32_t HeartbeatTxnRangeRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("HeartbeatTxnRangeRequest"); xfer += oprot->writeFieldBegin("min", ::apache::thrift::protocol::T_I64, 1); @@ -12406,7 +8922,6 @@ uint32_t HeartbeatTxnRangeRequest::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -12416,37 +8931,6 @@ void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b) { swap(a.max, b.max); } -HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other533) { - min = other533.min; - max = other533.max; -} -HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other534) { - min = other534.min; - max = other534.max; - return *this; -} -std::ostream& operator<<(std::ostream& out, const HeartbeatTxnRangeRequest& obj) { - using apache::thrift::to_string; - out << "HeartbeatTxnRangeRequest("; - out << "min=" << to_string(obj.min); - out << ", " << "max=" << to_string(obj.max); - out << ")"; - return out; -} - - -HeartbeatTxnRangeResponse::~HeartbeatTxnRangeResponse() throw() { -} - - -void HeartbeatTxnRangeResponse::__set_aborted(const std::set & val) { - this->aborted = val; -} - -void HeartbeatTxnRangeResponse::__set_nosuch(const std::set & val) { - this->nosuch = val; -} - const char* HeartbeatTxnRangeResponse::ascii_fingerprint = "33E49A70BD5C04262A0F407E3656E3CF"; const uint8_t HeartbeatTxnRangeResponse::binary_fingerprint[16] = {0x33,0xE4,0x9A,0x70,0xBD,0x5C,0x04,0x26,0x2A,0x0F,0x40,0x7E,0x36,0x56,0xE3,0xCF}; @@ -12476,15 +8960,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 _size379; + ::apache::thrift::protocol::TType _etype382; + xfer += iprot->readSetBegin(_etype382, _size379); + uint32_t _i383; + for (_i383 = 0; _i383 < _size379; ++_i383) { - int64_t _elem540; - xfer += iprot->readI64(_elem540); - this->aborted.insert(_elem540); + int64_t _elem384; + xfer += iprot->readI64(_elem384); + this->aborted.insert(_elem384); } xfer += iprot->readSetEnd(); } @@ -12497,15 +8981,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 _size385; + ::apache::thrift::protocol::TType _etype388; + xfer += iprot->readSetBegin(_etype388, _size385); + uint32_t _i389; + for (_i389 = 0; _i389 < _size385; ++_i389) { - int64_t _elem546; - xfer += iprot->readI64(_elem546); - this->nosuch.insert(_elem546); + int64_t _elem390; + xfer += iprot->readI64(_elem390); + this->nosuch.insert(_elem390); } xfer += iprot->readSetEnd(); } @@ -12532,16 +9016,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("HeartbeatTxnRangeResponse"); 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 _iter391; + for (_iter391 = this->aborted.begin(); _iter391 != this->aborted.end(); ++_iter391) { - xfer += oprot->writeI64((*_iter547)); + xfer += oprot->writeI64((*_iter391)); } xfer += oprot->writeSetEnd(); } @@ -12550,10 +9033,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 _iter392; + for (_iter392 = this->nosuch.begin(); _iter392 != this->nosuch.end(); ++_iter392) { - xfer += oprot->writeI64((*_iter548)); + xfer += oprot->writeI64((*_iter392)); } xfer += oprot->writeSetEnd(); } @@ -12561,7 +9044,6 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -12571,51 +9053,6 @@ void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b) { swap(a.nosuch, b.nosuch); } -HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other549) { - aborted = other549.aborted; - nosuch = other549.nosuch; -} -HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other550) { - aborted = other550.aborted; - nosuch = other550.nosuch; - return *this; -} -std::ostream& operator<<(std::ostream& out, const HeartbeatTxnRangeResponse& obj) { - using apache::thrift::to_string; - out << "HeartbeatTxnRangeResponse("; - out << "aborted=" << to_string(obj.aborted); - out << ", " << "nosuch=" << to_string(obj.nosuch); - out << ")"; - return out; -} - - -CompactionRequest::~CompactionRequest() throw() { -} - - -void CompactionRequest::__set_dbname(const std::string& val) { - this->dbname = val; -} - -void CompactionRequest::__set_tablename(const std::string& val) { - this->tablename = val; -} - -void CompactionRequest::__set_partitionname(const std::string& val) { - this->partitionname = val; -__isset.partitionname = true; -} - -void CompactionRequest::__set_type(const CompactionType::type val) { - this->type = val; -} - -void CompactionRequest::__set_runas(const std::string& val) { - this->runas = val; -__isset.runas = true; -} - const char* CompactionRequest::ascii_fingerprint = "899FD1F339D8318D628687CC2CE2864B"; const uint8_t CompactionRequest::binary_fingerprint[16] = {0x89,0x9F,0xD1,0xF3,0x39,0xD8,0x31,0x8D,0x62,0x86,0x87,0xCC,0x2C,0xE2,0x86,0x4B}; @@ -12668,9 +9105,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 ecast393; + xfer += iprot->readI32(ecast393); + this->type = (CompactionType::type)ecast393; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -12704,7 +9141,6 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t CompactionRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("CompactionRequest"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -12731,7 +9167,6 @@ uint32_t CompactionRequest::write(::apache::thrift::protocol::TProtocol* oprot) } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -12745,40 +9180,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const CompactionRequest& obj) { - using apache::thrift::to_string; - out << "CompactionRequest("; - out << "dbname=" << to_string(obj.dbname); - out << ", " << "tablename=" << to_string(obj.tablename); - out << ", " << "partitionname="; (obj.__isset.partitionname ? (out << to_string(obj.partitionname)) : (out << "")); - out << ", " << "type=" << to_string(obj.type); - out << ", " << "runas="; (obj.__isset.runas ? (out << to_string(obj.runas)) : (out << "")); - out << ")"; - return out; -} - - -ShowCompactRequest::~ShowCompactRequest() throw() { -} - - const char* ShowCompactRequest::ascii_fingerprint = "99914B932BD37A50B983C5E7C90AE93B"; const uint8_t ShowCompactRequest::binary_fingerprint[16] = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; @@ -12811,12 +9212,10 @@ uint32_t ShowCompactRequest::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t ShowCompactRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ShowCompactRequest"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -12826,62 +9225,6 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) { (void) b; } -ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other554) { - (void) other554; -} -ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other555) { - (void) other555; - return *this; -} -std::ostream& operator<<(std::ostream& out, const ShowCompactRequest& obj) { - using apache::thrift::to_string; - (void) obj; - out << "ShowCompactRequest("; - out << ")"; - return out; -} - - -ShowCompactResponseElement::~ShowCompactResponseElement() throw() { -} - - -void ShowCompactResponseElement::__set_dbname(const std::string& val) { - this->dbname = val; -} - -void ShowCompactResponseElement::__set_tablename(const std::string& val) { - this->tablename = val; -} - -void ShowCompactResponseElement::__set_partitionname(const std::string& val) { - this->partitionname = val; -__isset.partitionname = true; -} - -void ShowCompactResponseElement::__set_type(const CompactionType::type val) { - this->type = val; -} - -void ShowCompactResponseElement::__set_state(const std::string& val) { - this->state = val; -} - -void ShowCompactResponseElement::__set_workerid(const std::string& val) { - this->workerid = val; -__isset.workerid = true; -} - -void ShowCompactResponseElement::__set_start(const int64_t val) { - this->start = val; -__isset.start = true; -} - -void ShowCompactResponseElement::__set_runAs(const std::string& val) { - this->runAs = val; -__isset.runAs = true; -} - const char* ShowCompactResponseElement::ascii_fingerprint = "2F338C265DC4FD82DD13F4966FE43F13"; const uint8_t ShowCompactResponseElement::binary_fingerprint[16] = {0x2F,0x33,0x8C,0x26,0x5D,0xC4,0xFD,0x82,0xDD,0x13,0xF4,0x96,0x6F,0xE4,0x3F,0x13}; @@ -12935,9 +9278,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 ecast394; + xfer += iprot->readI32(ecast394); + this->type = (CompactionType::type)ecast394; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -12997,7 +9340,6 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* uint32_t ShowCompactResponseElement::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ShowCompactResponseElement"); xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); @@ -13038,7 +9380,6 @@ uint32_t ShowCompactResponseElement::write(::apache::thrift::protocol::TProtocol } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -13055,53 +9396,6 @@ 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; - __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; - __isset = other558.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const ShowCompactResponseElement& obj) { - using apache::thrift::to_string; - out << "ShowCompactResponseElement("; - out << "dbname=" << to_string(obj.dbname); - out << ", " << "tablename=" << to_string(obj.tablename); - out << ", " << "partitionname="; (obj.__isset.partitionname ? (out << to_string(obj.partitionname)) : (out << "")); - out << ", " << "type=" << to_string(obj.type); - out << ", " << "state=" << to_string(obj.state); - out << ", " << "workerid="; (obj.__isset.workerid ? (out << to_string(obj.workerid)) : (out << "")); - out << ", " << "start="; (obj.__isset.start ? (out << to_string(obj.start)) : (out << "")); - out << ", " << "runAs="; (obj.__isset.runAs ? (out << to_string(obj.runAs)) : (out << "")); - out << ")"; - return out; -} - - -ShowCompactResponse::~ShowCompactResponse() throw() { -} - - -void ShowCompactResponse::__set_compacts(const std::vector & val) { - this->compacts = val; -} - const char* ShowCompactResponse::ascii_fingerprint = "915B7B8DB8966D65769C0F98707BBAE3"; const uint8_t ShowCompactResponse::binary_fingerprint[16] = {0x91,0x5B,0x7B,0x8D,0xB8,0x96,0x6D,0x65,0x76,0x9C,0x0F,0x98,0x70,0x7B,0xBA,0xE3}; @@ -13130,14 +9424,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 _size395; + ::apache::thrift::protocol::TType _etype398; + xfer += iprot->readListBegin(_etype398, _size395); + this->compacts.resize(_size395); + uint32_t _i399; + for (_i399 = 0; _i399 < _size395; ++_i399) { - xfer += this->compacts[_i563].read(iprot); + xfer += this->compacts[_i399].read(iprot); } xfer += iprot->readListEnd(); } @@ -13162,16 +9456,15 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t ShowCompactResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ShowCompactResponse"); 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 _iter400; + for (_iter400 = this->compacts.begin(); _iter400 != this->compacts.end(); ++_iter400) { - xfer += (*_iter564).write(oprot); + xfer += (*_iter400).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13179,7 +9472,6 @@ uint32_t ShowCompactResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -13188,42 +9480,6 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) { swap(a.compacts, b.compacts); } -ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other565) { - compacts = other565.compacts; -} -ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other566) { - compacts = other566.compacts; - return *this; -} -std::ostream& operator<<(std::ostream& out, const ShowCompactResponse& obj) { - using apache::thrift::to_string; - out << "ShowCompactResponse("; - out << "compacts=" << to_string(obj.compacts); - out << ")"; - return out; -} - - -AddDynamicPartitions::~AddDynamicPartitions() throw() { -} - - -void AddDynamicPartitions::__set_txnid(const int64_t val) { - this->txnid = val; -} - -void AddDynamicPartitions::__set_dbname(const std::string& val) { - this->dbname = val; -} - -void AddDynamicPartitions::__set_tablename(const std::string& val) { - this->tablename = val; -} - -void AddDynamicPartitions::__set_partitionnames(const std::vector & val) { - this->partitionnames = val; -} - const char* AddDynamicPartitions::ascii_fingerprint = "A53A2B050DCCFE6A2158480A24E33898"; const uint8_t AddDynamicPartitions::binary_fingerprint[16] = {0xA5,0x3A,0x2B,0x05,0x0D,0xCC,0xFE,0x6A,0x21,0x58,0x48,0x0A,0x24,0xE3,0x38,0x98}; @@ -13279,14 +9535,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 _size401; + ::apache::thrift::protocol::TType _etype404; + xfer += iprot->readListBegin(_etype404, _size401); + this->partitionnames.resize(_size401); + uint32_t _i405; + for (_i405 = 0; _i405 < _size401; ++_i405) { - xfer += iprot->readString(this->partitionnames[_i571]); + xfer += iprot->readString(this->partitionnames[_i405]); } xfer += iprot->readListEnd(); } @@ -13317,7 +9573,6 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot uint32_t AddDynamicPartitions::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("AddDynamicPartitions"); xfer += oprot->writeFieldBegin("txnid", ::apache::thrift::protocol::T_I64, 1); @@ -13335,10 +9590,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 _iter406; + for (_iter406 = this->partitionnames.begin(); _iter406 != this->partitionnames.end(); ++_iter406) { - xfer += oprot->writeString((*_iter572)); + xfer += oprot->writeString((*_iter406)); } xfer += oprot->writeListEnd(); } @@ -13346,7 +9601,6 @@ uint32_t AddDynamicPartitions::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -13358,44 +9612,6 @@ 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::operator=(const AddDynamicPartitions& other574) { - txnid = other574.txnid; - dbname = other574.dbname; - tablename = other574.tablename; - partitionnames = other574.partitionnames; - return *this; -} -std::ostream& operator<<(std::ostream& out, const AddDynamicPartitions& obj) { - using apache::thrift::to_string; - out << "AddDynamicPartitions("; - out << "txnid=" << to_string(obj.txnid); - out << ", " << "dbname=" << to_string(obj.dbname); - out << ", " << "tablename=" << to_string(obj.tablename); - out << ", " << "partitionnames=" << to_string(obj.partitionnames); - out << ")"; - return out; -} - - -NotificationEventRequest::~NotificationEventRequest() throw() { -} - - -void NotificationEventRequest::__set_lastEvent(const int64_t val) { - this->lastEvent = val; -} - -void NotificationEventRequest::__set_maxEvents(const int32_t val) { - this->maxEvents = val; -__isset.maxEvents = true; -} - const char* NotificationEventRequest::ascii_fingerprint = "6E578DA8AB10EED824A75534350EBAEF"; const uint8_t NotificationEventRequest::binary_fingerprint[16] = {0x6E,0x57,0x8D,0xA8,0xAB,0x10,0xEE,0xD8,0x24,0xA7,0x55,0x34,0x35,0x0E,0xBA,0xEF}; @@ -13452,7 +9668,6 @@ uint32_t NotificationEventRequest::read(::apache::thrift::protocol::TProtocol* i uint32_t NotificationEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("NotificationEventRequest"); xfer += oprot->writeFieldBegin("lastEvent", ::apache::thrift::protocol::T_I64, 1); @@ -13462,70 +9677,18 @@ uint32_t NotificationEventRequest::write(::apache::thrift::protocol::TProtocol* if (this->__isset.maxEvents) { xfer += oprot->writeFieldBegin("maxEvents", ::apache::thrift::protocol::T_I32, 2); xfer += oprot->writeI32(this->maxEvents); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - -void swap(NotificationEventRequest &a, NotificationEventRequest &b) { - using ::std::swap; - swap(a.lastEvent, b.lastEvent); - swap(a.maxEvents, b.maxEvents); - swap(a.__isset, b.__isset); -} - -NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other575) { - lastEvent = other575.lastEvent; - maxEvents = other575.maxEvents; - __isset = other575.__isset; -} -NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other576) { - lastEvent = other576.lastEvent; - maxEvents = other576.maxEvents; - __isset = other576.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const NotificationEventRequest& obj) { - using apache::thrift::to_string; - out << "NotificationEventRequest("; - out << "lastEvent=" << to_string(obj.lastEvent); - out << ", " << "maxEvents="; (obj.__isset.maxEvents ? (out << to_string(obj.maxEvents)) : (out << "")); - out << ")"; - return out; -} - - -NotificationEvent::~NotificationEvent() throw() { -} - - -void NotificationEvent::__set_eventId(const int64_t val) { - this->eventId = val; -} - -void NotificationEvent::__set_eventTime(const int32_t val) { - this->eventTime = val; -} - -void NotificationEvent::__set_eventType(const std::string& val) { - this->eventType = val; -} - -void NotificationEvent::__set_dbName(const std::string& val) { - this->dbName = val; -__isset.dbName = true; -} - -void NotificationEvent::__set_tableName(const std::string& val) { - this->tableName = val; -__isset.tableName = true; + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -void NotificationEvent::__set_message(const std::string& val) { - this->message = val; +void swap(NotificationEventRequest &a, NotificationEventRequest &b) { + using ::std::swap; + swap(a.lastEvent, b.lastEvent); + swap(a.maxEvents, b.maxEvents); + swap(a.__isset, b.__isset); } const char* NotificationEvent::ascii_fingerprint = "ACAF0036D9999F3A389F490F5E22D369"; @@ -13625,7 +9788,6 @@ uint32_t NotificationEvent::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t NotificationEvent::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("NotificationEvent"); xfer += oprot->writeFieldBegin("eventId", ::apache::thrift::protocol::T_I64, 1); @@ -13656,7 +9818,6 @@ uint32_t NotificationEvent::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -13671,47 +9832,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const NotificationEvent& obj) { - using apache::thrift::to_string; - out << "NotificationEvent("; - out << "eventId=" << to_string(obj.eventId); - out << ", " << "eventTime=" << to_string(obj.eventTime); - out << ", " << "eventType=" << to_string(obj.eventType); - out << ", " << "dbName="; (obj.__isset.dbName ? (out << to_string(obj.dbName)) : (out << "")); - out << ", " << "tableName="; (obj.__isset.tableName ? (out << to_string(obj.tableName)) : (out << "")); - out << ", " << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -NotificationEventResponse::~NotificationEventResponse() throw() { -} - - -void NotificationEventResponse::__set_events(const std::vector & val) { - this->events = val; -} - const char* NotificationEventResponse::ascii_fingerprint = "EE3DB23399639114BCD1782A0FB01818"; const uint8_t NotificationEventResponse::binary_fingerprint[16] = {0xEE,0x3D,0xB2,0x33,0x99,0x63,0x91,0x14,0xBC,0xD1,0x78,0x2A,0x0F,0xB0,0x18,0x18}; @@ -13740,14 +9860,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 _size407; + ::apache::thrift::protocol::TType _etype410; + xfer += iprot->readListBegin(_etype410, _size407); + this->events.resize(_size407); + uint32_t _i411; + for (_i411 = 0; _i411 < _size407; ++_i411) { - xfer += this->events[_i583].read(iprot); + xfer += this->events[_i411].read(iprot); } xfer += iprot->readListEnd(); } @@ -13772,16 +9892,15 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* uint32_t NotificationEventResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("NotificationEventResponse"); 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 _iter412; + for (_iter412 = this->events.begin(); _iter412 != this->events.end(); ++_iter412) { - xfer += (*_iter584).write(oprot); + xfer += (*_iter412).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13789,7 +9908,6 @@ uint32_t NotificationEventResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -13798,30 +9916,6 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) { swap(a.events, b.events); } -NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other585) { - events = other585.events; -} -NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other586) { - events = other586.events; - return *this; -} -std::ostream& operator<<(std::ostream& out, const NotificationEventResponse& obj) { - using apache::thrift::to_string; - out << "NotificationEventResponse("; - out << "events=" << to_string(obj.events); - out << ")"; - return out; -} - - -CurrentNotificationEventId::~CurrentNotificationEventId() throw() { -} - - -void CurrentNotificationEventId::__set_eventId(const int64_t val) { - this->eventId = val; -} - const char* CurrentNotificationEventId::ascii_fingerprint = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; const uint8_t CurrentNotificationEventId::binary_fingerprint[16] = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; @@ -13870,7 +9964,6 @@ uint32_t CurrentNotificationEventId::read(::apache::thrift::protocol::TProtocol* uint32_t CurrentNotificationEventId::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("CurrentNotificationEventId"); xfer += oprot->writeFieldBegin("eventId", ::apache::thrift::protocol::T_I64, 1); @@ -13879,7 +9972,6 @@ uint32_t CurrentNotificationEventId::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -13888,30 +9980,6 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) { swap(a.eventId, b.eventId); } -CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other587) { - eventId = other587.eventId; -} -CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other588) { - eventId = other588.eventId; - return *this; -} -std::ostream& operator<<(std::ostream& out, const CurrentNotificationEventId& obj) { - using apache::thrift::to_string; - out << "CurrentNotificationEventId("; - out << "eventId=" << to_string(obj.eventId); - out << ")"; - return out; -} - - -InsertEventRequestData::~InsertEventRequestData() throw() { -} - - -void InsertEventRequestData::__set_filesAdded(const std::vector & val) { - this->filesAdded = val; -} - const char* InsertEventRequestData::ascii_fingerprint = "ACE4F644F0FDD289DDC4EE5B83BC13C0"; const uint8_t InsertEventRequestData::binary_fingerprint[16] = {0xAC,0xE4,0xF6,0x44,0xF0,0xFD,0xD2,0x89,0xDD,0xC4,0xEE,0x5B,0x83,0xBC,0x13,0xC0}; @@ -13940,14 +10008,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 _size413; + ::apache::thrift::protocol::TType _etype416; + xfer += iprot->readListBegin(_etype416, _size413); + this->filesAdded.resize(_size413); + uint32_t _i417; + for (_i417 = 0; _i417 < _size413; ++_i417) { - xfer += iprot->readString(this->filesAdded[_i593]); + xfer += iprot->readString(this->filesAdded[_i417]); } xfer += iprot->readListEnd(); } @@ -13972,16 +10040,15 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("InsertEventRequestData"); 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 _iter418; + for (_iter418 = this->filesAdded.begin(); _iter418 != this->filesAdded.end(); ++_iter418) { - xfer += oprot->writeString((*_iter594)); + xfer += oprot->writeString((*_iter418)); } xfer += oprot->writeListEnd(); } @@ -13989,7 +10056,6 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -13998,30 +10064,6 @@ void swap(InsertEventRequestData &a, InsertEventRequestData &b) { swap(a.filesAdded, b.filesAdded); } -InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other595) { - filesAdded = other595.filesAdded; -} -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other596) { - filesAdded = other596.filesAdded; - return *this; -} -std::ostream& operator<<(std::ostream& out, const InsertEventRequestData& obj) { - using apache::thrift::to_string; - out << "InsertEventRequestData("; - out << "filesAdded=" << to_string(obj.filesAdded); - out << ")"; - return out; -} - - -FireEventRequestData::~FireEventRequestData() throw() { -} - - -void FireEventRequestData::__set_insertData(const InsertEventRequestData& val) { - this->insertData = val; -} - const char* FireEventRequestData::ascii_fingerprint = "187E754B26707EE32451E6A27FB672CE"; const uint8_t FireEventRequestData::binary_fingerprint[16] = {0x18,0x7E,0x75,0x4B,0x26,0x70,0x7E,0xE3,0x24,0x51,0xE6,0xA2,0x7F,0xB6,0x72,0xCE}; @@ -14067,7 +10109,6 @@ uint32_t FireEventRequestData::read(::apache::thrift::protocol::TProtocol* iprot uint32_t FireEventRequestData::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("FireEventRequestData"); xfer += oprot->writeFieldBegin("insertData", ::apache::thrift::protocol::T_STRUCT, 1); @@ -14076,7 +10117,6 @@ uint32_t FireEventRequestData::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -14086,51 +10126,6 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) { swap(a.__isset, b.__isset); } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other597) { - insertData = other597.insertData; - __isset = other597.__isset; -} -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other598) { - insertData = other598.insertData; - __isset = other598.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const FireEventRequestData& obj) { - using apache::thrift::to_string; - out << "FireEventRequestData("; - out << "insertData=" << to_string(obj.insertData); - out << ")"; - return out; -} - - -FireEventRequest::~FireEventRequest() throw() { -} - - -void FireEventRequest::__set_successful(const bool val) { - this->successful = val; -} - -void FireEventRequest::__set_data(const FireEventRequestData& val) { - this->data = val; -} - -void FireEventRequest::__set_dbName(const std::string& val) { - this->dbName = val; -__isset.dbName = true; -} - -void FireEventRequest::__set_tableName(const std::string& val) { - this->tableName = val; -__isset.tableName = true; -} - -void FireEventRequest::__set_partitionVals(const std::vector & val) { - this->partitionVals = val; -__isset.partitionVals = true; -} - const char* FireEventRequest::ascii_fingerprint = "1BA3A7F00159254072C3979B1429B50B"; const uint8_t FireEventRequest::binary_fingerprint[16] = {0x1B,0xA3,0xA7,0xF0,0x01,0x59,0x25,0x40,0x72,0xC3,0x97,0x9B,0x14,0x29,0xB5,0x0B}; @@ -14192,14 +10187,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 _size419; + ::apache::thrift::protocol::TType _etype422; + xfer += iprot->readListBegin(_etype422, _size419); + this->partitionVals.resize(_size419); + uint32_t _i423; + for (_i423 = 0; _i423 < _size419; ++_i423) { - xfer += iprot->readString(this->partitionVals[_i603]); + xfer += iprot->readString(this->partitionVals[_i423]); } xfer += iprot->readListEnd(); } @@ -14226,7 +10221,6 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t FireEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("FireEventRequest"); xfer += oprot->writeFieldBegin("successful", ::apache::thrift::protocol::T_BOOL, 1); @@ -14251,10 +10245,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 _iter424; + for (_iter424 = this->partitionVals.begin(); _iter424 != this->partitionVals.end(); ++_iter424) { - xfer += oprot->writeString((*_iter604)); + xfer += oprot->writeString((*_iter424)); } xfer += oprot->writeListEnd(); } @@ -14262,7 +10256,6 @@ uint32_t FireEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) c } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -14276,40 +10269,6 @@ 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; - return *this; -} -std::ostream& operator<<(std::ostream& out, const FireEventRequest& obj) { - using apache::thrift::to_string; - out << "FireEventRequest("; - out << "successful=" << to_string(obj.successful); - out << ", " << "data=" << to_string(obj.data); - out << ", " << "dbName="; (obj.__isset.dbName ? (out << to_string(obj.dbName)) : (out << "")); - out << ", " << "tableName="; (obj.__isset.tableName ? (out << to_string(obj.tableName)) : (out << "")); - out << ", " << "partitionVals="; (obj.__isset.partitionVals ? (out << to_string(obj.partitionVals)) : (out << "")); - out << ")"; - return out; -} - - -FireEventResponse::~FireEventResponse() throw() { -} - - const char* FireEventResponse::ascii_fingerprint = "99914B932BD37A50B983C5E7C90AE93B"; const uint8_t FireEventResponse::binary_fingerprint[16] = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; @@ -14342,12 +10301,10 @@ uint32_t FireEventResponse::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t FireEventResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("FireEventResponse"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -14357,31 +10314,6 @@ void swap(FireEventResponse &a, FireEventResponse &b) { (void) b; } -FireEventResponse::FireEventResponse(const FireEventResponse& other607) { - (void) other607; -} -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other608) { - (void) other608; - return *this; -} -std::ostream& operator<<(std::ostream& out, const FireEventResponse& obj) { - using apache::thrift::to_string; - (void) obj; - out << "FireEventResponse("; - out << ")"; - return out; -} - - -GetAllFunctionsResponse::~GetAllFunctionsResponse() throw() { -} - - -void GetAllFunctionsResponse::__set_functions(const std::vector & val) { - this->functions = val; -__isset.functions = true; -} - const char* GetAllFunctionsResponse::ascii_fingerprint = "CEE0CA1D7402D4135EF7F42C0F0E0A68"; const uint8_t GetAllFunctionsResponse::binary_fingerprint[16] = {0xCE,0xE0,0xCA,0x1D,0x74,0x02,0xD4,0x13,0x5E,0xF7,0xF4,0x2C,0x0F,0x0E,0x0A,0x68}; @@ -14409,14 +10341,14 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->functions.clear(); - uint32_t _size609; - ::apache::thrift::protocol::TType _etype612; - xfer += iprot->readListBegin(_etype612, _size609); - this->functions.resize(_size609); - uint32_t _i613; - for (_i613 = 0; _i613 < _size609; ++_i613) + uint32_t _size425; + ::apache::thrift::protocol::TType _etype428; + xfer += iprot->readListBegin(_etype428, _size425); + this->functions.resize(_size425); + uint32_t _i429; + for (_i429 = 0; _i429 < _size425; ++_i429) { - xfer += this->functions[_i613].read(iprot); + xfer += this->functions[_i429].read(iprot); } xfer += iprot->readListEnd(); } @@ -14439,17 +10371,16 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip uint32_t GetAllFunctionsResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("GetAllFunctionsResponse"); if (this->__isset.functions) { 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 _iter614; - for (_iter614 = this->functions.begin(); _iter614 != this->functions.end(); ++_iter614) + std::vector ::const_iterator _iter430; + for (_iter430 = this->functions.begin(); _iter430 != this->functions.end(); ++_iter430) { - xfer += (*_iter614).write(oprot); + xfer += (*_iter430).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14457,7 +10388,6 @@ uint32_t GetAllFunctionsResponse::write(::apache::thrift::protocol::TProtocol* o } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -14467,32 +10397,6 @@ void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { swap(a.__isset, b.__isset); } -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other615) { - functions = other615.functions; - __isset = other615.__isset; -} -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other616) { - functions = other616.functions; - __isset = other616.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const GetAllFunctionsResponse& obj) { - using apache::thrift::to_string; - out << "GetAllFunctionsResponse("; - out << "functions="; (obj.__isset.functions ? (out << to_string(obj.functions)) : (out << "")); - out << ")"; - return out; -} - - -MetaException::~MetaException() throw() { -} - - -void MetaException::__set_message(const std::string& val) { - this->message = val; -} - const char* MetaException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t MetaException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -14538,7 +10442,6 @@ uint32_t MetaException::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t MetaException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("MetaException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -14547,7 +10450,6 @@ uint32_t MetaException::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -14557,32 +10459,6 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other617) : TException() { - message = other617.message; - __isset = other617.__isset; -} -MetaException& MetaException::operator=(const MetaException& other618) { - message = other618.message; - __isset = other618.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const MetaException& obj) { - using apache::thrift::to_string; - out << "MetaException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -UnknownTableException::~UnknownTableException() throw() { -} - - -void UnknownTableException::__set_message(const std::string& val) { - this->message = val; -} - const char* UnknownTableException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t UnknownTableException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -14628,7 +10504,6 @@ uint32_t UnknownTableException::read(::apache::thrift::protocol::TProtocol* ipro uint32_t UnknownTableException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("UnknownTableException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -14637,7 +10512,6 @@ uint32_t UnknownTableException::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -14647,32 +10521,6 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other619) : TException() { - message = other619.message; - __isset = other619.__isset; -} -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other620) { - message = other620.message; - __isset = other620.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const UnknownTableException& obj) { - using apache::thrift::to_string; - out << "UnknownTableException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -UnknownDBException::~UnknownDBException() throw() { -} - - -void UnknownDBException::__set_message(const std::string& val) { - this->message = val; -} - const char* UnknownDBException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t UnknownDBException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -14718,7 +10566,6 @@ uint32_t UnknownDBException::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t UnknownDBException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("UnknownDBException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -14727,7 +10574,6 @@ uint32_t UnknownDBException::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -14737,32 +10583,6 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other621) : TException() { - message = other621.message; - __isset = other621.__isset; -} -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other622) { - message = other622.message; - __isset = other622.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const UnknownDBException& obj) { - using apache::thrift::to_string; - out << "UnknownDBException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -AlreadyExistsException::~AlreadyExistsException() throw() { -} - - -void AlreadyExistsException::__set_message(const std::string& val) { - this->message = val; -} - const char* AlreadyExistsException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t AlreadyExistsException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -14808,7 +10628,6 @@ uint32_t AlreadyExistsException::read(::apache::thrift::protocol::TProtocol* ipr uint32_t AlreadyExistsException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("AlreadyExistsException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -14817,7 +10636,6 @@ uint32_t AlreadyExistsException::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -14827,32 +10645,6 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other623) : TException() { - message = other623.message; - __isset = other623.__isset; -} -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other624) { - message = other624.message; - __isset = other624.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const AlreadyExistsException& obj) { - using apache::thrift::to_string; - out << "AlreadyExistsException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -InvalidPartitionException::~InvalidPartitionException() throw() { -} - - -void InvalidPartitionException::__set_message(const std::string& val) { - this->message = val; -} - const char* InvalidPartitionException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t InvalidPartitionException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -14898,7 +10690,6 @@ uint32_t InvalidPartitionException::read(::apache::thrift::protocol::TProtocol* uint32_t InvalidPartitionException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("InvalidPartitionException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -14907,7 +10698,6 @@ uint32_t InvalidPartitionException::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -14917,32 +10707,6 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other625) : TException() { - message = other625.message; - __isset = other625.__isset; -} -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other626) { - message = other626.message; - __isset = other626.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const InvalidPartitionException& obj) { - using apache::thrift::to_string; - out << "InvalidPartitionException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -UnknownPartitionException::~UnknownPartitionException() throw() { -} - - -void UnknownPartitionException::__set_message(const std::string& val) { - this->message = val; -} - const char* UnknownPartitionException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t UnknownPartitionException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -14988,7 +10752,6 @@ uint32_t UnknownPartitionException::read(::apache::thrift::protocol::TProtocol* uint32_t UnknownPartitionException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("UnknownPartitionException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -14997,7 +10760,6 @@ uint32_t UnknownPartitionException::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -15007,32 +10769,6 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other627) : TException() { - message = other627.message; - __isset = other627.__isset; -} -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other628) { - message = other628.message; - __isset = other628.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const UnknownPartitionException& obj) { - using apache::thrift::to_string; - out << "UnknownPartitionException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -InvalidObjectException::~InvalidObjectException() throw() { -} - - -void InvalidObjectException::__set_message(const std::string& val) { - this->message = val; -} - const char* InvalidObjectException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t InvalidObjectException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -15078,7 +10814,6 @@ uint32_t InvalidObjectException::read(::apache::thrift::protocol::TProtocol* ipr uint32_t InvalidObjectException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("InvalidObjectException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15087,7 +10822,6 @@ uint32_t InvalidObjectException::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -15097,32 +10831,6 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other629) : TException() { - message = other629.message; - __isset = other629.__isset; -} -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other630) { - message = other630.message; - __isset = other630.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const InvalidObjectException& obj) { - using apache::thrift::to_string; - out << "InvalidObjectException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -NoSuchObjectException::~NoSuchObjectException() throw() { -} - - -void NoSuchObjectException::__set_message(const std::string& val) { - this->message = val; -} - const char* NoSuchObjectException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t NoSuchObjectException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -15168,7 +10876,6 @@ uint32_t NoSuchObjectException::read(::apache::thrift::protocol::TProtocol* ipro uint32_t NoSuchObjectException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("NoSuchObjectException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15177,7 +10884,6 @@ uint32_t NoSuchObjectException::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -15187,32 +10893,6 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other631) : TException() { - message = other631.message; - __isset = other631.__isset; -} -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other632) { - message = other632.message; - __isset = other632.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const NoSuchObjectException& obj) { - using apache::thrift::to_string; - out << "NoSuchObjectException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -IndexAlreadyExistsException::~IndexAlreadyExistsException() throw() { -} - - -void IndexAlreadyExistsException::__set_message(const std::string& val) { - this->message = val; -} - const char* IndexAlreadyExistsException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t IndexAlreadyExistsException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -15258,7 +10938,6 @@ uint32_t IndexAlreadyExistsException::read(::apache::thrift::protocol::TProtocol uint32_t IndexAlreadyExistsException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("IndexAlreadyExistsException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15267,7 +10946,6 @@ uint32_t IndexAlreadyExistsException::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -15277,32 +10955,6 @@ void swap(IndexAlreadyExistsException &a, IndexAlreadyExistsException &b) { swap(a.__isset, b.__isset); } -IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other633) : TException() { - message = other633.message; - __isset = other633.__isset; -} -IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other634) { - message = other634.message; - __isset = other634.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const IndexAlreadyExistsException& obj) { - using apache::thrift::to_string; - out << "IndexAlreadyExistsException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -InvalidOperationException::~InvalidOperationException() throw() { -} - - -void InvalidOperationException::__set_message(const std::string& val) { - this->message = val; -} - const char* InvalidOperationException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t InvalidOperationException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -15348,7 +11000,6 @@ uint32_t InvalidOperationException::read(::apache::thrift::protocol::TProtocol* uint32_t InvalidOperationException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("InvalidOperationException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15357,7 +11008,6 @@ uint32_t InvalidOperationException::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -15367,32 +11017,6 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other635) : TException() { - message = other635.message; - __isset = other635.__isset; -} -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other636) { - message = other636.message; - __isset = other636.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const InvalidOperationException& obj) { - using apache::thrift::to_string; - out << "InvalidOperationException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -ConfigValSecurityException::~ConfigValSecurityException() throw() { -} - - -void ConfigValSecurityException::__set_message(const std::string& val) { - this->message = val; -} - const char* ConfigValSecurityException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t ConfigValSecurityException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -15438,7 +11062,6 @@ uint32_t ConfigValSecurityException::read(::apache::thrift::protocol::TProtocol* uint32_t ConfigValSecurityException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ConfigValSecurityException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15447,7 +11070,6 @@ uint32_t ConfigValSecurityException::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -15457,32 +11079,6 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other637) : TException() { - message = other637.message; - __isset = other637.__isset; -} -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other638) { - message = other638.message; - __isset = other638.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const ConfigValSecurityException& obj) { - using apache::thrift::to_string; - out << "ConfigValSecurityException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -InvalidInputException::~InvalidInputException() throw() { -} - - -void InvalidInputException::__set_message(const std::string& val) { - this->message = val; -} - const char* InvalidInputException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t InvalidInputException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -15528,7 +11124,6 @@ uint32_t InvalidInputException::read(::apache::thrift::protocol::TProtocol* ipro uint32_t InvalidInputException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("InvalidInputException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15537,7 +11132,6 @@ uint32_t InvalidInputException::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -15547,32 +11141,6 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other639) : TException() { - message = other639.message; - __isset = other639.__isset; -} -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other640) { - message = other640.message; - __isset = other640.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const InvalidInputException& obj) { - using apache::thrift::to_string; - out << "InvalidInputException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -NoSuchTxnException::~NoSuchTxnException() throw() { -} - - -void NoSuchTxnException::__set_message(const std::string& val) { - this->message = val; -} - const char* NoSuchTxnException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t NoSuchTxnException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -15618,7 +11186,6 @@ uint32_t NoSuchTxnException::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t NoSuchTxnException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("NoSuchTxnException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15627,7 +11194,6 @@ uint32_t NoSuchTxnException::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -15637,32 +11203,6 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other641) : TException() { - message = other641.message; - __isset = other641.__isset; -} -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other642) { - message = other642.message; - __isset = other642.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const NoSuchTxnException& obj) { - using apache::thrift::to_string; - out << "NoSuchTxnException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -TxnAbortedException::~TxnAbortedException() throw() { -} - - -void TxnAbortedException::__set_message(const std::string& val) { - this->message = val; -} - const char* TxnAbortedException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t TxnAbortedException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -15708,7 +11248,6 @@ uint32_t TxnAbortedException::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TxnAbortedException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TxnAbortedException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15717,7 +11256,6 @@ uint32_t TxnAbortedException::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -15727,32 +11265,6 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other643) : TException() { - message = other643.message; - __isset = other643.__isset; -} -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other644) { - message = other644.message; - __isset = other644.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TxnAbortedException& obj) { - using apache::thrift::to_string; - out << "TxnAbortedException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -TxnOpenException::~TxnOpenException() throw() { -} - - -void TxnOpenException::__set_message(const std::string& val) { - this->message = val; -} - const char* TxnOpenException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t TxnOpenException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -15798,7 +11310,6 @@ uint32_t TxnOpenException::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TxnOpenException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TxnOpenException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15807,7 +11318,6 @@ uint32_t TxnOpenException::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -15817,32 +11327,6 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other645) : TException() { - message = other645.message; - __isset = other645.__isset; -} -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other646) { - message = other646.message; - __isset = other646.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TxnOpenException& obj) { - using apache::thrift::to_string; - out << "TxnOpenException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - - -NoSuchLockException::~NoSuchLockException() throw() { -} - - -void NoSuchLockException::__set_message(const std::string& val) { - this->message = val; -} - const char* NoSuchLockException::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t NoSuchLockException::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -15888,7 +11372,6 @@ uint32_t NoSuchLockException::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t NoSuchLockException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("NoSuchLockException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -15897,7 +11380,6 @@ uint32_t NoSuchLockException::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -15907,21 +11389,4 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other647) : TException() { - message = other647.message; - __isset = other647.__isset; -} -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other648) { - message = other648.message; - __isset = other648.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const NoSuchLockException& obj) { - using apache::thrift::to_string; - out << "NoSuchLockException("; - out << "message=" << to_string(obj.message); - out << ")"; - return out; -} - }}} // namespace 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 36110e6..61a52cb 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,14 +7,11 @@ #ifndef hive_metastore_TYPES_H #define hive_metastore_TYPES_H -#include - #include #include #include #include -#include #include "fb303_types.h" @@ -137,228 +134,10 @@ struct ResourceType { extern const std::map _ResourceType_VALUES_TO_NAMES; -class Version; - -class FieldSchema; - -class Type; - -class HiveObjectRef; - -class PrivilegeGrantInfo; - -class HiveObjectPrivilege; - -class PrivilegeBag; - -class PrincipalPrivilegeSet; - -class GrantRevokePrivilegeRequest; - -class GrantRevokePrivilegeResponse; - -class Role; - -class RolePrincipalGrant; - -class GetRoleGrantsForPrincipalRequest; - -class GetRoleGrantsForPrincipalResponse; - -class GetPrincipalsInRoleRequest; - -class GetPrincipalsInRoleResponse; - -class GrantRevokeRoleRequest; - -class GrantRevokeRoleResponse; - -class Database; - -class SerDeInfo; - -class Order; - -class SkewedInfo; - -class StorageDescriptor; - -class Table; - -class Partition; - -class PartitionWithoutSD; - -class PartitionSpecWithSharedSD; - -class PartitionListComposingSpec; - -class PartitionSpec; - -class Index; - -class BooleanColumnStatsData; - -class DoubleColumnStatsData; - -class LongColumnStatsData; - -class StringColumnStatsData; - -class BinaryColumnStatsData; - -class Decimal; - -class DecimalColumnStatsData; - -class Date; - -class DateColumnStatsData; - -class ColumnStatisticsData; - -class ColumnStatisticsObj; - -class ColumnStatisticsDesc; - -class ColumnStatistics; - -class AggrStats; - -class SetPartitionsStatsRequest; - -class Schema; - -class EnvironmentContext; - -class PartitionsByExprResult; - -class PartitionsByExprRequest; - -class TableStatsResult; - -class PartitionsStatsResult; - -class TableStatsRequest; - -class PartitionsStatsRequest; - -class AddPartitionsResult; - -class AddPartitionsRequest; - -class DropPartitionsResult; - -class DropPartitionsExpr; - -class RequestPartsSpec; - -class DropPartitionsRequest; - -class ResourceUri; - -class Function; - -class TxnInfo; - -class GetOpenTxnsInfoResponse; - -class GetOpenTxnsResponse; - -class OpenTxnRequest; - -class OpenTxnsResponse; - -class AbortTxnRequest; - -class CommitTxnRequest; - -class LockComponent; - -class LockRequest; - -class LockResponse; - -class CheckLockRequest; - -class UnlockRequest; - -class ShowLocksRequest; - -class ShowLocksResponseElement; - -class ShowLocksResponse; - -class HeartbeatRequest; - -class HeartbeatTxnRangeRequest; - -class HeartbeatTxnRangeResponse; - -class CompactionRequest; - -class ShowCompactRequest; - -class ShowCompactResponseElement; - -class ShowCompactResponse; - -class AddDynamicPartitions; - -class NotificationEventRequest; - -class NotificationEvent; - -class NotificationEventResponse; - -class CurrentNotificationEventId; - -class InsertEventRequestData; - -class FireEventRequestData; - -class FireEventRequest; - -class FireEventResponse; - -class GetAllFunctionsResponse; - -class MetaException; - -class UnknownTableException; - -class UnknownDBException; - -class AlreadyExistsException; - -class InvalidPartitionException; - -class UnknownPartitionException; - -class InvalidObjectException; - -class NoSuchObjectException; - -class IndexAlreadyExistsException; - -class InvalidOperationException; - -class ConfigValSecurityException; - -class InvalidInputException; - -class NoSuchTxnException; - -class TxnAbortedException; - -class TxnOpenException; - -class NoSuchLockException; - typedef struct _Version__isset { _Version__isset() : version(false), comments(false) {} - bool version :1; - bool comments :1; + bool version; + bool comments; } _Version__isset; class Version { @@ -367,20 +146,23 @@ class Version { static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; - Version(const Version&); - Version& operator=(const Version&); Version() : version(), comments() { } - virtual ~Version() throw(); + virtual ~Version() throw() {} + std::string version; std::string comments; _Version__isset __isset; - void __set_version(const std::string& val); + void __set_version(const std::string& val) { + version = val; + } - void __set_comments(const std::string& val); + void __set_comments(const std::string& val) { + comments = val; + } bool operator == (const Version & rhs) const { @@ -399,16 +181,15 @@ class Version { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Version& obj); }; void swap(Version &a, Version &b); typedef struct _FieldSchema__isset { _FieldSchema__isset() : name(false), type(false), comment(false) {} - bool name :1; - bool type :1; - bool comment :1; + bool name; + bool type; + bool comment; } _FieldSchema__isset; class FieldSchema { @@ -417,23 +198,28 @@ class FieldSchema { static const char* ascii_fingerprint; // = "AB879940BD15B6B25691265F7384B271"; static const uint8_t binary_fingerprint[16]; // = {0xAB,0x87,0x99,0x40,0xBD,0x15,0xB6,0xB2,0x56,0x91,0x26,0x5F,0x73,0x84,0xB2,0x71}; - FieldSchema(const FieldSchema&); - FieldSchema& operator=(const FieldSchema&); FieldSchema() : name(), type(), comment() { } - virtual ~FieldSchema() throw(); + virtual ~FieldSchema() throw() {} + std::string name; std::string type; std::string comment; _FieldSchema__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_type(const std::string& val); + void __set_type(const std::string& val) { + type = val; + } - void __set_comment(const std::string& val); + void __set_comment(const std::string& val) { + comment = val; + } bool operator == (const FieldSchema & rhs) const { @@ -454,17 +240,16 @@ class FieldSchema { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const FieldSchema& obj); }; void swap(FieldSchema &a, FieldSchema &b); typedef struct _Type__isset { _Type__isset() : name(false), type1(false), type2(false), fields(false) {} - bool name :1; - bool type1 :1; - bool type2 :1; - bool fields :1; + bool name; + bool type1; + bool type2; + bool fields; } _Type__isset; class Type { @@ -473,12 +258,11 @@ class Type { static const char* ascii_fingerprint; // = "20DF02DE523C27F7066C7BD4D9120842"; static const uint8_t binary_fingerprint[16]; // = {0x20,0xDF,0x02,0xDE,0x52,0x3C,0x27,0xF7,0x06,0x6C,0x7B,0xD4,0xD9,0x12,0x08,0x42}; - Type(const Type&); - Type& operator=(const Type&); Type() : name(), type1(), type2() { } - virtual ~Type() throw(); + virtual ~Type() throw() {} + std::string name; std::string type1; std::string type2; @@ -486,13 +270,24 @@ class Type { _Type__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_type1(const std::string& val); + void __set_type1(const std::string& val) { + type1 = val; + __isset.type1 = true; + } - void __set_type2(const std::string& val); + void __set_type2(const std::string& val) { + type2 = val; + __isset.type2 = true; + } - void __set_fields(const std::vector & val); + void __set_fields(const std::vector & val) { + fields = val; + __isset.fields = true; + } bool operator == (const Type & rhs) const { @@ -521,18 +316,17 @@ class Type { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Type& obj); }; void swap(Type &a, Type &b); typedef struct _HiveObjectRef__isset { _HiveObjectRef__isset() : objectType(false), dbName(false), objectName(false), partValues(false), columnName(false) {} - bool objectType :1; - bool dbName :1; - bool objectName :1; - bool partValues :1; - bool columnName :1; + bool objectType; + bool dbName; + bool objectName; + bool partValues; + bool columnName; } _HiveObjectRef__isset; class HiveObjectRef { @@ -541,12 +335,11 @@ class HiveObjectRef { static const char* ascii_fingerprint; // = "205CD8311CF3AA9EC161BAEF8D7C933C"; static const uint8_t binary_fingerprint[16]; // = {0x20,0x5C,0xD8,0x31,0x1C,0xF3,0xAA,0x9E,0xC1,0x61,0xBA,0xEF,0x8D,0x7C,0x93,0x3C}; - HiveObjectRef(const HiveObjectRef&); - HiveObjectRef& operator=(const HiveObjectRef&); HiveObjectRef() : objectType((HiveObjectType::type)0), dbName(), objectName(), columnName() { } - virtual ~HiveObjectRef() throw(); + virtual ~HiveObjectRef() throw() {} + HiveObjectType::type objectType; std::string dbName; std::string objectName; @@ -555,15 +348,25 @@ class HiveObjectRef { _HiveObjectRef__isset __isset; - void __set_objectType(const HiveObjectType::type val); + void __set_objectType(const HiveObjectType::type val) { + objectType = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_objectName(const std::string& val); + void __set_objectName(const std::string& val) { + objectName = val; + } - void __set_partValues(const std::vector & val); + void __set_partValues(const std::vector & val) { + partValues = val; + } - void __set_columnName(const std::string& val); + void __set_columnName(const std::string& val) { + columnName = val; + } bool operator == (const HiveObjectRef & rhs) const { @@ -588,18 +391,17 @@ class HiveObjectRef { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const HiveObjectRef& obj); }; void swap(HiveObjectRef &a, HiveObjectRef &b); typedef struct _PrivilegeGrantInfo__isset { _PrivilegeGrantInfo__isset() : privilege(false), createTime(false), grantor(false), grantorType(false), grantOption(false) {} - bool privilege :1; - bool createTime :1; - bool grantor :1; - bool grantorType :1; - bool grantOption :1; + bool privilege; + bool createTime; + bool grantor; + bool grantorType; + bool grantOption; } _PrivilegeGrantInfo__isset; class PrivilegeGrantInfo { @@ -608,12 +410,11 @@ class PrivilegeGrantInfo { static const char* ascii_fingerprint; // = "A58923AF7294BE492D6F90E07E8CEE1F"; static const uint8_t binary_fingerprint[16]; // = {0xA5,0x89,0x23,0xAF,0x72,0x94,0xBE,0x49,0x2D,0x6F,0x90,0xE0,0x7E,0x8C,0xEE,0x1F}; - PrivilegeGrantInfo(const PrivilegeGrantInfo&); - PrivilegeGrantInfo& operator=(const PrivilegeGrantInfo&); PrivilegeGrantInfo() : privilege(), createTime(0), grantor(), grantorType((PrincipalType::type)0), grantOption(0) { } - virtual ~PrivilegeGrantInfo() throw(); + virtual ~PrivilegeGrantInfo() throw() {} + std::string privilege; int32_t createTime; std::string grantor; @@ -622,15 +423,25 @@ class PrivilegeGrantInfo { _PrivilegeGrantInfo__isset __isset; - void __set_privilege(const std::string& val); + void __set_privilege(const std::string& val) { + privilege = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_grantor(const std::string& val); + void __set_grantor(const std::string& val) { + grantor = val; + } - void __set_grantorType(const PrincipalType::type val); + void __set_grantorType(const PrincipalType::type val) { + grantorType = val; + } - void __set_grantOption(const bool val); + void __set_grantOption(const bool val) { + grantOption = val; + } bool operator == (const PrivilegeGrantInfo & rhs) const { @@ -655,17 +466,16 @@ class PrivilegeGrantInfo { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const PrivilegeGrantInfo& obj); }; void swap(PrivilegeGrantInfo &a, PrivilegeGrantInfo &b); typedef struct _HiveObjectPrivilege__isset { _HiveObjectPrivilege__isset() : hiveObject(false), principalName(false), principalType(false), grantInfo(false) {} - bool hiveObject :1; - bool principalName :1; - bool principalType :1; - bool grantInfo :1; + bool hiveObject; + bool principalName; + bool principalType; + bool grantInfo; } _HiveObjectPrivilege__isset; class HiveObjectPrivilege { @@ -674,12 +484,11 @@ class HiveObjectPrivilege { static const char* ascii_fingerprint; // = "83D71969B23BD853E29DBA9D43B29AF8"; static const uint8_t binary_fingerprint[16]; // = {0x83,0xD7,0x19,0x69,0xB2,0x3B,0xD8,0x53,0xE2,0x9D,0xBA,0x9D,0x43,0xB2,0x9A,0xF8}; - HiveObjectPrivilege(const HiveObjectPrivilege&); - HiveObjectPrivilege& operator=(const HiveObjectPrivilege&); HiveObjectPrivilege() : principalName(), principalType((PrincipalType::type)0) { } - virtual ~HiveObjectPrivilege() throw(); + virtual ~HiveObjectPrivilege() throw() {} + HiveObjectRef hiveObject; std::string principalName; PrincipalType::type principalType; @@ -687,13 +496,21 @@ class HiveObjectPrivilege { _HiveObjectPrivilege__isset __isset; - void __set_hiveObject(const HiveObjectRef& val); + void __set_hiveObject(const HiveObjectRef& val) { + hiveObject = val; + } - void __set_principalName(const std::string& val); + void __set_principalName(const std::string& val) { + principalName = val; + } - void __set_principalType(const PrincipalType::type val); + void __set_principalType(const PrincipalType::type val) { + principalType = val; + } - void __set_grantInfo(const PrivilegeGrantInfo& val); + void __set_grantInfo(const PrivilegeGrantInfo& val) { + grantInfo = val; + } bool operator == (const HiveObjectPrivilege & rhs) const { @@ -716,14 +533,13 @@ class HiveObjectPrivilege { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const HiveObjectPrivilege& obj); }; void swap(HiveObjectPrivilege &a, HiveObjectPrivilege &b); typedef struct _PrivilegeBag__isset { _PrivilegeBag__isset() : privileges(false) {} - bool privileges :1; + bool privileges; } _PrivilegeBag__isset; class PrivilegeBag { @@ -732,17 +548,18 @@ class PrivilegeBag { static const char* ascii_fingerprint; // = "BB89E4701B7B709B046A74C90B1147F2"; static const uint8_t binary_fingerprint[16]; // = {0xBB,0x89,0xE4,0x70,0x1B,0x7B,0x70,0x9B,0x04,0x6A,0x74,0xC9,0x0B,0x11,0x47,0xF2}; - PrivilegeBag(const PrivilegeBag&); - PrivilegeBag& operator=(const PrivilegeBag&); PrivilegeBag() { } - virtual ~PrivilegeBag() throw(); + virtual ~PrivilegeBag() throw() {} + std::vector privileges; _PrivilegeBag__isset __isset; - void __set_privileges(const std::vector & val); + void __set_privileges(const std::vector & val) { + privileges = val; + } bool operator == (const PrivilegeBag & rhs) const { @@ -759,16 +576,15 @@ class PrivilegeBag { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const PrivilegeBag& obj); }; void swap(PrivilegeBag &a, PrivilegeBag &b); typedef struct _PrincipalPrivilegeSet__isset { _PrincipalPrivilegeSet__isset() : userPrivileges(false), groupPrivileges(false), rolePrivileges(false) {} - bool userPrivileges :1; - bool groupPrivileges :1; - bool rolePrivileges :1; + bool userPrivileges; + bool groupPrivileges; + bool rolePrivileges; } _PrincipalPrivilegeSet__isset; class PrincipalPrivilegeSet { @@ -777,23 +593,28 @@ class PrincipalPrivilegeSet { static const char* ascii_fingerprint; // = "08F75D2533906EA87BE34EA640856683"; static const uint8_t binary_fingerprint[16]; // = {0x08,0xF7,0x5D,0x25,0x33,0x90,0x6E,0xA8,0x7B,0xE3,0x4E,0xA6,0x40,0x85,0x66,0x83}; - PrincipalPrivilegeSet(const PrincipalPrivilegeSet&); - PrincipalPrivilegeSet& operator=(const PrincipalPrivilegeSet&); PrincipalPrivilegeSet() { } - virtual ~PrincipalPrivilegeSet() throw(); + virtual ~PrincipalPrivilegeSet() throw() {} + std::map > userPrivileges; std::map > groupPrivileges; std::map > rolePrivileges; _PrincipalPrivilegeSet__isset __isset; - void __set_userPrivileges(const std::map > & val); + void __set_userPrivileges(const std::map > & val) { + userPrivileges = val; + } - void __set_groupPrivileges(const std::map > & val); + void __set_groupPrivileges(const std::map > & val) { + groupPrivileges = val; + } - void __set_rolePrivileges(const std::map > & val); + void __set_rolePrivileges(const std::map > & val) { + rolePrivileges = val; + } bool operator == (const PrincipalPrivilegeSet & rhs) const { @@ -814,16 +635,15 @@ class PrincipalPrivilegeSet { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const PrincipalPrivilegeSet& obj); }; void swap(PrincipalPrivilegeSet &a, PrincipalPrivilegeSet &b); typedef struct _GrantRevokePrivilegeRequest__isset { _GrantRevokePrivilegeRequest__isset() : requestType(false), privileges(false), revokeGrantOption(false) {} - bool requestType :1; - bool privileges :1; - bool revokeGrantOption :1; + bool requestType; + bool privileges; + bool revokeGrantOption; } _GrantRevokePrivilegeRequest__isset; class GrantRevokePrivilegeRequest { @@ -832,23 +652,29 @@ class GrantRevokePrivilegeRequest { static const char* ascii_fingerprint; // = "DF474A3CB526AD40DC0F2C3702F7AA2C"; static const uint8_t binary_fingerprint[16]; // = {0xDF,0x47,0x4A,0x3C,0xB5,0x26,0xAD,0x40,0xDC,0x0F,0x2C,0x37,0x02,0xF7,0xAA,0x2C}; - GrantRevokePrivilegeRequest(const GrantRevokePrivilegeRequest&); - GrantRevokePrivilegeRequest& operator=(const GrantRevokePrivilegeRequest&); GrantRevokePrivilegeRequest() : requestType((GrantRevokeType::type)0), revokeGrantOption(0) { } - virtual ~GrantRevokePrivilegeRequest() throw(); + virtual ~GrantRevokePrivilegeRequest() throw() {} + GrantRevokeType::type requestType; PrivilegeBag privileges; bool revokeGrantOption; _GrantRevokePrivilegeRequest__isset __isset; - void __set_requestType(const GrantRevokeType::type val); + void __set_requestType(const GrantRevokeType::type val) { + requestType = val; + } - void __set_privileges(const PrivilegeBag& val); + void __set_privileges(const PrivilegeBag& val) { + privileges = val; + } - void __set_revokeGrantOption(const bool val); + void __set_revokeGrantOption(const bool val) { + revokeGrantOption = val; + __isset.revokeGrantOption = true; + } bool operator == (const GrantRevokePrivilegeRequest & rhs) const { @@ -871,14 +697,13 @@ class GrantRevokePrivilegeRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const GrantRevokePrivilegeRequest& obj); }; void swap(GrantRevokePrivilegeRequest &a, GrantRevokePrivilegeRequest &b); typedef struct _GrantRevokePrivilegeResponse__isset { _GrantRevokePrivilegeResponse__isset() : success(false) {} - bool success :1; + bool success; } _GrantRevokePrivilegeResponse__isset; class GrantRevokePrivilegeResponse { @@ -887,17 +712,19 @@ class GrantRevokePrivilegeResponse { static const char* ascii_fingerprint; // = "BF054652DEF86253C2BEE7D947F167DD"; static const uint8_t binary_fingerprint[16]; // = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD}; - GrantRevokePrivilegeResponse(const GrantRevokePrivilegeResponse&); - GrantRevokePrivilegeResponse& operator=(const GrantRevokePrivilegeResponse&); GrantRevokePrivilegeResponse() : success(0) { } - virtual ~GrantRevokePrivilegeResponse() throw(); + virtual ~GrantRevokePrivilegeResponse() throw() {} + bool success; _GrantRevokePrivilegeResponse__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + __isset.success = true; + } bool operator == (const GrantRevokePrivilegeResponse & rhs) const { @@ -916,16 +743,15 @@ class GrantRevokePrivilegeResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const GrantRevokePrivilegeResponse& obj); }; void swap(GrantRevokePrivilegeResponse &a, GrantRevokePrivilegeResponse &b); typedef struct _Role__isset { _Role__isset() : roleName(false), createTime(false), ownerName(false) {} - bool roleName :1; - bool createTime :1; - bool ownerName :1; + bool roleName; + bool createTime; + bool ownerName; } _Role__isset; class Role { @@ -934,23 +760,28 @@ class Role { static const char* ascii_fingerprint; // = "70563A0628F75DF9555F4D24690B1E26"; static const uint8_t binary_fingerprint[16]; // = {0x70,0x56,0x3A,0x06,0x28,0xF7,0x5D,0xF9,0x55,0x5F,0x4D,0x24,0x69,0x0B,0x1E,0x26}; - Role(const Role&); - Role& operator=(const Role&); Role() : roleName(), createTime(0), ownerName() { } - virtual ~Role() throw(); + virtual ~Role() throw() {} + std::string roleName; int32_t createTime; std::string ownerName; _Role__isset __isset; - void __set_roleName(const std::string& val); + void __set_roleName(const std::string& val) { + roleName = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_ownerName(const std::string& val); + void __set_ownerName(const std::string& val) { + ownerName = val; + } bool operator == (const Role & rhs) const { @@ -971,20 +802,19 @@ class Role { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Role& obj); }; void swap(Role &a, Role &b); typedef struct _RolePrincipalGrant__isset { _RolePrincipalGrant__isset() : roleName(false), principalName(false), principalType(false), grantOption(false), grantTime(false), grantorName(false), grantorPrincipalType(false) {} - bool roleName :1; - bool principalName :1; - bool principalType :1; - bool grantOption :1; - bool grantTime :1; - bool grantorName :1; - bool grantorPrincipalType :1; + bool roleName; + bool principalName; + bool principalType; + bool grantOption; + bool grantTime; + bool grantorName; + bool grantorPrincipalType; } _RolePrincipalGrant__isset; class RolePrincipalGrant { @@ -993,12 +823,11 @@ class RolePrincipalGrant { static const char* ascii_fingerprint; // = "899BA3F6214DD1B79D27206BA857C772"; static const uint8_t binary_fingerprint[16]; // = {0x89,0x9B,0xA3,0xF6,0x21,0x4D,0xD1,0xB7,0x9D,0x27,0x20,0x6B,0xA8,0x57,0xC7,0x72}; - RolePrincipalGrant(const RolePrincipalGrant&); - RolePrincipalGrant& operator=(const RolePrincipalGrant&); RolePrincipalGrant() : roleName(), principalName(), principalType((PrincipalType::type)0), grantOption(0), grantTime(0), grantorName(), grantorPrincipalType((PrincipalType::type)0) { } - virtual ~RolePrincipalGrant() throw(); + virtual ~RolePrincipalGrant() throw() {} + std::string roleName; std::string principalName; PrincipalType::type principalType; @@ -1009,19 +838,33 @@ class RolePrincipalGrant { _RolePrincipalGrant__isset __isset; - void __set_roleName(const std::string& val); + void __set_roleName(const std::string& val) { + roleName = val; + } - void __set_principalName(const std::string& val); + void __set_principalName(const std::string& val) { + principalName = val; + } - void __set_principalType(const PrincipalType::type val); + void __set_principalType(const PrincipalType::type val) { + principalType = val; + } - void __set_grantOption(const bool val); + void __set_grantOption(const bool val) { + grantOption = val; + } - void __set_grantTime(const int32_t val); + void __set_grantTime(const int32_t val) { + grantTime = val; + } - void __set_grantorName(const std::string& val); + void __set_grantorName(const std::string& val) { + grantorName = val; + } - void __set_grantorPrincipalType(const PrincipalType::type val); + void __set_grantorPrincipalType(const PrincipalType::type val) { + grantorPrincipalType = val; + } bool operator == (const RolePrincipalGrant & rhs) const { @@ -1050,7 +893,6 @@ class RolePrincipalGrant { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const RolePrincipalGrant& obj); }; void swap(RolePrincipalGrant &a, RolePrincipalGrant &b); @@ -1062,18 +904,21 @@ class GetRoleGrantsForPrincipalRequest { static const char* ascii_fingerprint; // = "D6FD826D949221396F4FFC3ECCD3D192"; static const uint8_t binary_fingerprint[16]; // = {0xD6,0xFD,0x82,0x6D,0x94,0x92,0x21,0x39,0x6F,0x4F,0xFC,0x3E,0xCC,0xD3,0xD1,0x92}; - GetRoleGrantsForPrincipalRequest(const GetRoleGrantsForPrincipalRequest&); - GetRoleGrantsForPrincipalRequest& operator=(const GetRoleGrantsForPrincipalRequest&); GetRoleGrantsForPrincipalRequest() : principal_name(), principal_type((PrincipalType::type)0) { } - virtual ~GetRoleGrantsForPrincipalRequest() throw(); + virtual ~GetRoleGrantsForPrincipalRequest() throw() {} + std::string principal_name; PrincipalType::type principal_type; - void __set_principal_name(const std::string& val); + void __set_principal_name(const std::string& val) { + principal_name = val; + } - void __set_principal_type(const PrincipalType::type val); + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } bool operator == (const GetRoleGrantsForPrincipalRequest & rhs) const { @@ -1092,7 +937,6 @@ class GetRoleGrantsForPrincipalRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const GetRoleGrantsForPrincipalRequest& obj); }; void swap(GetRoleGrantsForPrincipalRequest &a, GetRoleGrantsForPrincipalRequest &b); @@ -1104,15 +948,16 @@ class GetRoleGrantsForPrincipalResponse { static const char* ascii_fingerprint; // = "5926B4B3541A62E17663820C7E3BE690"; static const uint8_t binary_fingerprint[16]; // = {0x59,0x26,0xB4,0xB3,0x54,0x1A,0x62,0xE1,0x76,0x63,0x82,0x0C,0x7E,0x3B,0xE6,0x90}; - GetRoleGrantsForPrincipalResponse(const GetRoleGrantsForPrincipalResponse&); - GetRoleGrantsForPrincipalResponse& operator=(const GetRoleGrantsForPrincipalResponse&); GetRoleGrantsForPrincipalResponse() { } - virtual ~GetRoleGrantsForPrincipalResponse() throw(); + virtual ~GetRoleGrantsForPrincipalResponse() throw() {} + std::vector principalGrants; - void __set_principalGrants(const std::vector & val); + void __set_principalGrants(const std::vector & val) { + principalGrants = val; + } bool operator == (const GetRoleGrantsForPrincipalResponse & rhs) const { @@ -1129,7 +974,6 @@ class GetRoleGrantsForPrincipalResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const GetRoleGrantsForPrincipalResponse& obj); }; void swap(GetRoleGrantsForPrincipalResponse &a, GetRoleGrantsForPrincipalResponse &b); @@ -1141,15 +985,16 @@ class GetPrincipalsInRoleRequest { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - GetPrincipalsInRoleRequest(const GetPrincipalsInRoleRequest&); - GetPrincipalsInRoleRequest& operator=(const GetPrincipalsInRoleRequest&); GetPrincipalsInRoleRequest() : roleName() { } - virtual ~GetPrincipalsInRoleRequest() throw(); + virtual ~GetPrincipalsInRoleRequest() throw() {} + std::string roleName; - void __set_roleName(const std::string& val); + void __set_roleName(const std::string& val) { + roleName = val; + } bool operator == (const GetPrincipalsInRoleRequest & rhs) const { @@ -1166,7 +1011,6 @@ class GetPrincipalsInRoleRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const GetPrincipalsInRoleRequest& obj); }; void swap(GetPrincipalsInRoleRequest &a, GetPrincipalsInRoleRequest &b); @@ -1178,15 +1022,16 @@ class GetPrincipalsInRoleResponse { static const char* ascii_fingerprint; // = "5926B4B3541A62E17663820C7E3BE690"; static const uint8_t binary_fingerprint[16]; // = {0x59,0x26,0xB4,0xB3,0x54,0x1A,0x62,0xE1,0x76,0x63,0x82,0x0C,0x7E,0x3B,0xE6,0x90}; - GetPrincipalsInRoleResponse(const GetPrincipalsInRoleResponse&); - GetPrincipalsInRoleResponse& operator=(const GetPrincipalsInRoleResponse&); GetPrincipalsInRoleResponse() { } - virtual ~GetPrincipalsInRoleResponse() throw(); + virtual ~GetPrincipalsInRoleResponse() throw() {} + std::vector principalGrants; - void __set_principalGrants(const std::vector & val); + void __set_principalGrants(const std::vector & val) { + principalGrants = val; + } bool operator == (const GetPrincipalsInRoleResponse & rhs) const { @@ -1203,20 +1048,19 @@ class GetPrincipalsInRoleResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const GetPrincipalsInRoleResponse& obj); }; void swap(GetPrincipalsInRoleResponse &a, GetPrincipalsInRoleResponse &b); typedef struct _GrantRevokeRoleRequest__isset { _GrantRevokeRoleRequest__isset() : requestType(false), roleName(false), principalName(false), principalType(false), grantor(false), grantorType(false), grantOption(false) {} - bool requestType :1; - bool roleName :1; - bool principalName :1; - bool principalType :1; - bool grantor :1; - bool grantorType :1; - bool grantOption :1; + bool requestType; + bool roleName; + bool principalName; + bool principalType; + bool grantor; + bool grantorType; + bool grantOption; } _GrantRevokeRoleRequest__isset; class GrantRevokeRoleRequest { @@ -1225,12 +1069,11 @@ class GrantRevokeRoleRequest { static const char* ascii_fingerprint; // = "907DEA796F2BA7AF76DC2566E75FAEE7"; static const uint8_t binary_fingerprint[16]; // = {0x90,0x7D,0xEA,0x79,0x6F,0x2B,0xA7,0xAF,0x76,0xDC,0x25,0x66,0xE7,0x5F,0xAE,0xE7}; - GrantRevokeRoleRequest(const GrantRevokeRoleRequest&); - GrantRevokeRoleRequest& operator=(const GrantRevokeRoleRequest&); GrantRevokeRoleRequest() : requestType((GrantRevokeType::type)0), roleName(), principalName(), principalType((PrincipalType::type)0), grantor(), grantorType((PrincipalType::type)0), grantOption(0) { } - virtual ~GrantRevokeRoleRequest() throw(); + virtual ~GrantRevokeRoleRequest() throw() {} + GrantRevokeType::type requestType; std::string roleName; std::string principalName; @@ -1241,19 +1084,36 @@ class GrantRevokeRoleRequest { _GrantRevokeRoleRequest__isset __isset; - void __set_requestType(const GrantRevokeType::type val); + void __set_requestType(const GrantRevokeType::type val) { + requestType = val; + } - void __set_roleName(const std::string& val); + void __set_roleName(const std::string& val) { + roleName = val; + } - void __set_principalName(const std::string& val); + void __set_principalName(const std::string& val) { + principalName = val; + } - void __set_principalType(const PrincipalType::type val); + void __set_principalType(const PrincipalType::type val) { + principalType = val; + } - void __set_grantor(const std::string& val); + void __set_grantor(const std::string& val) { + grantor = val; + __isset.grantor = true; + } - void __set_grantorType(const PrincipalType::type val); + void __set_grantorType(const PrincipalType::type val) { + grantorType = val; + __isset.grantorType = true; + } - void __set_grantOption(const bool val); + void __set_grantOption(const bool val) { + grantOption = val; + __isset.grantOption = true; + } bool operator == (const GrantRevokeRoleRequest & rhs) const { @@ -1288,14 +1148,13 @@ class GrantRevokeRoleRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const GrantRevokeRoleRequest& obj); }; void swap(GrantRevokeRoleRequest &a, GrantRevokeRoleRequest &b); typedef struct _GrantRevokeRoleResponse__isset { _GrantRevokeRoleResponse__isset() : success(false) {} - bool success :1; + bool success; } _GrantRevokeRoleResponse__isset; class GrantRevokeRoleResponse { @@ -1304,17 +1163,19 @@ class GrantRevokeRoleResponse { static const char* ascii_fingerprint; // = "BF054652DEF86253C2BEE7D947F167DD"; static const uint8_t binary_fingerprint[16]; // = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD}; - GrantRevokeRoleResponse(const GrantRevokeRoleResponse&); - GrantRevokeRoleResponse& operator=(const GrantRevokeRoleResponse&); GrantRevokeRoleResponse() : success(0) { } - virtual ~GrantRevokeRoleResponse() throw(); + virtual ~GrantRevokeRoleResponse() throw() {} + bool success; _GrantRevokeRoleResponse__isset __isset; - void __set_success(const bool val); + void __set_success(const bool val) { + success = val; + __isset.success = true; + } bool operator == (const GrantRevokeRoleResponse & rhs) const { @@ -1333,20 +1194,19 @@ class GrantRevokeRoleResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const GrantRevokeRoleResponse& obj); }; void swap(GrantRevokeRoleResponse &a, GrantRevokeRoleResponse &b); typedef struct _Database__isset { _Database__isset() : name(false), description(false), locationUri(false), parameters(false), privileges(false), ownerName(false), ownerType(false) {} - bool name :1; - bool description :1; - bool locationUri :1; - bool parameters :1; - bool privileges :1; - bool ownerName :1; - bool ownerType :1; + bool name; + bool description; + bool locationUri; + bool parameters; + bool privileges; + bool ownerName; + bool ownerType; } _Database__isset; class Database { @@ -1355,12 +1215,11 @@ class Database { static const char* ascii_fingerprint; // = "553495CAE243A1C583D5C3DD990AED53"; static const uint8_t binary_fingerprint[16]; // = {0x55,0x34,0x95,0xCA,0xE2,0x43,0xA1,0xC5,0x83,0xD5,0xC3,0xDD,0x99,0x0A,0xED,0x53}; - Database(const Database&); - Database& operator=(const Database&); Database() : name(), description(), locationUri(), ownerName(), ownerType((PrincipalType::type)0) { } - virtual ~Database() throw(); + virtual ~Database() throw() {} + std::string name; std::string description; std::string locationUri; @@ -1371,19 +1230,36 @@ class Database { _Database__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_description(const std::string& val); + void __set_description(const std::string& val) { + description = val; + } - void __set_locationUri(const std::string& val); + void __set_locationUri(const std::string& val) { + locationUri = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } - void __set_privileges(const PrincipalPrivilegeSet& val); + void __set_privileges(const PrincipalPrivilegeSet& val) { + privileges = val; + __isset.privileges = true; + } - void __set_ownerName(const std::string& val); + void __set_ownerName(const std::string& val) { + ownerName = val; + __isset.ownerName = true; + } - void __set_ownerType(const PrincipalType::type val); + void __set_ownerType(const PrincipalType::type val) { + ownerType = val; + __isset.ownerType = true; + } bool operator == (const Database & rhs) const { @@ -1418,16 +1294,15 @@ class Database { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Database& obj); }; void swap(Database &a, Database &b); typedef struct _SerDeInfo__isset { _SerDeInfo__isset() : name(false), serializationLib(false), parameters(false) {} - bool name :1; - bool serializationLib :1; - bool parameters :1; + bool name; + bool serializationLib; + bool parameters; } _SerDeInfo__isset; class SerDeInfo { @@ -1436,23 +1311,28 @@ class SerDeInfo { static const char* ascii_fingerprint; // = "B1021C32A35A2AEFCD2F57A5424159A7"; static const uint8_t binary_fingerprint[16]; // = {0xB1,0x02,0x1C,0x32,0xA3,0x5A,0x2A,0xEF,0xCD,0x2F,0x57,0xA5,0x42,0x41,0x59,0xA7}; - SerDeInfo(const SerDeInfo&); - SerDeInfo& operator=(const SerDeInfo&); SerDeInfo() : name(), serializationLib() { } - virtual ~SerDeInfo() throw(); + virtual ~SerDeInfo() throw() {} + std::string name; std::string serializationLib; std::map parameters; _SerDeInfo__isset __isset; - void __set_name(const std::string& val); + void __set_name(const std::string& val) { + name = val; + } - void __set_serializationLib(const std::string& val); + void __set_serializationLib(const std::string& val) { + serializationLib = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } bool operator == (const SerDeInfo & rhs) const { @@ -1473,15 +1353,14 @@ class SerDeInfo { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const SerDeInfo& obj); }; void swap(SerDeInfo &a, SerDeInfo &b); typedef struct _Order__isset { _Order__isset() : col(false), order(false) {} - bool col :1; - bool order :1; + bool col; + bool order; } _Order__isset; class Order { @@ -1490,20 +1369,23 @@ class Order { static const char* ascii_fingerprint; // = "EEBC915CE44901401D881E6091423036"; static const uint8_t binary_fingerprint[16]; // = {0xEE,0xBC,0x91,0x5C,0xE4,0x49,0x01,0x40,0x1D,0x88,0x1E,0x60,0x91,0x42,0x30,0x36}; - Order(const Order&); - Order& operator=(const Order&); Order() : col(), order(0) { } - virtual ~Order() throw(); + virtual ~Order() throw() {} + std::string col; int32_t order; _Order__isset __isset; - void __set_col(const std::string& val); + void __set_col(const std::string& val) { + col = val; + } - void __set_order(const int32_t val); + void __set_order(const int32_t val) { + order = val; + } bool operator == (const Order & rhs) const { @@ -1522,16 +1404,15 @@ class Order { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Order& obj); }; void swap(Order &a, Order &b); typedef struct _SkewedInfo__isset { _SkewedInfo__isset() : skewedColNames(false), skewedColValues(false), skewedColValueLocationMaps(false) {} - bool skewedColNames :1; - bool skewedColValues :1; - bool skewedColValueLocationMaps :1; + bool skewedColNames; + bool skewedColValues; + bool skewedColValueLocationMaps; } _SkewedInfo__isset; class SkewedInfo { @@ -1540,23 +1421,28 @@ class SkewedInfo { static const char* ascii_fingerprint; // = "4BF2ED84BC3C3EB297A2AE2FA8427EB1"; static const uint8_t binary_fingerprint[16]; // = {0x4B,0xF2,0xED,0x84,0xBC,0x3C,0x3E,0xB2,0x97,0xA2,0xAE,0x2F,0xA8,0x42,0x7E,0xB1}; - SkewedInfo(const SkewedInfo&); - SkewedInfo& operator=(const SkewedInfo&); SkewedInfo() { } - virtual ~SkewedInfo() throw(); + virtual ~SkewedInfo() throw() {} + std::vector skewedColNames; std::vector > skewedColValues; std::map , std::string> skewedColValueLocationMaps; _SkewedInfo__isset __isset; - void __set_skewedColNames(const std::vector & val); + void __set_skewedColNames(const std::vector & val) { + skewedColNames = val; + } - void __set_skewedColValues(const std::vector > & val); + void __set_skewedColValues(const std::vector > & val) { + skewedColValues = val; + } - void __set_skewedColValueLocationMaps(const std::map , std::string> & val); + void __set_skewedColValueLocationMaps(const std::map , std::string> & val) { + skewedColValueLocationMaps = val; + } bool operator == (const SkewedInfo & rhs) const { @@ -1577,25 +1463,24 @@ class SkewedInfo { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const SkewedInfo& obj); }; void swap(SkewedInfo &a, SkewedInfo &b); typedef struct _StorageDescriptor__isset { _StorageDescriptor__isset() : cols(false), location(false), inputFormat(false), outputFormat(false), compressed(false), numBuckets(false), serdeInfo(false), bucketCols(false), sortCols(false), parameters(false), skewedInfo(false), storedAsSubDirectories(false) {} - bool cols :1; - bool location :1; - bool inputFormat :1; - bool outputFormat :1; - bool compressed :1; - bool numBuckets :1; - bool serdeInfo :1; - bool bucketCols :1; - bool sortCols :1; - bool parameters :1; - bool skewedInfo :1; - bool storedAsSubDirectories :1; + bool cols; + bool location; + bool inputFormat; + bool outputFormat; + bool compressed; + bool numBuckets; + bool serdeInfo; + bool bucketCols; + bool sortCols; + bool parameters; + bool skewedInfo; + bool storedAsSubDirectories; } _StorageDescriptor__isset; class StorageDescriptor { @@ -1604,12 +1489,11 @@ class StorageDescriptor { static const char* ascii_fingerprint; // = "CA8C9AA5FE4C32643757D8639CEF0CD7"; static const uint8_t binary_fingerprint[16]; // = {0xCA,0x8C,0x9A,0xA5,0xFE,0x4C,0x32,0x64,0x37,0x57,0xD8,0x63,0x9C,0xEF,0x0C,0xD7}; - StorageDescriptor(const StorageDescriptor&); - StorageDescriptor& operator=(const StorageDescriptor&); StorageDescriptor() : location(), inputFormat(), outputFormat(), compressed(0), numBuckets(0), storedAsSubDirectories(0) { } - virtual ~StorageDescriptor() throw(); + virtual ~StorageDescriptor() throw() {} + std::vector cols; std::string location; std::string inputFormat; @@ -1625,29 +1509,55 @@ class StorageDescriptor { _StorageDescriptor__isset __isset; - void __set_cols(const std::vector & val); + void __set_cols(const std::vector & val) { + cols = val; + } - void __set_location(const std::string& val); + void __set_location(const std::string& val) { + location = val; + } - void __set_inputFormat(const std::string& val); + void __set_inputFormat(const std::string& val) { + inputFormat = val; + } - void __set_outputFormat(const std::string& val); + void __set_outputFormat(const std::string& val) { + outputFormat = val; + } - void __set_compressed(const bool val); + void __set_compressed(const bool val) { + compressed = val; + } - void __set_numBuckets(const int32_t val); + void __set_numBuckets(const int32_t val) { + numBuckets = val; + } - void __set_serdeInfo(const SerDeInfo& val); + void __set_serdeInfo(const SerDeInfo& val) { + serdeInfo = val; + } - void __set_bucketCols(const std::vector & val); + void __set_bucketCols(const std::vector & val) { + bucketCols = val; + } - void __set_sortCols(const std::vector & val); + void __set_sortCols(const std::vector & val) { + sortCols = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } - void __set_skewedInfo(const SkewedInfo& val); + void __set_skewedInfo(const SkewedInfo& val) { + skewedInfo = val; + __isset.skewedInfo = true; + } - void __set_storedAsSubDirectories(const bool val); + void __set_storedAsSubDirectories(const bool val) { + storedAsSubDirectories = val; + __isset.storedAsSubDirectories = true; + } bool operator == (const StorageDescriptor & rhs) const { @@ -1690,27 +1600,26 @@ class StorageDescriptor { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const StorageDescriptor& obj); }; void swap(StorageDescriptor &a, StorageDescriptor &b); typedef struct _Table__isset { _Table__isset() : tableName(false), dbName(false), owner(false), createTime(false), lastAccessTime(false), retention(false), sd(false), partitionKeys(false), parameters(false), viewOriginalText(false), viewExpandedText(false), tableType(false), privileges(false), temporary(true) {} - bool tableName :1; - bool dbName :1; - bool owner :1; - bool createTime :1; - bool lastAccessTime :1; - bool retention :1; - bool sd :1; - bool partitionKeys :1; - bool parameters :1; - bool viewOriginalText :1; - bool viewExpandedText :1; - bool tableType :1; - bool privileges :1; - bool temporary :1; + bool tableName; + bool dbName; + bool owner; + bool createTime; + bool lastAccessTime; + bool retention; + bool sd; + bool partitionKeys; + bool parameters; + bool viewOriginalText; + bool viewExpandedText; + bool tableType; + bool privileges; + bool temporary; } _Table__isset; class Table { @@ -1719,12 +1628,11 @@ class Table { static const char* ascii_fingerprint; // = "29EFB2A5970EF572039E5D94CC78AA85"; static const uint8_t binary_fingerprint[16]; // = {0x29,0xEF,0xB2,0xA5,0x97,0x0E,0xF5,0x72,0x03,0x9E,0x5D,0x94,0xCC,0x78,0xAA,0x85}; - Table(const Table&); - Table& operator=(const Table&); Table() : tableName(), dbName(), owner(), createTime(0), lastAccessTime(0), retention(0), viewOriginalText(), viewExpandedText(), tableType(), temporary(false) { } - virtual ~Table() throw(); + virtual ~Table() throw() {} + std::string tableName; std::string dbName; std::string owner; @@ -1742,33 +1650,63 @@ class Table { _Table__isset __isset; - void __set_tableName(const std::string& val); + void __set_tableName(const std::string& val) { + tableName = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_owner(const std::string& val); + void __set_owner(const std::string& val) { + owner = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_lastAccessTime(const int32_t val); + void __set_lastAccessTime(const int32_t val) { + lastAccessTime = val; + } - void __set_retention(const int32_t val); + void __set_retention(const int32_t val) { + retention = val; + } - void __set_sd(const StorageDescriptor& val); + void __set_sd(const StorageDescriptor& val) { + sd = val; + } - void __set_partitionKeys(const std::vector & val); + void __set_partitionKeys(const std::vector & val) { + partitionKeys = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } - void __set_viewOriginalText(const std::string& val); + void __set_viewOriginalText(const std::string& val) { + viewOriginalText = val; + } - void __set_viewExpandedText(const std::string& val); + void __set_viewExpandedText(const std::string& val) { + viewExpandedText = val; + } - void __set_tableType(const std::string& val); + void __set_tableType(const std::string& val) { + tableType = val; + } - void __set_privileges(const PrincipalPrivilegeSet& val); + void __set_privileges(const PrincipalPrivilegeSet& val) { + privileges = val; + __isset.privileges = true; + } - void __set_temporary(const bool val); + void __set_temporary(const bool val) { + temporary = val; + __isset.temporary = true; + } bool operator == (const Table & rhs) const { @@ -1815,21 +1753,20 @@ class Table { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Table& obj); }; void swap(Table &a, Table &b); typedef struct _Partition__isset { _Partition__isset() : values(false), dbName(false), tableName(false), createTime(false), lastAccessTime(false), sd(false), parameters(false), privileges(false) {} - bool values :1; - bool dbName :1; - bool tableName :1; - bool createTime :1; - bool lastAccessTime :1; - bool sd :1; - bool parameters :1; - bool privileges :1; + bool values; + bool dbName; + bool tableName; + bool createTime; + bool lastAccessTime; + bool sd; + bool parameters; + bool privileges; } _Partition__isset; class Partition { @@ -1838,12 +1775,11 @@ class Partition { static const char* ascii_fingerprint; // = "31A52241B88A426C34087FE38343FF51"; static const uint8_t binary_fingerprint[16]; // = {0x31,0xA5,0x22,0x41,0xB8,0x8A,0x42,0x6C,0x34,0x08,0x7F,0xE3,0x83,0x43,0xFF,0x51}; - Partition(const Partition&); - Partition& operator=(const Partition&); Partition() : dbName(), tableName(), createTime(0), lastAccessTime(0) { } - virtual ~Partition() throw(); + virtual ~Partition() throw() {} + std::vector values; std::string dbName; std::string tableName; @@ -1855,21 +1791,38 @@ class Partition { _Partition__isset __isset; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tableName(const std::string& val); + void __set_tableName(const std::string& val) { + tableName = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_lastAccessTime(const int32_t val); + void __set_lastAccessTime(const int32_t val) { + lastAccessTime = val; + } - void __set_sd(const StorageDescriptor& val); + void __set_sd(const StorageDescriptor& val) { + sd = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } - void __set_privileges(const PrincipalPrivilegeSet& val); + void __set_privileges(const PrincipalPrivilegeSet& val) { + privileges = val; + __isset.privileges = true; + } bool operator == (const Partition & rhs) const { @@ -1902,19 +1855,18 @@ class Partition { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Partition& obj); }; void swap(Partition &a, Partition &b); typedef struct _PartitionWithoutSD__isset { _PartitionWithoutSD__isset() : values(false), createTime(false), lastAccessTime(false), relativePath(false), parameters(false), privileges(false) {} - bool values :1; - bool createTime :1; - bool lastAccessTime :1; - bool relativePath :1; - bool parameters :1; - bool privileges :1; + bool values; + bool createTime; + bool lastAccessTime; + bool relativePath; + bool parameters; + bool privileges; } _PartitionWithoutSD__isset; class PartitionWithoutSD { @@ -1923,12 +1875,11 @@ class PartitionWithoutSD { static const char* ascii_fingerprint; // = "D79FA44499888D0E50B5625E0C536DEA"; static const uint8_t binary_fingerprint[16]; // = {0xD7,0x9F,0xA4,0x44,0x99,0x88,0x8D,0x0E,0x50,0xB5,0x62,0x5E,0x0C,0x53,0x6D,0xEA}; - PartitionWithoutSD(const PartitionWithoutSD&); - PartitionWithoutSD& operator=(const PartitionWithoutSD&); PartitionWithoutSD() : createTime(0), lastAccessTime(0), relativePath() { } - virtual ~PartitionWithoutSD() throw(); + virtual ~PartitionWithoutSD() throw() {} + std::vector values; int32_t createTime; int32_t lastAccessTime; @@ -1938,17 +1889,30 @@ class PartitionWithoutSD { _PartitionWithoutSD__isset __isset; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_lastAccessTime(const int32_t val); + void __set_lastAccessTime(const int32_t val) { + lastAccessTime = val; + } - void __set_relativePath(const std::string& val); + void __set_relativePath(const std::string& val) { + relativePath = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } - void __set_privileges(const PrincipalPrivilegeSet& val); + void __set_privileges(const PrincipalPrivilegeSet& val) { + privileges = val; + __isset.privileges = true; + } bool operator == (const PartitionWithoutSD & rhs) const { @@ -1977,15 +1941,14 @@ class PartitionWithoutSD { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const PartitionWithoutSD& obj); }; void swap(PartitionWithoutSD &a, PartitionWithoutSD &b); typedef struct _PartitionSpecWithSharedSD__isset { _PartitionSpecWithSharedSD__isset() : partitions(false), sd(false) {} - bool partitions :1; - bool sd :1; + bool partitions; + bool sd; } _PartitionSpecWithSharedSD__isset; class PartitionSpecWithSharedSD { @@ -1994,20 +1957,23 @@ class PartitionSpecWithSharedSD { static const char* ascii_fingerprint; // = "7BEE9305B42DCD083FF06BEE6DDC61CF"; static const uint8_t binary_fingerprint[16]; // = {0x7B,0xEE,0x93,0x05,0xB4,0x2D,0xCD,0x08,0x3F,0xF0,0x6B,0xEE,0x6D,0xDC,0x61,0xCF}; - PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD&); - PartitionSpecWithSharedSD& operator=(const PartitionSpecWithSharedSD&); PartitionSpecWithSharedSD() { } - virtual ~PartitionSpecWithSharedSD() throw(); + virtual ~PartitionSpecWithSharedSD() throw() {} + std::vector partitions; StorageDescriptor sd; _PartitionSpecWithSharedSD__isset __isset; - void __set_partitions(const std::vector & val); + void __set_partitions(const std::vector & val) { + partitions = val; + } - void __set_sd(const StorageDescriptor& val); + void __set_sd(const StorageDescriptor& val) { + sd = val; + } bool operator == (const PartitionSpecWithSharedSD & rhs) const { @@ -2026,14 +1992,13 @@ class PartitionSpecWithSharedSD { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const PartitionSpecWithSharedSD& obj); }; void swap(PartitionSpecWithSharedSD &a, PartitionSpecWithSharedSD &b); typedef struct _PartitionListComposingSpec__isset { _PartitionListComposingSpec__isset() : partitions(false) {} - bool partitions :1; + bool partitions; } _PartitionListComposingSpec__isset; class PartitionListComposingSpec { @@ -2042,17 +2007,18 @@ class PartitionListComposingSpec { static const char* ascii_fingerprint; // = "A048235CB9A257C8A74E3691BEFE0674"; static const uint8_t binary_fingerprint[16]; // = {0xA0,0x48,0x23,0x5C,0xB9,0xA2,0x57,0xC8,0xA7,0x4E,0x36,0x91,0xBE,0xFE,0x06,0x74}; - PartitionListComposingSpec(const PartitionListComposingSpec&); - PartitionListComposingSpec& operator=(const PartitionListComposingSpec&); PartitionListComposingSpec() { } - virtual ~PartitionListComposingSpec() throw(); + virtual ~PartitionListComposingSpec() throw() {} + std::vector partitions; _PartitionListComposingSpec__isset __isset; - void __set_partitions(const std::vector & val); + void __set_partitions(const std::vector & val) { + partitions = val; + } bool operator == (const PartitionListComposingSpec & rhs) const { @@ -2069,18 +2035,17 @@ class PartitionListComposingSpec { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const PartitionListComposingSpec& obj); }; void swap(PartitionListComposingSpec &a, PartitionListComposingSpec &b); typedef struct _PartitionSpec__isset { _PartitionSpec__isset() : dbName(false), tableName(false), rootPath(false), sharedSDPartitionSpec(false), partitionList(false) {} - bool dbName :1; - bool tableName :1; - bool rootPath :1; - bool sharedSDPartitionSpec :1; - bool partitionList :1; + bool dbName; + bool tableName; + bool rootPath; + bool sharedSDPartitionSpec; + bool partitionList; } _PartitionSpec__isset; class PartitionSpec { @@ -2089,12 +2054,11 @@ class PartitionSpec { static const char* ascii_fingerprint; // = "C3F548C24D072CF6422F25096143E3E8"; static const uint8_t binary_fingerprint[16]; // = {0xC3,0xF5,0x48,0xC2,0x4D,0x07,0x2C,0xF6,0x42,0x2F,0x25,0x09,0x61,0x43,0xE3,0xE8}; - PartitionSpec(const PartitionSpec&); - PartitionSpec& operator=(const PartitionSpec&); PartitionSpec() : dbName(), tableName(), rootPath() { } - virtual ~PartitionSpec() throw(); + virtual ~PartitionSpec() throw() {} + std::string dbName; std::string tableName; std::string rootPath; @@ -2103,15 +2067,27 @@ class PartitionSpec { _PartitionSpec__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tableName(const std::string& val); + void __set_tableName(const std::string& val) { + tableName = val; + } - void __set_rootPath(const std::string& val); + void __set_rootPath(const std::string& val) { + rootPath = val; + } - void __set_sharedSDPartitionSpec(const PartitionSpecWithSharedSD& val); + void __set_sharedSDPartitionSpec(const PartitionSpecWithSharedSD& val) { + sharedSDPartitionSpec = val; + __isset.sharedSDPartitionSpec = true; + } - void __set_partitionList(const PartitionListComposingSpec& val); + void __set_partitionList(const PartitionListComposingSpec& val) { + partitionList = val; + __isset.partitionList = true; + } bool operator == (const PartitionSpec & rhs) const { @@ -2140,23 +2116,22 @@ class PartitionSpec { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const PartitionSpec& obj); }; void swap(PartitionSpec &a, PartitionSpec &b); typedef struct _Index__isset { _Index__isset() : indexName(false), indexHandlerClass(false), dbName(false), origTableName(false), createTime(false), lastAccessTime(false), indexTableName(false), sd(false), parameters(false), deferredRebuild(false) {} - bool indexName :1; - bool indexHandlerClass :1; - bool dbName :1; - bool origTableName :1; - bool createTime :1; - bool lastAccessTime :1; - bool indexTableName :1; - bool sd :1; - bool parameters :1; - bool deferredRebuild :1; + bool indexName; + bool indexHandlerClass; + bool dbName; + bool origTableName; + bool createTime; + bool lastAccessTime; + bool indexTableName; + bool sd; + bool parameters; + bool deferredRebuild; } _Index__isset; class Index { @@ -2165,12 +2140,11 @@ class Index { static const char* ascii_fingerprint; // = "09EEF655216AC81802850988D6C470A6"; static const uint8_t binary_fingerprint[16]; // = {0x09,0xEE,0xF6,0x55,0x21,0x6A,0xC8,0x18,0x02,0x85,0x09,0x88,0xD6,0xC4,0x70,0xA6}; - Index(const Index&); - Index& operator=(const Index&); Index() : indexName(), indexHandlerClass(), dbName(), origTableName(), createTime(0), lastAccessTime(0), indexTableName(), deferredRebuild(0) { } - virtual ~Index() throw(); + virtual ~Index() throw() {} + std::string indexName; std::string indexHandlerClass; std::string dbName; @@ -2184,25 +2158,45 @@ class Index { _Index__isset __isset; - void __set_indexName(const std::string& val); + void __set_indexName(const std::string& val) { + indexName = val; + } - void __set_indexHandlerClass(const std::string& val); + void __set_indexHandlerClass(const std::string& val) { + indexHandlerClass = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_origTableName(const std::string& val); + void __set_origTableName(const std::string& val) { + origTableName = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_lastAccessTime(const int32_t val); + void __set_lastAccessTime(const int32_t val) { + lastAccessTime = val; + } - void __set_indexTableName(const std::string& val); + void __set_indexTableName(const std::string& val) { + indexTableName = val; + } - void __set_sd(const StorageDescriptor& val); + void __set_sd(const StorageDescriptor& val) { + sd = val; + } - void __set_parameters(const std::map & val); + void __set_parameters(const std::map & val) { + parameters = val; + } - void __set_deferredRebuild(const bool val); + void __set_deferredRebuild(const bool val) { + deferredRebuild = val; + } bool operator == (const Index & rhs) const { @@ -2237,7 +2231,6 @@ class Index { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Index& obj); }; void swap(Index &a, Index &b); @@ -2249,21 +2242,26 @@ class BooleanColumnStatsData { static const char* ascii_fingerprint; // = "EA2D65F1E0BB78760205682082304B41"; static const uint8_t binary_fingerprint[16]; // = {0xEA,0x2D,0x65,0xF1,0xE0,0xBB,0x78,0x76,0x02,0x05,0x68,0x20,0x82,0x30,0x4B,0x41}; - BooleanColumnStatsData(const BooleanColumnStatsData&); - BooleanColumnStatsData& operator=(const BooleanColumnStatsData&); BooleanColumnStatsData() : numTrues(0), numFalses(0), numNulls(0) { } - virtual ~BooleanColumnStatsData() throw(); + virtual ~BooleanColumnStatsData() throw() {} + int64_t numTrues; int64_t numFalses; int64_t numNulls; - void __set_numTrues(const int64_t val); + void __set_numTrues(const int64_t val) { + numTrues = val; + } - void __set_numFalses(const int64_t val); + void __set_numFalses(const int64_t val) { + numFalses = val; + } - void __set_numNulls(const int64_t val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } bool operator == (const BooleanColumnStatsData & rhs) const { @@ -2284,15 +2282,14 @@ class BooleanColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const BooleanColumnStatsData& obj); }; void swap(BooleanColumnStatsData &a, BooleanColumnStatsData &b); typedef struct _DoubleColumnStatsData__isset { _DoubleColumnStatsData__isset() : lowValue(false), highValue(false) {} - bool lowValue :1; - bool highValue :1; + bool lowValue; + bool highValue; } _DoubleColumnStatsData__isset; class DoubleColumnStatsData { @@ -2301,12 +2298,11 @@ class DoubleColumnStatsData { static const char* ascii_fingerprint; // = "DA7C011321D74C48396AA002E61A0CBB"; static const uint8_t binary_fingerprint[16]; // = {0xDA,0x7C,0x01,0x13,0x21,0xD7,0x4C,0x48,0x39,0x6A,0xA0,0x02,0xE6,0x1A,0x0C,0xBB}; - DoubleColumnStatsData(const DoubleColumnStatsData&); - DoubleColumnStatsData& operator=(const DoubleColumnStatsData&); DoubleColumnStatsData() : lowValue(0), highValue(0), numNulls(0), numDVs(0) { } - virtual ~DoubleColumnStatsData() throw(); + virtual ~DoubleColumnStatsData() throw() {} + double lowValue; double highValue; int64_t numNulls; @@ -2314,13 +2310,23 @@ class DoubleColumnStatsData { _DoubleColumnStatsData__isset __isset; - void __set_lowValue(const double val); + void __set_lowValue(const double val) { + lowValue = val; + __isset.lowValue = true; + } - void __set_highValue(const double val); + void __set_highValue(const double val) { + highValue = val; + __isset.highValue = true; + } - void __set_numNulls(const int64_t val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } - void __set_numDVs(const int64_t val); + void __set_numDVs(const int64_t val) { + numDVs = val; + } bool operator == (const DoubleColumnStatsData & rhs) const { @@ -2347,15 +2353,14 @@ class DoubleColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const DoubleColumnStatsData& obj); }; void swap(DoubleColumnStatsData &a, DoubleColumnStatsData &b); typedef struct _LongColumnStatsData__isset { _LongColumnStatsData__isset() : lowValue(false), highValue(false) {} - bool lowValue :1; - bool highValue :1; + bool lowValue; + bool highValue; } _LongColumnStatsData__isset; class LongColumnStatsData { @@ -2364,12 +2369,11 @@ class LongColumnStatsData { static const char* ascii_fingerprint; // = "E685FC220B24E3B8B93604790DCB9AEA"; static const uint8_t binary_fingerprint[16]; // = {0xE6,0x85,0xFC,0x22,0x0B,0x24,0xE3,0xB8,0xB9,0x36,0x04,0x79,0x0D,0xCB,0x9A,0xEA}; - LongColumnStatsData(const LongColumnStatsData&); - LongColumnStatsData& operator=(const LongColumnStatsData&); LongColumnStatsData() : lowValue(0), highValue(0), numNulls(0), numDVs(0) { } - virtual ~LongColumnStatsData() throw(); + virtual ~LongColumnStatsData() throw() {} + int64_t lowValue; int64_t highValue; int64_t numNulls; @@ -2377,13 +2381,23 @@ class LongColumnStatsData { _LongColumnStatsData__isset __isset; - void __set_lowValue(const int64_t val); + void __set_lowValue(const int64_t val) { + lowValue = val; + __isset.lowValue = true; + } - void __set_highValue(const int64_t val); + void __set_highValue(const int64_t val) { + highValue = val; + __isset.highValue = true; + } - void __set_numNulls(const int64_t val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } - void __set_numDVs(const int64_t val); + void __set_numDVs(const int64_t val) { + numDVs = val; + } bool operator == (const LongColumnStatsData & rhs) const { @@ -2410,7 +2424,6 @@ class LongColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const LongColumnStatsData& obj); }; void swap(LongColumnStatsData &a, LongColumnStatsData &b); @@ -2422,24 +2435,31 @@ class StringColumnStatsData { static const char* ascii_fingerprint; // = "D017B08C3DF12C3AB98788B2E67DAAB3"; static const uint8_t binary_fingerprint[16]; // = {0xD0,0x17,0xB0,0x8C,0x3D,0xF1,0x2C,0x3A,0xB9,0x87,0x88,0xB2,0xE6,0x7D,0xAA,0xB3}; - StringColumnStatsData(const StringColumnStatsData&); - StringColumnStatsData& operator=(const StringColumnStatsData&); StringColumnStatsData() : maxColLen(0), avgColLen(0), numNulls(0), numDVs(0) { } - virtual ~StringColumnStatsData() throw(); + virtual ~StringColumnStatsData() throw() {} + int64_t maxColLen; double avgColLen; int64_t numNulls; int64_t numDVs; - void __set_maxColLen(const int64_t val); + void __set_maxColLen(const int64_t val) { + maxColLen = val; + } - void __set_avgColLen(const double val); + void __set_avgColLen(const double val) { + avgColLen = val; + } - void __set_numNulls(const int64_t val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } - void __set_numDVs(const int64_t val); + void __set_numDVs(const int64_t val) { + numDVs = val; + } bool operator == (const StringColumnStatsData & rhs) const { @@ -2462,7 +2482,6 @@ class StringColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const StringColumnStatsData& obj); }; void swap(StringColumnStatsData &a, StringColumnStatsData &b); @@ -2474,21 +2493,26 @@ class BinaryColumnStatsData { static const char* ascii_fingerprint; // = "22B0CB67183FCDB945892B9974518D06"; static const uint8_t binary_fingerprint[16]; // = {0x22,0xB0,0xCB,0x67,0x18,0x3F,0xCD,0xB9,0x45,0x89,0x2B,0x99,0x74,0x51,0x8D,0x06}; - BinaryColumnStatsData(const BinaryColumnStatsData&); - BinaryColumnStatsData& operator=(const BinaryColumnStatsData&); BinaryColumnStatsData() : maxColLen(0), avgColLen(0), numNulls(0) { } - virtual ~BinaryColumnStatsData() throw(); + virtual ~BinaryColumnStatsData() throw() {} + int64_t maxColLen; double avgColLen; int64_t numNulls; - void __set_maxColLen(const int64_t val); + void __set_maxColLen(const int64_t val) { + maxColLen = val; + } - void __set_avgColLen(const double val); + void __set_avgColLen(const double val) { + avgColLen = val; + } - void __set_numNulls(const int64_t val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } bool operator == (const BinaryColumnStatsData & rhs) const { @@ -2509,7 +2533,6 @@ class BinaryColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const BinaryColumnStatsData& obj); }; void swap(BinaryColumnStatsData &a, BinaryColumnStatsData &b); @@ -2521,18 +2544,21 @@ class Decimal { static const char* ascii_fingerprint; // = "C4DDF6759F9B17C5C380806CE743DE8E"; static const uint8_t binary_fingerprint[16]; // = {0xC4,0xDD,0xF6,0x75,0x9F,0x9B,0x17,0xC5,0xC3,0x80,0x80,0x6C,0xE7,0x43,0xDE,0x8E}; - Decimal(const Decimal&); - Decimal& operator=(const Decimal&); Decimal() : unscaled(), scale(0) { } - virtual ~Decimal() throw(); + virtual ~Decimal() throw() {} + std::string unscaled; int16_t scale; - void __set_unscaled(const std::string& val); + void __set_unscaled(const std::string& val) { + unscaled = val; + } - void __set_scale(const int16_t val); + void __set_scale(const int16_t val) { + scale = val; + } bool operator == (const Decimal & rhs) const { @@ -2551,15 +2577,14 @@ class Decimal { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Decimal& obj); }; void swap(Decimal &a, Decimal &b); typedef struct _DecimalColumnStatsData__isset { _DecimalColumnStatsData__isset() : lowValue(false), highValue(false) {} - bool lowValue :1; - bool highValue :1; + bool lowValue; + bool highValue; } _DecimalColumnStatsData__isset; class DecimalColumnStatsData { @@ -2568,12 +2593,11 @@ class DecimalColumnStatsData { static const char* ascii_fingerprint; // = "B6D47E7A28922BFA93FE05E9F1B04748"; static const uint8_t binary_fingerprint[16]; // = {0xB6,0xD4,0x7E,0x7A,0x28,0x92,0x2B,0xFA,0x93,0xFE,0x05,0xE9,0xF1,0xB0,0x47,0x48}; - DecimalColumnStatsData(const DecimalColumnStatsData&); - DecimalColumnStatsData& operator=(const DecimalColumnStatsData&); DecimalColumnStatsData() : numNulls(0), numDVs(0) { } - virtual ~DecimalColumnStatsData() throw(); + virtual ~DecimalColumnStatsData() throw() {} + Decimal lowValue; Decimal highValue; int64_t numNulls; @@ -2581,13 +2605,23 @@ class DecimalColumnStatsData { _DecimalColumnStatsData__isset __isset; - void __set_lowValue(const Decimal& val); + void __set_lowValue(const Decimal& val) { + lowValue = val; + __isset.lowValue = true; + } - void __set_highValue(const Decimal& val); + void __set_highValue(const Decimal& val) { + highValue = val; + __isset.highValue = true; + } - void __set_numNulls(const int64_t val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } - void __set_numDVs(const int64_t val); + void __set_numDVs(const int64_t val) { + numDVs = val; + } bool operator == (const DecimalColumnStatsData & rhs) const { @@ -2614,7 +2648,6 @@ class DecimalColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const DecimalColumnStatsData& obj); }; void swap(DecimalColumnStatsData &a, DecimalColumnStatsData &b); @@ -2626,15 +2659,16 @@ class Date { static const char* ascii_fingerprint; // = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; static const uint8_t binary_fingerprint[16]; // = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; - Date(const Date&); - Date& operator=(const Date&); Date() : daysSinceEpoch(0) { } - virtual ~Date() throw(); + virtual ~Date() throw() {} + int64_t daysSinceEpoch; - void __set_daysSinceEpoch(const int64_t val); + void __set_daysSinceEpoch(const int64_t val) { + daysSinceEpoch = val; + } bool operator == (const Date & rhs) const { @@ -2651,15 +2685,14 @@ class Date { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Date& obj); }; void swap(Date &a, Date &b); typedef struct _DateColumnStatsData__isset { _DateColumnStatsData__isset() : lowValue(false), highValue(false) {} - bool lowValue :1; - bool highValue :1; + bool lowValue; + bool highValue; } _DateColumnStatsData__isset; class DateColumnStatsData { @@ -2668,12 +2701,11 @@ class DateColumnStatsData { static const char* ascii_fingerprint; // = "D0719F3BBA8248297BB5287552897F59"; static const uint8_t binary_fingerprint[16]; // = {0xD0,0x71,0x9F,0x3B,0xBA,0x82,0x48,0x29,0x7B,0xB5,0x28,0x75,0x52,0x89,0x7F,0x59}; - DateColumnStatsData(const DateColumnStatsData&); - DateColumnStatsData& operator=(const DateColumnStatsData&); DateColumnStatsData() : numNulls(0), numDVs(0) { } - virtual ~DateColumnStatsData() throw(); + virtual ~DateColumnStatsData() throw() {} + Date lowValue; Date highValue; int64_t numNulls; @@ -2681,13 +2713,23 @@ class DateColumnStatsData { _DateColumnStatsData__isset __isset; - void __set_lowValue(const Date& val); + void __set_lowValue(const Date& val) { + lowValue = val; + __isset.lowValue = true; + } - void __set_highValue(const Date& val); + void __set_highValue(const Date& val) { + highValue = val; + __isset.highValue = true; + } - void __set_numNulls(const int64_t val); + void __set_numNulls(const int64_t val) { + numNulls = val; + } - void __set_numDVs(const int64_t val); + void __set_numDVs(const int64_t val) { + numDVs = val; + } bool operator == (const DateColumnStatsData & rhs) const { @@ -2714,20 +2756,19 @@ class DateColumnStatsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const DateColumnStatsData& obj); }; void swap(DateColumnStatsData &a, DateColumnStatsData &b); typedef struct _ColumnStatisticsData__isset { _ColumnStatisticsData__isset() : booleanStats(false), longStats(false), doubleStats(false), stringStats(false), binaryStats(false), decimalStats(false), dateStats(false) {} - bool booleanStats :1; - bool longStats :1; - bool doubleStats :1; - bool stringStats :1; - bool binaryStats :1; - bool decimalStats :1; - bool dateStats :1; + bool booleanStats; + bool longStats; + bool doubleStats; + bool stringStats; + bool binaryStats; + bool decimalStats; + bool dateStats; } _ColumnStatisticsData__isset; class ColumnStatisticsData { @@ -2736,12 +2777,11 @@ class ColumnStatisticsData { static const char* ascii_fingerprint; // = "15E449CA15A23E37F2D54C31ACA52106"; static const uint8_t binary_fingerprint[16]; // = {0x15,0xE4,0x49,0xCA,0x15,0xA2,0x3E,0x37,0xF2,0xD5,0x4C,0x31,0xAC,0xA5,0x21,0x06}; - ColumnStatisticsData(const ColumnStatisticsData&); - ColumnStatisticsData& operator=(const ColumnStatisticsData&); ColumnStatisticsData() { } - virtual ~ColumnStatisticsData() throw(); + virtual ~ColumnStatisticsData() throw() {} + BooleanColumnStatsData booleanStats; LongColumnStatsData longStats; DoubleColumnStatsData doubleStats; @@ -2752,19 +2792,33 @@ class ColumnStatisticsData { _ColumnStatisticsData__isset __isset; - void __set_booleanStats(const BooleanColumnStatsData& val); + void __set_booleanStats(const BooleanColumnStatsData& val) { + booleanStats = val; + } - void __set_longStats(const LongColumnStatsData& val); + void __set_longStats(const LongColumnStatsData& val) { + longStats = val; + } - void __set_doubleStats(const DoubleColumnStatsData& val); + void __set_doubleStats(const DoubleColumnStatsData& val) { + doubleStats = val; + } - void __set_stringStats(const StringColumnStatsData& val); + void __set_stringStats(const StringColumnStatsData& val) { + stringStats = val; + } - void __set_binaryStats(const BinaryColumnStatsData& val); + void __set_binaryStats(const BinaryColumnStatsData& val) { + binaryStats = val; + } - void __set_decimalStats(const DecimalColumnStatsData& val); + void __set_decimalStats(const DecimalColumnStatsData& val) { + decimalStats = val; + } - void __set_dateStats(const DateColumnStatsData& val); + void __set_dateStats(const DateColumnStatsData& val) { + dateStats = val; + } bool operator == (const ColumnStatisticsData & rhs) const { @@ -2793,7 +2847,6 @@ class ColumnStatisticsData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ColumnStatisticsData& obj); }; void swap(ColumnStatisticsData &a, ColumnStatisticsData &b); @@ -2805,21 +2858,26 @@ class ColumnStatisticsObj { static const char* ascii_fingerprint; // = "A82BA819C9FFEDDEBC0D50F6F4E46534"; static const uint8_t binary_fingerprint[16]; // = {0xA8,0x2B,0xA8,0x19,0xC9,0xFF,0xED,0xDE,0xBC,0x0D,0x50,0xF6,0xF4,0xE4,0x65,0x34}; - ColumnStatisticsObj(const ColumnStatisticsObj&); - ColumnStatisticsObj& operator=(const ColumnStatisticsObj&); ColumnStatisticsObj() : colName(), colType() { } - virtual ~ColumnStatisticsObj() throw(); + virtual ~ColumnStatisticsObj() throw() {} + std::string colName; std::string colType; ColumnStatisticsData statsData; - void __set_colName(const std::string& val); + void __set_colName(const std::string& val) { + colName = val; + } - void __set_colType(const std::string& val); + void __set_colType(const std::string& val) { + colType = val; + } - void __set_statsData(const ColumnStatisticsData& val); + void __set_statsData(const ColumnStatisticsData& val) { + statsData = val; + } bool operator == (const ColumnStatisticsObj & rhs) const { @@ -2840,15 +2898,14 @@ class ColumnStatisticsObj { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ColumnStatisticsObj& obj); }; void swap(ColumnStatisticsObj &a, ColumnStatisticsObj &b); typedef struct _ColumnStatisticsDesc__isset { _ColumnStatisticsDesc__isset() : partName(false), lastAnalyzed(false) {} - bool partName :1; - bool lastAnalyzed :1; + bool partName; + bool lastAnalyzed; } _ColumnStatisticsDesc__isset; class ColumnStatisticsDesc { @@ -2857,12 +2914,11 @@ class ColumnStatisticsDesc { static const char* ascii_fingerprint; // = "261759FF6F8FAB53F941453007FE18CB"; static const uint8_t binary_fingerprint[16]; // = {0x26,0x17,0x59,0xFF,0x6F,0x8F,0xAB,0x53,0xF9,0x41,0x45,0x30,0x07,0xFE,0x18,0xCB}; - ColumnStatisticsDesc(const ColumnStatisticsDesc&); - ColumnStatisticsDesc& operator=(const ColumnStatisticsDesc&); ColumnStatisticsDesc() : isTblLevel(0), dbName(), tableName(), partName(), lastAnalyzed(0) { } - virtual ~ColumnStatisticsDesc() throw(); + virtual ~ColumnStatisticsDesc() throw() {} + bool isTblLevel; std::string dbName; std::string tableName; @@ -2871,15 +2927,27 @@ class ColumnStatisticsDesc { _ColumnStatisticsDesc__isset __isset; - void __set_isTblLevel(const bool val); + void __set_isTblLevel(const bool val) { + isTblLevel = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tableName(const std::string& val); + void __set_tableName(const std::string& val) { + tableName = val; + } - void __set_partName(const std::string& val); + void __set_partName(const std::string& val) { + partName = val; + __isset.partName = true; + } - void __set_lastAnalyzed(const int64_t val); + void __set_lastAnalyzed(const int64_t val) { + lastAnalyzed = val; + __isset.lastAnalyzed = true; + } bool operator == (const ColumnStatisticsDesc & rhs) const { @@ -2908,7 +2976,6 @@ class ColumnStatisticsDesc { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ColumnStatisticsDesc& obj); }; void swap(ColumnStatisticsDesc &a, ColumnStatisticsDesc &b); @@ -2920,18 +2987,21 @@ class ColumnStatistics { static const char* ascii_fingerprint; // = "8A64D0A67FFD3A372726A320B3913D5A"; static const uint8_t binary_fingerprint[16]; // = {0x8A,0x64,0xD0,0xA6,0x7F,0xFD,0x3A,0x37,0x27,0x26,0xA3,0x20,0xB3,0x91,0x3D,0x5A}; - ColumnStatistics(const ColumnStatistics&); - ColumnStatistics& operator=(const ColumnStatistics&); ColumnStatistics() { } - virtual ~ColumnStatistics() throw(); + virtual ~ColumnStatistics() throw() {} + ColumnStatisticsDesc statsDesc; std::vector statsObj; - void __set_statsDesc(const ColumnStatisticsDesc& val); + void __set_statsDesc(const ColumnStatisticsDesc& val) { + statsDesc = val; + } - void __set_statsObj(const std::vector & val); + void __set_statsObj(const std::vector & val) { + statsObj = val; + } bool operator == (const ColumnStatistics & rhs) const { @@ -2950,7 +3020,6 @@ class ColumnStatistics { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ColumnStatistics& obj); }; void swap(ColumnStatistics &a, ColumnStatistics &b); @@ -2962,18 +3031,21 @@ class AggrStats { static const char* ascii_fingerprint; // = "1FC765A3AB2954591C14B0D946778213"; static const uint8_t binary_fingerprint[16]; // = {0x1F,0xC7,0x65,0xA3,0xAB,0x29,0x54,0x59,0x1C,0x14,0xB0,0xD9,0x46,0x77,0x82,0x13}; - AggrStats(const AggrStats&); - AggrStats& operator=(const AggrStats&); AggrStats() : partsFound(0) { } - virtual ~AggrStats() throw(); + virtual ~AggrStats() throw() {} + std::vector colStats; int64_t partsFound; - void __set_colStats(const std::vector & val); + void __set_colStats(const std::vector & val) { + colStats = val; + } - void __set_partsFound(const int64_t val); + void __set_partsFound(const int64_t val) { + partsFound = val; + } bool operator == (const AggrStats & rhs) const { @@ -2992,7 +3064,6 @@ class AggrStats { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const AggrStats& obj); }; void swap(AggrStats &a, AggrStats &b); @@ -3004,15 +3075,16 @@ class SetPartitionsStatsRequest { static const char* ascii_fingerprint; // = "8BCBF2CE9E942D0FB7D8F4ED57D8DC27"; static const uint8_t binary_fingerprint[16]; // = {0x8B,0xCB,0xF2,0xCE,0x9E,0x94,0x2D,0x0F,0xB7,0xD8,0xF4,0xED,0x57,0xD8,0xDC,0x27}; - SetPartitionsStatsRequest(const SetPartitionsStatsRequest&); - SetPartitionsStatsRequest& operator=(const SetPartitionsStatsRequest&); SetPartitionsStatsRequest() { } - virtual ~SetPartitionsStatsRequest() throw(); + virtual ~SetPartitionsStatsRequest() throw() {} + std::vector colStats; - void __set_colStats(const std::vector & val); + void __set_colStats(const std::vector & val) { + colStats = val; + } bool operator == (const SetPartitionsStatsRequest & rhs) const { @@ -3029,15 +3101,14 @@ class SetPartitionsStatsRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const SetPartitionsStatsRequest& obj); }; void swap(SetPartitionsStatsRequest &a, SetPartitionsStatsRequest &b); typedef struct _Schema__isset { _Schema__isset() : fieldSchemas(false), properties(false) {} - bool fieldSchemas :1; - bool properties :1; + bool fieldSchemas; + bool properties; } _Schema__isset; class Schema { @@ -3046,20 +3117,23 @@ class Schema { static const char* ascii_fingerprint; // = "5CFEE46C975F4E2368D905109B8E3B5B"; static const uint8_t binary_fingerprint[16]; // = {0x5C,0xFE,0xE4,0x6C,0x97,0x5F,0x4E,0x23,0x68,0xD9,0x05,0x10,0x9B,0x8E,0x3B,0x5B}; - Schema(const Schema&); - Schema& operator=(const Schema&); Schema() { } - virtual ~Schema() throw(); + virtual ~Schema() throw() {} + std::vector fieldSchemas; std::map properties; _Schema__isset __isset; - void __set_fieldSchemas(const std::vector & val); + void __set_fieldSchemas(const std::vector & val) { + fieldSchemas = val; + } - void __set_properties(const std::map & val); + void __set_properties(const std::map & val) { + properties = val; + } bool operator == (const Schema & rhs) const { @@ -3078,14 +3152,13 @@ class Schema { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Schema& obj); }; void swap(Schema &a, Schema &b); typedef struct _EnvironmentContext__isset { _EnvironmentContext__isset() : properties(false) {} - bool properties :1; + bool properties; } _EnvironmentContext__isset; class EnvironmentContext { @@ -3094,17 +3167,18 @@ class EnvironmentContext { static const char* ascii_fingerprint; // = "5EA2D527ECA3BA20C77AFC023EE8C05F"; static const uint8_t binary_fingerprint[16]; // = {0x5E,0xA2,0xD5,0x27,0xEC,0xA3,0xBA,0x20,0xC7,0x7A,0xFC,0x02,0x3E,0xE8,0xC0,0x5F}; - EnvironmentContext(const EnvironmentContext&); - EnvironmentContext& operator=(const EnvironmentContext&); EnvironmentContext() { } - virtual ~EnvironmentContext() throw(); + virtual ~EnvironmentContext() throw() {} + std::map properties; _EnvironmentContext__isset __isset; - void __set_properties(const std::map & val); + void __set_properties(const std::map & val) { + properties = val; + } bool operator == (const EnvironmentContext & rhs) const { @@ -3121,7 +3195,6 @@ class EnvironmentContext { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const EnvironmentContext& obj); }; void swap(EnvironmentContext &a, EnvironmentContext &b); @@ -3133,18 +3206,21 @@ class PartitionsByExprResult { static const char* ascii_fingerprint; // = "40B789CC91B508FE36600A14E3F80425"; static const uint8_t binary_fingerprint[16]; // = {0x40,0xB7,0x89,0xCC,0x91,0xB5,0x08,0xFE,0x36,0x60,0x0A,0x14,0xE3,0xF8,0x04,0x25}; - PartitionsByExprResult(const PartitionsByExprResult&); - PartitionsByExprResult& operator=(const PartitionsByExprResult&); PartitionsByExprResult() : hasUnknownPartitions(0) { } - virtual ~PartitionsByExprResult() throw(); + virtual ~PartitionsByExprResult() throw() {} + std::vector partitions; bool hasUnknownPartitions; - void __set_partitions(const std::vector & val); + void __set_partitions(const std::vector & val) { + partitions = val; + } - void __set_hasUnknownPartitions(const bool val); + void __set_hasUnknownPartitions(const bool val) { + hasUnknownPartitions = val; + } bool operator == (const PartitionsByExprResult & rhs) const { @@ -3163,15 +3239,14 @@ class PartitionsByExprResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const PartitionsByExprResult& obj); }; void swap(PartitionsByExprResult &a, PartitionsByExprResult &b); typedef struct _PartitionsByExprRequest__isset { _PartitionsByExprRequest__isset() : defaultPartitionName(false), maxParts(true) {} - bool defaultPartitionName :1; - bool maxParts :1; + bool defaultPartitionName; + bool maxParts; } _PartitionsByExprRequest__isset; class PartitionsByExprRequest { @@ -3180,12 +3255,11 @@ class PartitionsByExprRequest { static const char* ascii_fingerprint; // = "835944417A026FE6ABD0DF5A35BF52C5"; static const uint8_t binary_fingerprint[16]; // = {0x83,0x59,0x44,0x41,0x7A,0x02,0x6F,0xE6,0xAB,0xD0,0xDF,0x5A,0x35,0xBF,0x52,0xC5}; - PartitionsByExprRequest(const PartitionsByExprRequest&); - PartitionsByExprRequest& operator=(const PartitionsByExprRequest&); PartitionsByExprRequest() : dbName(), tblName(), expr(), defaultPartitionName(), maxParts(-1) { } - virtual ~PartitionsByExprRequest() throw(); + virtual ~PartitionsByExprRequest() throw() {} + std::string dbName; std::string tblName; std::string expr; @@ -3194,15 +3268,27 @@ class PartitionsByExprRequest { _PartitionsByExprRequest__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tblName(const std::string& val); + void __set_tblName(const std::string& val) { + tblName = val; + } - void __set_expr(const std::string& val); + void __set_expr(const std::string& val) { + expr = val; + } - void __set_defaultPartitionName(const std::string& val); + void __set_defaultPartitionName(const std::string& val) { + defaultPartitionName = val; + __isset.defaultPartitionName = true; + } - void __set_maxParts(const int16_t val); + void __set_maxParts(const int16_t val) { + maxParts = val; + __isset.maxParts = true; + } bool operator == (const PartitionsByExprRequest & rhs) const { @@ -3231,7 +3317,6 @@ class PartitionsByExprRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const PartitionsByExprRequest& obj); }; void swap(PartitionsByExprRequest &a, PartitionsByExprRequest &b); @@ -3243,15 +3328,16 @@ class TableStatsResult { static const char* ascii_fingerprint; // = "2E398BAC949C93A194F1A19CA5074FF8"; static const uint8_t binary_fingerprint[16]; // = {0x2E,0x39,0x8B,0xAC,0x94,0x9C,0x93,0xA1,0x94,0xF1,0xA1,0x9C,0xA5,0x07,0x4F,0xF8}; - TableStatsResult(const TableStatsResult&); - TableStatsResult& operator=(const TableStatsResult&); TableStatsResult() { } - virtual ~TableStatsResult() throw(); + virtual ~TableStatsResult() throw() {} + std::vector tableStats; - void __set_tableStats(const std::vector & val); + void __set_tableStats(const std::vector & val) { + tableStats = val; + } bool operator == (const TableStatsResult & rhs) const { @@ -3268,7 +3354,6 @@ class TableStatsResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TableStatsResult& obj); }; void swap(TableStatsResult &a, TableStatsResult &b); @@ -3280,15 +3365,16 @@ class PartitionsStatsResult { static const char* ascii_fingerprint; // = "DD38B4AA7D02E288659AA12CBAAEF33B"; static const uint8_t binary_fingerprint[16]; // = {0xDD,0x38,0xB4,0xAA,0x7D,0x02,0xE2,0x88,0x65,0x9A,0xA1,0x2C,0xBA,0xAE,0xF3,0x3B}; - PartitionsStatsResult(const PartitionsStatsResult&); - PartitionsStatsResult& operator=(const PartitionsStatsResult&); PartitionsStatsResult() { } - virtual ~PartitionsStatsResult() throw(); + virtual ~PartitionsStatsResult() throw() {} + std::map > partStats; - void __set_partStats(const std::map > & val); + void __set_partStats(const std::map > & val) { + partStats = val; + } bool operator == (const PartitionsStatsResult & rhs) const { @@ -3305,7 +3391,6 @@ class PartitionsStatsResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const PartitionsStatsResult& obj); }; void swap(PartitionsStatsResult &a, PartitionsStatsResult &b); @@ -3317,21 +3402,26 @@ class TableStatsRequest { static const char* ascii_fingerprint; // = "8E2AD6401E83558ECFD6A13D74DD0A3F"; static const uint8_t binary_fingerprint[16]; // = {0x8E,0x2A,0xD6,0x40,0x1E,0x83,0x55,0x8E,0xCF,0xD6,0xA1,0x3D,0x74,0xDD,0x0A,0x3F}; - TableStatsRequest(const TableStatsRequest&); - TableStatsRequest& operator=(const TableStatsRequest&); TableStatsRequest() : dbName(), tblName() { } - virtual ~TableStatsRequest() throw(); + virtual ~TableStatsRequest() throw() {} + std::string dbName; std::string tblName; std::vector colNames; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tblName(const std::string& val); + void __set_tblName(const std::string& val) { + tblName = val; + } - void __set_colNames(const std::vector & val); + void __set_colNames(const std::vector & val) { + colNames = val; + } bool operator == (const TableStatsRequest & rhs) const { @@ -3352,7 +3442,6 @@ class TableStatsRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TableStatsRequest& obj); }; void swap(TableStatsRequest &a, TableStatsRequest &b); @@ -3364,24 +3453,31 @@ class PartitionsStatsRequest { static const char* ascii_fingerprint; // = "5F51D90BC323BCE4B704B7D98EDA0BD4"; static const uint8_t binary_fingerprint[16]; // = {0x5F,0x51,0xD9,0x0B,0xC3,0x23,0xBC,0xE4,0xB7,0x04,0xB7,0xD9,0x8E,0xDA,0x0B,0xD4}; - PartitionsStatsRequest(const PartitionsStatsRequest&); - PartitionsStatsRequest& operator=(const PartitionsStatsRequest&); PartitionsStatsRequest() : dbName(), tblName() { } - virtual ~PartitionsStatsRequest() throw(); + virtual ~PartitionsStatsRequest() throw() {} + std::string dbName; std::string tblName; std::vector colNames; std::vector partNames; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tblName(const std::string& val); + void __set_tblName(const std::string& val) { + tblName = val; + } - void __set_colNames(const std::vector & val); + void __set_colNames(const std::vector & val) { + colNames = val; + } - void __set_partNames(const std::vector & val); + void __set_partNames(const std::vector & val) { + partNames = val; + } bool operator == (const PartitionsStatsRequest & rhs) const { @@ -3404,14 +3500,13 @@ class PartitionsStatsRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const PartitionsStatsRequest& obj); }; void swap(PartitionsStatsRequest &a, PartitionsStatsRequest &b); typedef struct _AddPartitionsResult__isset { _AddPartitionsResult__isset() : partitions(false) {} - bool partitions :1; + bool partitions; } _AddPartitionsResult__isset; class AddPartitionsResult { @@ -3420,17 +3515,19 @@ class AddPartitionsResult { static const char* ascii_fingerprint; // = "5A689D0823E7BFBB60C799BA60065C31"; static const uint8_t binary_fingerprint[16]; // = {0x5A,0x68,0x9D,0x08,0x23,0xE7,0xBF,0xBB,0x60,0xC7,0x99,0xBA,0x60,0x06,0x5C,0x31}; - AddPartitionsResult(const AddPartitionsResult&); - AddPartitionsResult& operator=(const AddPartitionsResult&); AddPartitionsResult() { } - virtual ~AddPartitionsResult() throw(); + virtual ~AddPartitionsResult() throw() {} + std::vector partitions; _AddPartitionsResult__isset __isset; - void __set_partitions(const std::vector & val); + void __set_partitions(const std::vector & val) { + partitions = val; + __isset.partitions = true; + } bool operator == (const AddPartitionsResult & rhs) const { @@ -3449,14 +3546,13 @@ class AddPartitionsResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const AddPartitionsResult& obj); }; void swap(AddPartitionsResult &a, AddPartitionsResult &b); typedef struct _AddPartitionsRequest__isset { _AddPartitionsRequest__isset() : needResult(true) {} - bool needResult :1; + bool needResult; } _AddPartitionsRequest__isset; class AddPartitionsRequest { @@ -3465,12 +3561,11 @@ class AddPartitionsRequest { static const char* ascii_fingerprint; // = "94F938D035892CF6873DEDB99358F069"; static const uint8_t binary_fingerprint[16]; // = {0x94,0xF9,0x38,0xD0,0x35,0x89,0x2C,0xF6,0x87,0x3D,0xED,0xB9,0x93,0x58,0xF0,0x69}; - AddPartitionsRequest(const AddPartitionsRequest&); - AddPartitionsRequest& operator=(const AddPartitionsRequest&); AddPartitionsRequest() : dbName(), tblName(), ifNotExists(0), needResult(true) { } - virtual ~AddPartitionsRequest() throw(); + virtual ~AddPartitionsRequest() throw() {} + std::string dbName; std::string tblName; std::vector parts; @@ -3479,15 +3574,26 @@ class AddPartitionsRequest { _AddPartitionsRequest__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tblName(const std::string& val); + void __set_tblName(const std::string& val) { + tblName = val; + } - void __set_parts(const std::vector & val); + void __set_parts(const std::vector & val) { + parts = val; + } - void __set_ifNotExists(const bool val); + void __set_ifNotExists(const bool val) { + ifNotExists = val; + } - void __set_needResult(const bool val); + void __set_needResult(const bool val) { + needResult = val; + __isset.needResult = true; + } bool operator == (const AddPartitionsRequest & rhs) const { @@ -3514,14 +3620,13 @@ class AddPartitionsRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const AddPartitionsRequest& obj); }; void swap(AddPartitionsRequest &a, AddPartitionsRequest &b); typedef struct _DropPartitionsResult__isset { _DropPartitionsResult__isset() : partitions(false) {} - bool partitions :1; + bool partitions; } _DropPartitionsResult__isset; class DropPartitionsResult { @@ -3530,17 +3635,19 @@ class DropPartitionsResult { static const char* ascii_fingerprint; // = "5A689D0823E7BFBB60C799BA60065C31"; static const uint8_t binary_fingerprint[16]; // = {0x5A,0x68,0x9D,0x08,0x23,0xE7,0xBF,0xBB,0x60,0xC7,0x99,0xBA,0x60,0x06,0x5C,0x31}; - DropPartitionsResult(const DropPartitionsResult&); - DropPartitionsResult& operator=(const DropPartitionsResult&); DropPartitionsResult() { } - virtual ~DropPartitionsResult() throw(); + virtual ~DropPartitionsResult() throw() {} + std::vector partitions; _DropPartitionsResult__isset __isset; - void __set_partitions(const std::vector & val); + void __set_partitions(const std::vector & val) { + partitions = val; + __isset.partitions = true; + } bool operator == (const DropPartitionsResult & rhs) const { @@ -3559,14 +3666,13 @@ class DropPartitionsResult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const DropPartitionsResult& obj); }; void swap(DropPartitionsResult &a, DropPartitionsResult &b); typedef struct _DropPartitionsExpr__isset { _DropPartitionsExpr__isset() : partArchiveLevel(false) {} - bool partArchiveLevel :1; + bool partArchiveLevel; } _DropPartitionsExpr__isset; class DropPartitionsExpr { @@ -3575,20 +3681,24 @@ class DropPartitionsExpr { static const char* ascii_fingerprint; // = "18B162B1D15D8D46509D3911A9F1C2AA"; static const uint8_t binary_fingerprint[16]; // = {0x18,0xB1,0x62,0xB1,0xD1,0x5D,0x8D,0x46,0x50,0x9D,0x39,0x11,0xA9,0xF1,0xC2,0xAA}; - DropPartitionsExpr(const DropPartitionsExpr&); - DropPartitionsExpr& operator=(const DropPartitionsExpr&); DropPartitionsExpr() : expr(), partArchiveLevel(0) { } - virtual ~DropPartitionsExpr() throw(); + virtual ~DropPartitionsExpr() throw() {} + std::string expr; int32_t partArchiveLevel; _DropPartitionsExpr__isset __isset; - void __set_expr(const std::string& val); + void __set_expr(const std::string& val) { + expr = val; + } - void __set_partArchiveLevel(const int32_t val); + void __set_partArchiveLevel(const int32_t val) { + partArchiveLevel = val; + __isset.partArchiveLevel = true; + } bool operator == (const DropPartitionsExpr & rhs) const { @@ -3609,15 +3719,14 @@ class DropPartitionsExpr { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const DropPartitionsExpr& obj); }; void swap(DropPartitionsExpr &a, DropPartitionsExpr &b); typedef struct _RequestPartsSpec__isset { _RequestPartsSpec__isset() : names(false), exprs(false) {} - bool names :1; - bool exprs :1; + bool names; + bool exprs; } _RequestPartsSpec__isset; class RequestPartsSpec { @@ -3626,20 +3735,23 @@ class RequestPartsSpec { static const char* ascii_fingerprint; // = "864492ECAB27996CD222AACDA10C292E"; static const uint8_t binary_fingerprint[16]; // = {0x86,0x44,0x92,0xEC,0xAB,0x27,0x99,0x6C,0xD2,0x22,0xAA,0xCD,0xA1,0x0C,0x29,0x2E}; - RequestPartsSpec(const RequestPartsSpec&); - RequestPartsSpec& operator=(const RequestPartsSpec&); RequestPartsSpec() { } - virtual ~RequestPartsSpec() throw(); + virtual ~RequestPartsSpec() throw() {} + std::vector names; std::vector exprs; _RequestPartsSpec__isset __isset; - void __set_names(const std::vector & val); + void __set_names(const std::vector & val) { + names = val; + } - void __set_exprs(const std::vector & val); + void __set_exprs(const std::vector & val) { + exprs = val; + } bool operator == (const RequestPartsSpec & rhs) const { @@ -3658,18 +3770,17 @@ class RequestPartsSpec { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const RequestPartsSpec& obj); }; void swap(RequestPartsSpec &a, RequestPartsSpec &b); typedef struct _DropPartitionsRequest__isset { _DropPartitionsRequest__isset() : deleteData(false), ifExists(true), ignoreProtection(false), environmentContext(false), needResult(true) {} - bool deleteData :1; - bool ifExists :1; - bool ignoreProtection :1; - bool environmentContext :1; - bool needResult :1; + bool deleteData; + bool ifExists; + bool ignoreProtection; + bool environmentContext; + bool needResult; } _DropPartitionsRequest__isset; class DropPartitionsRequest { @@ -3678,12 +3789,11 @@ class DropPartitionsRequest { static const char* ascii_fingerprint; // = "EB263FBA01215C480A9A24C11D69E672"; static const uint8_t binary_fingerprint[16]; // = {0xEB,0x26,0x3F,0xBA,0x01,0x21,0x5C,0x48,0x0A,0x9A,0x24,0xC1,0x1D,0x69,0xE6,0x72}; - DropPartitionsRequest(const DropPartitionsRequest&); - DropPartitionsRequest& operator=(const DropPartitionsRequest&); DropPartitionsRequest() : dbName(), tblName(), deleteData(0), ifExists(true), ignoreProtection(0), needResult(true) { } - virtual ~DropPartitionsRequest() throw(); + virtual ~DropPartitionsRequest() throw() {} + std::string dbName; std::string tblName; RequestPartsSpec parts; @@ -3695,21 +3805,42 @@ class DropPartitionsRequest { _DropPartitionsRequest__isset __isset; - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_tblName(const std::string& val); + void __set_tblName(const std::string& val) { + tblName = val; + } - void __set_parts(const RequestPartsSpec& val); + void __set_parts(const RequestPartsSpec& val) { + parts = val; + } - void __set_deleteData(const bool val); + void __set_deleteData(const bool val) { + deleteData = val; + __isset.deleteData = true; + } - void __set_ifExists(const bool val); + void __set_ifExists(const bool val) { + ifExists = val; + __isset.ifExists = true; + } - void __set_ignoreProtection(const bool val); + void __set_ignoreProtection(const bool val) { + ignoreProtection = val; + __isset.ignoreProtection = true; + } - void __set_environmentContext(const EnvironmentContext& val); + void __set_environmentContext(const EnvironmentContext& val) { + environmentContext = val; + __isset.environmentContext = true; + } - void __set_needResult(const bool val); + void __set_needResult(const bool val) { + needResult = val; + __isset.needResult = true; + } bool operator == (const DropPartitionsRequest & rhs) const { @@ -3750,15 +3881,14 @@ class DropPartitionsRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const DropPartitionsRequest& obj); }; void swap(DropPartitionsRequest &a, DropPartitionsRequest &b); typedef struct _ResourceUri__isset { _ResourceUri__isset() : resourceType(false), uri(false) {} - bool resourceType :1; - bool uri :1; + bool resourceType; + bool uri; } _ResourceUri__isset; class ResourceUri { @@ -3767,20 +3897,23 @@ class ResourceUri { static const char* ascii_fingerprint; // = "19B5240589E680301A7E32DF3971EFBE"; static const uint8_t binary_fingerprint[16]; // = {0x19,0xB5,0x24,0x05,0x89,0xE6,0x80,0x30,0x1A,0x7E,0x32,0xDF,0x39,0x71,0xEF,0xBE}; - ResourceUri(const ResourceUri&); - ResourceUri& operator=(const ResourceUri&); ResourceUri() : resourceType((ResourceType::type)0), uri() { } - virtual ~ResourceUri() throw(); + virtual ~ResourceUri() throw() {} + ResourceType::type resourceType; std::string uri; _ResourceUri__isset __isset; - void __set_resourceType(const ResourceType::type val); + void __set_resourceType(const ResourceType::type val) { + resourceType = val; + } - void __set_uri(const std::string& val); + void __set_uri(const std::string& val) { + uri = val; + } bool operator == (const ResourceUri & rhs) const { @@ -3799,21 +3932,20 @@ class ResourceUri { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ResourceUri& obj); }; void swap(ResourceUri &a, ResourceUri &b); typedef struct _Function__isset { _Function__isset() : functionName(false), dbName(false), className(false), ownerName(false), ownerType(false), createTime(false), functionType(false), resourceUris(false) {} - bool functionName :1; - bool dbName :1; - bool className :1; - bool ownerName :1; - bool ownerType :1; - bool createTime :1; - bool functionType :1; - bool resourceUris :1; + bool functionName; + bool dbName; + bool className; + bool ownerName; + bool ownerType; + bool createTime; + bool functionType; + bool resourceUris; } _Function__isset; class Function { @@ -3822,12 +3954,11 @@ class Function { static const char* ascii_fingerprint; // = "72279C515E70F888568542F97616ADB8"; static const uint8_t binary_fingerprint[16]; // = {0x72,0x27,0x9C,0x51,0x5E,0x70,0xF8,0x88,0x56,0x85,0x42,0xF9,0x76,0x16,0xAD,0xB8}; - Function(const Function&); - Function& operator=(const Function&); Function() : functionName(), dbName(), className(), ownerName(), ownerType((PrincipalType::type)0), createTime(0), functionType((FunctionType::type)0) { } - virtual ~Function() throw(); + virtual ~Function() throw() {} + std::string functionName; std::string dbName; std::string className; @@ -3839,21 +3970,37 @@ class Function { _Function__isset __isset; - void __set_functionName(const std::string& val); + void __set_functionName(const std::string& val) { + functionName = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + } - void __set_className(const std::string& val); + void __set_className(const std::string& val) { + className = val; + } - void __set_ownerName(const std::string& val); + void __set_ownerName(const std::string& val) { + ownerName = val; + } - void __set_ownerType(const PrincipalType::type val); + void __set_ownerType(const PrincipalType::type val) { + ownerType = val; + } - void __set_createTime(const int32_t val); + void __set_createTime(const int32_t val) { + createTime = val; + } - void __set_functionType(const FunctionType::type val); + void __set_functionType(const FunctionType::type val) { + functionType = val; + } - void __set_resourceUris(const std::vector & val); + void __set_resourceUris(const std::vector & val) { + resourceUris = val; + } bool operator == (const Function & rhs) const { @@ -3884,7 +4031,6 @@ class Function { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Function& obj); }; void swap(Function &a, Function &b); @@ -3896,24 +4042,31 @@ class TxnInfo { static const char* ascii_fingerprint; // = "6C5C0773A901CCA3BE9D085B3B47A767"; static const uint8_t binary_fingerprint[16]; // = {0x6C,0x5C,0x07,0x73,0xA9,0x01,0xCC,0xA3,0xBE,0x9D,0x08,0x5B,0x3B,0x47,0xA7,0x67}; - TxnInfo(const TxnInfo&); - TxnInfo& operator=(const TxnInfo&); TxnInfo() : id(0), state((TxnState::type)0), user(), hostname() { } - virtual ~TxnInfo() throw(); + virtual ~TxnInfo() throw() {} + int64_t id; TxnState::type state; std::string user; std::string hostname; - void __set_id(const int64_t val); + void __set_id(const int64_t val) { + id = val; + } - void __set_state(const TxnState::type val); + void __set_state(const TxnState::type val) { + state = val; + } - void __set_user(const std::string& val); + void __set_user(const std::string& val) { + user = val; + } - void __set_hostname(const std::string& val); + void __set_hostname(const std::string& val) { + hostname = val; + } bool operator == (const TxnInfo & rhs) const { @@ -3936,7 +4089,6 @@ class TxnInfo { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TxnInfo& obj); }; void swap(TxnInfo &a, TxnInfo &b); @@ -3948,18 +4100,21 @@ class GetOpenTxnsInfoResponse { static const char* ascii_fingerprint; // = "CCF769BBD33005B61F2079A6665E3B9C"; static const uint8_t binary_fingerprint[16]; // = {0xCC,0xF7,0x69,0xBB,0xD3,0x30,0x05,0xB6,0x1F,0x20,0x79,0xA6,0x66,0x5E,0x3B,0x9C}; - GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse&); - GetOpenTxnsInfoResponse& operator=(const GetOpenTxnsInfoResponse&); GetOpenTxnsInfoResponse() : txn_high_water_mark(0) { } - virtual ~GetOpenTxnsInfoResponse() throw(); + virtual ~GetOpenTxnsInfoResponse() throw() {} + int64_t txn_high_water_mark; std::vector open_txns; - void __set_txn_high_water_mark(const int64_t val); + void __set_txn_high_water_mark(const int64_t val) { + txn_high_water_mark = val; + } - void __set_open_txns(const std::vector & val); + void __set_open_txns(const std::vector & val) { + open_txns = val; + } bool operator == (const GetOpenTxnsInfoResponse & rhs) const { @@ -3978,7 +4133,6 @@ class GetOpenTxnsInfoResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const GetOpenTxnsInfoResponse& obj); }; void swap(GetOpenTxnsInfoResponse &a, GetOpenTxnsInfoResponse &b); @@ -3990,18 +4144,21 @@ class GetOpenTxnsResponse { static const char* ascii_fingerprint; // = "590531FF1BE8611678B255374F6109EE"; static const uint8_t binary_fingerprint[16]; // = {0x59,0x05,0x31,0xFF,0x1B,0xE8,0x61,0x16,0x78,0xB2,0x55,0x37,0x4F,0x61,0x09,0xEE}; - GetOpenTxnsResponse(const GetOpenTxnsResponse&); - GetOpenTxnsResponse& operator=(const GetOpenTxnsResponse&); GetOpenTxnsResponse() : txn_high_water_mark(0) { } - virtual ~GetOpenTxnsResponse() throw(); + virtual ~GetOpenTxnsResponse() throw() {} + int64_t txn_high_water_mark; std::set open_txns; - void __set_txn_high_water_mark(const int64_t val); + void __set_txn_high_water_mark(const int64_t val) { + txn_high_water_mark = val; + } - void __set_open_txns(const std::set & val); + void __set_open_txns(const std::set & val) { + open_txns = val; + } bool operator == (const GetOpenTxnsResponse & rhs) const { @@ -4020,7 +4177,6 @@ class GetOpenTxnsResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const GetOpenTxnsResponse& obj); }; void swap(GetOpenTxnsResponse &a, GetOpenTxnsResponse &b); @@ -4032,21 +4188,26 @@ class OpenTxnRequest { static const char* ascii_fingerprint; // = "3368C2F81F2FEF71F11EDACDB2A3ECEF"; static const uint8_t binary_fingerprint[16]; // = {0x33,0x68,0xC2,0xF8,0x1F,0x2F,0xEF,0x71,0xF1,0x1E,0xDA,0xCD,0xB2,0xA3,0xEC,0xEF}; - OpenTxnRequest(const OpenTxnRequest&); - OpenTxnRequest& operator=(const OpenTxnRequest&); OpenTxnRequest() : num_txns(0), user(), hostname() { } - virtual ~OpenTxnRequest() throw(); + virtual ~OpenTxnRequest() throw() {} + int32_t num_txns; std::string user; std::string hostname; - void __set_num_txns(const int32_t val); + void __set_num_txns(const int32_t val) { + num_txns = val; + } - void __set_user(const std::string& val); + void __set_user(const std::string& val) { + user = val; + } - void __set_hostname(const std::string& val); + void __set_hostname(const std::string& val) { + hostname = val; + } bool operator == (const OpenTxnRequest & rhs) const { @@ -4067,7 +4228,6 @@ class OpenTxnRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const OpenTxnRequest& obj); }; void swap(OpenTxnRequest &a, OpenTxnRequest &b); @@ -4079,15 +4239,16 @@ class OpenTxnsResponse { static const char* ascii_fingerprint; // = "E49D7D1A9013CC81CD0F69D631EF82E4"; static const uint8_t binary_fingerprint[16]; // = {0xE4,0x9D,0x7D,0x1A,0x90,0x13,0xCC,0x81,0xCD,0x0F,0x69,0xD6,0x31,0xEF,0x82,0xE4}; - OpenTxnsResponse(const OpenTxnsResponse&); - OpenTxnsResponse& operator=(const OpenTxnsResponse&); OpenTxnsResponse() { } - virtual ~OpenTxnsResponse() throw(); + virtual ~OpenTxnsResponse() throw() {} + std::vector txn_ids; - void __set_txn_ids(const std::vector & val); + void __set_txn_ids(const std::vector & val) { + txn_ids = val; + } bool operator == (const OpenTxnsResponse & rhs) const { @@ -4104,7 +4265,6 @@ class OpenTxnsResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const OpenTxnsResponse& obj); }; void swap(OpenTxnsResponse &a, OpenTxnsResponse &b); @@ -4116,15 +4276,16 @@ class AbortTxnRequest { static const char* ascii_fingerprint; // = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; static const uint8_t binary_fingerprint[16]; // = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; - AbortTxnRequest(const AbortTxnRequest&); - AbortTxnRequest& operator=(const AbortTxnRequest&); AbortTxnRequest() : txnid(0) { } - virtual ~AbortTxnRequest() throw(); + virtual ~AbortTxnRequest() throw() {} + int64_t txnid; - void __set_txnid(const int64_t val); + void __set_txnid(const int64_t val) { + txnid = val; + } bool operator == (const AbortTxnRequest & rhs) const { @@ -4141,7 +4302,6 @@ class AbortTxnRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const AbortTxnRequest& obj); }; void swap(AbortTxnRequest &a, AbortTxnRequest &b); @@ -4153,15 +4313,16 @@ class CommitTxnRequest { static const char* ascii_fingerprint; // = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; static const uint8_t binary_fingerprint[16]; // = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; - CommitTxnRequest(const CommitTxnRequest&); - CommitTxnRequest& operator=(const CommitTxnRequest&); CommitTxnRequest() : txnid(0) { } - virtual ~CommitTxnRequest() throw(); + virtual ~CommitTxnRequest() throw() {} + int64_t txnid; - void __set_txnid(const int64_t val); + void __set_txnid(const int64_t val) { + txnid = val; + } bool operator == (const CommitTxnRequest & rhs) const { @@ -4178,15 +4339,14 @@ class CommitTxnRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const CommitTxnRequest& obj); }; void swap(CommitTxnRequest &a, CommitTxnRequest &b); typedef struct _LockComponent__isset { _LockComponent__isset() : tablename(false), partitionname(false) {} - bool tablename :1; - bool partitionname :1; + bool tablename; + bool partitionname; } _LockComponent__isset; class LockComponent { @@ -4195,12 +4355,11 @@ class LockComponent { static const char* ascii_fingerprint; // = "38B02531B0840AC9C72904A4649FD15F"; static const uint8_t binary_fingerprint[16]; // = {0x38,0xB0,0x25,0x31,0xB0,0x84,0x0A,0xC9,0xC7,0x29,0x04,0xA4,0x64,0x9F,0xD1,0x5F}; - LockComponent(const LockComponent&); - LockComponent& operator=(const LockComponent&); LockComponent() : type((LockType::type)0), level((LockLevel::type)0), dbname(), tablename(), partitionname() { } - virtual ~LockComponent() throw(); + virtual ~LockComponent() throw() {} + LockType::type type; LockLevel::type level; std::string dbname; @@ -4209,15 +4368,27 @@ class LockComponent { _LockComponent__isset __isset; - void __set_type(const LockType::type val); + void __set_type(const LockType::type val) { + type = val; + } - void __set_level(const LockLevel::type val); + void __set_level(const LockLevel::type val) { + level = val; + } - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tablename(const std::string& val); + void __set_tablename(const std::string& val) { + tablename = val; + __isset.tablename = true; + } - void __set_partitionname(const std::string& val); + void __set_partitionname(const std::string& val) { + partitionname = val; + __isset.partitionname = true; + } bool operator == (const LockComponent & rhs) const { @@ -4246,14 +4417,13 @@ class LockComponent { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const LockComponent& obj); }; void swap(LockComponent &a, LockComponent &b); typedef struct _LockRequest__isset { _LockRequest__isset() : txnid(false) {} - bool txnid :1; + bool txnid; } _LockRequest__isset; class LockRequest { @@ -4262,12 +4432,11 @@ class LockRequest { static const char* ascii_fingerprint; // = "46BC5ED7196BC16CB216AD5CC67C6930"; static const uint8_t binary_fingerprint[16]; // = {0x46,0xBC,0x5E,0xD7,0x19,0x6B,0xC1,0x6C,0xB2,0x16,0xAD,0x5C,0xC6,0x7C,0x69,0x30}; - LockRequest(const LockRequest&); - LockRequest& operator=(const LockRequest&); LockRequest() : txnid(0), user(), hostname() { } - virtual ~LockRequest() throw(); + virtual ~LockRequest() throw() {} + std::vector component; int64_t txnid; std::string user; @@ -4275,13 +4444,22 @@ class LockRequest { _LockRequest__isset __isset; - void __set_component(const std::vector & val); + void __set_component(const std::vector & val) { + component = val; + } - void __set_txnid(const int64_t val); + void __set_txnid(const int64_t val) { + txnid = val; + __isset.txnid = true; + } - void __set_user(const std::string& val); + void __set_user(const std::string& val) { + user = val; + } - void __set_hostname(const std::string& val); + void __set_hostname(const std::string& val) { + hostname = val; + } bool operator == (const LockRequest & rhs) const { @@ -4306,7 +4484,6 @@ class LockRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const LockRequest& obj); }; void swap(LockRequest &a, LockRequest &b); @@ -4318,18 +4495,21 @@ class LockResponse { static const char* ascii_fingerprint; // = "DFA40D9D2884599F3D1E7A57578F1384"; static const uint8_t binary_fingerprint[16]; // = {0xDF,0xA4,0x0D,0x9D,0x28,0x84,0x59,0x9F,0x3D,0x1E,0x7A,0x57,0x57,0x8F,0x13,0x84}; - LockResponse(const LockResponse&); - LockResponse& operator=(const LockResponse&); LockResponse() : lockid(0), state((LockState::type)0) { } - virtual ~LockResponse() throw(); + virtual ~LockResponse() throw() {} + int64_t lockid; LockState::type state; - void __set_lockid(const int64_t val); + void __set_lockid(const int64_t val) { + lockid = val; + } - void __set_state(const LockState::type val); + void __set_state(const LockState::type val) { + state = val; + } bool operator == (const LockResponse & rhs) const { @@ -4348,7 +4528,6 @@ class LockResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const LockResponse& obj); }; void swap(LockResponse &a, LockResponse &b); @@ -4360,15 +4539,16 @@ class CheckLockRequest { static const char* ascii_fingerprint; // = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; static const uint8_t binary_fingerprint[16]; // = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; - CheckLockRequest(const CheckLockRequest&); - CheckLockRequest& operator=(const CheckLockRequest&); CheckLockRequest() : lockid(0) { } - virtual ~CheckLockRequest() throw(); + virtual ~CheckLockRequest() throw() {} + int64_t lockid; - void __set_lockid(const int64_t val); + void __set_lockid(const int64_t val) { + lockid = val; + } bool operator == (const CheckLockRequest & rhs) const { @@ -4385,7 +4565,6 @@ class CheckLockRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const CheckLockRequest& obj); }; void swap(CheckLockRequest &a, CheckLockRequest &b); @@ -4397,15 +4576,16 @@ class UnlockRequest { static const char* ascii_fingerprint; // = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; static const uint8_t binary_fingerprint[16]; // = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; - UnlockRequest(const UnlockRequest&); - UnlockRequest& operator=(const UnlockRequest&); UnlockRequest() : lockid(0) { } - virtual ~UnlockRequest() throw(); + virtual ~UnlockRequest() throw() {} + int64_t lockid; - void __set_lockid(const int64_t val); + void __set_lockid(const int64_t val) { + lockid = val; + } bool operator == (const UnlockRequest & rhs) const { @@ -4422,7 +4602,6 @@ class UnlockRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const UnlockRequest& obj); }; void swap(UnlockRequest &a, UnlockRequest &b); @@ -4434,12 +4613,11 @@ class ShowLocksRequest { static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - ShowLocksRequest(const ShowLocksRequest&); - ShowLocksRequest& operator=(const ShowLocksRequest&); ShowLocksRequest() { } - virtual ~ShowLocksRequest() throw(); + virtual ~ShowLocksRequest() throw() {} + bool operator == (const ShowLocksRequest & /* rhs */) const { @@ -4454,17 +4632,16 @@ class ShowLocksRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ShowLocksRequest& obj); }; void swap(ShowLocksRequest &a, ShowLocksRequest &b); typedef struct _ShowLocksResponseElement__isset { _ShowLocksResponseElement__isset() : tablename(false), partname(false), txnid(false), acquiredat(false) {} - bool tablename :1; - bool partname :1; - bool txnid :1; - bool acquiredat :1; + bool tablename; + bool partname; + bool txnid; + bool acquiredat; } _ShowLocksResponseElement__isset; class ShowLocksResponseElement { @@ -4473,12 +4650,11 @@ class ShowLocksResponseElement { static const char* ascii_fingerprint; // = "5AD11F0E0EF1EE0A7C08B00FEFCFF24F"; static const uint8_t binary_fingerprint[16]; // = {0x5A,0xD1,0x1F,0x0E,0x0E,0xF1,0xEE,0x0A,0x7C,0x08,0xB0,0x0F,0xEF,0xCF,0xF2,0x4F}; - ShowLocksResponseElement(const ShowLocksResponseElement&); - ShowLocksResponseElement& operator=(const ShowLocksResponseElement&); ShowLocksResponseElement() : lockid(0), dbname(), tablename(), partname(), state((LockState::type)0), type((LockType::type)0), txnid(0), lastheartbeat(0), acquiredat(0), user(), hostname() { } - virtual ~ShowLocksResponseElement() throw(); + virtual ~ShowLocksResponseElement() throw() {} + int64_t lockid; std::string dbname; std::string tablename; @@ -4493,27 +4669,53 @@ class ShowLocksResponseElement { _ShowLocksResponseElement__isset __isset; - void __set_lockid(const int64_t val); + void __set_lockid(const int64_t val) { + lockid = val; + } - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tablename(const std::string& val); + void __set_tablename(const std::string& val) { + tablename = val; + __isset.tablename = true; + } - void __set_partname(const std::string& val); + void __set_partname(const std::string& val) { + partname = val; + __isset.partname = true; + } - void __set_state(const LockState::type val); + void __set_state(const LockState::type val) { + state = val; + } - void __set_type(const LockType::type val); + void __set_type(const LockType::type val) { + type = val; + } - void __set_txnid(const int64_t val); + void __set_txnid(const int64_t val) { + txnid = val; + __isset.txnid = true; + } - void __set_lastheartbeat(const int64_t val); + void __set_lastheartbeat(const int64_t val) { + lastheartbeat = val; + } - void __set_acquiredat(const int64_t val); + void __set_acquiredat(const int64_t val) { + acquiredat = val; + __isset.acquiredat = true; + } - void __set_user(const std::string& val); + void __set_user(const std::string& val) { + user = val; + } - void __set_hostname(const std::string& val); + void __set_hostname(const std::string& val) { + hostname = val; + } bool operator == (const ShowLocksResponseElement & rhs) const { @@ -4558,14 +4760,13 @@ class ShowLocksResponseElement { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ShowLocksResponseElement& obj); }; void swap(ShowLocksResponseElement &a, ShowLocksResponseElement &b); typedef struct _ShowLocksResponse__isset { _ShowLocksResponse__isset() : locks(false) {} - bool locks :1; + bool locks; } _ShowLocksResponse__isset; class ShowLocksResponse { @@ -4574,17 +4775,18 @@ class ShowLocksResponse { static const char* ascii_fingerprint; // = "BD598AA60FE941361FB54C43973C011F"; static const uint8_t binary_fingerprint[16]; // = {0xBD,0x59,0x8A,0xA6,0x0F,0xE9,0x41,0x36,0x1F,0xB5,0x4C,0x43,0x97,0x3C,0x01,0x1F}; - ShowLocksResponse(const ShowLocksResponse&); - ShowLocksResponse& operator=(const ShowLocksResponse&); ShowLocksResponse() { } - virtual ~ShowLocksResponse() throw(); + virtual ~ShowLocksResponse() throw() {} + std::vector locks; _ShowLocksResponse__isset __isset; - void __set_locks(const std::vector & val); + void __set_locks(const std::vector & val) { + locks = val; + } bool operator == (const ShowLocksResponse & rhs) const { @@ -4601,15 +4803,14 @@ class ShowLocksResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ShowLocksResponse& obj); }; void swap(ShowLocksResponse &a, ShowLocksResponse &b); typedef struct _HeartbeatRequest__isset { _HeartbeatRequest__isset() : lockid(false), txnid(false) {} - bool lockid :1; - bool txnid :1; + bool lockid; + bool txnid; } _HeartbeatRequest__isset; class HeartbeatRequest { @@ -4618,20 +4819,25 @@ class HeartbeatRequest { static const char* ascii_fingerprint; // = "0354D07C94CB8542872CA1277008860A"; static const uint8_t binary_fingerprint[16]; // = {0x03,0x54,0xD0,0x7C,0x94,0xCB,0x85,0x42,0x87,0x2C,0xA1,0x27,0x70,0x08,0x86,0x0A}; - HeartbeatRequest(const HeartbeatRequest&); - HeartbeatRequest& operator=(const HeartbeatRequest&); HeartbeatRequest() : lockid(0), txnid(0) { } - virtual ~HeartbeatRequest() throw(); + virtual ~HeartbeatRequest() throw() {} + int64_t lockid; int64_t txnid; _HeartbeatRequest__isset __isset; - void __set_lockid(const int64_t val); + void __set_lockid(const int64_t val) { + lockid = val; + __isset.lockid = true; + } - void __set_txnid(const int64_t val); + void __set_txnid(const int64_t val) { + txnid = val; + __isset.txnid = true; + } bool operator == (const HeartbeatRequest & rhs) const { @@ -4654,7 +4860,6 @@ class HeartbeatRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const HeartbeatRequest& obj); }; void swap(HeartbeatRequest &a, HeartbeatRequest &b); @@ -4666,18 +4871,21 @@ class HeartbeatTxnRangeRequest { static const char* ascii_fingerprint; // = "F33135321253DAEB67B0E79E416CA831"; static const uint8_t binary_fingerprint[16]; // = {0xF3,0x31,0x35,0x32,0x12,0x53,0xDA,0xEB,0x67,0xB0,0xE7,0x9E,0x41,0x6C,0xA8,0x31}; - HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest&); - HeartbeatTxnRangeRequest& operator=(const HeartbeatTxnRangeRequest&); HeartbeatTxnRangeRequest() : min(0), max(0) { } - virtual ~HeartbeatTxnRangeRequest() throw(); + virtual ~HeartbeatTxnRangeRequest() throw() {} + int64_t min; int64_t max; - void __set_min(const int64_t val); + void __set_min(const int64_t val) { + min = val; + } - void __set_max(const int64_t val); + void __set_max(const int64_t val) { + max = val; + } bool operator == (const HeartbeatTxnRangeRequest & rhs) const { @@ -4696,7 +4904,6 @@ class HeartbeatTxnRangeRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const HeartbeatTxnRangeRequest& obj); }; void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b); @@ -4708,18 +4915,21 @@ class HeartbeatTxnRangeResponse { static const char* ascii_fingerprint; // = "33E49A70BD5C04262A0F407E3656E3CF"; static const uint8_t binary_fingerprint[16]; // = {0x33,0xE4,0x9A,0x70,0xBD,0x5C,0x04,0x26,0x2A,0x0F,0x40,0x7E,0x36,0x56,0xE3,0xCF}; - HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse&); - HeartbeatTxnRangeResponse& operator=(const HeartbeatTxnRangeResponse&); HeartbeatTxnRangeResponse() { } - virtual ~HeartbeatTxnRangeResponse() throw(); + virtual ~HeartbeatTxnRangeResponse() throw() {} + std::set aborted; std::set nosuch; - void __set_aborted(const std::set & val); + void __set_aborted(const std::set & val) { + aborted = val; + } - void __set_nosuch(const std::set & val); + void __set_nosuch(const std::set & val) { + nosuch = val; + } bool operator == (const HeartbeatTxnRangeResponse & rhs) const { @@ -4738,15 +4948,14 @@ class HeartbeatTxnRangeResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const HeartbeatTxnRangeResponse& obj); }; void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b); typedef struct _CompactionRequest__isset { _CompactionRequest__isset() : partitionname(false), runas(false) {} - bool partitionname :1; - bool runas :1; + bool partitionname; + bool runas; } _CompactionRequest__isset; class CompactionRequest { @@ -4755,12 +4964,11 @@ class CompactionRequest { static const char* ascii_fingerprint; // = "899FD1F339D8318D628687CC2CE2864B"; static const uint8_t binary_fingerprint[16]; // = {0x89,0x9F,0xD1,0xF3,0x39,0xD8,0x31,0x8D,0x62,0x86,0x87,0xCC,0x2C,0xE2,0x86,0x4B}; - CompactionRequest(const CompactionRequest&); - CompactionRequest& operator=(const CompactionRequest&); CompactionRequest() : dbname(), tablename(), partitionname(), type((CompactionType::type)0), runas() { } - virtual ~CompactionRequest() throw(); + virtual ~CompactionRequest() throw() {} + std::string dbname; std::string tablename; std::string partitionname; @@ -4769,15 +4977,27 @@ class CompactionRequest { _CompactionRequest__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tablename(const std::string& val); + void __set_tablename(const std::string& val) { + tablename = val; + } - void __set_partitionname(const std::string& val); + void __set_partitionname(const std::string& val) { + partitionname = val; + __isset.partitionname = true; + } - void __set_type(const CompactionType::type val); + void __set_type(const CompactionType::type val) { + type = val; + } - void __set_runas(const std::string& val); + void __set_runas(const std::string& val) { + runas = val; + __isset.runas = true; + } bool operator == (const CompactionRequest & rhs) const { @@ -4806,7 +5026,6 @@ class CompactionRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const CompactionRequest& obj); }; void swap(CompactionRequest &a, CompactionRequest &b); @@ -4818,12 +5037,11 @@ class ShowCompactRequest { static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - ShowCompactRequest(const ShowCompactRequest&); - ShowCompactRequest& operator=(const ShowCompactRequest&); ShowCompactRequest() { } - virtual ~ShowCompactRequest() throw(); + virtual ~ShowCompactRequest() throw() {} + bool operator == (const ShowCompactRequest & /* rhs */) const { @@ -4838,17 +5056,16 @@ class ShowCompactRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ShowCompactRequest& obj); }; void swap(ShowCompactRequest &a, ShowCompactRequest &b); typedef struct _ShowCompactResponseElement__isset { _ShowCompactResponseElement__isset() : partitionname(false), workerid(false), start(false), runAs(false) {} - bool partitionname :1; - bool workerid :1; - bool start :1; - bool runAs :1; + bool partitionname; + bool workerid; + bool start; + bool runAs; } _ShowCompactResponseElement__isset; class ShowCompactResponseElement { @@ -4857,12 +5074,11 @@ class ShowCompactResponseElement { static const char* ascii_fingerprint; // = "2F338C265DC4FD82DD13F4966FE43F13"; static const uint8_t binary_fingerprint[16]; // = {0x2F,0x33,0x8C,0x26,0x5D,0xC4,0xFD,0x82,0xDD,0x13,0xF4,0x96,0x6F,0xE4,0x3F,0x13}; - ShowCompactResponseElement(const ShowCompactResponseElement&); - ShowCompactResponseElement& operator=(const ShowCompactResponseElement&); ShowCompactResponseElement() : dbname(), tablename(), partitionname(), type((CompactionType::type)0), state(), workerid(), start(0), runAs() { } - virtual ~ShowCompactResponseElement() throw(); + virtual ~ShowCompactResponseElement() throw() {} + std::string dbname; std::string tablename; std::string partitionname; @@ -4874,21 +5090,41 @@ class ShowCompactResponseElement { _ShowCompactResponseElement__isset __isset; - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tablename(const std::string& val); + void __set_tablename(const std::string& val) { + tablename = val; + } - void __set_partitionname(const std::string& val); + void __set_partitionname(const std::string& val) { + partitionname = val; + __isset.partitionname = true; + } - void __set_type(const CompactionType::type val); + void __set_type(const CompactionType::type val) { + type = val; + } - void __set_state(const std::string& val); + void __set_state(const std::string& val) { + state = val; + } - void __set_workerid(const std::string& val); + void __set_workerid(const std::string& val) { + workerid = val; + __isset.workerid = true; + } - void __set_start(const int64_t val); + void __set_start(const int64_t val) { + start = val; + __isset.start = true; + } - void __set_runAs(const std::string& val); + void __set_runAs(const std::string& val) { + runAs = val; + __isset.runAs = true; + } bool operator == (const ShowCompactResponseElement & rhs) const { @@ -4927,7 +5163,6 @@ class ShowCompactResponseElement { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ShowCompactResponseElement& obj); }; void swap(ShowCompactResponseElement &a, ShowCompactResponseElement &b); @@ -4939,15 +5174,16 @@ class ShowCompactResponse { static const char* ascii_fingerprint; // = "915B7B8DB8966D65769C0F98707BBAE3"; static const uint8_t binary_fingerprint[16]; // = {0x91,0x5B,0x7B,0x8D,0xB8,0x96,0x6D,0x65,0x76,0x9C,0x0F,0x98,0x70,0x7B,0xBA,0xE3}; - ShowCompactResponse(const ShowCompactResponse&); - ShowCompactResponse& operator=(const ShowCompactResponse&); ShowCompactResponse() { } - virtual ~ShowCompactResponse() throw(); + virtual ~ShowCompactResponse() throw() {} + std::vector compacts; - void __set_compacts(const std::vector & val); + void __set_compacts(const std::vector & val) { + compacts = val; + } bool operator == (const ShowCompactResponse & rhs) const { @@ -4964,7 +5200,6 @@ class ShowCompactResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ShowCompactResponse& obj); }; void swap(ShowCompactResponse &a, ShowCompactResponse &b); @@ -4976,24 +5211,31 @@ class AddDynamicPartitions { static const char* ascii_fingerprint; // = "A53A2B050DCCFE6A2158480A24E33898"; static const uint8_t binary_fingerprint[16]; // = {0xA5,0x3A,0x2B,0x05,0x0D,0xCC,0xFE,0x6A,0x21,0x58,0x48,0x0A,0x24,0xE3,0x38,0x98}; - AddDynamicPartitions(const AddDynamicPartitions&); - AddDynamicPartitions& operator=(const AddDynamicPartitions&); AddDynamicPartitions() : txnid(0), dbname(), tablename() { } - virtual ~AddDynamicPartitions() throw(); + virtual ~AddDynamicPartitions() throw() {} + int64_t txnid; std::string dbname; std::string tablename; std::vector partitionnames; - void __set_txnid(const int64_t val); + void __set_txnid(const int64_t val) { + txnid = val; + } - void __set_dbname(const std::string& val); + void __set_dbname(const std::string& val) { + dbname = val; + } - void __set_tablename(const std::string& val); + void __set_tablename(const std::string& val) { + tablename = val; + } - void __set_partitionnames(const std::vector & val); + void __set_partitionnames(const std::vector & val) { + partitionnames = val; + } bool operator == (const AddDynamicPartitions & rhs) const { @@ -5016,14 +5258,13 @@ class AddDynamicPartitions { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const AddDynamicPartitions& obj); }; void swap(AddDynamicPartitions &a, AddDynamicPartitions &b); typedef struct _NotificationEventRequest__isset { _NotificationEventRequest__isset() : maxEvents(false) {} - bool maxEvents :1; + bool maxEvents; } _NotificationEventRequest__isset; class NotificationEventRequest { @@ -5032,20 +5273,24 @@ class NotificationEventRequest { static const char* ascii_fingerprint; // = "6E578DA8AB10EED824A75534350EBAEF"; static const uint8_t binary_fingerprint[16]; // = {0x6E,0x57,0x8D,0xA8,0xAB,0x10,0xEE,0xD8,0x24,0xA7,0x55,0x34,0x35,0x0E,0xBA,0xEF}; - NotificationEventRequest(const NotificationEventRequest&); - NotificationEventRequest& operator=(const NotificationEventRequest&); NotificationEventRequest() : lastEvent(0), maxEvents(0) { } - virtual ~NotificationEventRequest() throw(); + virtual ~NotificationEventRequest() throw() {} + int64_t lastEvent; int32_t maxEvents; _NotificationEventRequest__isset __isset; - void __set_lastEvent(const int64_t val); + void __set_lastEvent(const int64_t val) { + lastEvent = val; + } - void __set_maxEvents(const int32_t val); + void __set_maxEvents(const int32_t val) { + maxEvents = val; + __isset.maxEvents = true; + } bool operator == (const NotificationEventRequest & rhs) const { @@ -5066,15 +5311,14 @@ class NotificationEventRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const NotificationEventRequest& obj); }; void swap(NotificationEventRequest &a, NotificationEventRequest &b); typedef struct _NotificationEvent__isset { _NotificationEvent__isset() : dbName(false), tableName(false) {} - bool dbName :1; - bool tableName :1; + bool dbName; + bool tableName; } _NotificationEvent__isset; class NotificationEvent { @@ -5083,12 +5327,11 @@ class NotificationEvent { static const char* ascii_fingerprint; // = "ACAF0036D9999F3A389F490F5E22D369"; static const uint8_t binary_fingerprint[16]; // = {0xAC,0xAF,0x00,0x36,0xD9,0x99,0x9F,0x3A,0x38,0x9F,0x49,0x0F,0x5E,0x22,0xD3,0x69}; - NotificationEvent(const NotificationEvent&); - NotificationEvent& operator=(const NotificationEvent&); NotificationEvent() : eventId(0), eventTime(0), eventType(), dbName(), tableName(), message() { } - virtual ~NotificationEvent() throw(); + virtual ~NotificationEvent() throw() {} + int64_t eventId; int32_t eventTime; std::string eventType; @@ -5098,17 +5341,31 @@ class NotificationEvent { _NotificationEvent__isset __isset; - void __set_eventId(const int64_t val); + void __set_eventId(const int64_t val) { + eventId = val; + } - void __set_eventTime(const int32_t val); + void __set_eventTime(const int32_t val) { + eventTime = val; + } - void __set_eventType(const std::string& val); + void __set_eventType(const std::string& val) { + eventType = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + __isset.dbName = true; + } - void __set_tableName(const std::string& val); + void __set_tableName(const std::string& val) { + tableName = val; + __isset.tableName = true; + } - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const NotificationEvent & rhs) const { @@ -5139,7 +5396,6 @@ class NotificationEvent { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const NotificationEvent& obj); }; void swap(NotificationEvent &a, NotificationEvent &b); @@ -5151,15 +5407,16 @@ class NotificationEventResponse { static const char* ascii_fingerprint; // = "EE3DB23399639114BCD1782A0FB01818"; static const uint8_t binary_fingerprint[16]; // = {0xEE,0x3D,0xB2,0x33,0x99,0x63,0x91,0x14,0xBC,0xD1,0x78,0x2A,0x0F,0xB0,0x18,0x18}; - NotificationEventResponse(const NotificationEventResponse&); - NotificationEventResponse& operator=(const NotificationEventResponse&); NotificationEventResponse() { } - virtual ~NotificationEventResponse() throw(); + virtual ~NotificationEventResponse() throw() {} + std::vector events; - void __set_events(const std::vector & val); + void __set_events(const std::vector & val) { + events = val; + } bool operator == (const NotificationEventResponse & rhs) const { @@ -5176,7 +5433,6 @@ class NotificationEventResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const NotificationEventResponse& obj); }; void swap(NotificationEventResponse &a, NotificationEventResponse &b); @@ -5188,15 +5444,16 @@ class CurrentNotificationEventId { static const char* ascii_fingerprint; // = "56A59CE7FFAF82BCA8A19FAACDE4FB75"; static const uint8_t binary_fingerprint[16]; // = {0x56,0xA5,0x9C,0xE7,0xFF,0xAF,0x82,0xBC,0xA8,0xA1,0x9F,0xAA,0xCD,0xE4,0xFB,0x75}; - CurrentNotificationEventId(const CurrentNotificationEventId&); - CurrentNotificationEventId& operator=(const CurrentNotificationEventId&); CurrentNotificationEventId() : eventId(0) { } - virtual ~CurrentNotificationEventId() throw(); + virtual ~CurrentNotificationEventId() throw() {} + int64_t eventId; - void __set_eventId(const int64_t val); + void __set_eventId(const int64_t val) { + eventId = val; + } bool operator == (const CurrentNotificationEventId & rhs) const { @@ -5213,7 +5470,6 @@ class CurrentNotificationEventId { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const CurrentNotificationEventId& obj); }; void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b); @@ -5225,15 +5481,16 @@ class InsertEventRequestData { static const char* ascii_fingerprint; // = "ACE4F644F0FDD289DDC4EE5B83BC13C0"; static const uint8_t binary_fingerprint[16]; // = {0xAC,0xE4,0xF6,0x44,0xF0,0xFD,0xD2,0x89,0xDD,0xC4,0xEE,0x5B,0x83,0xBC,0x13,0xC0}; - InsertEventRequestData(const InsertEventRequestData&); - InsertEventRequestData& operator=(const InsertEventRequestData&); InsertEventRequestData() { } - virtual ~InsertEventRequestData() throw(); + virtual ~InsertEventRequestData() throw() {} + std::vector filesAdded; - void __set_filesAdded(const std::vector & val); + void __set_filesAdded(const std::vector & val) { + filesAdded = val; + } bool operator == (const InsertEventRequestData & rhs) const { @@ -5250,14 +5507,13 @@ class InsertEventRequestData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const InsertEventRequestData& obj); }; void swap(InsertEventRequestData &a, InsertEventRequestData &b); typedef struct _FireEventRequestData__isset { _FireEventRequestData__isset() : insertData(false) {} - bool insertData :1; + bool insertData; } _FireEventRequestData__isset; class FireEventRequestData { @@ -5266,17 +5522,18 @@ class FireEventRequestData { static const char* ascii_fingerprint; // = "187E754B26707EE32451E6A27FB672CE"; static const uint8_t binary_fingerprint[16]; // = {0x18,0x7E,0x75,0x4B,0x26,0x70,0x7E,0xE3,0x24,0x51,0xE6,0xA2,0x7F,0xB6,0x72,0xCE}; - FireEventRequestData(const FireEventRequestData&); - FireEventRequestData& operator=(const FireEventRequestData&); FireEventRequestData() { } - virtual ~FireEventRequestData() throw(); + virtual ~FireEventRequestData() throw() {} + InsertEventRequestData insertData; _FireEventRequestData__isset __isset; - void __set_insertData(const InsertEventRequestData& val); + void __set_insertData(const InsertEventRequestData& val) { + insertData = val; + } bool operator == (const FireEventRequestData & rhs) const { @@ -5293,16 +5550,15 @@ class FireEventRequestData { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const FireEventRequestData& obj); }; void swap(FireEventRequestData &a, FireEventRequestData &b); typedef struct _FireEventRequest__isset { _FireEventRequest__isset() : dbName(false), tableName(false), partitionVals(false) {} - bool dbName :1; - bool tableName :1; - bool partitionVals :1; + bool dbName; + bool tableName; + bool partitionVals; } _FireEventRequest__isset; class FireEventRequest { @@ -5311,12 +5567,11 @@ class FireEventRequest { static const char* ascii_fingerprint; // = "1BA3A7F00159254072C3979B1429B50B"; static const uint8_t binary_fingerprint[16]; // = {0x1B,0xA3,0xA7,0xF0,0x01,0x59,0x25,0x40,0x72,0xC3,0x97,0x9B,0x14,0x29,0xB5,0x0B}; - FireEventRequest(const FireEventRequest&); - FireEventRequest& operator=(const FireEventRequest&); FireEventRequest() : successful(0), dbName(), tableName() { } - virtual ~FireEventRequest() throw(); + virtual ~FireEventRequest() throw() {} + bool successful; FireEventRequestData data; std::string dbName; @@ -5325,15 +5580,28 @@ class FireEventRequest { _FireEventRequest__isset __isset; - void __set_successful(const bool val); + void __set_successful(const bool val) { + successful = val; + } - void __set_data(const FireEventRequestData& val); + void __set_data(const FireEventRequestData& val) { + data = val; + } - void __set_dbName(const std::string& val); + void __set_dbName(const std::string& val) { + dbName = val; + __isset.dbName = true; + } - void __set_tableName(const std::string& val); + void __set_tableName(const std::string& val) { + tableName = val; + __isset.tableName = true; + } - void __set_partitionVals(const std::vector & val); + void __set_partitionVals(const std::vector & val) { + partitionVals = val; + __isset.partitionVals = true; + } bool operator == (const FireEventRequest & rhs) const { @@ -5364,7 +5632,6 @@ class FireEventRequest { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const FireEventRequest& obj); }; void swap(FireEventRequest &a, FireEventRequest &b); @@ -5376,12 +5643,11 @@ class FireEventResponse { static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - FireEventResponse(const FireEventResponse&); - FireEventResponse& operator=(const FireEventResponse&); FireEventResponse() { } - virtual ~FireEventResponse() throw(); + virtual ~FireEventResponse() throw() {} + bool operator == (const FireEventResponse & /* rhs */) const { @@ -5396,14 +5662,13 @@ class FireEventResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const FireEventResponse& obj); }; void swap(FireEventResponse &a, FireEventResponse &b); typedef struct _GetAllFunctionsResponse__isset { _GetAllFunctionsResponse__isset() : functions(false) {} - bool functions :1; + bool functions; } _GetAllFunctionsResponse__isset; class GetAllFunctionsResponse { @@ -5412,17 +5677,19 @@ class GetAllFunctionsResponse { static const char* ascii_fingerprint; // = "CEE0CA1D7402D4135EF7F42C0F0E0A68"; static const uint8_t binary_fingerprint[16]; // = {0xCE,0xE0,0xCA,0x1D,0x74,0x02,0xD4,0x13,0x5E,0xF7,0xF4,0x2C,0x0F,0x0E,0x0A,0x68}; - GetAllFunctionsResponse(const GetAllFunctionsResponse&); - GetAllFunctionsResponse& operator=(const GetAllFunctionsResponse&); GetAllFunctionsResponse() { } - virtual ~GetAllFunctionsResponse() throw(); + virtual ~GetAllFunctionsResponse() throw() {} + std::vector functions; _GetAllFunctionsResponse__isset __isset; - void __set_functions(const std::vector & val); + void __set_functions(const std::vector & val) { + functions = val; + __isset.functions = true; + } bool operator == (const GetAllFunctionsResponse & rhs) const { @@ -5441,14 +5708,13 @@ class GetAllFunctionsResponse { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const GetAllFunctionsResponse& obj); }; void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b); typedef struct _MetaException__isset { _MetaException__isset() : message(false) {} - bool message :1; + bool message; } _MetaException__isset; class MetaException : public ::apache::thrift::TException { @@ -5457,17 +5723,18 @@ class MetaException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - MetaException(const MetaException&); - MetaException& operator=(const MetaException&); MetaException() : message() { } - virtual ~MetaException() throw(); + virtual ~MetaException() throw() {} + std::string message; _MetaException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const MetaException & rhs) const { @@ -5484,14 +5751,13 @@ class MetaException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const MetaException& obj); }; void swap(MetaException &a, MetaException &b); typedef struct _UnknownTableException__isset { _UnknownTableException__isset() : message(false) {} - bool message :1; + bool message; } _UnknownTableException__isset; class UnknownTableException : public ::apache::thrift::TException { @@ -5500,17 +5766,18 @@ class UnknownTableException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - UnknownTableException(const UnknownTableException&); - UnknownTableException& operator=(const UnknownTableException&); UnknownTableException() : message() { } - virtual ~UnknownTableException() throw(); + virtual ~UnknownTableException() throw() {} + std::string message; _UnknownTableException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const UnknownTableException & rhs) const { @@ -5527,14 +5794,13 @@ class UnknownTableException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const UnknownTableException& obj); }; void swap(UnknownTableException &a, UnknownTableException &b); typedef struct _UnknownDBException__isset { _UnknownDBException__isset() : message(false) {} - bool message :1; + bool message; } _UnknownDBException__isset; class UnknownDBException : public ::apache::thrift::TException { @@ -5543,17 +5809,18 @@ class UnknownDBException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - UnknownDBException(const UnknownDBException&); - UnknownDBException& operator=(const UnknownDBException&); UnknownDBException() : message() { } - virtual ~UnknownDBException() throw(); + virtual ~UnknownDBException() throw() {} + std::string message; _UnknownDBException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const UnknownDBException & rhs) const { @@ -5570,14 +5837,13 @@ class UnknownDBException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const UnknownDBException& obj); }; void swap(UnknownDBException &a, UnknownDBException &b); typedef struct _AlreadyExistsException__isset { _AlreadyExistsException__isset() : message(false) {} - bool message :1; + bool message; } _AlreadyExistsException__isset; class AlreadyExistsException : public ::apache::thrift::TException { @@ -5586,17 +5852,18 @@ class AlreadyExistsException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - AlreadyExistsException(const AlreadyExistsException&); - AlreadyExistsException& operator=(const AlreadyExistsException&); AlreadyExistsException() : message() { } - virtual ~AlreadyExistsException() throw(); + virtual ~AlreadyExistsException() throw() {} + std::string message; _AlreadyExistsException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const AlreadyExistsException & rhs) const { @@ -5613,14 +5880,13 @@ class AlreadyExistsException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const AlreadyExistsException& obj); }; void swap(AlreadyExistsException &a, AlreadyExistsException &b); typedef struct _InvalidPartitionException__isset { _InvalidPartitionException__isset() : message(false) {} - bool message :1; + bool message; } _InvalidPartitionException__isset; class InvalidPartitionException : public ::apache::thrift::TException { @@ -5629,17 +5895,18 @@ class InvalidPartitionException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - InvalidPartitionException(const InvalidPartitionException&); - InvalidPartitionException& operator=(const InvalidPartitionException&); InvalidPartitionException() : message() { } - virtual ~InvalidPartitionException() throw(); + virtual ~InvalidPartitionException() throw() {} + std::string message; _InvalidPartitionException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const InvalidPartitionException & rhs) const { @@ -5656,14 +5923,13 @@ class InvalidPartitionException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const InvalidPartitionException& obj); }; void swap(InvalidPartitionException &a, InvalidPartitionException &b); typedef struct _UnknownPartitionException__isset { _UnknownPartitionException__isset() : message(false) {} - bool message :1; + bool message; } _UnknownPartitionException__isset; class UnknownPartitionException : public ::apache::thrift::TException { @@ -5672,17 +5938,18 @@ class UnknownPartitionException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - UnknownPartitionException(const UnknownPartitionException&); - UnknownPartitionException& operator=(const UnknownPartitionException&); UnknownPartitionException() : message() { } - virtual ~UnknownPartitionException() throw(); + virtual ~UnknownPartitionException() throw() {} + std::string message; _UnknownPartitionException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const UnknownPartitionException & rhs) const { @@ -5699,14 +5966,13 @@ class UnknownPartitionException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const UnknownPartitionException& obj); }; void swap(UnknownPartitionException &a, UnknownPartitionException &b); typedef struct _InvalidObjectException__isset { _InvalidObjectException__isset() : message(false) {} - bool message :1; + bool message; } _InvalidObjectException__isset; class InvalidObjectException : public ::apache::thrift::TException { @@ -5715,17 +5981,18 @@ class InvalidObjectException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - InvalidObjectException(const InvalidObjectException&); - InvalidObjectException& operator=(const InvalidObjectException&); InvalidObjectException() : message() { } - virtual ~InvalidObjectException() throw(); + virtual ~InvalidObjectException() throw() {} + std::string message; _InvalidObjectException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const InvalidObjectException & rhs) const { @@ -5742,14 +6009,13 @@ class InvalidObjectException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const InvalidObjectException& obj); }; void swap(InvalidObjectException &a, InvalidObjectException &b); typedef struct _NoSuchObjectException__isset { _NoSuchObjectException__isset() : message(false) {} - bool message :1; + bool message; } _NoSuchObjectException__isset; class NoSuchObjectException : public ::apache::thrift::TException { @@ -5758,17 +6024,18 @@ class NoSuchObjectException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - NoSuchObjectException(const NoSuchObjectException&); - NoSuchObjectException& operator=(const NoSuchObjectException&); NoSuchObjectException() : message() { } - virtual ~NoSuchObjectException() throw(); + virtual ~NoSuchObjectException() throw() {} + std::string message; _NoSuchObjectException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const NoSuchObjectException & rhs) const { @@ -5785,14 +6052,13 @@ class NoSuchObjectException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const NoSuchObjectException& obj); }; void swap(NoSuchObjectException &a, NoSuchObjectException &b); typedef struct _IndexAlreadyExistsException__isset { _IndexAlreadyExistsException__isset() : message(false) {} - bool message :1; + bool message; } _IndexAlreadyExistsException__isset; class IndexAlreadyExistsException : public ::apache::thrift::TException { @@ -5801,17 +6067,18 @@ class IndexAlreadyExistsException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - IndexAlreadyExistsException(const IndexAlreadyExistsException&); - IndexAlreadyExistsException& operator=(const IndexAlreadyExistsException&); IndexAlreadyExistsException() : message() { } - virtual ~IndexAlreadyExistsException() throw(); + virtual ~IndexAlreadyExistsException() throw() {} + std::string message; _IndexAlreadyExistsException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const IndexAlreadyExistsException & rhs) const { @@ -5828,14 +6095,13 @@ class IndexAlreadyExistsException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const IndexAlreadyExistsException& obj); }; void swap(IndexAlreadyExistsException &a, IndexAlreadyExistsException &b); typedef struct _InvalidOperationException__isset { _InvalidOperationException__isset() : message(false) {} - bool message :1; + bool message; } _InvalidOperationException__isset; class InvalidOperationException : public ::apache::thrift::TException { @@ -5844,17 +6110,18 @@ class InvalidOperationException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - InvalidOperationException(const InvalidOperationException&); - InvalidOperationException& operator=(const InvalidOperationException&); InvalidOperationException() : message() { } - virtual ~InvalidOperationException() throw(); + virtual ~InvalidOperationException() throw() {} + std::string message; _InvalidOperationException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const InvalidOperationException & rhs) const { @@ -5871,14 +6138,13 @@ class InvalidOperationException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const InvalidOperationException& obj); }; void swap(InvalidOperationException &a, InvalidOperationException &b); typedef struct _ConfigValSecurityException__isset { _ConfigValSecurityException__isset() : message(false) {} - bool message :1; + bool message; } _ConfigValSecurityException__isset; class ConfigValSecurityException : public ::apache::thrift::TException { @@ -5887,17 +6153,18 @@ class ConfigValSecurityException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - ConfigValSecurityException(const ConfigValSecurityException&); - ConfigValSecurityException& operator=(const ConfigValSecurityException&); ConfigValSecurityException() : message() { } - virtual ~ConfigValSecurityException() throw(); + virtual ~ConfigValSecurityException() throw() {} + std::string message; _ConfigValSecurityException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const ConfigValSecurityException & rhs) const { @@ -5914,14 +6181,13 @@ class ConfigValSecurityException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ConfigValSecurityException& obj); }; void swap(ConfigValSecurityException &a, ConfigValSecurityException &b); typedef struct _InvalidInputException__isset { _InvalidInputException__isset() : message(false) {} - bool message :1; + bool message; } _InvalidInputException__isset; class InvalidInputException : public ::apache::thrift::TException { @@ -5930,17 +6196,18 @@ class InvalidInputException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - InvalidInputException(const InvalidInputException&); - InvalidInputException& operator=(const InvalidInputException&); InvalidInputException() : message() { } - virtual ~InvalidInputException() throw(); + virtual ~InvalidInputException() throw() {} + std::string message; _InvalidInputException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const InvalidInputException & rhs) const { @@ -5957,14 +6224,13 @@ class InvalidInputException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const InvalidInputException& obj); }; void swap(InvalidInputException &a, InvalidInputException &b); typedef struct _NoSuchTxnException__isset { _NoSuchTxnException__isset() : message(false) {} - bool message :1; + bool message; } _NoSuchTxnException__isset; class NoSuchTxnException : public ::apache::thrift::TException { @@ -5973,17 +6239,18 @@ class NoSuchTxnException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - NoSuchTxnException(const NoSuchTxnException&); - NoSuchTxnException& operator=(const NoSuchTxnException&); NoSuchTxnException() : message() { } - virtual ~NoSuchTxnException() throw(); + virtual ~NoSuchTxnException() throw() {} + std::string message; _NoSuchTxnException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const NoSuchTxnException & rhs) const { @@ -6000,14 +6267,13 @@ class NoSuchTxnException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const NoSuchTxnException& obj); }; void swap(NoSuchTxnException &a, NoSuchTxnException &b); typedef struct _TxnAbortedException__isset { _TxnAbortedException__isset() : message(false) {} - bool message :1; + bool message; } _TxnAbortedException__isset; class TxnAbortedException : public ::apache::thrift::TException { @@ -6016,17 +6282,18 @@ class TxnAbortedException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - TxnAbortedException(const TxnAbortedException&); - TxnAbortedException& operator=(const TxnAbortedException&); TxnAbortedException() : message() { } - virtual ~TxnAbortedException() throw(); + virtual ~TxnAbortedException() throw() {} + std::string message; _TxnAbortedException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const TxnAbortedException & rhs) const { @@ -6043,14 +6310,13 @@ class TxnAbortedException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TxnAbortedException& obj); }; void swap(TxnAbortedException &a, TxnAbortedException &b); typedef struct _TxnOpenException__isset { _TxnOpenException__isset() : message(false) {} - bool message :1; + bool message; } _TxnOpenException__isset; class TxnOpenException : public ::apache::thrift::TException { @@ -6059,17 +6325,18 @@ class TxnOpenException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - TxnOpenException(const TxnOpenException&); - TxnOpenException& operator=(const TxnOpenException&); TxnOpenException() : message() { } - virtual ~TxnOpenException() throw(); + virtual ~TxnOpenException() throw() {} + std::string message; _TxnOpenException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const TxnOpenException & rhs) const { @@ -6086,14 +6353,13 @@ class TxnOpenException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TxnOpenException& obj); }; void swap(TxnOpenException &a, TxnOpenException &b); typedef struct _NoSuchLockException__isset { _NoSuchLockException__isset() : message(false) {} - bool message :1; + bool message; } _NoSuchLockException__isset; class NoSuchLockException : public ::apache::thrift::TException { @@ -6102,17 +6368,18 @@ class NoSuchLockException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - NoSuchLockException(const NoSuchLockException&); - NoSuchLockException& operator=(const NoSuchLockException&); NoSuchLockException() : message() { } - virtual ~NoSuchLockException() throw(); + virtual ~NoSuchLockException() throw() {} + std::string message; _NoSuchLockException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } bool operator == (const NoSuchLockException & rhs) const { @@ -6129,7 +6396,6 @@ class NoSuchLockException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const NoSuchLockException& obj); }; void swap(NoSuchLockException &a, NoSuchLockException &b); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnRequest.java index 37e5bf1..5d44585 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class AbortTxnRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class AbortTxnRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AbortTxnRequest"); private static final org.apache.thrift.protocol.TField TXNID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -231,30 +227,30 @@ public boolean equals(AbortTxnRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txnid = true; - list.add(present_txnid); + builder.append(present_txnid); if (present_txnid) - list.add(txnid); + builder.append(txnid); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(AbortTxnRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + AbortTxnRequest typedOther = (AbortTxnRequest)other; - lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); + lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java index 9c78c49..ab14d74 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class AddDynamicPartitions implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class AddDynamicPartitions implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddDynamicPartitions"); private static final org.apache.thrift.protocol.TField TXNID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -170,7 +166,10 @@ public AddDynamicPartitions(AddDynamicPartitions other) { this.tablename = other.tablename; } if (other.isSetPartitionnames()) { - List __this__partitionnames = new ArrayList(other.partitionnames); + List __this__partitionnames = new ArrayList(); + for (String other_element : other.partitionnames) { + __this__partitionnames.add(other_element); + } this.partitionnames = __this__partitionnames; } } @@ -422,75 +421,75 @@ public boolean equals(AddDynamicPartitions that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txnid = true; - list.add(present_txnid); + builder.append(present_txnid); if (present_txnid) - list.add(txnid); + builder.append(txnid); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tablename = true && (isSetTablename()); - list.add(present_tablename); + builder.append(present_tablename); if (present_tablename) - list.add(tablename); + builder.append(tablename); boolean present_partitionnames = true && (isSetPartitionnames()); - list.add(present_partitionnames); + builder.append(present_partitionnames); if (present_partitionnames) - list.add(partitionnames); + builder.append(partitionnames); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(AddDynamicPartitions other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + AddDynamicPartitions typedOther = (AddDynamicPartitions)other; - lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); + lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename()); + lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename()); if (lastComparison != 0) { return lastComparison; } if (isSetTablename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionnames()).compareTo(other.isSetPartitionnames()); + lastComparison = Boolean.valueOf(isSetPartitionnames()).compareTo(typedOther.isSetPartitionnames()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionnames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionnames, other.partitionnames); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionnames, typedOther.partitionnames); if (lastComparison != 0) { return lastComparison; } @@ -632,11 +631,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddDynamicPartition { org.apache.thrift.protocol.TList _list492 = iprot.readListBegin(); struct.partitionnames = new ArrayList(_list492.size); - String _elem493; - for (int _i494 = 0; _i494 < _list492.size; ++_i494) + for (int _i493 = 0; _i493 < _list492.size; ++_i493) { - _elem493 = iprot.readString(); - struct.partitionnames.add(_elem493); + String _elem494; // required + _elem494 = iprot.readString(); + struct.partitionnames.add(_elem494); } iprot.readListEnd(); } @@ -724,11 +723,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions { org.apache.thrift.protocol.TList _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.partitionnames = new ArrayList(_list497.size); - String _elem498; - for (int _i499 = 0; _i499 < _list497.size; ++_i499) + for (int _i498 = 0; _i498 < _list497.size; ++_i498) { - _elem498 = iprot.readString(); - struct.partitionnames.add(_elem498); + String _elem499; // required + _elem499 = iprot.readString(); + struct.partitionnames.add(_elem499); } } struct.setPartitionnamesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java index fcfaaf3..ced8d4a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class AddPartitionsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class AddPartitionsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddPartitionsRequest"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -130,7 +126,7 @@ public String getFieldName() { private static final int __IFNOTEXISTS_ISSET_ID = 0; private static final int __NEEDRESULT_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.NEED_RESULT}; + private _Fields optionals[] = {_Fields.NEED_RESULT}; 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); @@ -180,7 +176,7 @@ public AddPartitionsRequest(AddPartitionsRequest other) { this.tblName = other.tblName; } if (other.isSetParts()) { - List __this__parts = new ArrayList(other.parts.size()); + List __this__parts = new ArrayList(); for (Partition other_element : other.parts) { __this__parts.add(new Partition(other_element)); } @@ -483,90 +479,90 @@ public boolean equals(AddPartitionsRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); + builder.append(present_tblName); if (present_tblName) - list.add(tblName); + builder.append(tblName); boolean present_parts = true && (isSetParts()); - list.add(present_parts); + builder.append(present_parts); if (present_parts) - list.add(parts); + builder.append(parts); boolean present_ifNotExists = true; - list.add(present_ifNotExists); + builder.append(present_ifNotExists); if (present_ifNotExists) - list.add(ifNotExists); + builder.append(ifNotExists); boolean present_needResult = true && (isSetNeedResult()); - list.add(present_needResult); + builder.append(present_needResult); if (present_needResult) - list.add(needResult); + builder.append(needResult); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(AddPartitionsRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + AddPartitionsRequest typedOther = (AddPartitionsRequest)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(typedOther.isSetTblName()); if (lastComparison != 0) { return lastComparison; } if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, typedOther.tblName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParts()).compareTo(other.isSetParts()); + lastComparison = Boolean.valueOf(isSetParts()).compareTo(typedOther.isSetParts()); if (lastComparison != 0) { return lastComparison; } if (isSetParts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parts, other.parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parts, typedOther.parts); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIfNotExists()).compareTo(other.isSetIfNotExists()); + lastComparison = Boolean.valueOf(isSetIfNotExists()).compareTo(typedOther.isSetIfNotExists()); if (lastComparison != 0) { return lastComparison; } if (isSetIfNotExists()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ifNotExists, other.ifNotExists); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ifNotExists, typedOther.ifNotExists); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNeedResult()).compareTo(other.isSetNeedResult()); + lastComparison = Boolean.valueOf(isSetNeedResult()).compareTo(typedOther.isSetNeedResult()); if (lastComparison != 0) { return lastComparison; } if (isSetNeedResult()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.needResult, other.needResult); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.needResult, typedOther.needResult); if (lastComparison != 0) { return lastComparison; } @@ -706,12 +702,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddPartitionsReques { org.apache.thrift.protocol.TList _list388 = iprot.readListBegin(); struct.parts = new ArrayList(_list388.size); - Partition _elem389; - for (int _i390 = 0; _i390 < _list388.size; ++_i390) + for (int _i389 = 0; _i389 < _list388.size; ++_i389) { - _elem389 = new Partition(); - _elem389.read(iprot); - struct.parts.add(_elem389); + Partition _elem390; // required + _elem390 = new Partition(); + _elem390.read(iprot); + struct.parts.add(_elem390); } iprot.readListEnd(); } @@ -826,12 +822,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddPartitionsRequest { org.apache.thrift.protocol.TList _list393 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.parts = new ArrayList(_list393.size); - Partition _elem394; - for (int _i395 = 0; _i395 < _list393.size; ++_i395) + for (int _i394 = 0; _i394 < _list393.size; ++_i394) { - _elem394 = new Partition(); - _elem394.read(iprot); - struct.parts.add(_elem394); + Partition _elem395; // required + _elem395 = new Partition(); + _elem395.read(iprot); + struct.parts.add(_elem395); } } struct.setPartsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java index 9022019..86c6fa2 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class AddPartitionsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class AddPartitionsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddPartitionsResult"); private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -107,7 +103,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.PARTITIONS}; + private _Fields optionals[] = {_Fields.PARTITIONS}; 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); @@ -126,7 +122,7 @@ public AddPartitionsResult() { */ public AddPartitionsResult(AddPartitionsResult other) { if (other.isSetPartitions()) { - List __this__partitions = new ArrayList(other.partitions.size()); + List __this__partitions = new ArrayList(); for (Partition other_element : other.partitions) { __this__partitions.add(new Partition(other_element)); } @@ -243,30 +239,30 @@ public boolean equals(AddPartitionsResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitions = true && (isSetPartitions()); - list.add(present_partitions); + builder.append(present_partitions); if (present_partitions) - list.add(partitions); + builder.append(partitions); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(AddPartitionsResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + AddPartitionsResult typedOther = (AddPartitionsResult)other; - lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(typedOther.isSetPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, typedOther.partitions); if (lastComparison != 0) { return lastComparison; } @@ -348,12 +344,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddPartitionsResult { org.apache.thrift.protocol.TList _list380 = iprot.readListBegin(); struct.partitions = new ArrayList(_list380.size); - Partition _elem381; - for (int _i382 = 0; _i382 < _list380.size; ++_i382) + for (int _i381 = 0; _i381 < _list380.size; ++_i381) { - _elem381 = new Partition(); - _elem381.read(iprot); - struct.partitions.add(_elem381); + Partition _elem382; // required + _elem382 = new Partition(); + _elem382.read(iprot); + struct.partitions.add(_elem382); } iprot.readListEnd(); } @@ -430,12 +426,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddPartitionsResult { org.apache.thrift.protocol.TList _list385 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.partitions = new ArrayList(_list385.size); - Partition _elem386; - for (int _i387 = 0; _i387 < _list385.size; ++_i387) + for (int _i386 = 0; _i386 < _list385.size; ++_i386) { - _elem386 = new Partition(); - _elem386.read(iprot); - struct.partitions.add(_elem386); + Partition _elem387; // required + _elem387 = new Partition(); + _elem387.read(iprot); + struct.partitions.add(_elem387); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java index 917cec0..8e0f757 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AggrStats.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class AggrStats implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class AggrStats implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AggrStats"); private static final org.apache.thrift.protocol.TField COL_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("colStats", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -145,7 +141,7 @@ public AggrStats( public AggrStats(AggrStats other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetColStats()) { - List __this__colStats = new ArrayList(other.colStats.size()); + List __this__colStats = new ArrayList(); for (ColumnStatisticsObj other_element : other.colStats) { __this__colStats.add(new ColumnStatisticsObj(other_element)); } @@ -309,45 +305,45 @@ public boolean equals(AggrStats that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_colStats = true && (isSetColStats()); - list.add(present_colStats); + builder.append(present_colStats); if (present_colStats) - list.add(colStats); + builder.append(colStats); boolean present_partsFound = true; - list.add(present_partsFound); + builder.append(present_partsFound); if (present_partsFound) - list.add(partsFound); + builder.append(partsFound); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(AggrStats other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + AggrStats typedOther = (AggrStats)other; - lastComparison = Boolean.valueOf(isSetColStats()).compareTo(other.isSetColStats()); + lastComparison = Boolean.valueOf(isSetColStats()).compareTo(typedOther.isSetColStats()); if (lastComparison != 0) { return lastComparison; } if (isSetColStats()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colStats, other.colStats); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colStats, typedOther.colStats); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartsFound()).compareTo(other.isSetPartsFound()); + lastComparison = Boolean.valueOf(isSetPartsFound()).compareTo(typedOther.isSetPartsFound()); if (lastComparison != 0) { return lastComparison; } if (isSetPartsFound()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partsFound, other.partsFound); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partsFound, typedOther.partsFound); if (lastComparison != 0) { return lastComparison; } @@ -441,12 +437,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AggrStats struct) t { org.apache.thrift.protocol.TList _list278 = iprot.readListBegin(); struct.colStats = new ArrayList(_list278.size); - ColumnStatisticsObj _elem279; - for (int _i280 = 0; _i280 < _list278.size; ++_i280) + for (int _i279 = 0; _i279 < _list278.size; ++_i279) { - _elem279 = new ColumnStatisticsObj(); - _elem279.read(iprot); - struct.colStats.add(_elem279); + ColumnStatisticsObj _elem280; // required + _elem280 = new ColumnStatisticsObj(); + _elem280.read(iprot); + struct.colStats.add(_elem280); } iprot.readListEnd(); } @@ -524,12 +520,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AggrStats struct) th { org.apache.thrift.protocol.TList _list283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.colStats = new ArrayList(_list283.size); - ColumnStatisticsObj _elem284; - for (int _i285 = 0; _i285 < _list283.size; ++_i285) + for (int _i284 = 0; _i284 < _list283.size; ++_i284) { - _elem284 = new ColumnStatisticsObj(); - _elem284.read(iprot); - struct.colStats.add(_elem284); + ColumnStatisticsObj _elem285; // required + _elem285 = new ColumnStatisticsObj(); + _elem285.read(iprot); + struct.colStats.add(_elem285); } } struct.setColStatsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java index d7a317b..2a5e58f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AlreadyExistsException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class AlreadyExistsException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class AlreadyExistsException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AlreadyExistsException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(AlreadyExistsException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(AlreadyExistsException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + AlreadyExistsException typedOther = (AlreadyExistsException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BinaryColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BinaryColumnStatsData.java index 00b312d..1516b25 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BinaryColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BinaryColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class BinaryColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class BinaryColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BinaryColumnStatsData"); private static final org.apache.thrift.protocol.TField MAX_COL_LEN_FIELD_DESC = new org.apache.thrift.protocol.TField("maxColLen", org.apache.thrift.protocol.TType.I64, (short)1); @@ -347,60 +343,60 @@ public boolean equals(BinaryColumnStatsData that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_maxColLen = true; - list.add(present_maxColLen); + builder.append(present_maxColLen); if (present_maxColLen) - list.add(maxColLen); + builder.append(maxColLen); boolean present_avgColLen = true; - list.add(present_avgColLen); + builder.append(present_avgColLen); if (present_avgColLen) - list.add(avgColLen); + builder.append(avgColLen); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(BinaryColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + BinaryColumnStatsData typedOther = (BinaryColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetMaxColLen()).compareTo(other.isSetMaxColLen()); + lastComparison = Boolean.valueOf(isSetMaxColLen()).compareTo(typedOther.isSetMaxColLen()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxColLen()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxColLen, other.maxColLen); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxColLen, typedOther.maxColLen); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAvgColLen()).compareTo(other.isSetAvgColLen()); + lastComparison = Boolean.valueOf(isSetAvgColLen()).compareTo(typedOther.isSetAvgColLen()); if (lastComparison != 0) { return lastComparison; } if (isSetAvgColLen()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.avgColLen, other.avgColLen); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.avgColLen, typedOther.avgColLen); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BooleanColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BooleanColumnStatsData.java index a0f3ab8..9ef9c0f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BooleanColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/BooleanColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class BooleanColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class BooleanColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("BooleanColumnStatsData"); private static final org.apache.thrift.protocol.TField NUM_TRUES_FIELD_DESC = new org.apache.thrift.protocol.TField("numTrues", org.apache.thrift.protocol.TType.I64, (short)1); @@ -347,60 +343,60 @@ public boolean equals(BooleanColumnStatsData that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_numTrues = true; - list.add(present_numTrues); + builder.append(present_numTrues); if (present_numTrues) - list.add(numTrues); + builder.append(numTrues); boolean present_numFalses = true; - list.add(present_numFalses); + builder.append(present_numFalses); if (present_numFalses) - list.add(numFalses); + builder.append(numFalses); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(BooleanColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + BooleanColumnStatsData typedOther = (BooleanColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetNumTrues()).compareTo(other.isSetNumTrues()); + lastComparison = Boolean.valueOf(isSetNumTrues()).compareTo(typedOther.isSetNumTrues()); if (lastComparison != 0) { return lastComparison; } if (isSetNumTrues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numTrues, other.numTrues); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numTrues, typedOther.numTrues); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumFalses()).compareTo(other.isSetNumFalses()); + lastComparison = Boolean.valueOf(isSetNumFalses()).compareTo(typedOther.isSetNumFalses()); if (lastComparison != 0) { return lastComparison; } if (isSetNumFalses()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numFalses, other.numFalses); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numFalses, typedOther.numFalses); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckLockRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckLockRequest.java index 82e3031..ae34203 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckLockRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CheckLockRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class CheckLockRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class CheckLockRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CheckLockRequest"); private static final org.apache.thrift.protocol.TField LOCKID_FIELD_DESC = new org.apache.thrift.protocol.TField("lockid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -231,30 +227,30 @@ public boolean equals(CheckLockRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lockid = true; - list.add(present_lockid); + builder.append(present_lockid); if (present_lockid) - list.add(lockid); + builder.append(lockid); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CheckLockRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CheckLockRequest typedOther = (CheckLockRequest)other; - lastComparison = Boolean.valueOf(isSetLockid()).compareTo(other.isSetLockid()); + lastComparison = Boolean.valueOf(isSetLockid()).compareTo(typedOther.isSetLockid()); if (lastComparison != 0) { return lastComparison; } if (isSetLockid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, other.lockid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, typedOther.lockid); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java index 510dace..a695645 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class ColumnStatistics implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ColumnStatistics implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnStatistics"); private static final org.apache.thrift.protocol.TField STATS_DESC_FIELD_DESC = new org.apache.thrift.protocol.TField("statsDesc", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -144,7 +140,7 @@ public ColumnStatistics(ColumnStatistics other) { this.statsDesc = new ColumnStatisticsDesc(other.statsDesc); } if (other.isSetStatsObj()) { - List __this__statsObj = new ArrayList(other.statsObj.size()); + List __this__statsObj = new ArrayList(); for (ColumnStatisticsObj other_element : other.statsObj) { __this__statsObj.add(new ColumnStatisticsObj(other_element)); } @@ -307,45 +303,45 @@ public boolean equals(ColumnStatistics that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_statsDesc = true && (isSetStatsDesc()); - list.add(present_statsDesc); + builder.append(present_statsDesc); if (present_statsDesc) - list.add(statsDesc); + builder.append(statsDesc); boolean present_statsObj = true && (isSetStatsObj()); - list.add(present_statsObj); + builder.append(present_statsObj); if (present_statsObj) - list.add(statsObj); + builder.append(statsObj); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ColumnStatistics other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ColumnStatistics typedOther = (ColumnStatistics)other; - lastComparison = Boolean.valueOf(isSetStatsDesc()).compareTo(other.isSetStatsDesc()); + lastComparison = Boolean.valueOf(isSetStatsDesc()).compareTo(typedOther.isSetStatsDesc()); if (lastComparison != 0) { return lastComparison; } if (isSetStatsDesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsDesc, other.statsDesc); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsDesc, typedOther.statsDesc); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStatsObj()).compareTo(other.isSetStatsObj()); + lastComparison = Boolean.valueOf(isSetStatsObj()).compareTo(typedOther.isSetStatsObj()); if (lastComparison != 0) { return lastComparison; } if (isSetStatsObj()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsObj, other.statsObj); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsObj, typedOther.statsObj); if (lastComparison != 0) { return lastComparison; } @@ -453,12 +449,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnStatistics st { org.apache.thrift.protocol.TList _list270 = iprot.readListBegin(); struct.statsObj = new ArrayList(_list270.size); - ColumnStatisticsObj _elem271; - for (int _i272 = 0; _i272 < _list270.size; ++_i272) + for (int _i271 = 0; _i271 < _list270.size; ++_i271) { - _elem271 = new ColumnStatisticsObj(); - _elem271.read(iprot); - struct.statsObj.add(_elem271); + ColumnStatisticsObj _elem272; // required + _elem272 = new ColumnStatisticsObj(); + _elem272.read(iprot); + struct.statsObj.add(_elem272); } iprot.readListEnd(); } @@ -533,12 +529,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ColumnStatistics str { org.apache.thrift.protocol.TList _list275 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.statsObj = new ArrayList(_list275.size); - ColumnStatisticsObj _elem276; - for (int _i277 = 0; _i277 < _list275.size; ++_i277) + for (int _i276 = 0; _i276 < _list275.size; ++_i276) { - _elem276 = new ColumnStatisticsObj(); - _elem276.read(iprot); - struct.statsObj.add(_elem276); + ColumnStatisticsObj _elem277; // required + _elem277 = new ColumnStatisticsObj(); + _elem277.read(iprot); + struct.statsObj.add(_elem277); } } struct.setStatsObjIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java index 6558add..58177e5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,11 +28,9 @@ 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"}) public class ColumnStatisticsData extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnStatisticsData"); private static final org.apache.thrift.protocol.TField BOOLEAN_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("booleanStats", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -321,7 +318,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -640,19 +636,19 @@ public int compareTo(ColumnStatisticsData other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java index cf967b6..e951d04 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsDesc.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class ColumnStatisticsDesc implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ColumnStatisticsDesc implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnStatisticsDesc"); private static final org.apache.thrift.protocol.TField IS_TBL_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("isTblLevel", org.apache.thrift.protocol.TType.BOOL, (short)1); @@ -130,7 +126,7 @@ public String getFieldName() { private static final int __ISTBLLEVEL_ISSET_ID = 0; private static final int __LASTANALYZED_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PART_NAME,_Fields.LAST_ANALYZED}; + private _Fields optionals[] = {_Fields.PART_NAME,_Fields.LAST_ANALYZED}; 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); @@ -459,90 +455,90 @@ public boolean equals(ColumnStatisticsDesc that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_isTblLevel = true; - list.add(present_isTblLevel); + builder.append(present_isTblLevel); if (present_isTblLevel) - list.add(isTblLevel); + builder.append(isTblLevel); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_partName = true && (isSetPartName()); - list.add(present_partName); + builder.append(present_partName); if (present_partName) - list.add(partName); + builder.append(partName); boolean present_lastAnalyzed = true && (isSetLastAnalyzed()); - list.add(present_lastAnalyzed); + builder.append(present_lastAnalyzed); if (present_lastAnalyzed) - list.add(lastAnalyzed); + builder.append(lastAnalyzed); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ColumnStatisticsDesc other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ColumnStatisticsDesc typedOther = (ColumnStatisticsDesc)other; - lastComparison = Boolean.valueOf(isSetIsTblLevel()).compareTo(other.isSetIsTblLevel()); + lastComparison = Boolean.valueOf(isSetIsTblLevel()).compareTo(typedOther.isSetIsTblLevel()); if (lastComparison != 0) { return lastComparison; } if (isSetIsTblLevel()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTblLevel, other.isTblLevel); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isTblLevel, typedOther.isTblLevel); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartName()).compareTo(other.isSetPartName()); + lastComparison = Boolean.valueOf(isSetPartName()).compareTo(typedOther.isSetPartName()); if (lastComparison != 0) { return lastComparison; } if (isSetPartName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partName, other.partName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partName, typedOther.partName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastAnalyzed()).compareTo(other.isSetLastAnalyzed()); + lastComparison = Boolean.valueOf(isSetLastAnalyzed()).compareTo(typedOther.isSetLastAnalyzed()); if (lastComparison != 0) { return lastComparison; } if (isSetLastAnalyzed()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAnalyzed, other.lastAnalyzed); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAnalyzed, typedOther.lastAnalyzed); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsObj.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsObj.java index 3c2b123..f1257fd 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsObj.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatisticsObj.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class ColumnStatisticsObj implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ColumnStatisticsObj implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnStatisticsObj"); private static final org.apache.thrift.protocol.TField COL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("colName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -345,60 +341,60 @@ public boolean equals(ColumnStatisticsObj that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_colName = true && (isSetColName()); - list.add(present_colName); + builder.append(present_colName); if (present_colName) - list.add(colName); + builder.append(colName); boolean present_colType = true && (isSetColType()); - list.add(present_colType); + builder.append(present_colType); if (present_colType) - list.add(colType); + builder.append(colType); boolean present_statsData = true && (isSetStatsData()); - list.add(present_statsData); + builder.append(present_statsData); if (present_statsData) - list.add(statsData); + builder.append(statsData); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ColumnStatisticsObj other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ColumnStatisticsObj typedOther = (ColumnStatisticsObj)other; - lastComparison = Boolean.valueOf(isSetColName()).compareTo(other.isSetColName()); + lastComparison = Boolean.valueOf(isSetColName()).compareTo(typedOther.isSetColName()); if (lastComparison != 0) { return lastComparison; } if (isSetColName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colName, other.colName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colName, typedOther.colName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColType()).compareTo(other.isSetColType()); + lastComparison = Boolean.valueOf(isSetColType()).compareTo(typedOther.isSetColType()); if (lastComparison != 0) { return lastComparison; } if (isSetColType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colType, other.colType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colType, typedOther.colType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStatsData()).compareTo(other.isSetStatsData()); + lastComparison = Boolean.valueOf(isSetStatsData()).compareTo(typedOther.isSetStatsData()); if (lastComparison != 0) { return lastComparison; } if (isSetStatsData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsData, other.statsData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statsData, typedOther.statsData); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java index 5e8cd04..aeb2421 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CommitTxnRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class CommitTxnRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class CommitTxnRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CommitTxnRequest"); private static final org.apache.thrift.protocol.TField TXNID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -231,30 +227,30 @@ public boolean equals(CommitTxnRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txnid = true; - list.add(present_txnid); + builder.append(present_txnid); if (present_txnid) - list.add(txnid); + builder.append(txnid); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CommitTxnRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CommitTxnRequest typedOther = (CommitTxnRequest)other; - lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); + lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java index e9088e0..939c15a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class CompactionRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class CompactionRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CompactionRequest"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -131,7 +127,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.PARTITIONNAME,_Fields.RUNAS}; + private _Fields optionals[] = {_Fields.PARTITIONNAME,_Fields.RUNAS}; 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); @@ -470,90 +466,90 @@ public boolean equals(CompactionRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tablename = true && (isSetTablename()); - list.add(present_tablename); + builder.append(present_tablename); if (present_tablename) - list.add(tablename); + builder.append(tablename); boolean present_partitionname = true && (isSetPartitionname()); - list.add(present_partitionname); + builder.append(present_partitionname); if (present_partitionname) - list.add(partitionname); + builder.append(partitionname); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type.getValue()); + builder.append(type.getValue()); boolean present_runas = true && (isSetRunas()); - list.add(present_runas); + builder.append(present_runas); if (present_runas) - list.add(runas); + builder.append(runas); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CompactionRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CompactionRequest typedOther = (CompactionRequest)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename()); + lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename()); if (lastComparison != 0) { return lastComparison; } if (isSetTablename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(other.isSetPartitionname()); + lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(typedOther.isSetPartitionname()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, other.partitionname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, typedOther.partitionname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRunas()).compareTo(other.isSetRunas()); + lastComparison = Boolean.valueOf(isSetRunas()).compareTo(typedOther.isSetRunas()); if (lastComparison != 0) { return lastComparison; } if (isSetRunas()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runas, other.runas); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runas, typedOther.runas); if (lastComparison != 0) { return lastComparison; } @@ -702,7 +698,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CompactionRequest s break; case 4: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32()); + struct.type = CompactionType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -801,7 +797,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CompactionRequest st struct.setDbnameIsSet(true); struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); - struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32()); + struct.type = CompactionType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java index 09474ee..e4ecbcc 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java index 000670a..bdcf21d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ConfigValSecurityException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class ConfigValSecurityException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ConfigValSecurityException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ConfigValSecurityException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(ConfigValSecurityException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ConfigValSecurityException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ConfigValSecurityException typedOther = (ConfigValSecurityException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CurrentNotificationEventId.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CurrentNotificationEventId.java index d55d874..8b8e5c4 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CurrentNotificationEventId.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CurrentNotificationEventId.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class CurrentNotificationEventId implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class CurrentNotificationEventId implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CurrentNotificationEventId"); private static final org.apache.thrift.protocol.TField EVENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("eventId", org.apache.thrift.protocol.TType.I64, (short)1); @@ -231,30 +227,30 @@ public boolean equals(CurrentNotificationEventId that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_eventId = true; - list.add(present_eventId); + builder.append(present_eventId); if (present_eventId) - list.add(eventId); + builder.append(eventId); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CurrentNotificationEventId other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CurrentNotificationEventId typedOther = (CurrentNotificationEventId)other; - lastComparison = Boolean.valueOf(isSetEventId()).compareTo(other.isSetEventId()); + lastComparison = Boolean.valueOf(isSetEventId()).compareTo(typedOther.isSetEventId()); if (lastComparison != 0) { return lastComparison; } if (isSetEventId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventId, other.eventId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventId, typedOther.eventId); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java index 56b7281..c3c531d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Database implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Database implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Database"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -141,7 +137,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.OWNER_NAME,_Fields.OWNER_TYPE}; + private _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.OWNER_NAME,_Fields.OWNER_TYPE}; 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); @@ -195,7 +191,18 @@ public Database(Database other) { this.locationUri = other.locationUri; } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = other_element_key; + + String __this__parameters_copy_value = other_element_value; + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } if (other.isSetPrivileges()) { @@ -598,120 +605,120 @@ public boolean equals(Database that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_description = true && (isSetDescription()); - list.add(present_description); + builder.append(present_description); if (present_description) - list.add(description); + builder.append(description); boolean present_locationUri = true && (isSetLocationUri()); - list.add(present_locationUri); + builder.append(present_locationUri); if (present_locationUri) - list.add(locationUri); + builder.append(locationUri); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); boolean present_ownerName = true && (isSetOwnerName()); - list.add(present_ownerName); + builder.append(present_ownerName); if (present_ownerName) - list.add(ownerName); + builder.append(ownerName); boolean present_ownerType = true && (isSetOwnerType()); - list.add(present_ownerType); + builder.append(present_ownerType); if (present_ownerType) - list.add(ownerType.getValue()); + builder.append(ownerType.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Database other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Database typedOther = (Database)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); + lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription()); if (lastComparison != 0) { return lastComparison; } if (isSetDescription()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLocationUri()).compareTo(other.isSetLocationUri()); + lastComparison = Boolean.valueOf(isSetLocationUri()).compareTo(typedOther.isSetLocationUri()); if (lastComparison != 0) { return lastComparison; } if (isSetLocationUri()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locationUri, other.locationUri); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locationUri, typedOther.locationUri); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(other.isSetOwnerName()); + lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(typedOther.isSetOwnerName()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, other.ownerName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, typedOther.ownerName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerType()).compareTo(other.isSetOwnerType()); + lastComparison = Boolean.valueOf(isSetOwnerType()).compareTo(typedOther.isSetOwnerType()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerType, other.ownerType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerType, typedOther.ownerType); if (lastComparison != 0) { return lastComparison; } @@ -872,13 +879,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Database struct) th { org.apache.thrift.protocol.TMap _map94 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map94.size); - String _key95; - String _val96; - for (int _i97 = 0; _i97 < _map94.size; ++_i97) + for (int _i95 = 0; _i95 < _map94.size; ++_i95) { - _key95 = iprot.readString(); - _val96 = iprot.readString(); - struct.parameters.put(_key95, _val96); + String _key96; // required + String _val97; // required + _key96 = iprot.readString(); + _val97 = iprot.readString(); + struct.parameters.put(_key96, _val97); } iprot.readMapEnd(); } @@ -906,7 +913,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Database struct) th break; case 7: // OWNER_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.ownerType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.ownerType = PrincipalType.findByValue(iprot.readI32()); struct.setOwnerTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1064,13 +1071,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Database struct) thr { org.apache.thrift.protocol.TMap _map100 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map100.size); - String _key101; - String _val102; - for (int _i103 = 0; _i103 < _map100.size; ++_i103) + for (int _i101 = 0; _i101 < _map100.size; ++_i101) { - _key101 = iprot.readString(); - _val102 = iprot.readString(); - struct.parameters.put(_key101, _val102); + String _key102; // required + String _val103; // required + _key102 = iprot.readString(); + _val103 = iprot.readString(); + struct.parameters.put(_key102, _val103); } } struct.setParametersIsSet(true); @@ -1085,7 +1092,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Database struct) thr struct.setOwnerNameIsSet(true); } if (incoming.get(6)) { - struct.ownerType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.ownerType = PrincipalType.findByValue(iprot.readI32()); struct.setOwnerTypeIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Date.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Date.java index 0b406d6..3e02db5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Date.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Date.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Date implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Date implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Date"); private static final org.apache.thrift.protocol.TField DAYS_SINCE_EPOCH_FIELD_DESC = new org.apache.thrift.protocol.TField("daysSinceEpoch", org.apache.thrift.protocol.TType.I64, (short)1); @@ -231,30 +227,30 @@ public boolean equals(Date that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_daysSinceEpoch = true; - list.add(present_daysSinceEpoch); + builder.append(present_daysSinceEpoch); if (present_daysSinceEpoch) - list.add(daysSinceEpoch); + builder.append(daysSinceEpoch); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Date other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Date typedOther = (Date)other; - lastComparison = Boolean.valueOf(isSetDaysSinceEpoch()).compareTo(other.isSetDaysSinceEpoch()); + lastComparison = Boolean.valueOf(isSetDaysSinceEpoch()).compareTo(typedOther.isSetDaysSinceEpoch()); if (lastComparison != 0) { return lastComparison; } if (isSetDaysSinceEpoch()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.daysSinceEpoch, other.daysSinceEpoch); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.daysSinceEpoch, typedOther.daysSinceEpoch); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DateColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DateColumnStatsData.java index 7a3d4ed..e9a577d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DateColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DateColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class DateColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class DateColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DateColumnStatsData"); private static final org.apache.thrift.protocol.TField LOW_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowValue", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -125,7 +121,7 @@ public String getFieldName() { private static final int __NUMNULLS_ISSET_ID = 0; private static final int __NUMDVS_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; + private _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; 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); @@ -402,75 +398,75 @@ public boolean equals(DateColumnStatsData that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lowValue = true && (isSetLowValue()); - list.add(present_lowValue); + builder.append(present_lowValue); if (present_lowValue) - list.add(lowValue); + builder.append(lowValue); boolean present_highValue = true && (isSetHighValue()); - list.add(present_highValue); + builder.append(present_highValue); if (present_highValue) - list.add(highValue); + builder.append(highValue); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); boolean present_numDVs = true; - list.add(present_numDVs); + builder.append(present_numDVs); if (present_numDVs) - list.add(numDVs); + builder.append(numDVs); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(DateColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + DateColumnStatsData typedOther = (DateColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(other.isSetLowValue()); + lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(typedOther.isSetLowValue()); if (lastComparison != 0) { return lastComparison; } if (isSetLowValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, other.lowValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, typedOther.lowValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(other.isSetHighValue()); + lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(typedOther.isSetHighValue()); if (lastComparison != 0) { return lastComparison; } if (isSetHighValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, other.highValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, typedOther.highValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(other.isSetNumDVs()); + lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(typedOther.isSetNumDVs()); if (lastComparison != 0) { return lastComparison; } if (isSetNumDVs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, other.numDVs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, typedOther.numDVs); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Decimal.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Decimal.java index 9215ce9..ed8bb18 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Decimal.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Decimal.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Decimal implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Decimal implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Decimal"); private static final org.apache.thrift.protocol.TField UNSCALED_FIELD_DESC = new org.apache.thrift.protocol.TField("unscaled", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -133,7 +129,7 @@ public Decimal( short scale) { this(); - this.unscaled = org.apache.thrift.TBaseHelper.copyBinary(unscaled); + this.unscaled = unscaled; this.scale = scale; setScaleIsSet(true); } @@ -145,6 +141,7 @@ public Decimal(Decimal other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetUnscaled()) { this.unscaled = org.apache.thrift.TBaseHelper.copyBinary(other.unscaled); +; } this.scale = other.scale; } @@ -166,15 +163,15 @@ public void clear() { } public ByteBuffer bufferForUnscaled() { - return org.apache.thrift.TBaseHelper.copyBinary(unscaled); + return unscaled; } public void setUnscaled(byte[] unscaled) { - this.unscaled = unscaled == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(unscaled, unscaled.length)); + setUnscaled(unscaled == null ? (ByteBuffer)null : ByteBuffer.wrap(unscaled)); } public void setUnscaled(ByteBuffer unscaled) { - this.unscaled = org.apache.thrift.TBaseHelper.copyBinary(unscaled); + this.unscaled = unscaled; } public void unsetUnscaled() { @@ -298,45 +295,45 @@ public boolean equals(Decimal that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_unscaled = true && (isSetUnscaled()); - list.add(present_unscaled); + builder.append(present_unscaled); if (present_unscaled) - list.add(unscaled); + builder.append(unscaled); boolean present_scale = true; - list.add(present_scale); + builder.append(present_scale); if (present_scale) - list.add(scale); + builder.append(scale); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Decimal other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Decimal typedOther = (Decimal)other; - lastComparison = Boolean.valueOf(isSetUnscaled()).compareTo(other.isSetUnscaled()); + lastComparison = Boolean.valueOf(isSetUnscaled()).compareTo(typedOther.isSetUnscaled()); if (lastComparison != 0) { return lastComparison; } if (isSetUnscaled()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unscaled, other.unscaled); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unscaled, typedOther.unscaled); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetScale()).compareTo(other.isSetScale()); + lastComparison = Boolean.valueOf(isSetScale()).compareTo(typedOther.isSetScale()); if (lastComparison != 0) { return lastComparison; } if (isSetScale()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scale, other.scale); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scale, typedOther.scale); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DecimalColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DecimalColumnStatsData.java index e64ca36..951d479 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DecimalColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DecimalColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class DecimalColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class DecimalColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DecimalColumnStatsData"); private static final org.apache.thrift.protocol.TField LOW_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowValue", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -125,7 +121,7 @@ public String getFieldName() { private static final int __NUMNULLS_ISSET_ID = 0; private static final int __NUMDVS_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; + private _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; 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); @@ -402,75 +398,75 @@ public boolean equals(DecimalColumnStatsData that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lowValue = true && (isSetLowValue()); - list.add(present_lowValue); + builder.append(present_lowValue); if (present_lowValue) - list.add(lowValue); + builder.append(lowValue); boolean present_highValue = true && (isSetHighValue()); - list.add(present_highValue); + builder.append(present_highValue); if (present_highValue) - list.add(highValue); + builder.append(highValue); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); boolean present_numDVs = true; - list.add(present_numDVs); + builder.append(present_numDVs); if (present_numDVs) - list.add(numDVs); + builder.append(numDVs); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(DecimalColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + DecimalColumnStatsData typedOther = (DecimalColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(other.isSetLowValue()); + lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(typedOther.isSetLowValue()); if (lastComparison != 0) { return lastComparison; } if (isSetLowValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, other.lowValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, typedOther.lowValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(other.isSetHighValue()); + lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(typedOther.isSetHighValue()); if (lastComparison != 0) { return lastComparison; } if (isSetHighValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, other.highValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, typedOther.highValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(other.isSetNumDVs()); + lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(typedOther.isSetNumDVs()); if (lastComparison != 0) { return lastComparison; } if (isSetNumDVs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, other.numDVs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, typedOther.numDVs); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DoubleColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DoubleColumnStatsData.java index 2509ed5..4203fd8 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DoubleColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DoubleColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class DoubleColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class DoubleColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DoubleColumnStatsData"); private static final org.apache.thrift.protocol.TField LOW_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowValue", org.apache.thrift.protocol.TType.DOUBLE, (short)1); @@ -127,7 +123,7 @@ public String getFieldName() { private static final int __NUMNULLS_ISSET_ID = 2; private static final int __NUMDVS_ISSET_ID = 3; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; + private _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; 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); @@ -400,75 +396,75 @@ public boolean equals(DoubleColumnStatsData that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lowValue = true && (isSetLowValue()); - list.add(present_lowValue); + builder.append(present_lowValue); if (present_lowValue) - list.add(lowValue); + builder.append(lowValue); boolean present_highValue = true && (isSetHighValue()); - list.add(present_highValue); + builder.append(present_highValue); if (present_highValue) - list.add(highValue); + builder.append(highValue); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); boolean present_numDVs = true; - list.add(present_numDVs); + builder.append(present_numDVs); if (present_numDVs) - list.add(numDVs); + builder.append(numDVs); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(DoubleColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + DoubleColumnStatsData typedOther = (DoubleColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(other.isSetLowValue()); + lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(typedOther.isSetLowValue()); if (lastComparison != 0) { return lastComparison; } if (isSetLowValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, other.lowValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, typedOther.lowValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(other.isSetHighValue()); + lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(typedOther.isSetHighValue()); if (lastComparison != 0) { return lastComparison; } if (isSetHighValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, other.highValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, typedOther.highValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(other.isSetNumDVs()); + lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(typedOther.isSetNumDVs()); if (lastComparison != 0) { return lastComparison; } if (isSetNumDVs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, other.numDVs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, typedOther.numDVs); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java index 5e3a2d1..59a66f3 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsExpr.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class DropPartitionsExpr implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class DropPartitionsExpr implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DropPartitionsExpr"); private static final org.apache.thrift.protocol.TField EXPR_FIELD_DESC = new org.apache.thrift.protocol.TField("expr", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -114,7 +110,7 @@ public String getFieldName() { // isset id assignments private static final int __PARTARCHIVELEVEL_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PART_ARCHIVE_LEVEL}; + private _Fields optionals[] = {_Fields.PART_ARCHIVE_LEVEL}; 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); @@ -133,7 +129,7 @@ public DropPartitionsExpr( ByteBuffer expr) { this(); - this.expr = org.apache.thrift.TBaseHelper.copyBinary(expr); + this.expr = expr; } /** @@ -143,6 +139,7 @@ public DropPartitionsExpr(DropPartitionsExpr other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetExpr()) { this.expr = org.apache.thrift.TBaseHelper.copyBinary(other.expr); +; } this.partArchiveLevel = other.partArchiveLevel; } @@ -164,15 +161,15 @@ public void clear() { } public ByteBuffer bufferForExpr() { - return org.apache.thrift.TBaseHelper.copyBinary(expr); + return expr; } public void setExpr(byte[] expr) { - this.expr = expr == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(expr, expr.length)); + setExpr(expr == null ? (ByteBuffer)null : ByteBuffer.wrap(expr)); } public void setExpr(ByteBuffer expr) { - this.expr = org.apache.thrift.TBaseHelper.copyBinary(expr); + this.expr = expr; } public void unsetExpr() { @@ -296,45 +293,45 @@ public boolean equals(DropPartitionsExpr that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_expr = true && (isSetExpr()); - list.add(present_expr); + builder.append(present_expr); if (present_expr) - list.add(expr); + builder.append(expr); boolean present_partArchiveLevel = true && (isSetPartArchiveLevel()); - list.add(present_partArchiveLevel); + builder.append(present_partArchiveLevel); if (present_partArchiveLevel) - list.add(partArchiveLevel); + builder.append(partArchiveLevel); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(DropPartitionsExpr other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + DropPartitionsExpr typedOther = (DropPartitionsExpr)other; - lastComparison = Boolean.valueOf(isSetExpr()).compareTo(other.isSetExpr()); + lastComparison = Boolean.valueOf(isSetExpr()).compareTo(typedOther.isSetExpr()); if (lastComparison != 0) { return lastComparison; } if (isSetExpr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expr, other.expr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expr, typedOther.expr); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartArchiveLevel()).compareTo(other.isSetPartArchiveLevel()); + lastComparison = Boolean.valueOf(isSetPartArchiveLevel()).compareTo(typedOther.isSetPartArchiveLevel()); if (lastComparison != 0) { return lastComparison; } if (isSetPartArchiveLevel()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partArchiveLevel, other.partArchiveLevel); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partArchiveLevel, typedOther.partArchiveLevel); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsRequest.java index 24536ba..1923f38 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class DropPartitionsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class DropPartitionsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DropPartitionsRequest"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -147,7 +143,7 @@ public String getFieldName() { private static final int __IGNOREPROTECTION_ISSET_ID = 2; private static final int __NEEDRESULT_ISSET_ID = 3; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.DELETE_DATA,_Fields.IF_EXISTS,_Fields.IGNORE_PROTECTION,_Fields.ENVIRONMENT_CONTEXT,_Fields.NEED_RESULT}; + private _Fields optionals[] = {_Fields.DELETE_DATA,_Fields.IF_EXISTS,_Fields.IGNORE_PROTECTION,_Fields.ENVIRONMENT_CONTEXT,_Fields.NEED_RESULT}; 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); @@ -628,135 +624,135 @@ public boolean equals(DropPartitionsRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); + builder.append(present_tblName); if (present_tblName) - list.add(tblName); + builder.append(tblName); boolean present_parts = true && (isSetParts()); - list.add(present_parts); + builder.append(present_parts); if (present_parts) - list.add(parts); + builder.append(parts); boolean present_deleteData = true && (isSetDeleteData()); - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); boolean present_ifExists = true && (isSetIfExists()); - list.add(present_ifExists); + builder.append(present_ifExists); if (present_ifExists) - list.add(ifExists); + builder.append(ifExists); boolean present_ignoreProtection = true && (isSetIgnoreProtection()); - list.add(present_ignoreProtection); + builder.append(present_ignoreProtection); if (present_ignoreProtection) - list.add(ignoreProtection); + builder.append(ignoreProtection); boolean present_environmentContext = true && (isSetEnvironmentContext()); - list.add(present_environmentContext); + builder.append(present_environmentContext); if (present_environmentContext) - list.add(environmentContext); + builder.append(environmentContext); boolean present_needResult = true && (isSetNeedResult()); - list.add(present_needResult); + builder.append(present_needResult); if (present_needResult) - list.add(needResult); + builder.append(needResult); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(DropPartitionsRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + DropPartitionsRequest typedOther = (DropPartitionsRequest)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(typedOther.isSetTblName()); if (lastComparison != 0) { return lastComparison; } if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, typedOther.tblName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParts()).compareTo(other.isSetParts()); + lastComparison = Boolean.valueOf(isSetParts()).compareTo(typedOther.isSetParts()); if (lastComparison != 0) { return lastComparison; } if (isSetParts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parts, other.parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parts, typedOther.parts); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIfExists()).compareTo(other.isSetIfExists()); + lastComparison = Boolean.valueOf(isSetIfExists()).compareTo(typedOther.isSetIfExists()); if (lastComparison != 0) { return lastComparison; } if (isSetIfExists()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ifExists, other.ifExists); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ifExists, typedOther.ifExists); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIgnoreProtection()).compareTo(other.isSetIgnoreProtection()); + lastComparison = Boolean.valueOf(isSetIgnoreProtection()).compareTo(typedOther.isSetIgnoreProtection()); if (lastComparison != 0) { return lastComparison; } if (isSetIgnoreProtection()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ignoreProtection, other.ignoreProtection); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ignoreProtection, typedOther.ignoreProtection); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironmentContext()).compareTo(other.isSetEnvironmentContext()); + lastComparison = Boolean.valueOf(isSetEnvironmentContext()).compareTo(typedOther.isSetEnvironmentContext()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironmentContext()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environmentContext, other.environmentContext); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environmentContext, typedOther.environmentContext); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNeedResult()).compareTo(other.isSetNeedResult()); + lastComparison = Boolean.valueOf(isSetNeedResult()).compareTo(typedOther.isSetNeedResult()); if (lastComparison != 0) { return lastComparison; } if (isSetNeedResult()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.needResult, other.needResult); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.needResult, typedOther.needResult); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java index c139e65..156338a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class DropPartitionsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class DropPartitionsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("DropPartitionsResult"); private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -107,7 +103,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.PARTITIONS}; + private _Fields optionals[] = {_Fields.PARTITIONS}; 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); @@ -126,7 +122,7 @@ public DropPartitionsResult() { */ public DropPartitionsResult(DropPartitionsResult other) { if (other.isSetPartitions()) { - List __this__partitions = new ArrayList(other.partitions.size()); + List __this__partitions = new ArrayList(); for (Partition other_element : other.partitions) { __this__partitions.add(new Partition(other_element)); } @@ -243,30 +239,30 @@ public boolean equals(DropPartitionsResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitions = true && (isSetPartitions()); - list.add(present_partitions); + builder.append(present_partitions); if (present_partitions) - list.add(partitions); + builder.append(partitions); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(DropPartitionsResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + DropPartitionsResult typedOther = (DropPartitionsResult)other; - lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(typedOther.isSetPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, typedOther.partitions); if (lastComparison != 0) { return lastComparison; } @@ -348,12 +344,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, DropPartitionsResul { org.apache.thrift.protocol.TList _list396 = iprot.readListBegin(); struct.partitions = new ArrayList(_list396.size); - Partition _elem397; - for (int _i398 = 0; _i398 < _list396.size; ++_i398) + for (int _i397 = 0; _i397 < _list396.size; ++_i397) { - _elem397 = new Partition(); - _elem397.read(iprot); - struct.partitions.add(_elem397); + Partition _elem398; // required + _elem398 = new Partition(); + _elem398.read(iprot); + struct.partitions.add(_elem398); } iprot.readListEnd(); } @@ -430,12 +426,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, DropPartitionsResult { org.apache.thrift.protocol.TList _list401 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.partitions = new ArrayList(_list401.size); - Partition _elem402; - for (int _i403 = 0; _i403 < _list401.size; ++_i403) + for (int _i402 = 0; _i402 < _list401.size; ++_i402) { - _elem402 = new Partition(); - _elem402.read(iprot); - struct.partitions.add(_elem402); + Partition _elem403; // required + _elem403 = new Partition(); + _elem403.read(iprot); + struct.partitions.add(_elem403); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java index 6accb8d..ab0b399 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class EnvironmentContext implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class EnvironmentContext implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("EnvironmentContext"); private static final org.apache.thrift.protocol.TField PROPERTIES_FIELD_DESC = new org.apache.thrift.protocol.TField("properties", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -133,7 +129,18 @@ public EnvironmentContext( */ public EnvironmentContext(EnvironmentContext other) { if (other.isSetProperties()) { - Map __this__properties = new HashMap(other.properties); + Map __this__properties = new HashMap(); + for (Map.Entry other_element : other.properties.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__properties_copy_key = other_element_key; + + String __this__properties_copy_value = other_element_value; + + __this__properties.put(__this__properties_copy_key, __this__properties_copy_value); + } this.properties = __this__properties; } } @@ -243,30 +250,30 @@ public boolean equals(EnvironmentContext that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_properties = true && (isSetProperties()); - list.add(present_properties); + builder.append(present_properties); if (present_properties) - list.add(properties); + builder.append(properties); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(EnvironmentContext other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + EnvironmentContext typedOther = (EnvironmentContext)other; - lastComparison = Boolean.valueOf(isSetProperties()).compareTo(other.isSetProperties()); + lastComparison = Boolean.valueOf(isSetProperties()).compareTo(typedOther.isSetProperties()); if (lastComparison != 0) { return lastComparison; } if (isSetProperties()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, other.properties); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, typedOther.properties); if (lastComparison != 0) { return lastComparison; } @@ -346,13 +353,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, EnvironmentContext { org.apache.thrift.protocol.TMap _map312 = iprot.readMapBegin(); struct.properties = new HashMap(2*_map312.size); - String _key313; - String _val314; - for (int _i315 = 0; _i315 < _map312.size; ++_i315) + for (int _i313 = 0; _i313 < _map312.size; ++_i313) { - _key313 = iprot.readString(); - _val314 = iprot.readString(); - struct.properties.put(_key313, _val314); + String _key314; // required + String _val315; // required + _key314 = iprot.readString(); + _val315 = iprot.readString(); + struct.properties.put(_key314, _val315); } iprot.readMapEnd(); } @@ -429,13 +436,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, EnvironmentContext s { org.apache.thrift.protocol.TMap _map318 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.properties = new HashMap(2*_map318.size); - String _key319; - String _val320; - for (int _i321 = 0; _i321 < _map318.size; ++_i321) + for (int _i319 = 0; _i319 < _map318.size; ++_i319) { - _key319 = iprot.readString(); - _val320 = iprot.readString(); - struct.properties.put(_key319, _val320); + String _key320; // required + String _val321; // required + _key320 = iprot.readString(); + _val321 = iprot.readString(); + struct.properties.put(_key320, _val321); } } struct.setPropertiesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EventRequestType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EventRequestType.java index 422b44f..084c3ee 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EventRequestType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EventRequestType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java index ba69622..c84fa29 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FieldSchema.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class FieldSchema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class FieldSchema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FieldSchema"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -345,60 +341,60 @@ public boolean equals(FieldSchema that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type); + builder.append(type); boolean present_comment = true && (isSetComment()); - list.add(present_comment); + builder.append(present_comment); if (present_comment) - list.add(comment); + builder.append(comment); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(FieldSchema other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + FieldSchema typedOther = (FieldSchema)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetComment()).compareTo(other.isSetComment()); + lastComparison = Boolean.valueOf(isSetComment()).compareTo(typedOther.isSetComment()); if (lastComparison != 0) { return lastComparison; } if (isSetComment()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, other.comment); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java index f3d439c..4eacfa9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class FireEventRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class FireEventRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FireEventRequest"); private static final org.apache.thrift.protocol.TField SUCCESSFUL_FIELD_DESC = new org.apache.thrift.protocol.TField("successful", org.apache.thrift.protocol.TType.BOOL, (short)1); @@ -129,7 +125,7 @@ public String getFieldName() { // isset id assignments private static final int __SUCCESSFUL_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.DB_NAME,_Fields.TABLE_NAME,_Fields.PARTITION_VALS}; + private _Fields optionals[] = {_Fields.DB_NAME,_Fields.TABLE_NAME,_Fields.PARTITION_VALS}; 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); @@ -177,7 +173,10 @@ public FireEventRequest(FireEventRequest other) { this.tableName = other.tableName; } if (other.isSetPartitionVals()) { - List __this__partitionVals = new ArrayList(other.partitionVals); + List __this__partitionVals = new ArrayList(); + for (String other_element : other.partitionVals) { + __this__partitionVals.add(other_element); + } this.partitionVals = __this__partitionVals; } } @@ -475,90 +474,90 @@ public boolean equals(FireEventRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_successful = true; - list.add(present_successful); + builder.append(present_successful); if (present_successful) - list.add(successful); + builder.append(successful); boolean present_data = true && (isSetData()); - list.add(present_data); + builder.append(present_data); if (present_data) - list.add(data); + builder.append(data); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_partitionVals = true && (isSetPartitionVals()); - list.add(present_partitionVals); + builder.append(present_partitionVals); if (present_partitionVals) - list.add(partitionVals); + builder.append(partitionVals); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(FireEventRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + FireEventRequest typedOther = (FireEventRequest)other; - lastComparison = Boolean.valueOf(isSetSuccessful()).compareTo(other.isSetSuccessful()); + lastComparison = Boolean.valueOf(isSetSuccessful()).compareTo(typedOther.isSetSuccessful()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccessful()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.successful, other.successful); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.successful, typedOther.successful); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetData()).compareTo(other.isSetData()); + lastComparison = Boolean.valueOf(isSetData()).compareTo(typedOther.isSetData()); if (lastComparison != 0) { return lastComparison; } if (isSetData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, other.data); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, typedOther.data); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionVals()).compareTo(other.isSetPartitionVals()); + lastComparison = Boolean.valueOf(isSetPartitionVals()).compareTo(typedOther.isSetPartitionVals()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionVals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionVals, other.partitionVals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionVals, typedOther.partitionVals); if (lastComparison != 0) { return lastComparison; } @@ -715,11 +714,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, FireEventRequest st { org.apache.thrift.protocol.TList _list516 = iprot.readListBegin(); struct.partitionVals = new ArrayList(_list516.size); - String _elem517; - for (int _i518 = 0; _i518 < _list516.size; ++_i518) + for (int _i517 = 0; _i517 < _list516.size; ++_i517) { - _elem517 = iprot.readString(); - struct.partitionVals.add(_elem517); + String _elem518; // required + _elem518 = iprot.readString(); + struct.partitionVals.add(_elem518); } iprot.readListEnd(); } @@ -845,11 +844,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str { org.apache.thrift.protocol.TList _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.partitionVals = new ArrayList(_list521.size); - String _elem522; - for (int _i523 = 0; _i523 < _list521.size; ++_i523) + for (int _i522 = 0; _i522 < _list521.size; ++_i522) { - _elem522 = iprot.readString(); - struct.partitionVals.add(_elem522); + String _elem523; // required + _elem523 = iprot.readString(); + struct.partitionVals.add(_elem523); } } struct.setPartitionValsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequestData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequestData.java index 2830496..008682e 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequestData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequestData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,11 +28,9 @@ 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"}) public class FireEventRequestData extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FireEventRequestData"); private static final org.apache.thrift.protocol.TField INSERT_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("insertData", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -159,7 +156,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -274,19 +270,19 @@ public int compareTo(FireEventRequestData other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventResponse.java index d95ae06..051f411 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class FireEventResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class FireEventResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FireEventResponse"); @@ -165,18 +161,18 @@ public boolean equals(FireEventResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(FireEventResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + FireEventResponse typedOther = (FireEventResponse)other; return 0; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java index 50eff73..182fbf4 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Function implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Function implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Function"); private static final org.apache.thrift.protocol.TField FUNCTION_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("functionName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -226,7 +222,7 @@ public Function(Function other) { this.functionType = other.functionType; } if (other.isSetResourceUris()) { - List __this__resourceUris = new ArrayList(other.resourceUris.size()); + List __this__resourceUris = new ArrayList(); for (ResourceUri other_element : other.resourceUris) { __this__resourceUris.add(new ResourceUri(other_element)); } @@ -681,135 +677,135 @@ public boolean equals(Function that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_functionName = true && (isSetFunctionName()); - list.add(present_functionName); + builder.append(present_functionName); if (present_functionName) - list.add(functionName); + builder.append(functionName); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_className = true && (isSetClassName()); - list.add(present_className); + builder.append(present_className); if (present_className) - list.add(className); + builder.append(className); boolean present_ownerName = true && (isSetOwnerName()); - list.add(present_ownerName); + builder.append(present_ownerName); if (present_ownerName) - list.add(ownerName); + builder.append(ownerName); boolean present_ownerType = true && (isSetOwnerType()); - list.add(present_ownerType); + builder.append(present_ownerType); if (present_ownerType) - list.add(ownerType.getValue()); + builder.append(ownerType.getValue()); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_functionType = true && (isSetFunctionType()); - list.add(present_functionType); + builder.append(present_functionType); if (present_functionType) - list.add(functionType.getValue()); + builder.append(functionType.getValue()); boolean present_resourceUris = true && (isSetResourceUris()); - list.add(present_resourceUris); + builder.append(present_resourceUris); if (present_resourceUris) - list.add(resourceUris); + builder.append(resourceUris); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Function other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Function typedOther = (Function)other; - lastComparison = Boolean.valueOf(isSetFunctionName()).compareTo(other.isSetFunctionName()); + lastComparison = Boolean.valueOf(isSetFunctionName()).compareTo(typedOther.isSetFunctionName()); if (lastComparison != 0) { return lastComparison; } if (isSetFunctionName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionName, other.functionName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionName, typedOther.functionName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetClassName()).compareTo(other.isSetClassName()); + lastComparison = Boolean.valueOf(isSetClassName()).compareTo(typedOther.isSetClassName()); if (lastComparison != 0) { return lastComparison; } if (isSetClassName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.className, other.className); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.className, typedOther.className); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(other.isSetOwnerName()); + lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(typedOther.isSetOwnerName()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, other.ownerName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, typedOther.ownerName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerType()).compareTo(other.isSetOwnerType()); + lastComparison = Boolean.valueOf(isSetOwnerType()).compareTo(typedOther.isSetOwnerType()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerType, other.ownerType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerType, typedOther.ownerType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFunctionType()).compareTo(other.isSetFunctionType()); + lastComparison = Boolean.valueOf(isSetFunctionType()).compareTo(typedOther.isSetFunctionType()); if (lastComparison != 0) { return lastComparison; } if (isSetFunctionType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionType, other.functionType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionType, typedOther.functionType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetResourceUris()).compareTo(other.isSetResourceUris()); + lastComparison = Boolean.valueOf(isSetResourceUris()).compareTo(typedOther.isSetResourceUris()); if (lastComparison != 0) { return lastComparison; } if (isSetResourceUris()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resourceUris, other.resourceUris); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resourceUris, typedOther.resourceUris); if (lastComparison != 0) { return lastComparison; } @@ -972,7 +968,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Function struct) th break; case 5: // OWNER_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.ownerType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.ownerType = PrincipalType.findByValue(iprot.readI32()); struct.setOwnerTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -988,7 +984,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Function struct) th break; case 7: // FUNCTION_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.functionType = org.apache.hadoop.hive.metastore.api.FunctionType.findByValue(iprot.readI32()); + struct.functionType = FunctionType.findByValue(iprot.readI32()); struct.setFunctionTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -999,12 +995,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Function struct) th { org.apache.thrift.protocol.TList _list420 = iprot.readListBegin(); struct.resourceUris = new ArrayList(_list420.size); - ResourceUri _elem421; - for (int _i422 = 0; _i422 < _list420.size; ++_i422) + for (int _i421 = 0; _i421 < _list420.size; ++_i421) { - _elem421 = new ResourceUri(); - _elem421.read(iprot); - struct.resourceUris.add(_elem421); + ResourceUri _elem422; // required + _elem422 = new ResourceUri(); + _elem422.read(iprot); + struct.resourceUris.add(_elem422); } iprot.readListEnd(); } @@ -1167,7 +1163,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Function struct) thr struct.setOwnerNameIsSet(true); } if (incoming.get(4)) { - struct.ownerType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.ownerType = PrincipalType.findByValue(iprot.readI32()); struct.setOwnerTypeIsSet(true); } if (incoming.get(5)) { @@ -1175,19 +1171,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Function struct) thr struct.setCreateTimeIsSet(true); } if (incoming.get(6)) { - struct.functionType = org.apache.hadoop.hive.metastore.api.FunctionType.findByValue(iprot.readI32()); + struct.functionType = FunctionType.findByValue(iprot.readI32()); struct.setFunctionTypeIsSet(true); } if (incoming.get(7)) { { org.apache.thrift.protocol.TList _list425 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.resourceUris = new ArrayList(_list425.size); - ResourceUri _elem426; - for (int _i427 = 0; _i427 < _list425.size; ++_i427) + for (int _i426 = 0; _i426 < _list425.size; ++_i426) { - _elem426 = new ResourceUri(); - _elem426.read(iprot); - struct.resourceUris.add(_elem426); + ResourceUri _elem427; // required + _elem427 = new ResourceUri(); + _elem427.read(iprot); + struct.resourceUris.add(_elem427); } } struct.setResourceUrisIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FunctionType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FunctionType.java index 6958566..8f5b9b1 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FunctionType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FunctionType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java index 0a9e27b..c76e8f6 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class GetAllFunctionsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetAllFunctionsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetAllFunctionsResponse"); private static final org.apache.thrift.protocol.TField FUNCTIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("functions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -107,7 +103,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.FUNCTIONS}; + private _Fields optionals[] = {_Fields.FUNCTIONS}; 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); @@ -126,7 +122,7 @@ public GetAllFunctionsResponse() { */ public GetAllFunctionsResponse(GetAllFunctionsResponse other) { if (other.isSetFunctions()) { - List __this__functions = new ArrayList(other.functions.size()); + List __this__functions = new ArrayList(); for (Function other_element : other.functions) { __this__functions.add(new Function(other_element)); } @@ -243,30 +239,30 @@ public boolean equals(GetAllFunctionsResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_functions = true && (isSetFunctions()); - list.add(present_functions); + builder.append(present_functions); if (present_functions) - list.add(functions); + builder.append(functions); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetAllFunctionsResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetAllFunctionsResponse typedOther = (GetAllFunctionsResponse)other; - lastComparison = Boolean.valueOf(isSetFunctions()).compareTo(other.isSetFunctions()); + lastComparison = Boolean.valueOf(isSetFunctions()).compareTo(typedOther.isSetFunctions()); if (lastComparison != 0) { return lastComparison; } if (isSetFunctions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functions, other.functions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functions, typedOther.functions); if (lastComparison != 0) { return lastComparison; } @@ -348,12 +344,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetAllFunctionsResp { org.apache.thrift.protocol.TList _list524 = iprot.readListBegin(); struct.functions = new ArrayList(_list524.size); - Function _elem525; - for (int _i526 = 0; _i526 < _list524.size; ++_i526) + for (int _i525 = 0; _i525 < _list524.size; ++_i525) { - _elem525 = new Function(); - _elem525.read(iprot); - struct.functions.add(_elem525); + Function _elem526; // required + _elem526 = new Function(); + _elem526.read(iprot); + struct.functions.add(_elem526); } iprot.readListEnd(); } @@ -430,12 +426,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetAllFunctionsRespo { org.apache.thrift.protocol.TList _list529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.functions = new ArrayList(_list529.size); - Function _elem530; - for (int _i531 = 0; _i531 < _list529.size; ++_i531) + for (int _i530 = 0; _i530 < _list529.size; ++_i530) { - _elem530 = new Function(); - _elem530.read(iprot); - struct.functions.add(_elem530); + Function _elem531; // required + _elem531 = new Function(); + _elem531.read(iprot); + struct.functions.add(_elem531); } } struct.setFunctionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java index 61dea16..a84c0cb 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class GetOpenTxnsInfoResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetOpenTxnsInfoResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetOpenTxnsInfoResponse"); private static final org.apache.thrift.protocol.TField TXN_HIGH_WATER_MARK_FIELD_DESC = new org.apache.thrift.protocol.TField("txn_high_water_mark", org.apache.thrift.protocol.TType.I64, (short)1); @@ -146,7 +142,7 @@ public GetOpenTxnsInfoResponse(GetOpenTxnsInfoResponse other) { __isset_bitfield = other.__isset_bitfield; this.txn_high_water_mark = other.txn_high_water_mark; if (other.isSetOpen_txns()) { - List __this__open_txns = new ArrayList(other.open_txns.size()); + List __this__open_txns = new ArrayList(); for (TxnInfo other_element : other.open_txns) { __this__open_txns.add(new TxnInfo(other_element)); } @@ -309,45 +305,45 @@ public boolean equals(GetOpenTxnsInfoResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txn_high_water_mark = true; - list.add(present_txn_high_water_mark); + builder.append(present_txn_high_water_mark); if (present_txn_high_water_mark) - list.add(txn_high_water_mark); + builder.append(txn_high_water_mark); boolean present_open_txns = true && (isSetOpen_txns()); - list.add(present_open_txns); + builder.append(present_open_txns); if (present_open_txns) - list.add(open_txns); + builder.append(open_txns); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetOpenTxnsInfoResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetOpenTxnsInfoResponse typedOther = (GetOpenTxnsInfoResponse)other; - lastComparison = Boolean.valueOf(isSetTxn_high_water_mark()).compareTo(other.isSetTxn_high_water_mark()); + lastComparison = Boolean.valueOf(isSetTxn_high_water_mark()).compareTo(typedOther.isSetTxn_high_water_mark()); if (lastComparison != 0) { return lastComparison; } if (isSetTxn_high_water_mark()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_high_water_mark, other.txn_high_water_mark); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_high_water_mark, typedOther.txn_high_water_mark); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOpen_txns()).compareTo(other.isSetOpen_txns()); + lastComparison = Boolean.valueOf(isSetOpen_txns()).compareTo(typedOther.isSetOpen_txns()); if (lastComparison != 0) { return lastComparison; } if (isSetOpen_txns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open_txns, other.open_txns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open_txns, typedOther.open_txns); if (lastComparison != 0) { return lastComparison; } @@ -449,12 +445,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetOpenTxnsInfoResp { org.apache.thrift.protocol.TList _list428 = iprot.readListBegin(); struct.open_txns = new ArrayList(_list428.size); - TxnInfo _elem429; - for (int _i430 = 0; _i430 < _list428.size; ++_i430) + for (int _i429 = 0; _i429 < _list428.size; ++_i429) { - _elem429 = new TxnInfo(); - _elem429.read(iprot); - struct.open_txns.add(_elem429); + TxnInfo _elem430; // required + _elem430 = new TxnInfo(); + _elem430.read(iprot); + struct.open_txns.add(_elem430); } iprot.readListEnd(); } @@ -526,12 +522,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsInfoRespo { org.apache.thrift.protocol.TList _list433 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.open_txns = new ArrayList(_list433.size); - TxnInfo _elem434; - for (int _i435 = 0; _i435 < _list433.size; ++_i435) + for (int _i434 = 0; _i434 < _list433.size; ++_i434) { - _elem434 = new TxnInfo(); - _elem434.read(iprot); - struct.open_txns.add(_elem434); + TxnInfo _elem435; // required + _elem435 = new TxnInfo(); + _elem435.read(iprot); + struct.open_txns.add(_elem435); } } struct.setOpen_txnsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java index bd21de5..23dea5b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class GetOpenTxnsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetOpenTxnsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetOpenTxnsResponse"); private static final org.apache.thrift.protocol.TField TXN_HIGH_WATER_MARK_FIELD_DESC = new org.apache.thrift.protocol.TField("txn_high_water_mark", org.apache.thrift.protocol.TType.I64, (short)1); @@ -146,7 +142,10 @@ public GetOpenTxnsResponse(GetOpenTxnsResponse other) { __isset_bitfield = other.__isset_bitfield; this.txn_high_water_mark = other.txn_high_water_mark; if (other.isSetOpen_txns()) { - Set __this__open_txns = new HashSet(other.open_txns); + Set __this__open_txns = new HashSet(); + for (Long other_element : other.open_txns) { + __this__open_txns.add(other_element); + } this.open_txns = __this__open_txns; } } @@ -306,45 +305,45 @@ public boolean equals(GetOpenTxnsResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txn_high_water_mark = true; - list.add(present_txn_high_water_mark); + builder.append(present_txn_high_water_mark); if (present_txn_high_water_mark) - list.add(txn_high_water_mark); + builder.append(txn_high_water_mark); boolean present_open_txns = true && (isSetOpen_txns()); - list.add(present_open_txns); + builder.append(present_open_txns); if (present_open_txns) - list.add(open_txns); + builder.append(open_txns); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetOpenTxnsResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetOpenTxnsResponse typedOther = (GetOpenTxnsResponse)other; - lastComparison = Boolean.valueOf(isSetTxn_high_water_mark()).compareTo(other.isSetTxn_high_water_mark()); + lastComparison = Boolean.valueOf(isSetTxn_high_water_mark()).compareTo(typedOther.isSetTxn_high_water_mark()); if (lastComparison != 0) { return lastComparison; } if (isSetTxn_high_water_mark()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_high_water_mark, other.txn_high_water_mark); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_high_water_mark, typedOther.txn_high_water_mark); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOpen_txns()).compareTo(other.isSetOpen_txns()); + lastComparison = Boolean.valueOf(isSetOpen_txns()).compareTo(typedOther.isSetOpen_txns()); if (lastComparison != 0) { return lastComparison; } if (isSetOpen_txns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open_txns, other.open_txns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open_txns, typedOther.open_txns); if (lastComparison != 0) { return lastComparison; } @@ -446,11 +445,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetOpenTxnsResponse { org.apache.thrift.protocol.TSet _set436 = iprot.readSetBegin(); struct.open_txns = new HashSet(2*_set436.size); - long _elem437; - for (int _i438 = 0; _i438 < _set436.size; ++_i438) + for (int _i437 = 0; _i437 < _set436.size; ++_i437) { - _elem437 = iprot.readI64(); - struct.open_txns.add(_elem437); + long _elem438; // required + _elem438 = iprot.readI64(); + struct.open_txns.add(_elem438); } iprot.readSetEnd(); } @@ -522,11 +521,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsResponse { org.apache.thrift.protocol.TSet _set441 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.open_txns = new HashSet(2*_set441.size); - long _elem442; - for (int _i443 = 0; _i443 < _set441.size; ++_i443) + for (int _i442 = 0; _i442 < _set441.size; ++_i442) { - _elem442 = iprot.readI64(); - struct.open_txns.add(_elem442); + long _elem443; // required + _elem443 = iprot.readI64(); + struct.open_txns.add(_elem443); } } struct.setOpen_txnsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java index 45e0cc1..565eba9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class GetPrincipalsInRoleRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetPrincipalsInRoleRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPrincipalsInRoleRequest"); private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(GetPrincipalsInRoleRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_roleName = true && (isSetRoleName()); - list.add(present_roleName); + builder.append(present_roleName); if (present_roleName) - list.add(roleName); + builder.append(roleName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetPrincipalsInRoleRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetPrincipalsInRoleRequest typedOther = (GetPrincipalsInRoleRequest)other; - lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName()); + lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName()); if (lastComparison != 0) { return lastComparison; } if (isSetRoleName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java index 805b898..083699b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class GetPrincipalsInRoleResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetPrincipalsInRoleResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetPrincipalsInRoleResponse"); private static final org.apache.thrift.protocol.TField PRINCIPAL_GRANTS_FIELD_DESC = new org.apache.thrift.protocol.TField("principalGrants", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public GetPrincipalsInRoleResponse( */ public GetPrincipalsInRoleResponse(GetPrincipalsInRoleResponse other) { if (other.isSetPrincipalGrants()) { - List __this__principalGrants = new ArrayList(other.principalGrants.size()); + List __this__principalGrants = new ArrayList(); for (RolePrincipalGrant other_element : other.principalGrants) { __this__principalGrants.add(new RolePrincipalGrant(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(GetPrincipalsInRoleResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_principalGrants = true && (isSetPrincipalGrants()); - list.add(present_principalGrants); + builder.append(present_principalGrants); if (present_principalGrants) - list.add(principalGrants); + builder.append(principalGrants); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetPrincipalsInRoleResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetPrincipalsInRoleResponse typedOther = (GetPrincipalsInRoleResponse)other; - lastComparison = Boolean.valueOf(isSetPrincipalGrants()).compareTo(other.isSetPrincipalGrants()); + lastComparison = Boolean.valueOf(isSetPrincipalGrants()).compareTo(typedOther.isSetPrincipalGrants()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalGrants()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalGrants, other.principalGrants); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalGrants, typedOther.principalGrants); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPrincipalsInRole { org.apache.thrift.protocol.TList _list86 = iprot.readListBegin(); struct.principalGrants = new ArrayList(_list86.size); - RolePrincipalGrant _elem87; - for (int _i88 = 0; _i88 < _list86.size; ++_i88) + for (int _i87 = 0; _i87 < _list86.size; ++_i87) { - _elem87 = new RolePrincipalGrant(); - _elem87.read(iprot); - struct.principalGrants.add(_elem87); + RolePrincipalGrant _elem88; // required + _elem88 = new RolePrincipalGrant(); + _elem88.read(iprot); + struct.principalGrants.add(_elem88); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRoleR { org.apache.thrift.protocol.TList _list91 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.principalGrants = new ArrayList(_list91.size); - RolePrincipalGrant _elem92; - for (int _i93 = 0; _i93 < _list91.size; ++_i93) + for (int _i92 = 0; _i92 < _list91.size; ++_i92) { - _elem92 = new RolePrincipalGrant(); - _elem92.read(iprot); - struct.principalGrants.add(_elem92); + RolePrincipalGrant _elem93; // required + _elem93 = new RolePrincipalGrant(); + _elem93.read(iprot); + struct.principalGrants.add(_elem93); } } struct.setPrincipalGrantsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalRequest.java index c2c7259..84b73c3 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class GetRoleGrantsForPrincipalRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetRoleGrantsForPrincipalRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetRoleGrantsForPrincipalRequest"); private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -299,45 +295,45 @@ public boolean equals(GetRoleGrantsForPrincipalRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_principal_name = true && (isSetPrincipal_name()); - list.add(present_principal_name); + builder.append(present_principal_name); if (present_principal_name) - list.add(principal_name); + builder.append(principal_name); boolean present_principal_type = true && (isSetPrincipal_type()); - list.add(present_principal_type); + builder.append(present_principal_type); if (present_principal_type) - list.add(principal_type.getValue()); + builder.append(principal_type.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetRoleGrantsForPrincipalRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetRoleGrantsForPrincipalRequest typedOther = (GetRoleGrantsForPrincipalRequest)other; - lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(other.isSetPrincipal_name()); + lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, other.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(other.isSetPrincipal_type()); + lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(typedOther.isSetPrincipal_type()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, other.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } @@ -438,7 +434,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetRoleGrantsForPri break; case 2: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -493,7 +489,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetRoleGrantsForPrin TTupleProtocol iprot = (TTupleProtocol) prot; struct.principal_name = iprot.readString(); struct.setPrincipal_nameIsSet(true); - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java index 7156665..f745c08 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class GetRoleGrantsForPrincipalResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GetRoleGrantsForPrincipalResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetRoleGrantsForPrincipalResponse"); private static final org.apache.thrift.protocol.TField PRINCIPAL_GRANTS_FIELD_DESC = new org.apache.thrift.protocol.TField("principalGrants", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public GetRoleGrantsForPrincipalResponse( */ public GetRoleGrantsForPrincipalResponse(GetRoleGrantsForPrincipalResponse other) { if (other.isSetPrincipalGrants()) { - List __this__principalGrants = new ArrayList(other.principalGrants.size()); + List __this__principalGrants = new ArrayList(); for (RolePrincipalGrant other_element : other.principalGrants) { __this__principalGrants.add(new RolePrincipalGrant(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(GetRoleGrantsForPrincipalResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_principalGrants = true && (isSetPrincipalGrants()); - list.add(present_principalGrants); + builder.append(present_principalGrants); if (present_principalGrants) - list.add(principalGrants); + builder.append(principalGrants); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetRoleGrantsForPrincipalResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetRoleGrantsForPrincipalResponse typedOther = (GetRoleGrantsForPrincipalResponse)other; - lastComparison = Boolean.valueOf(isSetPrincipalGrants()).compareTo(other.isSetPrincipalGrants()); + lastComparison = Boolean.valueOf(isSetPrincipalGrants()).compareTo(typedOther.isSetPrincipalGrants()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalGrants()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalGrants, other.principalGrants); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalGrants, typedOther.principalGrants); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetRoleGrantsForPri { org.apache.thrift.protocol.TList _list78 = iprot.readListBegin(); struct.principalGrants = new ArrayList(_list78.size); - RolePrincipalGrant _elem79; - for (int _i80 = 0; _i80 < _list78.size; ++_i80) + for (int _i79 = 0; _i79 < _list78.size; ++_i79) { - _elem79 = new RolePrincipalGrant(); - _elem79.read(iprot); - struct.principalGrants.add(_elem79); + RolePrincipalGrant _elem80; // required + _elem80 = new RolePrincipalGrant(); + _elem80.read(iprot); + struct.principalGrants.add(_elem80); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetRoleGrantsForPrin { org.apache.thrift.protocol.TList _list83 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.principalGrants = new ArrayList(_list83.size); - RolePrincipalGrant _elem84; - for (int _i85 = 0; _i85 < _list83.size; ++_i85) + for (int _i84 = 0; _i84 < _list83.size; ++_i84) { - _elem84 = new RolePrincipalGrant(); - _elem84.read(iprot); - struct.principalGrants.add(_elem84); + RolePrincipalGrant _elem85; // required + _elem85 = new RolePrincipalGrant(); + _elem85.read(iprot); + struct.principalGrants.add(_elem85); } } struct.setPrincipalGrantsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeRequest.java index 94e5a5e..29ce977 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class GrantRevokePrivilegeRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GrantRevokePrivilegeRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GrantRevokePrivilegeRequest"); private static final org.apache.thrift.protocol.TField REQUEST_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("requestType", org.apache.thrift.protocol.TType.I32, (short)1); @@ -123,7 +119,7 @@ public String getFieldName() { // isset id assignments private static final int __REVOKEGRANTOPTION_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.REVOKE_GRANT_OPTION}; + private _Fields optionals[] = {_Fields.REVOKE_GRANT_OPTION}; 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); @@ -357,60 +353,60 @@ public boolean equals(GrantRevokePrivilegeRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_requestType = true && (isSetRequestType()); - list.add(present_requestType); + builder.append(present_requestType); if (present_requestType) - list.add(requestType.getValue()); + builder.append(requestType.getValue()); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); boolean present_revokeGrantOption = true && (isSetRevokeGrantOption()); - list.add(present_revokeGrantOption); + builder.append(present_revokeGrantOption); if (present_revokeGrantOption) - list.add(revokeGrantOption); + builder.append(revokeGrantOption); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GrantRevokePrivilegeRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GrantRevokePrivilegeRequest typedOther = (GrantRevokePrivilegeRequest)other; - lastComparison = Boolean.valueOf(isSetRequestType()).compareTo(other.isSetRequestType()); + lastComparison = Boolean.valueOf(isSetRequestType()).compareTo(typedOther.isSetRequestType()); if (lastComparison != 0) { return lastComparison; } if (isSetRequestType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestType, other.requestType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestType, typedOther.requestType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRevokeGrantOption()).compareTo(other.isSetRevokeGrantOption()); + lastComparison = Boolean.valueOf(isSetRevokeGrantOption()).compareTo(typedOther.isSetRevokeGrantOption()); if (lastComparison != 0) { return lastComparison; } if (isSetRevokeGrantOption()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revokeGrantOption, other.revokeGrantOption); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.revokeGrantOption, typedOther.revokeGrantOption); if (lastComparison != 0) { return lastComparison; } @@ -506,7 +502,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GrantRevokePrivileg switch (schemeField.id) { case 1: // REQUEST_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.requestType = org.apache.hadoop.hive.metastore.api.GrantRevokeType.findByValue(iprot.readI32()); + struct.requestType = GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -601,7 +597,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GrantRevokePrivilege TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.requestType = org.apache.hadoop.hive.metastore.api.GrantRevokeType.findByValue(iprot.readI32()); + struct.requestType = GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } if (incoming.get(1)) { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeResponse.java index 1949aed..f86bf9f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokePrivilegeResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class GrantRevokePrivilegeResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GrantRevokePrivilegeResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GrantRevokePrivilegeResponse"); 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)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.SUCCESS}; + private _Fields optionals[] = {_Fields.SUCCESS}; 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); @@ -224,30 +220,30 @@ public boolean equals(GrantRevokePrivilegeResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GrantRevokePrivilegeResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GrantRevokePrivilegeResponse typedOther = (GrantRevokePrivilegeResponse)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleRequest.java index ac3527a..db17aef 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class GrantRevokeRoleRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GrantRevokeRoleRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GrantRevokeRoleRequest"); private static final org.apache.thrift.protocol.TField REQUEST_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("requestType", org.apache.thrift.protocol.TType.I32, (short)1); @@ -151,7 +147,7 @@ public String getFieldName() { // isset id assignments private static final int __GRANTOPTION_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.GRANTOR,_Fields.GRANTOR_TYPE,_Fields.GRANT_OPTION}; + private _Fields optionals[] = {_Fields.GRANTOR,_Fields.GRANTOR_TYPE,_Fields.GRANT_OPTION}; 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); @@ -609,120 +605,120 @@ public boolean equals(GrantRevokeRoleRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_requestType = true && (isSetRequestType()); - list.add(present_requestType); + builder.append(present_requestType); if (present_requestType) - list.add(requestType.getValue()); + builder.append(requestType.getValue()); boolean present_roleName = true && (isSetRoleName()); - list.add(present_roleName); + builder.append(present_roleName); if (present_roleName) - list.add(roleName); + builder.append(roleName); boolean present_principalName = true && (isSetPrincipalName()); - list.add(present_principalName); + builder.append(present_principalName); if (present_principalName) - list.add(principalName); + builder.append(principalName); boolean present_principalType = true && (isSetPrincipalType()); - list.add(present_principalType); + builder.append(present_principalType); if (present_principalType) - list.add(principalType.getValue()); + builder.append(principalType.getValue()); boolean present_grantor = true && (isSetGrantor()); - list.add(present_grantor); + builder.append(present_grantor); if (present_grantor) - list.add(grantor); + builder.append(grantor); boolean present_grantorType = true && (isSetGrantorType()); - list.add(present_grantorType); + builder.append(present_grantorType); if (present_grantorType) - list.add(grantorType.getValue()); + builder.append(grantorType.getValue()); boolean present_grantOption = true && (isSetGrantOption()); - list.add(present_grantOption); + builder.append(present_grantOption); if (present_grantOption) - list.add(grantOption); + builder.append(grantOption); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GrantRevokeRoleRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GrantRevokeRoleRequest typedOther = (GrantRevokeRoleRequest)other; - lastComparison = Boolean.valueOf(isSetRequestType()).compareTo(other.isSetRequestType()); + lastComparison = Boolean.valueOf(isSetRequestType()).compareTo(typedOther.isSetRequestType()); if (lastComparison != 0) { return lastComparison; } if (isSetRequestType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestType, other.requestType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestType, typedOther.requestType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName()); + lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName()); if (lastComparison != 0) { return lastComparison; } if (isSetRoleName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(other.isSetPrincipalName()); + lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(typedOther.isSetPrincipalName()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, other.principalName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, typedOther.principalName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(other.isSetPrincipalType()); + lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(typedOther.isSetPrincipalType()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, other.principalType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, typedOther.principalType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantor()).compareTo(other.isSetGrantor()); + lastComparison = Boolean.valueOf(isSetGrantor()).compareTo(typedOther.isSetGrantor()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantor()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, other.grantor); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, typedOther.grantor); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantorType()).compareTo(other.isSetGrantorType()); + lastComparison = Boolean.valueOf(isSetGrantorType()).compareTo(typedOther.isSetGrantorType()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantorType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorType, other.grantorType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorType, typedOther.grantorType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(other.isSetGrantOption()); + lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(typedOther.isSetGrantOption()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantOption()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, other.grantOption); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, typedOther.grantOption); if (lastComparison != 0) { return lastComparison; } @@ -851,7 +847,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GrantRevokeRoleRequ switch (schemeField.id) { case 1: // REQUEST_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.requestType = org.apache.hadoop.hive.metastore.api.GrantRevokeType.findByValue(iprot.readI32()); + struct.requestType = GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -875,7 +871,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GrantRevokeRoleRequ break; case 4: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principalType = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipalTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -891,7 +887,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GrantRevokeRoleRequ break; case 6: // GRANTOR_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.grantorType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1025,7 +1021,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GrantRevokeRoleReque TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { - struct.requestType = org.apache.hadoop.hive.metastore.api.GrantRevokeType.findByValue(iprot.readI32()); + struct.requestType = GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } if (incoming.get(1)) { @@ -1037,7 +1033,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GrantRevokeRoleReque struct.setPrincipalNameIsSet(true); } if (incoming.get(3)) { - struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principalType = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipalTypeIsSet(true); } if (incoming.get(4)) { @@ -1045,7 +1041,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GrantRevokeRoleReque struct.setGrantorIsSet(true); } if (incoming.get(5)) { - struct.grantorType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorTypeIsSet(true); } if (incoming.get(6)) { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleResponse.java index 81ae31f..b9acbb5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeRoleResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class GrantRevokeRoleResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class GrantRevokeRoleResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GrantRevokeRoleResponse"); 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)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __SUCCESS_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.SUCCESS}; + private _Fields optionals[] = {_Fields.SUCCESS}; 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); @@ -224,30 +220,30 @@ public boolean equals(GrantRevokeRoleResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GrantRevokeRoleResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GrantRevokeRoleResponse typedOther = (GrantRevokeRoleResponse)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeType.java index f7b4587..c949637 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GrantRevokeType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatRequest.java index 4a9ba7f..04439b9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class HeartbeatRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HeartbeatRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HeartbeatRequest"); private static final org.apache.thrift.protocol.TField LOCKID_FIELD_DESC = new org.apache.thrift.protocol.TField("lockid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -115,7 +111,7 @@ public String getFieldName() { private static final int __LOCKID_ISSET_ID = 0; private static final int __TXNID_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.LOCKID,_Fields.TXNID}; + private _Fields optionals[] = {_Fields.LOCKID,_Fields.TXNID}; 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); @@ -279,45 +275,45 @@ public boolean equals(HeartbeatRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lockid = true && (isSetLockid()); - list.add(present_lockid); + builder.append(present_lockid); if (present_lockid) - list.add(lockid); + builder.append(lockid); boolean present_txnid = true && (isSetTxnid()); - list.add(present_txnid); + builder.append(present_txnid); if (present_txnid) - list.add(txnid); + builder.append(txnid); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HeartbeatRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HeartbeatRequest typedOther = (HeartbeatRequest)other; - lastComparison = Boolean.valueOf(isSetLockid()).compareTo(other.isSetLockid()); + lastComparison = Boolean.valueOf(isSetLockid()).compareTo(typedOther.isSetLockid()); if (lastComparison != 0) { return lastComparison; } if (isSetLockid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, other.lockid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, typedOther.lockid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); + lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeRequest.java index dd6ed17..062449a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class HeartbeatTxnRangeRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HeartbeatTxnRangeRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HeartbeatTxnRangeRequest"); private static final org.apache.thrift.protocol.TField MIN_FIELD_DESC = new org.apache.thrift.protocol.TField("min", org.apache.thrift.protocol.TType.I64, (short)1); @@ -289,45 +285,45 @@ public boolean equals(HeartbeatTxnRangeRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_min = true; - list.add(present_min); + builder.append(present_min); if (present_min) - list.add(min); + builder.append(min); boolean present_max = true; - list.add(present_max); + builder.append(present_max); if (present_max) - list.add(max); + builder.append(max); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HeartbeatTxnRangeRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HeartbeatTxnRangeRequest typedOther = (HeartbeatTxnRangeRequest)other; - lastComparison = Boolean.valueOf(isSetMin()).compareTo(other.isSetMin()); + lastComparison = Boolean.valueOf(isSetMin()).compareTo(typedOther.isSetMin()); if (lastComparison != 0) { return lastComparison; } if (isSetMin()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min, other.min); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min, typedOther.min); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax()).compareTo(other.isSetMax()); + lastComparison = Boolean.valueOf(isSetMax()).compareTo(typedOther.isSetMax()); if (lastComparison != 0) { return lastComparison; } if (isSetMax()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max, other.max); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max, typedOther.max); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java index 11bd82b..6f5327c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class HeartbeatTxnRangeResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HeartbeatTxnRangeResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HeartbeatTxnRangeResponse"); private static final org.apache.thrift.protocol.TField ABORTED_FIELD_DESC = new org.apache.thrift.protocol.TField("aborted", org.apache.thrift.protocol.TType.SET, (short)1); @@ -142,11 +138,17 @@ public HeartbeatTxnRangeResponse( */ public HeartbeatTxnRangeResponse(HeartbeatTxnRangeResponse other) { if (other.isSetAborted()) { - Set __this__aborted = new HashSet(other.aborted); + Set __this__aborted = new HashSet(); + for (Long other_element : other.aborted) { + __this__aborted.add(other_element); + } this.aborted = __this__aborted; } if (other.isSetNosuch()) { - Set __this__nosuch = new HashSet(other.nosuch); + Set __this__nosuch = new HashSet(); + for (Long other_element : other.nosuch) { + __this__nosuch.add(other_element); + } this.nosuch = __this__nosuch; } } @@ -321,45 +323,45 @@ public boolean equals(HeartbeatTxnRangeResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_aborted = true && (isSetAborted()); - list.add(present_aborted); + builder.append(present_aborted); if (present_aborted) - list.add(aborted); + builder.append(aborted); boolean present_nosuch = true && (isSetNosuch()); - list.add(present_nosuch); + builder.append(present_nosuch); if (present_nosuch) - list.add(nosuch); + builder.append(nosuch); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HeartbeatTxnRangeResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HeartbeatTxnRangeResponse typedOther = (HeartbeatTxnRangeResponse)other; - lastComparison = Boolean.valueOf(isSetAborted()).compareTo(other.isSetAborted()); + lastComparison = Boolean.valueOf(isSetAborted()).compareTo(typedOther.isSetAborted()); if (lastComparison != 0) { return lastComparison; } if (isSetAborted()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aborted, other.aborted); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aborted, typedOther.aborted); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNosuch()).compareTo(other.isSetNosuch()); + lastComparison = Boolean.valueOf(isSetNosuch()).compareTo(typedOther.isSetNosuch()); if (lastComparison != 0) { return lastComparison; } if (isSetNosuch()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nosuch, other.nosuch); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nosuch, typedOther.nosuch); if (lastComparison != 0) { return lastComparison; } @@ -455,11 +457,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatTxnRangeRe { org.apache.thrift.protocol.TSet _set468 = iprot.readSetBegin(); struct.aborted = new HashSet(2*_set468.size); - long _elem469; - for (int _i470 = 0; _i470 < _set468.size; ++_i470) + for (int _i469 = 0; _i469 < _set468.size; ++_i469) { - _elem469 = iprot.readI64(); - struct.aborted.add(_elem469); + long _elem470; // required + _elem470 = iprot.readI64(); + struct.aborted.add(_elem470); } iprot.readSetEnd(); } @@ -473,11 +475,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatTxnRangeRe { org.apache.thrift.protocol.TSet _set471 = iprot.readSetBegin(); struct.nosuch = new HashSet(2*_set471.size); - long _elem472; - for (int _i473 = 0; _i473 < _set471.size; ++_i473) + for (int _i472 = 0; _i472 < _set471.size; ++_i472) { - _elem472 = iprot.readI64(); - struct.nosuch.add(_elem472); + long _elem473; // required + _elem473 = iprot.readI64(); + struct.nosuch.add(_elem473); } iprot.readSetEnd(); } @@ -562,22 +564,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeRes { org.apache.thrift.protocol.TSet _set478 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.aborted = new HashSet(2*_set478.size); - long _elem479; - for (int _i480 = 0; _i480 < _set478.size; ++_i480) + for (int _i479 = 0; _i479 < _set478.size; ++_i479) { - _elem479 = iprot.readI64(); - struct.aborted.add(_elem479); + long _elem480; // required + _elem480 = iprot.readI64(); + struct.aborted.add(_elem480); } } struct.setAbortedIsSet(true); { org.apache.thrift.protocol.TSet _set481 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.nosuch = new HashSet(2*_set481.size); - long _elem482; - for (int _i483 = 0; _i483 < _set481.size; ++_i483) + for (int _i482 = 0; _i482 < _set481.size; ++_i482) { - _elem482 = iprot.readI64(); - struct.nosuch.add(_elem482); + long _elem483; // required + _elem483 = iprot.readI64(); + struct.nosuch.add(_elem483); } } struct.setNosuchIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java index 931b4e1..bd7641d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectPrivilege.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class HiveObjectPrivilege implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HiveObjectPrivilege implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveObjectPrivilege"); private static final org.apache.thrift.protocol.TField HIVE_OBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("hiveObject", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -415,75 +411,75 @@ public boolean equals(HiveObjectPrivilege that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_hiveObject = true && (isSetHiveObject()); - list.add(present_hiveObject); + builder.append(present_hiveObject); if (present_hiveObject) - list.add(hiveObject); + builder.append(hiveObject); boolean present_principalName = true && (isSetPrincipalName()); - list.add(present_principalName); + builder.append(present_principalName); if (present_principalName) - list.add(principalName); + builder.append(principalName); boolean present_principalType = true && (isSetPrincipalType()); - list.add(present_principalType); + builder.append(present_principalType); if (present_principalType) - list.add(principalType.getValue()); + builder.append(principalType.getValue()); boolean present_grantInfo = true && (isSetGrantInfo()); - list.add(present_grantInfo); + builder.append(present_grantInfo); if (present_grantInfo) - list.add(grantInfo); + builder.append(grantInfo); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HiveObjectPrivilege other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HiveObjectPrivilege typedOther = (HiveObjectPrivilege)other; - lastComparison = Boolean.valueOf(isSetHiveObject()).compareTo(other.isSetHiveObject()); + lastComparison = Boolean.valueOf(isSetHiveObject()).compareTo(typedOther.isSetHiveObject()); if (lastComparison != 0) { return lastComparison; } if (isSetHiveObject()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, other.hiveObject); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, typedOther.hiveObject); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(other.isSetPrincipalName()); + lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(typedOther.isSetPrincipalName()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, other.principalName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, typedOther.principalName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(other.isSetPrincipalType()); + lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(typedOther.isSetPrincipalType()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, other.principalType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, typedOther.principalType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantInfo()).compareTo(other.isSetGrantInfo()); + lastComparison = Boolean.valueOf(isSetGrantInfo()).compareTo(typedOther.isSetGrantInfo()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantInfo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantInfo, other.grantInfo); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantInfo, typedOther.grantInfo); if (lastComparison != 0) { return lastComparison; } @@ -607,7 +603,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HiveObjectPrivilege break; case 3: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principalType = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipalTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -714,7 +710,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, HiveObjectPrivilege struct.setPrincipalNameIsSet(true); } if (incoming.get(2)) { - struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principalType = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipalTypeIsSet(true); } if (incoming.get(3)) { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java index 2573cea..997060f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class HiveObjectRef implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HiveObjectRef implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveObjectRef"); private static final org.apache.thrift.protocol.TField OBJECT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("objectType", org.apache.thrift.protocol.TType.I32, (short)1); @@ -181,7 +177,10 @@ public HiveObjectRef(HiveObjectRef other) { this.objectName = other.objectName; } if (other.isSetPartValues()) { - List __this__partValues = new ArrayList(other.partValues); + List __this__partValues = new ArrayList(); + for (String other_element : other.partValues) { + __this__partValues.add(other_element); + } this.partValues = __this__partValues; } if (other.isSetColumnName()) { @@ -490,90 +489,90 @@ public boolean equals(HiveObjectRef that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_objectType = true && (isSetObjectType()); - list.add(present_objectType); + builder.append(present_objectType); if (present_objectType) - list.add(objectType.getValue()); + builder.append(objectType.getValue()); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_objectName = true && (isSetObjectName()); - list.add(present_objectName); + builder.append(present_objectName); if (present_objectName) - list.add(objectName); + builder.append(objectName); boolean present_partValues = true && (isSetPartValues()); - list.add(present_partValues); + builder.append(present_partValues); if (present_partValues) - list.add(partValues); + builder.append(partValues); boolean present_columnName = true && (isSetColumnName()); - list.add(present_columnName); + builder.append(present_columnName); if (present_columnName) - list.add(columnName); + builder.append(columnName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HiveObjectRef other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HiveObjectRef typedOther = (HiveObjectRef)other; - lastComparison = Boolean.valueOf(isSetObjectType()).compareTo(other.isSetObjectType()); + lastComparison = Boolean.valueOf(isSetObjectType()).compareTo(typedOther.isSetObjectType()); if (lastComparison != 0) { return lastComparison; } if (isSetObjectType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectType, other.objectType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectType, typedOther.objectType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetObjectName()).compareTo(other.isSetObjectName()); + lastComparison = Boolean.valueOf(isSetObjectName()).compareTo(typedOther.isSetObjectName()); if (lastComparison != 0) { return lastComparison; } if (isSetObjectName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectName, other.objectName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectName, typedOther.objectName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartValues()).compareTo(other.isSetPartValues()); + lastComparison = Boolean.valueOf(isSetPartValues()).compareTo(typedOther.isSetPartValues()); if (lastComparison != 0) { return lastComparison; } if (isSetPartValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partValues, other.partValues); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partValues, typedOther.partValues); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(other.isSetColumnName()); + lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(typedOther.isSetColumnName()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, other.columnName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, typedOther.columnName); if (lastComparison != 0) { return lastComparison; } @@ -682,7 +681,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HiveObjectRef struc switch (schemeField.id) { case 1: // OBJECT_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.objectType = org.apache.hadoop.hive.metastore.api.HiveObjectType.findByValue(iprot.readI32()); + struct.objectType = HiveObjectType.findByValue(iprot.readI32()); struct.setObjectTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -709,11 +708,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HiveObjectRef struc { org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); struct.partValues = new ArrayList(_list8.size); - String _elem9; - for (int _i10 = 0; _i10 < _list8.size; ++_i10) + for (int _i9 = 0; _i9 < _list8.size; ++_i9) { - _elem9 = iprot.readString(); - struct.partValues.add(_elem9); + String _elem10; // required + _elem10 = iprot.readString(); + struct.partValues.add(_elem10); } iprot.readListEnd(); } @@ -837,7 +836,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, HiveObjectRef struct TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.objectType = org.apache.hadoop.hive.metastore.api.HiveObjectType.findByValue(iprot.readI32()); + struct.objectType = HiveObjectType.findByValue(iprot.readI32()); struct.setObjectTypeIsSet(true); } if (incoming.get(1)) { @@ -852,11 +851,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, HiveObjectRef struct { org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.partValues = new ArrayList(_list13.size); - String _elem14; - for (int _i15 = 0; _i15 < _list13.size; ++_i15) + for (int _i14 = 0; _i14 < _list13.size; ++_i14) { - _elem14 = iprot.readString(); - struct.partValues.add(_elem14); + String _elem15; // required + _elem15 = iprot.readString(); + struct.partValues.add(_elem15); } } struct.setPartValuesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectType.java index 427930f..995331e 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java index 81227c3..cb3a435 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Index implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Index implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Index"); private static final org.apache.thrift.protocol.TField INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("indexName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -242,7 +238,18 @@ public Index(Index other) { this.sd = new StorageDescriptor(other.sd); } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = other_element_key; + + String __this__parameters_copy_value = other_element_value; + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } this.deferredRebuild = other.deferredRebuild; @@ -767,165 +774,165 @@ public boolean equals(Index that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_indexName = true && (isSetIndexName()); - list.add(present_indexName); + builder.append(present_indexName); if (present_indexName) - list.add(indexName); + builder.append(indexName); boolean present_indexHandlerClass = true && (isSetIndexHandlerClass()); - list.add(present_indexHandlerClass); + builder.append(present_indexHandlerClass); if (present_indexHandlerClass) - list.add(indexHandlerClass); + builder.append(indexHandlerClass); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_origTableName = true && (isSetOrigTableName()); - list.add(present_origTableName); + builder.append(present_origTableName); if (present_origTableName) - list.add(origTableName); + builder.append(origTableName); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_lastAccessTime = true; - list.add(present_lastAccessTime); + builder.append(present_lastAccessTime); if (present_lastAccessTime) - list.add(lastAccessTime); + builder.append(lastAccessTime); boolean present_indexTableName = true && (isSetIndexTableName()); - list.add(present_indexTableName); + builder.append(present_indexTableName); if (present_indexTableName) - list.add(indexTableName); + builder.append(indexTableName); boolean present_sd = true && (isSetSd()); - list.add(present_sd); + builder.append(present_sd); if (present_sd) - list.add(sd); + builder.append(sd); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); boolean present_deferredRebuild = true; - list.add(present_deferredRebuild); + builder.append(present_deferredRebuild); if (present_deferredRebuild) - list.add(deferredRebuild); + builder.append(deferredRebuild); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Index other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Index typedOther = (Index)other; - lastComparison = Boolean.valueOf(isSetIndexName()).compareTo(other.isSetIndexName()); + lastComparison = Boolean.valueOf(isSetIndexName()).compareTo(typedOther.isSetIndexName()); if (lastComparison != 0) { return lastComparison; } if (isSetIndexName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexName, other.indexName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexName, typedOther.indexName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndexHandlerClass()).compareTo(other.isSetIndexHandlerClass()); + lastComparison = Boolean.valueOf(isSetIndexHandlerClass()).compareTo(typedOther.isSetIndexHandlerClass()); if (lastComparison != 0) { return lastComparison; } if (isSetIndexHandlerClass()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexHandlerClass, other.indexHandlerClass); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexHandlerClass, typedOther.indexHandlerClass); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOrigTableName()).compareTo(other.isSetOrigTableName()); + lastComparison = Boolean.valueOf(isSetOrigTableName()).compareTo(typedOther.isSetOrigTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetOrigTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.origTableName, other.origTableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.origTableName, typedOther.origTableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(other.isSetLastAccessTime()); + lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(typedOther.isSetLastAccessTime()); if (lastComparison != 0) { return lastComparison; } if (isSetLastAccessTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, other.lastAccessTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndexTableName()).compareTo(other.isSetIndexTableName()); + lastComparison = Boolean.valueOf(isSetIndexTableName()).compareTo(typedOther.isSetIndexTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetIndexTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexTableName, other.indexTableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.indexTableName, typedOther.indexTableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSd()).compareTo(other.isSetSd()); + lastComparison = Boolean.valueOf(isSetSd()).compareTo(typedOther.isSetSd()); if (lastComparison != 0) { return lastComparison; } if (isSetSd()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, other.sd); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, typedOther.sd); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeferredRebuild()).compareTo(other.isSetDeferredRebuild()); + lastComparison = Boolean.valueOf(isSetDeferredRebuild()).compareTo(typedOther.isSetDeferredRebuild()); if (lastComparison != 0) { return lastComparison; } if (isSetDeferredRebuild()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deferredRebuild, other.deferredRebuild); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deferredRebuild, typedOther.deferredRebuild); if (lastComparison != 0) { return lastComparison; } @@ -1135,13 +1142,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Index struct) throw { org.apache.thrift.protocol.TMap _map260 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map260.size); - String _key261; - String _val262; - for (int _i263 = 0; _i263 < _map260.size; ++_i263) + for (int _i261 = 0; _i261 < _map260.size; ++_i261) { - _key261 = iprot.readString(); - _val262 = iprot.readString(); - struct.parameters.put(_key261, _val262); + String _key262; // required + String _val263; // required + _key262 = iprot.readString(); + _val263 = iprot.readString(); + struct.parameters.put(_key262, _val263); } iprot.readMapEnd(); } @@ -1352,13 +1359,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Index struct) throws { org.apache.thrift.protocol.TMap _map266 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map266.size); - String _key267; - String _val268; - for (int _i269 = 0; _i269 < _map266.size; ++_i269) + for (int _i267 = 0; _i267 < _map266.size; ++_i267) { - _key267 = iprot.readString(); - _val268 = iprot.readString(); - struct.parameters.put(_key267, _val268); + String _key268; // required + String _val269; // required + _key268 = iprot.readString(); + _val269 = iprot.readString(); + struct.parameters.put(_key268, _val269); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java index 50517ed..f90a65d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/IndexAlreadyExistsException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class IndexAlreadyExistsException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class IndexAlreadyExistsException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("IndexAlreadyExistsException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(IndexAlreadyExistsException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(IndexAlreadyExistsException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + IndexAlreadyExistsException typedOther = (IndexAlreadyExistsException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java index 2e14cf9..24dacf5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class InsertEventRequestData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class InsertEventRequestData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InsertEventRequestData"); private static final org.apache.thrift.protocol.TField FILES_ADDED_FIELD_DESC = new org.apache.thrift.protocol.TField("filesAdded", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,10 @@ public InsertEventRequestData( */ public InsertEventRequestData(InsertEventRequestData other) { if (other.isSetFilesAdded()) { - List __this__filesAdded = new ArrayList(other.filesAdded); + List __this__filesAdded = new ArrayList(); + for (String other_element : other.filesAdded) { + __this__filesAdded.add(other_element); + } this.filesAdded = __this__filesAdded; } } @@ -246,30 +245,30 @@ public boolean equals(InsertEventRequestData that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_filesAdded = true && (isSetFilesAdded()); - list.add(present_filesAdded); + builder.append(present_filesAdded); if (present_filesAdded) - list.add(filesAdded); + builder.append(filesAdded); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(InsertEventRequestData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + InsertEventRequestData typedOther = (InsertEventRequestData)other; - lastComparison = Boolean.valueOf(isSetFilesAdded()).compareTo(other.isSetFilesAdded()); + lastComparison = Boolean.valueOf(isSetFilesAdded()).compareTo(typedOther.isSetFilesAdded()); if (lastComparison != 0) { return lastComparison; } if (isSetFilesAdded()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesAdded, other.filesAdded); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filesAdded, typedOther.filesAdded); if (lastComparison != 0) { return lastComparison; } @@ -353,11 +352,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD { org.apache.thrift.protocol.TList _list508 = iprot.readListBegin(); struct.filesAdded = new ArrayList(_list508.size); - String _elem509; - for (int _i510 = 0; _i510 < _list508.size; ++_i510) + for (int _i509 = 0; _i509 < _list508.size; ++_i509) { - _elem509 = iprot.readString(); - struct.filesAdded.add(_elem509); + String _elem510; // required + _elem510 = iprot.readString(); + struct.filesAdded.add(_elem510); } iprot.readListEnd(); } @@ -423,11 +422,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestDa { org.apache.thrift.protocol.TList _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.filesAdded = new ArrayList(_list513.size); - String _elem514; - for (int _i515 = 0; _i515 < _list513.size; ++_i515) + for (int _i514 = 0; _i514 < _list513.size; ++_i514) { - _elem514 = iprot.readString(); - struct.filesAdded.add(_elem514); + String _elem515; // required + _elem515 = iprot.readString(); + struct.filesAdded.add(_elem515); } } struct.setFilesAddedIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidInputException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidInputException.java index 87e2f6b..4b63e3f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidInputException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidInputException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class InvalidInputException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class InvalidInputException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidInputException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(InvalidInputException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(InvalidInputException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + InvalidInputException typedOther = (InvalidInputException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidObjectException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidObjectException.java index 14dd7d8..2f1414e 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidObjectException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidObjectException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class InvalidObjectException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class InvalidObjectException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidObjectException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(InvalidObjectException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(InvalidObjectException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + InvalidObjectException typedOther = (InvalidObjectException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidOperationException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidOperationException.java index 2e3f1e3..9b6acb8 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidOperationException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidOperationException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class InvalidOperationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class InvalidOperationException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidOperationException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(InvalidOperationException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(InvalidOperationException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + InvalidOperationException typedOther = (InvalidOperationException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidPartitionException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidPartitionException.java index 1d9b565..99ffddb 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidPartitionException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InvalidPartitionException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class InvalidPartitionException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class InvalidPartitionException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidPartitionException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(InvalidPartitionException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(InvalidPartitionException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + InvalidPartitionException typedOther = (InvalidPartitionException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockComponent.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockComponent.java index 319f8bb..59c8199 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockComponent.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockComponent.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class LockComponent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class LockComponent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LockComponent"); private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)1); @@ -135,7 +131,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.TABLENAME,_Fields.PARTITIONNAME}; + private _Fields optionals[] = {_Fields.TABLENAME,_Fields.PARTITIONNAME}; 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); @@ -482,90 +478,90 @@ public boolean equals(LockComponent that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type.getValue()); + builder.append(type.getValue()); boolean present_level = true && (isSetLevel()); - list.add(present_level); + builder.append(present_level); if (present_level) - list.add(level.getValue()); + builder.append(level.getValue()); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tablename = true && (isSetTablename()); - list.add(present_tablename); + builder.append(present_tablename); if (present_tablename) - list.add(tablename); + builder.append(tablename); boolean present_partitionname = true && (isSetPartitionname()); - list.add(present_partitionname); + builder.append(present_partitionname); if (present_partitionname) - list.add(partitionname); + builder.append(partitionname); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(LockComponent other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + LockComponent typedOther = (LockComponent)other; - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLevel()).compareTo(other.isSetLevel()); + lastComparison = Boolean.valueOf(isSetLevel()).compareTo(typedOther.isSetLevel()); if (lastComparison != 0) { return lastComparison; } if (isSetLevel()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.level, other.level); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.level, typedOther.level); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename()); + lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename()); if (lastComparison != 0) { return lastComparison; } if (isSetTablename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(other.isSetPartitionname()); + lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(typedOther.isSetPartitionname()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, other.partitionname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, typedOther.partitionname); if (lastComparison != 0) { return lastComparison; } @@ -690,7 +686,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, LockComponent struc switch (schemeField.id) { case 1: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32()); + struct.type = LockType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -698,7 +694,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, LockComponent struc break; case 2: // LEVEL if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.level = org.apache.hadoop.hive.metastore.api.LockLevel.findByValue(iprot.readI32()); + struct.level = LockLevel.findByValue(iprot.readI32()); struct.setLevelIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -809,9 +805,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, LockComponent struc @Override public void read(org.apache.thrift.protocol.TProtocol prot, LockComponent struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32()); + struct.type = LockType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); - struct.level = org.apache.hadoop.hive.metastore.api.LockLevel.findByValue(iprot.readI32()); + struct.level = LockLevel.findByValue(iprot.readI32()); struct.setLevelIsSet(true); struct.dbname = iprot.readString(); struct.setDbnameIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockLevel.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockLevel.java index 08840f1..ca5d30a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockLevel.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockLevel.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java index 6894bfa..7f70f98 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class LockRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class LockRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LockRequest"); private static final org.apache.thrift.protocol.TField COMPONENT_FIELD_DESC = new org.apache.thrift.protocol.TField("component", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -124,7 +120,7 @@ public String getFieldName() { // isset id assignments private static final int __TXNID_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.TXNID}; + private _Fields optionals[] = {_Fields.TXNID}; 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); @@ -161,7 +157,7 @@ public LockRequest( public LockRequest(LockRequest other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetComponent()) { - List __this__component = new ArrayList(other.component.size()); + List __this__component = new ArrayList(); for (LockComponent other_element : other.component) { __this__component.add(new LockComponent(other_element)); } @@ -423,75 +419,75 @@ public boolean equals(LockRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_component = true && (isSetComponent()); - list.add(present_component); + builder.append(present_component); if (present_component) - list.add(component); + builder.append(component); boolean present_txnid = true && (isSetTxnid()); - list.add(present_txnid); + builder.append(present_txnid); if (present_txnid) - list.add(txnid); + builder.append(txnid); boolean present_user = true && (isSetUser()); - list.add(present_user); + builder.append(present_user); if (present_user) - list.add(user); + builder.append(user); boolean present_hostname = true && (isSetHostname()); - list.add(present_hostname); + builder.append(present_hostname); if (present_hostname) - list.add(hostname); + builder.append(hostname); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(LockRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + LockRequest typedOther = (LockRequest)other; - lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent()); + lastComparison = Boolean.valueOf(isSetComponent()).compareTo(typedOther.isSetComponent()); if (lastComparison != 0) { return lastComparison; } if (isSetComponent()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, typedOther.component); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); + lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser()); if (lastComparison != 0) { return lastComparison; } if (isSetUser()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHostname()).compareTo(other.isSetHostname()); + lastComparison = Boolean.valueOf(isSetHostname()).compareTo(typedOther.isSetHostname()); if (lastComparison != 0) { return lastComparison; } if (isSetHostname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, other.hostname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, typedOther.hostname); if (lastComparison != 0) { return lastComparison; } @@ -607,12 +603,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, LockRequest struct) { org.apache.thrift.protocol.TList _list452 = iprot.readListBegin(); struct.component = new ArrayList(_list452.size); - LockComponent _elem453; - for (int _i454 = 0; _i454 < _list452.size; ++_i454) + for (int _i453 = 0; _i453 < _list452.size; ++_i453) { - _elem453 = new LockComponent(); - _elem453.read(iprot); - struct.component.add(_elem453); + LockComponent _elem454; // required + _elem454 = new LockComponent(); + _elem454.read(iprot); + struct.component.add(_elem454); } iprot.readListEnd(); } @@ -727,12 +723,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) { org.apache.thrift.protocol.TList _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.component = new ArrayList(_list457.size); - LockComponent _elem458; - for (int _i459 = 0; _i459 < _list457.size; ++_i459) + for (int _i458 = 0; _i458 < _list457.size; ++_i458) { - _elem458 = new LockComponent(); - _elem458.read(iprot); - struct.component.add(_elem458); + LockComponent _elem459; // required + _elem459 = new LockComponent(); + _elem459.read(iprot); + struct.component.add(_elem459); } } struct.setComponentIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockResponse.java index 08acaeb..c9ab465 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class LockResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class LockResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LockResponse"); private static final org.apache.thrift.protocol.TField LOCKID_FIELD_DESC = new org.apache.thrift.protocol.TField("lockid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -301,45 +297,45 @@ public boolean equals(LockResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lockid = true; - list.add(present_lockid); + builder.append(present_lockid); if (present_lockid) - list.add(lockid); + builder.append(lockid); boolean present_state = true && (isSetState()); - list.add(present_state); + builder.append(present_state); if (present_state) - list.add(state.getValue()); + builder.append(state.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(LockResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + LockResponse typedOther = (LockResponse)other; - lastComparison = Boolean.valueOf(isSetLockid()).compareTo(other.isSetLockid()); + lastComparison = Boolean.valueOf(isSetLockid()).compareTo(typedOther.isSetLockid()); if (lastComparison != 0) { return lastComparison; } if (isSetLockid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, other.lockid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, typedOther.lockid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState()); + lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState()); if (lastComparison != 0) { return lastComparison; } if (isSetState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state); if (lastComparison != 0) { return lastComparison; } @@ -438,7 +434,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, LockResponse struct break; case 2: // STATE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.state = org.apache.hadoop.hive.metastore.api.LockState.findByValue(iprot.readI32()); + struct.state = LockState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -491,7 +487,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, LockResponse struct) TTupleProtocol iprot = (TTupleProtocol) prot; struct.lockid = iprot.readI64(); struct.setLockidIsSet(true); - struct.state = org.apache.hadoop.hive.metastore.api.LockState.findByValue(iprot.readI32()); + struct.state = LockState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockState.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockState.java index bce2b5a..57bc3c5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockState.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockState.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockType.java index 9d60531..ee57883 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LongColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LongColumnStatsData.java index 93d2386..d817d46 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LongColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LongColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class LongColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class LongColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LongColumnStatsData"); private static final org.apache.thrift.protocol.TField LOW_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("lowValue", org.apache.thrift.protocol.TType.I64, (short)1); @@ -127,7 +123,7 @@ public String getFieldName() { private static final int __NUMNULLS_ISSET_ID = 2; private static final int __NUMDVS_ISSET_ID = 3; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; + private _Fields optionals[] = {_Fields.LOW_VALUE,_Fields.HIGH_VALUE}; 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); @@ -400,75 +396,75 @@ public boolean equals(LongColumnStatsData that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lowValue = true && (isSetLowValue()); - list.add(present_lowValue); + builder.append(present_lowValue); if (present_lowValue) - list.add(lowValue); + builder.append(lowValue); boolean present_highValue = true && (isSetHighValue()); - list.add(present_highValue); + builder.append(present_highValue); if (present_highValue) - list.add(highValue); + builder.append(highValue); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); boolean present_numDVs = true; - list.add(present_numDVs); + builder.append(present_numDVs); if (present_numDVs) - list.add(numDVs); + builder.append(numDVs); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(LongColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + LongColumnStatsData typedOther = (LongColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(other.isSetLowValue()); + lastComparison = Boolean.valueOf(isSetLowValue()).compareTo(typedOther.isSetLowValue()); if (lastComparison != 0) { return lastComparison; } if (isSetLowValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, other.lowValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lowValue, typedOther.lowValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(other.isSetHighValue()); + lastComparison = Boolean.valueOf(isSetHighValue()).compareTo(typedOther.isSetHighValue()); if (lastComparison != 0) { return lastComparison; } if (isSetHighValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, other.highValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highValue, typedOther.highValue); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(other.isSetNumDVs()); + lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(typedOther.isSetNumDVs()); if (lastComparison != 0) { return lastComparison; } if (isSetNumDVs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, other.numDVs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, typedOther.numDVs); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetaException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetaException.java index 883a1d4..108bca9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetaException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/MetaException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class MetaException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class MetaException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MetaException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(MetaException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(MetaException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + MetaException typedOther = (MetaException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchLockException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchLockException.java index e214b36..9c8bd0b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchLockException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchLockException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class NoSuchLockException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class NoSuchLockException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NoSuchLockException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(NoSuchLockException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(NoSuchLockException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + NoSuchLockException typedOther = (NoSuchLockException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchObjectException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchObjectException.java index 1292a64..305e979 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchObjectException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchObjectException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class NoSuchObjectException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class NoSuchObjectException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NoSuchObjectException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(NoSuchObjectException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(NoSuchObjectException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + NoSuchObjectException typedOther = (NoSuchObjectException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchTxnException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchTxnException.java index d1c430d..92dbb7f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchTxnException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NoSuchTxnException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class NoSuchTxnException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class NoSuchTxnException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NoSuchTxnException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(NoSuchTxnException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(NoSuchTxnException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + NoSuchTxnException typedOther = (NoSuchTxnException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEvent.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEvent.java index bcf4f51..f196c1c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEvent.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEvent.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class NotificationEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class NotificationEvent implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NotificationEvent"); private static final org.apache.thrift.protocol.TField EVENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("eventId", org.apache.thrift.protocol.TType.I64, (short)1); @@ -135,7 +131,7 @@ public String getFieldName() { private static final int __EVENTID_ISSET_ID = 0; private static final int __EVENTTIME_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.DB_NAME,_Fields.TABLE_NAME}; + private _Fields optionals[] = {_Fields.DB_NAME,_Fields.TABLE_NAME}; 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); @@ -518,105 +514,105 @@ public boolean equals(NotificationEvent that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_eventId = true; - list.add(present_eventId); + builder.append(present_eventId); if (present_eventId) - list.add(eventId); + builder.append(eventId); boolean present_eventTime = true; - list.add(present_eventTime); + builder.append(present_eventTime); if (present_eventTime) - list.add(eventTime); + builder.append(eventTime); boolean present_eventType = true && (isSetEventType()); - list.add(present_eventType); + builder.append(present_eventType); if (present_eventType) - list.add(eventType); + builder.append(eventType); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(NotificationEvent other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + NotificationEvent typedOther = (NotificationEvent)other; - lastComparison = Boolean.valueOf(isSetEventId()).compareTo(other.isSetEventId()); + lastComparison = Boolean.valueOf(isSetEventId()).compareTo(typedOther.isSetEventId()); if (lastComparison != 0) { return lastComparison; } if (isSetEventId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventId, other.eventId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventId, typedOther.eventId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEventTime()).compareTo(other.isSetEventTime()); + lastComparison = Boolean.valueOf(isSetEventTime()).compareTo(typedOther.isSetEventTime()); if (lastComparison != 0) { return lastComparison; } if (isSetEventTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventTime, other.eventTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventTime, typedOther.eventTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEventType()).compareTo(other.isSetEventType()); + lastComparison = Boolean.valueOf(isSetEventType()).compareTo(typedOther.isSetEventType()); if (lastComparison != 0) { return lastComparison; } if (isSetEventType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, other.eventType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, typedOther.eventType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java index c2bc4e8..6a8c8ab 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class NotificationEventRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class NotificationEventRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NotificationEventRequest"); private static final org.apache.thrift.protocol.TField LAST_EVENT_FIELD_DESC = new org.apache.thrift.protocol.TField("lastEvent", org.apache.thrift.protocol.TType.I64, (short)1); @@ -115,7 +111,7 @@ public String getFieldName() { private static final int __LASTEVENT_ISSET_ID = 0; private static final int __MAXEVENTS_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.MAX_EVENTS}; + private _Fields optionals[] = {_Fields.MAX_EVENTS}; 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); @@ -287,45 +283,45 @@ public boolean equals(NotificationEventRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lastEvent = true; - list.add(present_lastEvent); + builder.append(present_lastEvent); if (present_lastEvent) - list.add(lastEvent); + builder.append(lastEvent); boolean present_maxEvents = true && (isSetMaxEvents()); - list.add(present_maxEvents); + builder.append(present_maxEvents); if (present_maxEvents) - list.add(maxEvents); + builder.append(maxEvents); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(NotificationEventRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + NotificationEventRequest typedOther = (NotificationEventRequest)other; - lastComparison = Boolean.valueOf(isSetLastEvent()).compareTo(other.isSetLastEvent()); + lastComparison = Boolean.valueOf(isSetLastEvent()).compareTo(typedOther.isSetLastEvent()); if (lastComparison != 0) { return lastComparison; } if (isSetLastEvent()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastEvent, other.lastEvent); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastEvent, typedOther.lastEvent); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxEvents()).compareTo(other.isSetMaxEvents()); + lastComparison = Boolean.valueOf(isSetMaxEvents()).compareTo(typedOther.isSetMaxEvents()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxEvents()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxEvents, other.maxEvents); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxEvents, typedOther.maxEvents); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java index 24f9ce4..c16802d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class NotificationEventResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class NotificationEventResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("NotificationEventResponse"); private static final org.apache.thrift.protocol.TField EVENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("events", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public NotificationEventResponse( */ public NotificationEventResponse(NotificationEventResponse other) { if (other.isSetEvents()) { - List __this__events = new ArrayList(other.events.size()); + List __this__events = new ArrayList(); for (NotificationEvent other_element : other.events) { __this__events.add(new NotificationEvent(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(NotificationEventResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_events = true && (isSetEvents()); - list.add(present_events); + builder.append(present_events); if (present_events) - list.add(events); + builder.append(events); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(NotificationEventResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + NotificationEventResponse typedOther = (NotificationEventResponse)other; - lastComparison = Boolean.valueOf(isSetEvents()).compareTo(other.isSetEvents()); + lastComparison = Boolean.valueOf(isSetEvents()).compareTo(typedOther.isSetEvents()); if (lastComparison != 0) { return lastComparison; } if (isSetEvents()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.events, other.events); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.events, typedOther.events); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, NotificationEventRe { org.apache.thrift.protocol.TList _list500 = iprot.readListBegin(); struct.events = new ArrayList(_list500.size); - NotificationEvent _elem501; - for (int _i502 = 0; _i502 < _list500.size; ++_i502) + for (int _i501 = 0; _i501 < _list500.size; ++_i501) { - _elem501 = new NotificationEvent(); - _elem501.read(iprot); - struct.events.add(_elem501); + NotificationEvent _elem502; // required + _elem502 = new NotificationEvent(); + _elem502.read(iprot); + struct.events.add(_elem502); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventRes { org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.events = new ArrayList(_list505.size); - NotificationEvent _elem506; - for (int _i507 = 0; _i507 < _list505.size; ++_i507) + for (int _i506 = 0; _i506 < _list505.size; ++_i506) { - _elem506 = new NotificationEvent(); - _elem506.read(iprot); - struct.events.add(_elem506); + NotificationEvent _elem507; // required + _elem507 = new NotificationEvent(); + _elem507.read(iprot); + struct.events.add(_elem507); } } struct.setEventsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java index c5f9ccf..0d05378 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class OpenTxnRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class OpenTxnRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenTxnRequest"); private static final org.apache.thrift.protocol.TField NUM_TXNS_FIELD_DESC = new org.apache.thrift.protocol.TField("num_txns", org.apache.thrift.protocol.TType.I32, (short)1); @@ -347,60 +343,60 @@ public boolean equals(OpenTxnRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_num_txns = true; - list.add(present_num_txns); + builder.append(present_num_txns); if (present_num_txns) - list.add(num_txns); + builder.append(num_txns); boolean present_user = true && (isSetUser()); - list.add(present_user); + builder.append(present_user); if (present_user) - list.add(user); + builder.append(user); boolean present_hostname = true && (isSetHostname()); - list.add(present_hostname); + builder.append(present_hostname); if (present_hostname) - list.add(hostname); + builder.append(hostname); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(OpenTxnRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + OpenTxnRequest typedOther = (OpenTxnRequest)other; - lastComparison = Boolean.valueOf(isSetNum_txns()).compareTo(other.isSetNum_txns()); + lastComparison = Boolean.valueOf(isSetNum_txns()).compareTo(typedOther.isSetNum_txns()); if (lastComparison != 0) { return lastComparison; } if (isSetNum_txns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.num_txns, other.num_txns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.num_txns, typedOther.num_txns); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser()); if (lastComparison != 0) { return lastComparison; } if (isSetUser()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHostname()).compareTo(other.isSetHostname()); + lastComparison = Boolean.valueOf(isSetHostname()).compareTo(typedOther.isSetHostname()); if (lastComparison != 0) { return lastComparison; } if (isSetHostname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, other.hostname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, typedOther.hostname); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java index c233422..f369ab2 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class OpenTxnsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class OpenTxnsResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenTxnsResponse"); private static final org.apache.thrift.protocol.TField TXN_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("txn_ids", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,10 @@ public OpenTxnsResponse( */ public OpenTxnsResponse(OpenTxnsResponse other) { if (other.isSetTxn_ids()) { - List __this__txn_ids = new ArrayList(other.txn_ids); + List __this__txn_ids = new ArrayList(); + for (Long other_element : other.txn_ids) { + __this__txn_ids.add(other_element); + } this.txn_ids = __this__txn_ids; } } @@ -246,30 +245,30 @@ public boolean equals(OpenTxnsResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txn_ids = true && (isSetTxn_ids()); - list.add(present_txn_ids); + builder.append(present_txn_ids); if (present_txn_ids) - list.add(txn_ids); + builder.append(txn_ids); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(OpenTxnsResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + OpenTxnsResponse typedOther = (OpenTxnsResponse)other; - lastComparison = Boolean.valueOf(isSetTxn_ids()).compareTo(other.isSetTxn_ids()); + lastComparison = Boolean.valueOf(isSetTxn_ids()).compareTo(typedOther.isSetTxn_ids()); if (lastComparison != 0) { return lastComparison; } if (isSetTxn_ids()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_ids, other.txn_ids); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_ids, typedOther.txn_ids); if (lastComparison != 0) { return lastComparison; } @@ -353,11 +352,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, OpenTxnsResponse st { org.apache.thrift.protocol.TList _list444 = iprot.readListBegin(); struct.txn_ids = new ArrayList(_list444.size); - long _elem445; - for (int _i446 = 0; _i446 < _list444.size; ++_i446) + for (int _i445 = 0; _i445 < _list444.size; ++_i445) { - _elem445 = iprot.readI64(); - struct.txn_ids.add(_elem445); + long _elem446; // required + _elem446 = iprot.readI64(); + struct.txn_ids.add(_elem446); } iprot.readListEnd(); } @@ -423,11 +422,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse str { org.apache.thrift.protocol.TList _list449 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.txn_ids = new ArrayList(_list449.size); - long _elem450; - for (int _i451 = 0; _i451 < _list449.size; ++_i451) + for (int _i450 = 0; _i450 < _list449.size; ++_i450) { - _elem450 = iprot.readI64(); - struct.txn_ids.add(_elem450); + long _elem451; // required + _elem451 = iprot.readI64(); + struct.txn_ids.add(_elem451); } } struct.setTxn_idsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Order.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Order.java index da7bd55..55d5174 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Order.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Order.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Order implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Order implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Order"); private static final org.apache.thrift.protocol.TField COL_FIELD_DESC = new org.apache.thrift.protocol.TField("col", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -289,45 +285,45 @@ public boolean equals(Order that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_col = true && (isSetCol()); - list.add(present_col); + builder.append(present_col); if (present_col) - list.add(col); + builder.append(col); boolean present_order = true; - list.add(present_order); + builder.append(present_order); if (present_order) - list.add(order); + builder.append(order); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Order other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Order typedOther = (Order)other; - lastComparison = Boolean.valueOf(isSetCol()).compareTo(other.isSetCol()); + lastComparison = Boolean.valueOf(isSetCol()).compareTo(typedOther.isSetCol()); if (lastComparison != 0) { return lastComparison; } if (isSetCol()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col, other.col); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col, typedOther.col); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOrder()).compareTo(other.isSetOrder()); + lastComparison = Boolean.valueOf(isSetOrder()).compareTo(typedOther.isSetOrder()); if (lastComparison != 0) { return lastComparison; } if (isSetOrder()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, other.order); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, typedOther.order); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java index 224d28e..242d54d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Partition implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Partition implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Partition"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -145,7 +141,7 @@ public String getFieldName() { private static final int __CREATETIME_ISSET_ID = 0; private static final int __LASTACCESSTIME_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PRIVILEGES}; + private _Fields optionals[] = {_Fields.PRIVILEGES}; 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); @@ -202,7 +198,10 @@ public Partition( public Partition(Partition other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (String other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetDbName()) { @@ -217,7 +216,18 @@ public Partition(Partition other) { this.sd = new StorageDescriptor(other.sd); } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = org.apache.hive.common.util.HiveStringUtils.intern(other_element_key); + + String __this__parameters_copy_value = org.apache.hive.common.util.HiveStringUtils.intern(other_element_value); + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } if (other.isSetPrivileges()) { @@ -667,135 +677,135 @@ public boolean equals(Partition that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_lastAccessTime = true; - list.add(present_lastAccessTime); + builder.append(present_lastAccessTime); if (present_lastAccessTime) - list.add(lastAccessTime); + builder.append(lastAccessTime); boolean present_sd = true && (isSetSd()); - list.add(present_sd); + builder.append(present_sd); if (present_sd) - list.add(sd); + builder.append(sd); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Partition other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Partition typedOther = (Partition)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(other.isSetLastAccessTime()); + lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(typedOther.isSetLastAccessTime()); if (lastComparison != 0) { return lastComparison; } if (isSetLastAccessTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, other.lastAccessTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSd()).compareTo(other.isSetSd()); + lastComparison = Boolean.valueOf(isSetSd()).compareTo(typedOther.isSetSd()); if (lastComparison != 0) { return lastComparison; } if (isSetSd()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, other.sd); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, typedOther.sd); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -933,11 +943,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t { org.apache.thrift.protocol.TList _list208 = iprot.readListBegin(); struct.values = new ArrayList(_list208.size); - String _elem209; - for (int _i210 = 0; _i210 < _list208.size; ++_i210) + for (int _i209 = 0; _i209 < _list208.size; ++_i209) { - _elem209 = iprot.readString(); - struct.values.add(_elem209); + String _elem210; // required + _elem210 = iprot.readString(); + struct.values.add(_elem210); } iprot.readListEnd(); } @@ -992,13 +1002,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t { org.apache.thrift.protocol.TMap _map211 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map211.size); - String _key212; - String _val213; - for (int _i214 = 0; _i214 < _map211.size; ++_i214) + for (int _i212 = 0; _i212 < _map211.size; ++_i212) { - _key212 = iprot.readString(); - _val213 = iprot.readString(); - struct.parameters.put(_key212, _val213); + String _key213; // required + String _val214; // required + _key213 = iprot.readString(); + _val214 = iprot.readString(); + struct.parameters.put(_key213, _val214); } iprot.readMapEnd(); } @@ -1172,11 +1182,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th { org.apache.thrift.protocol.TList _list219 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.values = new ArrayList(_list219.size); - String _elem220; - for (int _i221 = 0; _i221 < _list219.size; ++_i221) + for (int _i220 = 0; _i220 < _list219.size; ++_i220) { - _elem220 = iprot.readString(); - struct.values.add(_elem220); + String _elem221; // required + _elem221 = iprot.readString(); + struct.values.add(_elem221); } } struct.setValuesIsSet(true); @@ -1206,13 +1216,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th { org.apache.thrift.protocol.TMap _map222 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map222.size); - String _key223; - String _val224; - for (int _i225 = 0; _i225 < _map222.size; ++_i225) + for (int _i223 = 0; _i223 < _map222.size; ++_i223) { - _key223 = iprot.readString(); - _val224 = iprot.readString(); - struct.parameters.put(_key223, _val224); + String _key224; // required + String _val225; // required + _key224 = iprot.readString(); + _val225 = iprot.readString(); + struct.parameters.put(_key224, _val225); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionEventType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionEventType.java index 40bdb56..6c75461 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionEventType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionEventType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java index c50a100..a634f55 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionListComposingSpec.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class PartitionListComposingSpec implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionListComposingSpec implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionListComposingSpec"); private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public PartitionListComposingSpec( */ public PartitionListComposingSpec(PartitionListComposingSpec other) { if (other.isSetPartitions()) { - List __this__partitions = new ArrayList(other.partitions.size()); + List __this__partitions = new ArrayList(); for (Partition other_element : other.partitions) { __this__partitions.add(new Partition(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(PartitionListComposingSpec that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitions = true && (isSetPartitions()); - list.add(present_partitions); + builder.append(present_partitions); if (present_partitions) - list.add(partitions); + builder.append(partitions); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionListComposingSpec other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionListComposingSpec typedOther = (PartitionListComposingSpec)other; - lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(typedOther.isSetPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, typedOther.partitions); if (lastComparison != 0) { return lastComparison; } @@ -352,12 +348,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionListCompos { org.apache.thrift.protocol.TList _list252 = iprot.readListBegin(); struct.partitions = new ArrayList(_list252.size); - Partition _elem253; - for (int _i254 = 0; _i254 < _list252.size; ++_i254) + for (int _i253 = 0; _i253 < _list252.size; ++_i253) { - _elem253 = new Partition(); - _elem253.read(iprot); - struct.partitions.add(_elem253); + Partition _elem254; // required + _elem254 = new Partition(); + _elem254.read(iprot); + struct.partitions.add(_elem254); } iprot.readListEnd(); } @@ -432,12 +428,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionListComposi { org.apache.thrift.protocol.TList _list257 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.partitions = new ArrayList(_list257.size); - Partition _elem258; - for (int _i259 = 0; _i259 < _list257.size; ++_i259) + for (int _i258 = 0; _i258 < _list257.size; ++_i258) { - _elem258 = new Partition(); - _elem258.read(iprot); - struct.partitions.add(_elem258); + Partition _elem259; // required + _elem259 = new Partition(); + _elem259.read(iprot); + struct.partitions.add(_elem259); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpec.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpec.java index b5251af..06cc8fb 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpec.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpec.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class PartitionSpec implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionSpec implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionSpec"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -127,7 +123,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.SHARED_SDPARTITION_SPEC,_Fields.PARTITION_LIST}; + private _Fields optionals[] = {_Fields.SHARED_SDPARTITION_SPEC,_Fields.PARTITION_LIST}; 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); @@ -458,90 +454,90 @@ public boolean equals(PartitionSpec that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_rootPath = true && (isSetRootPath()); - list.add(present_rootPath); + builder.append(present_rootPath); if (present_rootPath) - list.add(rootPath); + builder.append(rootPath); boolean present_sharedSDPartitionSpec = true && (isSetSharedSDPartitionSpec()); - list.add(present_sharedSDPartitionSpec); + builder.append(present_sharedSDPartitionSpec); if (present_sharedSDPartitionSpec) - list.add(sharedSDPartitionSpec); + builder.append(sharedSDPartitionSpec); boolean present_partitionList = true && (isSetPartitionList()); - list.add(present_partitionList); + builder.append(present_partitionList); if (present_partitionList) - list.add(partitionList); + builder.append(partitionList); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionSpec other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionSpec typedOther = (PartitionSpec)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRootPath()).compareTo(other.isSetRootPath()); + lastComparison = Boolean.valueOf(isSetRootPath()).compareTo(typedOther.isSetRootPath()); if (lastComparison != 0) { return lastComparison; } if (isSetRootPath()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rootPath, other.rootPath); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rootPath, typedOther.rootPath); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSharedSDPartitionSpec()).compareTo(other.isSetSharedSDPartitionSpec()); + lastComparison = Boolean.valueOf(isSetSharedSDPartitionSpec()).compareTo(typedOther.isSetSharedSDPartitionSpec()); if (lastComparison != 0) { return lastComparison; } if (isSetSharedSDPartitionSpec()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sharedSDPartitionSpec, other.sharedSDPartitionSpec); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sharedSDPartitionSpec, typedOther.sharedSDPartitionSpec); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionList()).compareTo(other.isSetPartitionList()); + lastComparison = Boolean.valueOf(isSetPartitionList()).compareTo(typedOther.isSetPartitionList()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionList()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionList, other.partitionList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionList, typedOther.partitionList); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java index 5574e0b..73d3067 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionSpecWithSharedSD.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class PartitionSpecWithSharedSD implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionSpecWithSharedSD implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionSpecWithSharedSD"); private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -141,7 +137,7 @@ public PartitionSpecWithSharedSD( */ public PartitionSpecWithSharedSD(PartitionSpecWithSharedSD other) { if (other.isSetPartitions()) { - List __this__partitions = new ArrayList(other.partitions.size()); + List __this__partitions = new ArrayList(); for (PartitionWithoutSD other_element : other.partitions) { __this__partitions.add(new PartitionWithoutSD(other_element)); } @@ -307,45 +303,45 @@ public boolean equals(PartitionSpecWithSharedSD that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitions = true && (isSetPartitions()); - list.add(present_partitions); + builder.append(present_partitions); if (present_partitions) - list.add(partitions); + builder.append(partitions); boolean present_sd = true && (isSetSd()); - list.add(present_sd); + builder.append(present_sd); if (present_sd) - list.add(sd); + builder.append(sd); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionSpecWithSharedSD other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionSpecWithSharedSD typedOther = (PartitionSpecWithSharedSD)other; - lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(typedOther.isSetPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, typedOther.partitions); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSd()).compareTo(other.isSetSd()); + lastComparison = Boolean.valueOf(isSetSd()).compareTo(typedOther.isSetSd()); if (lastComparison != 0) { return lastComparison; } if (isSetSd()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, other.sd); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, typedOther.sd); if (lastComparison != 0) { return lastComparison; } @@ -436,12 +432,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionSpecWithSh { org.apache.thrift.protocol.TList _list244 = iprot.readListBegin(); struct.partitions = new ArrayList(_list244.size); - PartitionWithoutSD _elem245; - for (int _i246 = 0; _i246 < _list244.size; ++_i246) + for (int _i245 = 0; _i245 < _list244.size; ++_i245) { - _elem245 = new PartitionWithoutSD(); - _elem245.read(iprot); - struct.partitions.add(_elem245); + PartitionWithoutSD _elem246; // required + _elem246 = new PartitionWithoutSD(); + _elem246.read(iprot); + struct.partitions.add(_elem246); } iprot.readListEnd(); } @@ -536,12 +532,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionSpecWithSha { org.apache.thrift.protocol.TList _list249 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.partitions = new ArrayList(_list249.size); - PartitionWithoutSD _elem250; - for (int _i251 = 0; _i251 < _list249.size; ++_i251) + for (int _i250 = 0; _i250 < _list249.size; ++_i250) { - _elem250 = new PartitionWithoutSD(); - _elem250.read(iprot); - struct.partitions.add(_elem250); + PartitionWithoutSD _elem251; // required + _elem251 = new PartitionWithoutSD(); + _elem251.read(iprot); + struct.partitions.add(_elem251); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java index e1ec73e..112b723 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionWithoutSD.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class PartitionWithoutSD implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionWithoutSD implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionWithoutSD"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -135,7 +131,7 @@ public String getFieldName() { private static final int __CREATETIME_ISSET_ID = 0; private static final int __LASTACCESSTIME_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PRIVILEGES}; + private _Fields optionals[] = {_Fields.PRIVILEGES}; 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); @@ -184,7 +180,10 @@ public PartitionWithoutSD( public PartitionWithoutSD(PartitionWithoutSD other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (String other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } this.createTime = other.createTime; @@ -193,7 +192,18 @@ public PartitionWithoutSD(PartitionWithoutSD other) { this.relativePath = other.relativePath; } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = other_element_key; + + String __this__parameters_copy_value = other_element_value; + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } if (other.isSetPrivileges()) { @@ -551,105 +561,105 @@ public boolean equals(PartitionWithoutSD that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_lastAccessTime = true; - list.add(present_lastAccessTime); + builder.append(present_lastAccessTime); if (present_lastAccessTime) - list.add(lastAccessTime); + builder.append(lastAccessTime); boolean present_relativePath = true && (isSetRelativePath()); - list.add(present_relativePath); + builder.append(present_relativePath); if (present_relativePath) - list.add(relativePath); + builder.append(relativePath); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionWithoutSD other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionWithoutSD typedOther = (PartitionWithoutSD)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(other.isSetLastAccessTime()); + lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(typedOther.isSetLastAccessTime()); if (lastComparison != 0) { return lastComparison; } if (isSetLastAccessTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, other.lastAccessTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRelativePath()).compareTo(other.isSetRelativePath()); + lastComparison = Boolean.valueOf(isSetRelativePath()).compareTo(typedOther.isSetRelativePath()); if (lastComparison != 0) { return lastComparison; } if (isSetRelativePath()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.relativePath, other.relativePath); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.relativePath, typedOther.relativePath); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -768,11 +778,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionWithoutSD { org.apache.thrift.protocol.TList _list226 = iprot.readListBegin(); struct.values = new ArrayList(_list226.size); - String _elem227; - for (int _i228 = 0; _i228 < _list226.size; ++_i228) + for (int _i227 = 0; _i227 < _list226.size; ++_i227) { - _elem227 = iprot.readString(); - struct.values.add(_elem227); + String _elem228; // required + _elem228 = iprot.readString(); + struct.values.add(_elem228); } iprot.readListEnd(); } @@ -810,13 +820,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionWithoutSD { org.apache.thrift.protocol.TMap _map229 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map229.size); - String _key230; - String _val231; - for (int _i232 = 0; _i232 < _map229.size; ++_i232) + for (int _i230 = 0; _i230 < _map229.size; ++_i230) { - _key230 = iprot.readString(); - _val231 = iprot.readString(); - struct.parameters.put(_key230, _val231); + String _key231; // required + String _val232; // required + _key231 = iprot.readString(); + _val232 = iprot.readString(); + struct.parameters.put(_key231, _val232); } iprot.readMapEnd(); } @@ -968,11 +978,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD s { org.apache.thrift.protocol.TList _list237 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.values = new ArrayList(_list237.size); - String _elem238; - for (int _i239 = 0; _i239 < _list237.size; ++_i239) + for (int _i238 = 0; _i238 < _list237.size; ++_i238) { - _elem238 = iprot.readString(); - struct.values.add(_elem238); + String _elem239; // required + _elem239 = iprot.readString(); + struct.values.add(_elem239); } } struct.setValuesIsSet(true); @@ -993,13 +1003,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionWithoutSD s { org.apache.thrift.protocol.TMap _map240 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map240.size); - String _key241; - String _val242; - for (int _i243 = 0; _i243 < _map240.size; ++_i243) + for (int _i241 = 0; _i241 < _map240.size; ++_i241) { - _key241 = iprot.readString(); - _val242 = iprot.readString(); - struct.parameters.put(_key241, _val242); + String _key242; // required + String _val243; // required + _key242 = iprot.readString(); + _val243 = iprot.readString(); + struct.parameters.put(_key242, _val243); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprRequest.java index 6149c31..c6fa8a2 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class PartitionsByExprRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionsByExprRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionsByExprRequest"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -129,7 +125,7 @@ public String getFieldName() { // isset id assignments private static final int __MAXPARTS_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.DEFAULT_PARTITION_NAME,_Fields.MAX_PARTS}; + private _Fields optionals[] = {_Fields.DEFAULT_PARTITION_NAME,_Fields.MAX_PARTS}; 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); @@ -160,7 +156,7 @@ public PartitionsByExprRequest( this(); this.dbName = dbName; this.tblName = tblName; - this.expr = org.apache.thrift.TBaseHelper.copyBinary(expr); + this.expr = expr; } /** @@ -176,6 +172,7 @@ public PartitionsByExprRequest(PartitionsByExprRequest other) { } if (other.isSetExpr()) { this.expr = org.apache.thrift.TBaseHelper.copyBinary(other.expr); +; } if (other.isSetDefaultPartitionName()) { this.defaultPartitionName = other.defaultPartitionName; @@ -249,15 +246,15 @@ public void setTblNameIsSet(boolean value) { } public ByteBuffer bufferForExpr() { - return org.apache.thrift.TBaseHelper.copyBinary(expr); + return expr; } public void setExpr(byte[] expr) { - this.expr = expr == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(expr, expr.length)); + setExpr(expr == null ? (ByteBuffer)null : ByteBuffer.wrap(expr)); } public void setExpr(ByteBuffer expr) { - this.expr = org.apache.thrift.TBaseHelper.copyBinary(expr); + this.expr = expr; } public void unsetExpr() { @@ -470,90 +467,90 @@ public boolean equals(PartitionsByExprRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); + builder.append(present_tblName); if (present_tblName) - list.add(tblName); + builder.append(tblName); boolean present_expr = true && (isSetExpr()); - list.add(present_expr); + builder.append(present_expr); if (present_expr) - list.add(expr); + builder.append(expr); boolean present_defaultPartitionName = true && (isSetDefaultPartitionName()); - list.add(present_defaultPartitionName); + builder.append(present_defaultPartitionName); if (present_defaultPartitionName) - list.add(defaultPartitionName); + builder.append(defaultPartitionName); boolean present_maxParts = true && (isSetMaxParts()); - list.add(present_maxParts); + builder.append(present_maxParts); if (present_maxParts) - list.add(maxParts); + builder.append(maxParts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionsByExprRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionsByExprRequest typedOther = (PartitionsByExprRequest)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(typedOther.isSetTblName()); if (lastComparison != 0) { return lastComparison; } if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, typedOther.tblName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetExpr()).compareTo(other.isSetExpr()); + lastComparison = Boolean.valueOf(isSetExpr()).compareTo(typedOther.isSetExpr()); if (lastComparison != 0) { return lastComparison; } if (isSetExpr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expr, other.expr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expr, typedOther.expr); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDefaultPartitionName()).compareTo(other.isSetDefaultPartitionName()); + lastComparison = Boolean.valueOf(isSetDefaultPartitionName()).compareTo(typedOther.isSetDefaultPartitionName()); if (lastComparison != 0) { return lastComparison; } if (isSetDefaultPartitionName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultPartitionName, other.defaultPartitionName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultPartitionName, typedOther.defaultPartitionName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxParts()).compareTo(other.isSetMaxParts()); + lastComparison = Boolean.valueOf(isSetMaxParts()).compareTo(typedOther.isSetMaxParts()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxParts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxParts, other.maxParts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxParts, typedOther.maxParts); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java index 740f7bd..b459058 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class PartitionsByExprResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionsByExprResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionsByExprResult"); private static final org.apache.thrift.protocol.TField PARTITIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitions", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -145,7 +141,7 @@ public PartitionsByExprResult( public PartitionsByExprResult(PartitionsByExprResult other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetPartitions()) { - List __this__partitions = new ArrayList(other.partitions.size()); + List __this__partitions = new ArrayList(); for (Partition other_element : other.partitions) { __this__partitions.add(new Partition(other_element)); } @@ -309,45 +305,45 @@ public boolean equals(PartitionsByExprResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partitions = true && (isSetPartitions()); - list.add(present_partitions); + builder.append(present_partitions); if (present_partitions) - list.add(partitions); + builder.append(partitions); boolean present_hasUnknownPartitions = true; - list.add(present_hasUnknownPartitions); + builder.append(present_hasUnknownPartitions); if (present_hasUnknownPartitions) - list.add(hasUnknownPartitions); + builder.append(hasUnknownPartitions); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionsByExprResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionsByExprResult typedOther = (PartitionsByExprResult)other; - lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(other.isSetPartitions()); + lastComparison = Boolean.valueOf(isSetPartitions()).compareTo(typedOther.isSetPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, other.partitions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitions, typedOther.partitions); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHasUnknownPartitions()).compareTo(other.isSetHasUnknownPartitions()); + lastComparison = Boolean.valueOf(isSetHasUnknownPartitions()).compareTo(typedOther.isSetHasUnknownPartitions()); if (lastComparison != 0) { return lastComparison; } if (isSetHasUnknownPartitions()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasUnknownPartitions, other.hasUnknownPartitions); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasUnknownPartitions, typedOther.hasUnknownPartitions); if (lastComparison != 0) { return lastComparison; } @@ -441,12 +437,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsByExprRes { org.apache.thrift.protocol.TList _list322 = iprot.readListBegin(); struct.partitions = new ArrayList(_list322.size); - Partition _elem323; - for (int _i324 = 0; _i324 < _list322.size; ++_i324) + for (int _i323 = 0; _i323 < _list322.size; ++_i323) { - _elem323 = new Partition(); - _elem323.read(iprot); - struct.partitions.add(_elem323); + Partition _elem324; // required + _elem324 = new Partition(); + _elem324.read(iprot); + struct.partitions.add(_elem324); } iprot.readListEnd(); } @@ -524,12 +520,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprResu { org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.partitions = new ArrayList(_list327.size); - Partition _elem328; - for (int _i329 = 0; _i329 < _list327.size; ++_i329) + for (int _i328 = 0; _i328 < _list327.size; ++_i328) { - _elem328 = new Partition(); - _elem328.read(iprot); - struct.partitions.add(_elem328); + Partition _elem329; // required + _elem329 = new Partition(); + _elem329.read(iprot); + struct.partitions.add(_elem329); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java index 5d1ee87..f515bc4 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class PartitionsStatsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionsStatsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionsStatsRequest"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -166,11 +162,17 @@ public PartitionsStatsRequest(PartitionsStatsRequest other) { this.tblName = other.tblName; } if (other.isSetColNames()) { - List __this__colNames = new ArrayList(other.colNames); + List __this__colNames = new ArrayList(); + for (String other_element : other.colNames) { + __this__colNames.add(other_element); + } this.colNames = __this__colNames; } if (other.isSetPartNames()) { - List __this__partNames = new ArrayList(other.partNames); + List __this__partNames = new ArrayList(); + for (String other_element : other.partNames) { + __this__partNames.add(other_element); + } this.partNames = __this__partNames; } } @@ -437,75 +439,75 @@ public boolean equals(PartitionsStatsRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); + builder.append(present_tblName); if (present_tblName) - list.add(tblName); + builder.append(tblName); boolean present_colNames = true && (isSetColNames()); - list.add(present_colNames); + builder.append(present_colNames); if (present_colNames) - list.add(colNames); + builder.append(colNames); boolean present_partNames = true && (isSetPartNames()); - list.add(present_partNames); + builder.append(present_partNames); if (present_partNames) - list.add(partNames); + builder.append(partNames); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionsStatsRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionsStatsRequest typedOther = (PartitionsStatsRequest)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(typedOther.isSetTblName()); if (lastComparison != 0) { return lastComparison; } if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, typedOther.tblName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColNames()).compareTo(other.isSetColNames()); + lastComparison = Boolean.valueOf(isSetColNames()).compareTo(typedOther.isSetColNames()); if (lastComparison != 0) { return lastComparison; } if (isSetColNames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colNames, other.colNames); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colNames, typedOther.colNames); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartNames()).compareTo(other.isSetPartNames()); + lastComparison = Boolean.valueOf(isSetPartNames()).compareTo(typedOther.isSetPartNames()); if (lastComparison != 0) { return lastComparison; } if (isSetPartNames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partNames, other.partNames); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partNames, typedOther.partNames); if (lastComparison != 0) { return lastComparison; } @@ -641,11 +643,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsRequ { org.apache.thrift.protocol.TList _list364 = iprot.readListBegin(); struct.colNames = new ArrayList(_list364.size); - String _elem365; - for (int _i366 = 0; _i366 < _list364.size; ++_i366) + for (int _i365 = 0; _i365 < _list364.size; ++_i365) { - _elem365 = iprot.readString(); - struct.colNames.add(_elem365); + String _elem366; // required + _elem366 = iprot.readString(); + struct.colNames.add(_elem366); } iprot.readListEnd(); } @@ -659,11 +661,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsRequ { org.apache.thrift.protocol.TList _list367 = iprot.readListBegin(); struct.partNames = new ArrayList(_list367.size); - String _elem368; - for (int _i369 = 0; _i369 < _list367.size; ++_i369) + for (int _i368 = 0; _i368 < _list367.size; ++_i368) { - _elem368 = iprot.readString(); - struct.partNames.add(_elem368); + String _elem369; // required + _elem369 = iprot.readString(); + struct.partNames.add(_elem369); } iprot.readListEnd(); } @@ -764,22 +766,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsReque { org.apache.thrift.protocol.TList _list374 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.colNames = new ArrayList(_list374.size); - String _elem375; - for (int _i376 = 0; _i376 < _list374.size; ++_i376) + for (int _i375 = 0; _i375 < _list374.size; ++_i375) { - _elem375 = iprot.readString(); - struct.colNames.add(_elem375); + String _elem376; // required + _elem376 = iprot.readString(); + struct.colNames.add(_elem376); } } struct.setColNamesIsSet(true); { org.apache.thrift.protocol.TList _list377 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.partNames = new ArrayList(_list377.size); - String _elem378; - for (int _i379 = 0; _i379 < _list377.size; ++_i379) + for (int _i378 = 0; _i378 < _list377.size; ++_i378) { - _elem378 = iprot.readString(); - struct.partNames.add(_elem378); + String _elem379; // required + _elem379 = iprot.readString(); + struct.partNames.add(_elem379); } } struct.setPartNamesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java index da33014..bf0eb38 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class PartitionsStatsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PartitionsStatsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PartitionsStatsResult"); private static final org.apache.thrift.protocol.TField PART_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("partStats", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -134,7 +130,7 @@ public PartitionsStatsResult( */ public PartitionsStatsResult(PartitionsStatsResult other) { if (other.isSetPartStats()) { - Map> __this__partStats = new HashMap>(other.partStats.size()); + Map> __this__partStats = new HashMap>(); for (Map.Entry> other_element : other.partStats.entrySet()) { String other_element_key = other_element.getKey(); @@ -142,7 +138,7 @@ public PartitionsStatsResult(PartitionsStatsResult other) { String __this__partStats_copy_key = other_element_key; - List __this__partStats_copy_value = new ArrayList(other_element_value.size()); + List __this__partStats_copy_value = new ArrayList(); for (ColumnStatisticsObj other_element_value_element : other_element_value) { __this__partStats_copy_value.add(new ColumnStatisticsObj(other_element_value_element)); } @@ -258,30 +254,30 @@ public boolean equals(PartitionsStatsResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_partStats = true && (isSetPartStats()); - list.add(present_partStats); + builder.append(present_partStats); if (present_partStats) - list.add(partStats); + builder.append(partStats); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PartitionsStatsResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PartitionsStatsResult typedOther = (PartitionsStatsResult)other; - lastComparison = Boolean.valueOf(isSetPartStats()).compareTo(other.isSetPartStats()); + lastComparison = Boolean.valueOf(isSetPartStats()).compareTo(typedOther.isSetPartStats()); if (lastComparison != 0) { return lastComparison; } if (isSetPartStats()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partStats, other.partStats); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partStats, typedOther.partStats); if (lastComparison != 0) { return lastComparison; } @@ -365,24 +361,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsResu { org.apache.thrift.protocol.TMap _map338 = iprot.readMapBegin(); struct.partStats = new HashMap>(2*_map338.size); - String _key339; - List _val340; - for (int _i341 = 0; _i341 < _map338.size; ++_i341) + for (int _i339 = 0; _i339 < _map338.size; ++_i339) { - _key339 = iprot.readString(); + String _key340; // required + List _val341; // required + _key340 = iprot.readString(); { org.apache.thrift.protocol.TList _list342 = iprot.readListBegin(); - _val340 = new ArrayList(_list342.size); - ColumnStatisticsObj _elem343; - for (int _i344 = 0; _i344 < _list342.size; ++_i344) + _val341 = new ArrayList(_list342.size); + for (int _i343 = 0; _i343 < _list342.size; ++_i343) { - _elem343 = new ColumnStatisticsObj(); - _elem343.read(iprot); - _val340.add(_elem343); + ColumnStatisticsObj _elem344; // required + _elem344 = new ColumnStatisticsObj(); + _elem344.read(iprot); + _val341.add(_elem344); } iprot.readListEnd(); } - struct.partStats.put(_key339, _val340); + struct.partStats.put(_key340, _val341); } iprot.readMapEnd(); } @@ -463,23 +459,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResul { org.apache.thrift.protocol.TMap _map349 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.partStats = new HashMap>(2*_map349.size); - String _key350; - List _val351; - for (int _i352 = 0; _i352 < _map349.size; ++_i352) + for (int _i350 = 0; _i350 < _map349.size; ++_i350) { - _key350 = iprot.readString(); + String _key351; // required + List _val352; // required + _key351 = iprot.readString(); { org.apache.thrift.protocol.TList _list353 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val351 = new ArrayList(_list353.size); - ColumnStatisticsObj _elem354; - for (int _i355 = 0; _i355 < _list353.size; ++_i355) + _val352 = new ArrayList(_list353.size); + for (int _i354 = 0; _i354 < _list353.size; ++_i354) { - _elem354 = new ColumnStatisticsObj(); - _elem354.read(iprot); - _val351.add(_elem354); + ColumnStatisticsObj _elem355; // required + _elem355 = new ColumnStatisticsObj(); + _elem355.read(iprot); + _val352.add(_elem355); } } - struct.partStats.put(_key350, _val351); + struct.partStats.put(_key351, _val352); } } struct.setPartStatsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java index 8f29f50..eea86e5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class PrincipalPrivilegeSet implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PrincipalPrivilegeSet implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PrincipalPrivilegeSet"); private static final org.apache.thrift.protocol.TField USER_PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("userPrivileges", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -158,7 +154,7 @@ public PrincipalPrivilegeSet( */ public PrincipalPrivilegeSet(PrincipalPrivilegeSet other) { if (other.isSetUserPrivileges()) { - Map> __this__userPrivileges = new HashMap>(other.userPrivileges.size()); + Map> __this__userPrivileges = new HashMap>(); for (Map.Entry> other_element : other.userPrivileges.entrySet()) { String other_element_key = other_element.getKey(); @@ -166,7 +162,7 @@ public PrincipalPrivilegeSet(PrincipalPrivilegeSet other) { String __this__userPrivileges_copy_key = other_element_key; - List __this__userPrivileges_copy_value = new ArrayList(other_element_value.size()); + List __this__userPrivileges_copy_value = new ArrayList(); for (PrivilegeGrantInfo other_element_value_element : other_element_value) { __this__userPrivileges_copy_value.add(new PrivilegeGrantInfo(other_element_value_element)); } @@ -176,7 +172,7 @@ public PrincipalPrivilegeSet(PrincipalPrivilegeSet other) { this.userPrivileges = __this__userPrivileges; } if (other.isSetGroupPrivileges()) { - Map> __this__groupPrivileges = new HashMap>(other.groupPrivileges.size()); + Map> __this__groupPrivileges = new HashMap>(); for (Map.Entry> other_element : other.groupPrivileges.entrySet()) { String other_element_key = other_element.getKey(); @@ -184,7 +180,7 @@ public PrincipalPrivilegeSet(PrincipalPrivilegeSet other) { String __this__groupPrivileges_copy_key = other_element_key; - List __this__groupPrivileges_copy_value = new ArrayList(other_element_value.size()); + List __this__groupPrivileges_copy_value = new ArrayList(); for (PrivilegeGrantInfo other_element_value_element : other_element_value) { __this__groupPrivileges_copy_value.add(new PrivilegeGrantInfo(other_element_value_element)); } @@ -194,7 +190,7 @@ public PrincipalPrivilegeSet(PrincipalPrivilegeSet other) { this.groupPrivileges = __this__groupPrivileges; } if (other.isSetRolePrivileges()) { - Map> __this__rolePrivileges = new HashMap>(other.rolePrivileges.size()); + Map> __this__rolePrivileges = new HashMap>(); for (Map.Entry> other_element : other.rolePrivileges.entrySet()) { String other_element_key = other_element.getKey(); @@ -202,7 +198,7 @@ public PrincipalPrivilegeSet(PrincipalPrivilegeSet other) { String __this__rolePrivileges_copy_key = other_element_key; - List __this__rolePrivileges_copy_value = new ArrayList(other_element_value.size()); + List __this__rolePrivileges_copy_value = new ArrayList(); for (PrivilegeGrantInfo other_element_value_element : other_element_value) { __this__rolePrivileges_copy_value.add(new PrivilegeGrantInfo(other_element_value_element)); } @@ -432,60 +428,60 @@ public boolean equals(PrincipalPrivilegeSet that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_userPrivileges = true && (isSetUserPrivileges()); - list.add(present_userPrivileges); + builder.append(present_userPrivileges); if (present_userPrivileges) - list.add(userPrivileges); + builder.append(userPrivileges); boolean present_groupPrivileges = true && (isSetGroupPrivileges()); - list.add(present_groupPrivileges); + builder.append(present_groupPrivileges); if (present_groupPrivileges) - list.add(groupPrivileges); + builder.append(groupPrivileges); boolean present_rolePrivileges = true && (isSetRolePrivileges()); - list.add(present_rolePrivileges); + builder.append(present_rolePrivileges); if (present_rolePrivileges) - list.add(rolePrivileges); + builder.append(rolePrivileges); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PrincipalPrivilegeSet other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PrincipalPrivilegeSet typedOther = (PrincipalPrivilegeSet)other; - lastComparison = Boolean.valueOf(isSetUserPrivileges()).compareTo(other.isSetUserPrivileges()); + lastComparison = Boolean.valueOf(isSetUserPrivileges()).compareTo(typedOther.isSetUserPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetUserPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userPrivileges, other.userPrivileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userPrivileges, typedOther.userPrivileges); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGroupPrivileges()).compareTo(other.isSetGroupPrivileges()); + lastComparison = Boolean.valueOf(isSetGroupPrivileges()).compareTo(typedOther.isSetGroupPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetGroupPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupPrivileges, other.groupPrivileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupPrivileges, typedOther.groupPrivileges); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRolePrivileges()).compareTo(other.isSetRolePrivileges()); + lastComparison = Boolean.valueOf(isSetRolePrivileges()).compareTo(typedOther.isSetRolePrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetRolePrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rolePrivileges, other.rolePrivileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rolePrivileges, typedOther.rolePrivileges); if (lastComparison != 0) { return lastComparison; } @@ -581,24 +577,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrincipalPrivilegeS { org.apache.thrift.protocol.TMap _map24 = iprot.readMapBegin(); struct.userPrivileges = new HashMap>(2*_map24.size); - String _key25; - List _val26; - for (int _i27 = 0; _i27 < _map24.size; ++_i27) + for (int _i25 = 0; _i25 < _map24.size; ++_i25) { - _key25 = iprot.readString(); + String _key26; // required + List _val27; // required + _key26 = iprot.readString(); { org.apache.thrift.protocol.TList _list28 = iprot.readListBegin(); - _val26 = new ArrayList(_list28.size); - PrivilegeGrantInfo _elem29; - for (int _i30 = 0; _i30 < _list28.size; ++_i30) + _val27 = new ArrayList(_list28.size); + for (int _i29 = 0; _i29 < _list28.size; ++_i29) { - _elem29 = new PrivilegeGrantInfo(); - _elem29.read(iprot); - _val26.add(_elem29); + PrivilegeGrantInfo _elem30; // required + _elem30 = new PrivilegeGrantInfo(); + _elem30.read(iprot); + _val27.add(_elem30); } iprot.readListEnd(); } - struct.userPrivileges.put(_key25, _val26); + struct.userPrivileges.put(_key26, _val27); } iprot.readMapEnd(); } @@ -612,24 +608,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrincipalPrivilegeS { org.apache.thrift.protocol.TMap _map31 = iprot.readMapBegin(); struct.groupPrivileges = new HashMap>(2*_map31.size); - String _key32; - List _val33; - for (int _i34 = 0; _i34 < _map31.size; ++_i34) + for (int _i32 = 0; _i32 < _map31.size; ++_i32) { - _key32 = iprot.readString(); + String _key33; // required + List _val34; // required + _key33 = iprot.readString(); { org.apache.thrift.protocol.TList _list35 = iprot.readListBegin(); - _val33 = new ArrayList(_list35.size); - PrivilegeGrantInfo _elem36; - for (int _i37 = 0; _i37 < _list35.size; ++_i37) + _val34 = new ArrayList(_list35.size); + for (int _i36 = 0; _i36 < _list35.size; ++_i36) { - _elem36 = new PrivilegeGrantInfo(); - _elem36.read(iprot); - _val33.add(_elem36); + PrivilegeGrantInfo _elem37; // required + _elem37 = new PrivilegeGrantInfo(); + _elem37.read(iprot); + _val34.add(_elem37); } iprot.readListEnd(); } - struct.groupPrivileges.put(_key32, _val33); + struct.groupPrivileges.put(_key33, _val34); } iprot.readMapEnd(); } @@ -643,24 +639,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrincipalPrivilegeS { org.apache.thrift.protocol.TMap _map38 = iprot.readMapBegin(); struct.rolePrivileges = new HashMap>(2*_map38.size); - String _key39; - List _val40; - for (int _i41 = 0; _i41 < _map38.size; ++_i41) + for (int _i39 = 0; _i39 < _map38.size; ++_i39) { - _key39 = iprot.readString(); + String _key40; // required + List _val41; // required + _key40 = iprot.readString(); { org.apache.thrift.protocol.TList _list42 = iprot.readListBegin(); - _val40 = new ArrayList(_list42.size); - PrivilegeGrantInfo _elem43; - for (int _i44 = 0; _i44 < _list42.size; ++_i44) + _val41 = new ArrayList(_list42.size); + for (int _i43 = 0; _i43 < _list42.size; ++_i43) { - _elem43 = new PrivilegeGrantInfo(); - _elem43.read(iprot); - _val40.add(_elem43); + PrivilegeGrantInfo _elem44; // required + _elem44 = new PrivilegeGrantInfo(); + _elem44.read(iprot); + _val41.add(_elem44); } iprot.readListEnd(); } - struct.rolePrivileges.put(_key39, _val40); + struct.rolePrivileges.put(_key40, _val41); } iprot.readMapEnd(); } @@ -828,23 +824,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrincipalPrivilegeSe { org.apache.thrift.protocol.TMap _map57 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.userPrivileges = new HashMap>(2*_map57.size); - String _key58; - List _val59; - for (int _i60 = 0; _i60 < _map57.size; ++_i60) + for (int _i58 = 0; _i58 < _map57.size; ++_i58) { - _key58 = iprot.readString(); + String _key59; // required + List _val60; // required + _key59 = iprot.readString(); { org.apache.thrift.protocol.TList _list61 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val59 = new ArrayList(_list61.size); - PrivilegeGrantInfo _elem62; - for (int _i63 = 0; _i63 < _list61.size; ++_i63) + _val60 = new ArrayList(_list61.size); + for (int _i62 = 0; _i62 < _list61.size; ++_i62) { - _elem62 = new PrivilegeGrantInfo(); - _elem62.read(iprot); - _val59.add(_elem62); + PrivilegeGrantInfo _elem63; // required + _elem63 = new PrivilegeGrantInfo(); + _elem63.read(iprot); + _val60.add(_elem63); } } - struct.userPrivileges.put(_key58, _val59); + struct.userPrivileges.put(_key59, _val60); } } struct.setUserPrivilegesIsSet(true); @@ -853,23 +849,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrincipalPrivilegeSe { org.apache.thrift.protocol.TMap _map64 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.groupPrivileges = new HashMap>(2*_map64.size); - String _key65; - List _val66; - for (int _i67 = 0; _i67 < _map64.size; ++_i67) + for (int _i65 = 0; _i65 < _map64.size; ++_i65) { - _key65 = iprot.readString(); + String _key66; // required + List _val67; // required + _key66 = iprot.readString(); { org.apache.thrift.protocol.TList _list68 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val66 = new ArrayList(_list68.size); - PrivilegeGrantInfo _elem69; - for (int _i70 = 0; _i70 < _list68.size; ++_i70) + _val67 = new ArrayList(_list68.size); + for (int _i69 = 0; _i69 < _list68.size; ++_i69) { - _elem69 = new PrivilegeGrantInfo(); - _elem69.read(iprot); - _val66.add(_elem69); + PrivilegeGrantInfo _elem70; // required + _elem70 = new PrivilegeGrantInfo(); + _elem70.read(iprot); + _val67.add(_elem70); } } - struct.groupPrivileges.put(_key65, _val66); + struct.groupPrivileges.put(_key66, _val67); } } struct.setGroupPrivilegesIsSet(true); @@ -878,23 +874,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrincipalPrivilegeSe { org.apache.thrift.protocol.TMap _map71 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.rolePrivileges = new HashMap>(2*_map71.size); - String _key72; - List _val73; - for (int _i74 = 0; _i74 < _map71.size; ++_i74) + for (int _i72 = 0; _i72 < _map71.size; ++_i72) { - _key72 = iprot.readString(); + String _key73; // required + List _val74; // required + _key73 = iprot.readString(); { org.apache.thrift.protocol.TList _list75 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val73 = new ArrayList(_list75.size); - PrivilegeGrantInfo _elem76; - for (int _i77 = 0; _i77 < _list75.size; ++_i77) + _val74 = new ArrayList(_list75.size); + for (int _i76 = 0; _i76 < _list75.size; ++_i76) { - _elem76 = new PrivilegeGrantInfo(); - _elem76.read(iprot); - _val73.add(_elem76); + PrivilegeGrantInfo _elem77; // required + _elem77 = new PrivilegeGrantInfo(); + _elem77.read(iprot); + _val74.add(_elem77); } } - struct.rolePrivileges.put(_key72, _val73); + struct.rolePrivileges.put(_key73, _val74); } } struct.setRolePrivilegesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalType.java index 65e937e..d405d4a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java index 2fd819c..a4687ad 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class PrivilegeBag implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PrivilegeBag implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PrivilegeBag"); private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public PrivilegeBag( */ public PrivilegeBag(PrivilegeBag other) { if (other.isSetPrivileges()) { - List __this__privileges = new ArrayList(other.privileges.size()); + List __this__privileges = new ArrayList(); for (HiveObjectPrivilege other_element : other.privileges) { __this__privileges.add(new HiveObjectPrivilege(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(PrivilegeBag that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PrivilegeBag other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PrivilegeBag typedOther = (PrivilegeBag)other; - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -352,12 +348,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrivilegeBag struct { org.apache.thrift.protocol.TList _list16 = iprot.readListBegin(); struct.privileges = new ArrayList(_list16.size); - HiveObjectPrivilege _elem17; - for (int _i18 = 0; _i18 < _list16.size; ++_i18) + for (int _i17 = 0; _i17 < _list16.size; ++_i17) { - _elem17 = new HiveObjectPrivilege(); - _elem17.read(iprot); - struct.privileges.add(_elem17); + HiveObjectPrivilege _elem18; // required + _elem18 = new HiveObjectPrivilege(); + _elem18.read(iprot); + struct.privileges.add(_elem18); } iprot.readListEnd(); } @@ -432,12 +428,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrivilegeBag struct) { org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.privileges = new ArrayList(_list21.size); - HiveObjectPrivilege _elem22; - for (int _i23 = 0; _i23 < _list21.size; ++_i23) + for (int _i22 = 0; _i22 < _list21.size; ++_i22) { - _elem22 = new HiveObjectPrivilege(); - _elem22.read(iprot); - struct.privileges.add(_elem22); + HiveObjectPrivilege _elem23; // required + _elem23 = new HiveObjectPrivilege(); + _elem23.read(iprot); + struct.privileges.add(_elem23); } } struct.setPrivilegesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java index c04e196..5869457 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeGrantInfo.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class PrivilegeGrantInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class PrivilegeGrantInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PrivilegeGrantInfo"); private static final org.apache.thrift.protocol.TField PRIVILEGE_FIELD_DESC = new org.apache.thrift.protocol.TField("privilege", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -475,90 +471,90 @@ public boolean equals(PrivilegeGrantInfo that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_privilege = true && (isSetPrivilege()); - list.add(present_privilege); + builder.append(present_privilege); if (present_privilege) - list.add(privilege); + builder.append(privilege); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_grantor = true && (isSetGrantor()); - list.add(present_grantor); + builder.append(present_grantor); if (present_grantor) - list.add(grantor); + builder.append(grantor); boolean present_grantorType = true && (isSetGrantorType()); - list.add(present_grantorType); + builder.append(present_grantorType); if (present_grantorType) - list.add(grantorType.getValue()); + builder.append(grantorType.getValue()); boolean present_grantOption = true; - list.add(present_grantOption); + builder.append(present_grantOption); if (present_grantOption) - list.add(grantOption); + builder.append(grantOption); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(PrivilegeGrantInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + PrivilegeGrantInfo typedOther = (PrivilegeGrantInfo)other; - lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(other.isSetPrivilege()); + lastComparison = Boolean.valueOf(isSetPrivilege()).compareTo(typedOther.isSetPrivilege()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivilege()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, other.privilege); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privilege, typedOther.privilege); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantor()).compareTo(other.isSetGrantor()); + lastComparison = Boolean.valueOf(isSetGrantor()).compareTo(typedOther.isSetGrantor()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantor()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, other.grantor); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, typedOther.grantor); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantorType()).compareTo(other.isSetGrantorType()); + lastComparison = Boolean.valueOf(isSetGrantorType()).compareTo(typedOther.isSetGrantorType()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantorType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorType, other.grantorType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorType, typedOther.grantorType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(other.isSetGrantOption()); + lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(typedOther.isSetGrantOption()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantOption()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, other.grantOption); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, typedOther.grantOption); if (lastComparison != 0) { return lastComparison; } @@ -685,7 +681,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrivilegeGrantInfo break; case 4: // GRANTOR_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.grantorType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -801,7 +797,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrivilegeGrantInfo s struct.setGrantorIsSet(true); } if (incoming.get(3)) { - struct.grantorType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorTypeIsSet(true); } if (incoming.get(4)) { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java index 9207934..1da4f0c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,11 +28,9 @@ 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"}) public class RequestPartsSpec extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RequestPartsSpec"); private static final org.apache.thrift.protocol.TField NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("names", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -170,11 +167,11 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip { org.apache.thrift.protocol.TList _list404 = iprot.readListBegin(); names = new ArrayList(_list404.size); - String _elem405; - for (int _i406 = 0; _i406 < _list404.size; ++_i406) + for (int _i405 = 0; _i405 < _list404.size; ++_i405) { - _elem405 = iprot.readString(); - names.add(_elem405); + String _elem406; // required + _elem406 = iprot.readString(); + names.add(_elem406); } iprot.readListEnd(); } @@ -189,12 +186,12 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip { org.apache.thrift.protocol.TList _list407 = iprot.readListBegin(); exprs = new ArrayList(_list407.size); - DropPartitionsExpr _elem408; - for (int _i409 = 0; _i409 < _list407.size; ++_i409) + for (int _i408 = 0; _i408 < _list407.size; ++_i408) { - _elem408 = new DropPartitionsExpr(); - _elem408.read(iprot); - exprs.add(_elem408); + DropPartitionsExpr _elem409; // required + _elem409 = new DropPartitionsExpr(); + _elem409.read(iprot); + exprs.add(_elem409); } iprot.readListEnd(); } @@ -207,7 +204,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -252,11 +248,11 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot { org.apache.thrift.protocol.TList _list412 = iprot.readListBegin(); names = new ArrayList(_list412.size); - String _elem413; - for (int _i414 = 0; _i414 < _list412.size; ++_i414) + for (int _i413 = 0; _i413 < _list412.size; ++_i413) { - _elem413 = iprot.readString(); - names.add(_elem413); + String _elem414; // required + _elem414 = iprot.readString(); + names.add(_elem414); } iprot.readListEnd(); } @@ -266,12 +262,12 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot { org.apache.thrift.protocol.TList _list415 = iprot.readListBegin(); exprs = new ArrayList(_list415.size); - DropPartitionsExpr _elem416; - for (int _i417 = 0; _i417 < _list415.size; ++_i417) + for (int _i416 = 0; _i416 < _list415.size; ++_i416) { - _elem416 = new DropPartitionsExpr(); - _elem416.read(iprot); - exprs.add(_elem416); + DropPartitionsExpr _elem417; // required + _elem417 = new DropPartitionsExpr(); + _elem417.read(iprot); + exprs.add(_elem417); } iprot.readListEnd(); } @@ -403,19 +399,19 @@ public int compareTo(RequestPartsSpec other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceType.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceType.java index 861a6db..b8cb4f1 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceType.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceUri.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceUri.java index 3b3df25..c230eab 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceUri.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ResourceUri.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class ResourceUri implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ResourceUri implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ResourceUri"); private static final org.apache.thrift.protocol.TField RESOURCE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("resourceType", org.apache.thrift.protocol.TType.I32, (short)1); @@ -299,45 +295,45 @@ public boolean equals(ResourceUri that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_resourceType = true && (isSetResourceType()); - list.add(present_resourceType); + builder.append(present_resourceType); if (present_resourceType) - list.add(resourceType.getValue()); + builder.append(resourceType.getValue()); boolean present_uri = true && (isSetUri()); - list.add(present_uri); + builder.append(present_uri); if (present_uri) - list.add(uri); + builder.append(uri); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ResourceUri other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ResourceUri typedOther = (ResourceUri)other; - lastComparison = Boolean.valueOf(isSetResourceType()).compareTo(other.isSetResourceType()); + lastComparison = Boolean.valueOf(isSetResourceType()).compareTo(typedOther.isSetResourceType()); if (lastComparison != 0) { return lastComparison; } if (isSetResourceType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resourceType, other.resourceType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.resourceType, typedOther.resourceType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUri()).compareTo(other.isSetUri()); + lastComparison = Boolean.valueOf(isSetUri()).compareTo(typedOther.isSetUri()); if (lastComparison != 0) { return lastComparison; } if (isSetUri()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uri, other.uri); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uri, typedOther.uri); if (lastComparison != 0) { return lastComparison; } @@ -422,7 +418,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ResourceUri struct) switch (schemeField.id) { case 1: // RESOURCE_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.resourceType = org.apache.hadoop.hive.metastore.api.ResourceType.findByValue(iprot.readI32()); + struct.resourceType = ResourceType.findByValue(iprot.readI32()); struct.setResourceTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -497,7 +493,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ResourceUri struct) TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.resourceType = org.apache.hadoop.hive.metastore.api.ResourceType.findByValue(iprot.readI32()); + struct.resourceType = ResourceType.findByValue(iprot.readI32()); struct.setResourceTypeIsSet(true); } if (incoming.get(1)) { diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java index 5c882d2..35fcf58 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Role implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Role implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Role"); private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -347,60 +343,60 @@ public boolean equals(Role that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_roleName = true && (isSetRoleName()); - list.add(present_roleName); + builder.append(present_roleName); if (present_roleName) - list.add(roleName); + builder.append(roleName); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_ownerName = true && (isSetOwnerName()); - list.add(present_ownerName); + builder.append(present_ownerName); if (present_ownerName) - list.add(ownerName); + builder.append(ownerName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Role other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Role typedOther = (Role)other; - lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName()); + lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName()); if (lastComparison != 0) { return lastComparison; } if (isSetRoleName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(other.isSetOwnerName()); + lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(typedOther.isSetOwnerName()); if (lastComparison != 0) { return lastComparison; } if (isSetOwnerName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, other.ownerName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, typedOther.ownerName); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java index c4beb08..8993268 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class RolePrincipalGrant implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class RolePrincipalGrant implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RolePrincipalGrant"); private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -603,120 +599,120 @@ public boolean equals(RolePrincipalGrant that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_roleName = true && (isSetRoleName()); - list.add(present_roleName); + builder.append(present_roleName); if (present_roleName) - list.add(roleName); + builder.append(roleName); boolean present_principalName = true && (isSetPrincipalName()); - list.add(present_principalName); + builder.append(present_principalName); if (present_principalName) - list.add(principalName); + builder.append(principalName); boolean present_principalType = true && (isSetPrincipalType()); - list.add(present_principalType); + builder.append(present_principalType); if (present_principalType) - list.add(principalType.getValue()); + builder.append(principalType.getValue()); boolean present_grantOption = true; - list.add(present_grantOption); + builder.append(present_grantOption); if (present_grantOption) - list.add(grantOption); + builder.append(grantOption); boolean present_grantTime = true; - list.add(present_grantTime); + builder.append(present_grantTime); if (present_grantTime) - list.add(grantTime); + builder.append(grantTime); boolean present_grantorName = true && (isSetGrantorName()); - list.add(present_grantorName); + builder.append(present_grantorName); if (present_grantorName) - list.add(grantorName); + builder.append(grantorName); boolean present_grantorPrincipalType = true && (isSetGrantorPrincipalType()); - list.add(present_grantorPrincipalType); + builder.append(present_grantorPrincipalType); if (present_grantorPrincipalType) - list.add(grantorPrincipalType.getValue()); + builder.append(grantorPrincipalType.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(RolePrincipalGrant other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + RolePrincipalGrant typedOther = (RolePrincipalGrant)other; - lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName()); + lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName()); if (lastComparison != 0) { return lastComparison; } if (isSetRoleName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(other.isSetPrincipalName()); + lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(typedOther.isSetPrincipalName()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, other.principalName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, typedOther.principalName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(other.isSetPrincipalType()); + lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(typedOther.isSetPrincipalType()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipalType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, other.principalType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, typedOther.principalType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(other.isSetGrantOption()); + lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(typedOther.isSetGrantOption()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantOption()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, other.grantOption); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, typedOther.grantOption); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantTime()).compareTo(other.isSetGrantTime()); + lastComparison = Boolean.valueOf(isSetGrantTime()).compareTo(typedOther.isSetGrantTime()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantTime, other.grantTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantTime, typedOther.grantTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantorName()).compareTo(other.isSetGrantorName()); + lastComparison = Boolean.valueOf(isSetGrantorName()).compareTo(typedOther.isSetGrantorName()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantorName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorName, other.grantorName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorName, typedOther.grantorName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantorPrincipalType()).compareTo(other.isSetGrantorPrincipalType()); + lastComparison = Boolean.valueOf(isSetGrantorPrincipalType()).compareTo(typedOther.isSetGrantorPrincipalType()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantorPrincipalType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipalType, other.grantorPrincipalType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipalType, typedOther.grantorPrincipalType); if (lastComparison != 0) { return lastComparison; } @@ -851,7 +847,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, RolePrincipalGrant break; case 3: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principalType = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipalTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -883,7 +879,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, RolePrincipalGrant break; case 7: // GRANTOR_PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.grantorPrincipalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorPrincipalType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorPrincipalTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1009,7 +1005,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, RolePrincipalGrant s struct.setPrincipalNameIsSet(true); } if (incoming.get(2)) { - struct.principalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principalType = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipalTypeIsSet(true); } if (incoming.get(3)) { @@ -1025,7 +1021,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, RolePrincipalGrant s struct.setGrantorNameIsSet(true); } if (incoming.get(6)) { - struct.grantorPrincipalType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorPrincipalType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorPrincipalTypeIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java index 8772180..d130ba8 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Schema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Schema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Schema"); private static final org.apache.thrift.protocol.TField FIELD_SCHEMAS_FIELD_DESC = new org.apache.thrift.protocol.TField("fieldSchemas", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -143,14 +139,25 @@ public Schema( */ public Schema(Schema other) { if (other.isSetFieldSchemas()) { - List __this__fieldSchemas = new ArrayList(other.fieldSchemas.size()); + List __this__fieldSchemas = new ArrayList(); for (FieldSchema other_element : other.fieldSchemas) { __this__fieldSchemas.add(new FieldSchema(other_element)); } this.fieldSchemas = __this__fieldSchemas; } if (other.isSetProperties()) { - Map __this__properties = new HashMap(other.properties); + Map __this__properties = new HashMap(); + for (Map.Entry other_element : other.properties.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__properties_copy_key = other_element_key; + + String __this__properties_copy_value = other_element_value; + + __this__properties.put(__this__properties_copy_key, __this__properties_copy_value); + } this.properties = __this__properties; } } @@ -321,45 +328,45 @@ public boolean equals(Schema that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_fieldSchemas = true && (isSetFieldSchemas()); - list.add(present_fieldSchemas); + builder.append(present_fieldSchemas); if (present_fieldSchemas) - list.add(fieldSchemas); + builder.append(fieldSchemas); boolean present_properties = true && (isSetProperties()); - list.add(present_properties); + builder.append(present_properties); if (present_properties) - list.add(properties); + builder.append(properties); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Schema other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Schema typedOther = (Schema)other; - lastComparison = Boolean.valueOf(isSetFieldSchemas()).compareTo(other.isSetFieldSchemas()); + lastComparison = Boolean.valueOf(isSetFieldSchemas()).compareTo(typedOther.isSetFieldSchemas()); if (lastComparison != 0) { return lastComparison; } if (isSetFieldSchemas()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fieldSchemas, other.fieldSchemas); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fieldSchemas, typedOther.fieldSchemas); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetProperties()).compareTo(other.isSetProperties()); + lastComparison = Boolean.valueOf(isSetProperties()).compareTo(typedOther.isSetProperties()); if (lastComparison != 0) { return lastComparison; } if (isSetProperties()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, other.properties); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.properties, typedOther.properties); if (lastComparison != 0) { return lastComparison; } @@ -447,12 +454,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Schema struct) thro { org.apache.thrift.protocol.TList _list294 = iprot.readListBegin(); struct.fieldSchemas = new ArrayList(_list294.size); - FieldSchema _elem295; - for (int _i296 = 0; _i296 < _list294.size; ++_i296) + for (int _i295 = 0; _i295 < _list294.size; ++_i295) { - _elem295 = new FieldSchema(); - _elem295.read(iprot); - struct.fieldSchemas.add(_elem295); + FieldSchema _elem296; // required + _elem296 = new FieldSchema(); + _elem296.read(iprot); + struct.fieldSchemas.add(_elem296); } iprot.readListEnd(); } @@ -466,13 +473,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Schema struct) thro { org.apache.thrift.protocol.TMap _map297 = iprot.readMapBegin(); struct.properties = new HashMap(2*_map297.size); - String _key298; - String _val299; - for (int _i300 = 0; _i300 < _map297.size; ++_i300) + for (int _i298 = 0; _i298 < _map297.size; ++_i298) { - _key298 = iprot.readString(); - _val299 = iprot.readString(); - struct.properties.put(_key298, _val299); + String _key299; // required + String _val300; // required + _key299 = iprot.readString(); + _val300 = iprot.readString(); + struct.properties.put(_key299, _val300); } iprot.readMapEnd(); } @@ -573,12 +580,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Schema struct) throw { org.apache.thrift.protocol.TList _list305 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.fieldSchemas = new ArrayList(_list305.size); - FieldSchema _elem306; - for (int _i307 = 0; _i307 < _list305.size; ++_i307) + for (int _i306 = 0; _i306 < _list305.size; ++_i306) { - _elem306 = new FieldSchema(); - _elem306.read(iprot); - struct.fieldSchemas.add(_elem306); + FieldSchema _elem307; // required + _elem307 = new FieldSchema(); + _elem307.read(iprot); + struct.fieldSchemas.add(_elem307); } } struct.setFieldSchemasIsSet(true); @@ -587,13 +594,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Schema struct) throw { org.apache.thrift.protocol.TMap _map308 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.properties = new HashMap(2*_map308.size); - String _key309; - String _val310; - for (int _i311 = 0; _i311 < _map308.size; ++_i311) + for (int _i309 = 0; _i309 < _map308.size; ++_i309) { - _key309 = iprot.readString(); - _val310 = iprot.readString(); - struct.properties.put(_key309, _val310); + String _key310; // required + String _val311; // required + _key310 = iprot.readString(); + _val311 = iprot.readString(); + struct.properties.put(_key310, _val311); } } struct.setPropertiesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java index b30e698..2466d8f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class SerDeInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class SerDeInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SerDeInfo"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -157,7 +153,18 @@ public SerDeInfo(SerDeInfo other) { this.serializationLib = org.apache.hive.common.util.HiveStringUtils.intern(other.serializationLib); } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = org.apache.hive.common.util.HiveStringUtils.intern(other_element_key); + + String __this__parameters_copy_value = org.apache.hive.common.util.HiveStringUtils.intern(other_element_value); + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } } @@ -359,60 +366,60 @@ public boolean equals(SerDeInfo that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_serializationLib = true && (isSetSerializationLib()); - list.add(present_serializationLib); + builder.append(present_serializationLib); if (present_serializationLib) - list.add(serializationLib); + builder.append(serializationLib); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(SerDeInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + SerDeInfo typedOther = (SerDeInfo)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSerializationLib()).compareTo(other.isSetSerializationLib()); + lastComparison = Boolean.valueOf(isSetSerializationLib()).compareTo(typedOther.isSetSerializationLib()); if (lastComparison != 0) { return lastComparison; } if (isSetSerializationLib()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serializationLib, other.serializationLib); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serializationLib, typedOther.serializationLib); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } @@ -524,13 +531,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SerDeInfo struct) t { org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map104.size); - String _key105; - String _val106; - for (int _i107 = 0; _i107 < _map104.size; ++_i107) + for (int _i105 = 0; _i105 < _map104.size; ++_i105) { - _key105 = iprot.readString(); - _val106 = iprot.readString(); - struct.parameters.put(_key105, _val106); + String _key106; // required + String _val107; // required + _key106 = iprot.readString(); + _val107 = iprot.readString(); + struct.parameters.put(_key106, _val107); } iprot.readMapEnd(); } @@ -637,13 +644,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SerDeInfo struct) th { org.apache.thrift.protocol.TMap _map110 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map110.size); - String _key111; - String _val112; - for (int _i113 = 0; _i113 < _map110.size; ++_i113) + for (int _i111 = 0; _i111 < _map110.size; ++_i111) { - _key111 = iprot.readString(); - _val112 = iprot.readString(); - struct.parameters.put(_key111, _val112); + String _key112; // required + String _val113; // required + _key112 = iprot.readString(); + _val113 = iprot.readString(); + struct.parameters.put(_key112, _val113); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java index 7da298c..a7cf0a7 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SetPartitionsStatsRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class SetPartitionsStatsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class SetPartitionsStatsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SetPartitionsStatsRequest"); private static final org.apache.thrift.protocol.TField COL_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("colStats", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public SetPartitionsStatsRequest( */ public SetPartitionsStatsRequest(SetPartitionsStatsRequest other) { if (other.isSetColStats()) { - List __this__colStats = new ArrayList(other.colStats.size()); + List __this__colStats = new ArrayList(); for (ColumnStatistics other_element : other.colStats) { __this__colStats.add(new ColumnStatistics(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(SetPartitionsStatsRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_colStats = true && (isSetColStats()); - list.add(present_colStats); + builder.append(present_colStats); if (present_colStats) - list.add(colStats); + builder.append(colStats); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(SetPartitionsStatsRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + SetPartitionsStatsRequest typedOther = (SetPartitionsStatsRequest)other; - lastComparison = Boolean.valueOf(isSetColStats()).compareTo(other.isSetColStats()); + lastComparison = Boolean.valueOf(isSetColStats()).compareTo(typedOther.isSetColStats()); if (lastComparison != 0) { return lastComparison; } if (isSetColStats()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colStats, other.colStats); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colStats, typedOther.colStats); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SetPartitionsStatsR { org.apache.thrift.protocol.TList _list286 = iprot.readListBegin(); struct.colStats = new ArrayList(_list286.size); - ColumnStatistics _elem287; - for (int _i288 = 0; _i288 < _list286.size; ++_i288) + for (int _i287 = 0; _i287 < _list286.size; ++_i287) { - _elem287 = new ColumnStatistics(); - _elem287.read(iprot); - struct.colStats.add(_elem287); + ColumnStatistics _elem288; // required + _elem288 = new ColumnStatistics(); + _elem288.read(iprot); + struct.colStats.add(_elem288); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SetPartitionsStatsRe { org.apache.thrift.protocol.TList _list291 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.colStats = new ArrayList(_list291.size); - ColumnStatistics _elem292; - for (int _i293 = 0; _i293 < _list291.size; ++_i293) + for (int _i292 = 0; _i292 < _list291.size; ++_i292) { - _elem292 = new ColumnStatistics(); - _elem292.read(iprot); - struct.colStats.add(_elem292); + ColumnStatistics _elem293; // required + _elem293 = new ColumnStatistics(); + _elem293.read(iprot); + struct.colStats.add(_elem293); } } struct.setColStatsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactRequest.java index 7756384..28ad1c9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class ShowCompactRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ShowCompactRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowCompactRequest"); @@ -165,18 +161,18 @@ public boolean equals(ShowCompactRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ShowCompactRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ShowCompactRequest typedOther = (ShowCompactRequest)other; return 0; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java index dd1e857..d642edd 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class ShowCompactResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ShowCompactResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowCompactResponse"); private static final org.apache.thrift.protocol.TField COMPACTS_FIELD_DESC = new org.apache.thrift.protocol.TField("compacts", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public ShowCompactResponse( */ public ShowCompactResponse(ShowCompactResponse other) { if (other.isSetCompacts()) { - List __this__compacts = new ArrayList(other.compacts.size()); + List __this__compacts = new ArrayList(); for (ShowCompactResponseElement other_element : other.compacts) { __this__compacts.add(new ShowCompactResponseElement(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(ShowCompactResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_compacts = true && (isSetCompacts()); - list.add(present_compacts); + builder.append(present_compacts); if (present_compacts) - list.add(compacts); + builder.append(compacts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ShowCompactResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ShowCompactResponse typedOther = (ShowCompactResponse)other; - lastComparison = Boolean.valueOf(isSetCompacts()).compareTo(other.isSetCompacts()); + lastComparison = Boolean.valueOf(isSetCompacts()).compareTo(typedOther.isSetCompacts()); if (lastComparison != 0) { return lastComparison; } if (isSetCompacts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compacts, other.compacts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compacts, typedOther.compacts); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowCompactResponse { org.apache.thrift.protocol.TList _list484 = iprot.readListBegin(); struct.compacts = new ArrayList(_list484.size); - ShowCompactResponseElement _elem485; - for (int _i486 = 0; _i486 < _list484.size; ++_i486) + for (int _i485 = 0; _i485 < _list484.size; ++_i485) { - _elem485 = new ShowCompactResponseElement(); - _elem485.read(iprot); - struct.compacts.add(_elem485); + ShowCompactResponseElement _elem486; // required + _elem486 = new ShowCompactResponseElement(); + _elem486.read(iprot); + struct.compacts.add(_elem486); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse { org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.compacts = new ArrayList(_list489.size); - ShowCompactResponseElement _elem490; - for (int _i491 = 0; _i491 < _list489.size; ++_i491) + for (int _i490 = 0; _i490 < _list489.size; ++_i490) { - _elem490 = new ShowCompactResponseElement(); - _elem490.read(iprot); - struct.compacts.add(_elem490); + ShowCompactResponseElement _elem491; // required + _elem491 = new ShowCompactResponseElement(); + _elem491.read(iprot); + struct.compacts.add(_elem491); } } struct.setCompactsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java index cd7e79e..365a401 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class ShowCompactResponseElement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ShowCompactResponseElement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowCompactResponseElement"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -148,7 +144,7 @@ public String getFieldName() { // isset id assignments private static final int __START_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PARTITIONNAME,_Fields.WORKERID,_Fields.START,_Fields.RUN_AS}; + private _Fields optionals[] = {_Fields.PARTITIONNAME,_Fields.WORKERID,_Fields.START,_Fields.RUN_AS}; 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); @@ -641,135 +637,135 @@ public boolean equals(ShowCompactResponseElement that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tablename = true && (isSetTablename()); - list.add(present_tablename); + builder.append(present_tablename); if (present_tablename) - list.add(tablename); + builder.append(tablename); boolean present_partitionname = true && (isSetPartitionname()); - list.add(present_partitionname); + builder.append(present_partitionname); if (present_partitionname) - list.add(partitionname); + builder.append(partitionname); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type.getValue()); + builder.append(type.getValue()); boolean present_state = true && (isSetState()); - list.add(present_state); + builder.append(present_state); if (present_state) - list.add(state); + builder.append(state); boolean present_workerid = true && (isSetWorkerid()); - list.add(present_workerid); + builder.append(present_workerid); if (present_workerid) - list.add(workerid); + builder.append(workerid); boolean present_start = true && (isSetStart()); - list.add(present_start); + builder.append(present_start); if (present_start) - list.add(start); + builder.append(start); boolean present_runAs = true && (isSetRunAs()); - list.add(present_runAs); + builder.append(present_runAs); if (present_runAs) - list.add(runAs); + builder.append(runAs); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ShowCompactResponseElement other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ShowCompactResponseElement typedOther = (ShowCompactResponseElement)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename()); + lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename()); if (lastComparison != 0) { return lastComparison; } if (isSetTablename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(other.isSetPartitionname()); + lastComparison = Boolean.valueOf(isSetPartitionname()).compareTo(typedOther.isSetPartitionname()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, other.partitionname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionname, typedOther.partitionname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState()); + lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState()); if (lastComparison != 0) { return lastComparison; } if (isSetState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetWorkerid()).compareTo(other.isSetWorkerid()); + lastComparison = Boolean.valueOf(isSetWorkerid()).compareTo(typedOther.isSetWorkerid()); if (lastComparison != 0) { return lastComparison; } if (isSetWorkerid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workerid, other.workerid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.workerid, typedOther.workerid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStart()).compareTo(other.isSetStart()); + lastComparison = Boolean.valueOf(isSetStart()).compareTo(typedOther.isSetStart()); if (lastComparison != 0) { return lastComparison; } if (isSetStart()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, other.start); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start, typedOther.start); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRunAs()).compareTo(other.isSetRunAs()); + lastComparison = Boolean.valueOf(isSetRunAs()).compareTo(typedOther.isSetRunAs()); if (lastComparison != 0) { return lastComparison; } if (isSetRunAs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runAs, other.runAs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runAs, typedOther.runAs); if (lastComparison != 0) { return lastComparison; } @@ -948,7 +944,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowCompactResponse break; case 4: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32()); + struct.type = CompactionType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1101,7 +1097,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponseE struct.setDbnameIsSet(true); struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); - struct.type = org.apache.hadoop.hive.metastore.api.CompactionType.findByValue(iprot.readI32()); + struct.type = CompactionType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); struct.state = iprot.readString(); struct.setStateIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksRequest.java index 122c070..7a1fd6f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class ShowLocksRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ShowLocksRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowLocksRequest"); @@ -165,18 +161,18 @@ public boolean equals(ShowLocksRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ShowLocksRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ShowLocksRequest typedOther = (ShowLocksRequest)other; return 0; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java index 52b0bbc..9a86a88 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class ShowLocksResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ShowLocksResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowLocksResponse"); private static final org.apache.thrift.protocol.TField LOCKS_FIELD_DESC = new org.apache.thrift.protocol.TField("locks", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public ShowLocksResponse( */ public ShowLocksResponse(ShowLocksResponse other) { if (other.isSetLocks()) { - List __this__locks = new ArrayList(other.locks.size()); + List __this__locks = new ArrayList(); for (ShowLocksResponseElement other_element : other.locks) { __this__locks.add(new ShowLocksResponseElement(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(ShowLocksResponse that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_locks = true && (isSetLocks()); - list.add(present_locks); + builder.append(present_locks); if (present_locks) - list.add(locks); + builder.append(locks); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ShowLocksResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ShowLocksResponse typedOther = (ShowLocksResponse)other; - lastComparison = Boolean.valueOf(isSetLocks()).compareTo(other.isSetLocks()); + lastComparison = Boolean.valueOf(isSetLocks()).compareTo(typedOther.isSetLocks()); if (lastComparison != 0) { return lastComparison; } if (isSetLocks()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locks, other.locks); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.locks, typedOther.locks); if (lastComparison != 0) { return lastComparison; } @@ -352,12 +348,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowLocksResponse s { org.apache.thrift.protocol.TList _list460 = iprot.readListBegin(); struct.locks = new ArrayList(_list460.size); - ShowLocksResponseElement _elem461; - for (int _i462 = 0; _i462 < _list460.size; ++_i462) + for (int _i461 = 0; _i461 < _list460.size; ++_i461) { - _elem461 = new ShowLocksResponseElement(); - _elem461.read(iprot); - struct.locks.add(_elem461); + ShowLocksResponseElement _elem462; // required + _elem462 = new ShowLocksResponseElement(); + _elem462.read(iprot); + struct.locks.add(_elem462); } iprot.readListEnd(); } @@ -432,12 +428,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponse st { org.apache.thrift.protocol.TList _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.locks = new ArrayList(_list465.size); - ShowLocksResponseElement _elem466; - for (int _i467 = 0; _i467 < _list465.size; ++_i467) + for (int _i466 = 0; _i466 < _list465.size; ++_i466) { - _elem466 = new ShowLocksResponseElement(); - _elem466.read(iprot); - struct.locks.add(_elem466); + ShowLocksResponseElement _elem467; // required + _elem467 = new ShowLocksResponseElement(); + _elem467.read(iprot); + struct.locks.add(_elem467); } } struct.setLocksIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java index 8be9b05..2f7c24f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponseElement.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class ShowLocksResponseElement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ShowLocksResponseElement implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ShowLocksResponseElement"); private static final org.apache.thrift.protocol.TField LOCKID_FIELD_DESC = new org.apache.thrift.protocol.TField("lockid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -170,7 +166,7 @@ public String getFieldName() { private static final int __LASTHEARTBEAT_ISSET_ID = 2; private static final int __ACQUIREDAT_ISSET_ID = 3; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.TABLENAME,_Fields.PARTNAME,_Fields.TXNID,_Fields.ACQUIREDAT}; + private _Fields optionals[] = {_Fields.TABLENAME,_Fields.PARTNAME,_Fields.TXNID,_Fields.ACQUIREDAT}; 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); @@ -826,180 +822,180 @@ public boolean equals(ShowLocksResponseElement that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lockid = true; - list.add(present_lockid); + builder.append(present_lockid); if (present_lockid) - list.add(lockid); + builder.append(lockid); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tablename = true && (isSetTablename()); - list.add(present_tablename); + builder.append(present_tablename); if (present_tablename) - list.add(tablename); + builder.append(tablename); boolean present_partname = true && (isSetPartname()); - list.add(present_partname); + builder.append(present_partname); if (present_partname) - list.add(partname); + builder.append(partname); boolean present_state = true && (isSetState()); - list.add(present_state); + builder.append(present_state); if (present_state) - list.add(state.getValue()); + builder.append(state.getValue()); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type.getValue()); + builder.append(type.getValue()); boolean present_txnid = true && (isSetTxnid()); - list.add(present_txnid); + builder.append(present_txnid); if (present_txnid) - list.add(txnid); + builder.append(txnid); boolean present_lastheartbeat = true; - list.add(present_lastheartbeat); + builder.append(present_lastheartbeat); if (present_lastheartbeat) - list.add(lastheartbeat); + builder.append(lastheartbeat); boolean present_acquiredat = true && (isSetAcquiredat()); - list.add(present_acquiredat); + builder.append(present_acquiredat); if (present_acquiredat) - list.add(acquiredat); + builder.append(acquiredat); boolean present_user = true && (isSetUser()); - list.add(present_user); + builder.append(present_user); if (present_user) - list.add(user); + builder.append(user); boolean present_hostname = true && (isSetHostname()); - list.add(present_hostname); + builder.append(present_hostname); if (present_hostname) - list.add(hostname); + builder.append(hostname); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ShowLocksResponseElement other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ShowLocksResponseElement typedOther = (ShowLocksResponseElement)other; - lastComparison = Boolean.valueOf(isSetLockid()).compareTo(other.isSetLockid()); + lastComparison = Boolean.valueOf(isSetLockid()).compareTo(typedOther.isSetLockid()); if (lastComparison != 0) { return lastComparison; } if (isSetLockid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, other.lockid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, typedOther.lockid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename()); + lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename()); if (lastComparison != 0) { return lastComparison; } if (isSetTablename()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartname()).compareTo(other.isSetPartname()); + lastComparison = Boolean.valueOf(isSetPartname()).compareTo(typedOther.isSetPartname()); if (lastComparison != 0) { return lastComparison; } if (isSetPartname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partname, other.partname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partname, typedOther.partname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState()); + lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState()); if (lastComparison != 0) { return lastComparison; } if (isSetState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(other.isSetTxnid()); + lastComparison = Boolean.valueOf(isSetTxnid()).compareTo(typedOther.isSetTxnid()); if (lastComparison != 0) { return lastComparison; } if (isSetTxnid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, other.txnid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnid, typedOther.txnid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastheartbeat()).compareTo(other.isSetLastheartbeat()); + lastComparison = Boolean.valueOf(isSetLastheartbeat()).compareTo(typedOther.isSetLastheartbeat()); if (lastComparison != 0) { return lastComparison; } if (isSetLastheartbeat()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastheartbeat, other.lastheartbeat); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastheartbeat, typedOther.lastheartbeat); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAcquiredat()).compareTo(other.isSetAcquiredat()); + lastComparison = Boolean.valueOf(isSetAcquiredat()).compareTo(typedOther.isSetAcquiredat()); if (lastComparison != 0) { return lastComparison; } if (isSetAcquiredat()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.acquiredat, other.acquiredat); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.acquiredat, typedOther.acquiredat); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser()); if (lastComparison != 0) { return lastComparison; } if (isSetUser()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHostname()).compareTo(other.isSetHostname()); + lastComparison = Boolean.valueOf(isSetHostname()).compareTo(typedOther.isSetHostname()); if (lastComparison != 0) { return lastComparison; } if (isSetHostname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, other.hostname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, typedOther.hostname); if (lastComparison != 0) { return lastComparison; } @@ -1210,7 +1206,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowLocksResponseEl break; case 5: // STATE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.state = org.apache.hadoop.hive.metastore.api.LockState.findByValue(iprot.readI32()); + struct.state = LockState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1218,7 +1214,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowLocksResponseEl break; case 6: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32()); + struct.type = LockType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -1391,9 +1387,9 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponseEle struct.setLockidIsSet(true); struct.dbname = iprot.readString(); struct.setDbnameIsSet(true); - struct.state = org.apache.hadoop.hive.metastore.api.LockState.findByValue(iprot.readI32()); + struct.state = LockState.findByValue(iprot.readI32()); struct.setStateIsSet(true); - struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32()); + struct.type = LockType.findByValue(iprot.readI32()); struct.setTypeIsSet(true); struct.lastheartbeat = iprot.readI64(); struct.setLastheartbeatIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java index bc64495..83438c7 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class SkewedInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class SkewedInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SkewedInfo"); private static final org.apache.thrift.protocol.TField SKEWED_COL_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("skewedColNames", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -155,25 +151,34 @@ public SkewedInfo( */ public SkewedInfo(SkewedInfo other) { if (other.isSetSkewedColNames()) { - List __this__skewedColNames = new ArrayList(other.skewedColNames); + List __this__skewedColNames = new ArrayList(); + for (String other_element : other.skewedColNames) { + __this__skewedColNames.add(other_element); + } this.skewedColNames = __this__skewedColNames; } if (other.isSetSkewedColValues()) { - List> __this__skewedColValues = new ArrayList>(other.skewedColValues.size()); + List> __this__skewedColValues = new ArrayList>(); for (List other_element : other.skewedColValues) { - List __this__skewedColValues_copy = new ArrayList(other_element); + List __this__skewedColValues_copy = new ArrayList(); + for (String other_element_element : other_element) { + __this__skewedColValues_copy.add(other_element_element); + } __this__skewedColValues.add(__this__skewedColValues_copy); } this.skewedColValues = __this__skewedColValues; } if (other.isSetSkewedColValueLocationMaps()) { - Map,String> __this__skewedColValueLocationMaps = new HashMap,String>(other.skewedColValueLocationMaps.size()); + Map,String> __this__skewedColValueLocationMaps = new HashMap,String>(); for (Map.Entry, String> other_element : other.skewedColValueLocationMaps.entrySet()) { List other_element_key = other_element.getKey(); String other_element_value = other_element.getValue(); - List __this__skewedColValueLocationMaps_copy_key = new ArrayList(other_element_key); + List __this__skewedColValueLocationMaps_copy_key = new ArrayList(); + for (String other_element_key_element : other_element_key) { + __this__skewedColValueLocationMaps_copy_key.add(other_element_key_element); + } String __this__skewedColValueLocationMaps_copy_value = other_element_value; @@ -410,60 +415,60 @@ public boolean equals(SkewedInfo that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_skewedColNames = true && (isSetSkewedColNames()); - list.add(present_skewedColNames); + builder.append(present_skewedColNames); if (present_skewedColNames) - list.add(skewedColNames); + builder.append(skewedColNames); boolean present_skewedColValues = true && (isSetSkewedColValues()); - list.add(present_skewedColValues); + builder.append(present_skewedColValues); if (present_skewedColValues) - list.add(skewedColValues); + builder.append(skewedColValues); boolean present_skewedColValueLocationMaps = true && (isSetSkewedColValueLocationMaps()); - list.add(present_skewedColValueLocationMaps); + builder.append(present_skewedColValueLocationMaps); if (present_skewedColValueLocationMaps) - list.add(skewedColValueLocationMaps); + builder.append(skewedColValueLocationMaps); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(SkewedInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + SkewedInfo typedOther = (SkewedInfo)other; - lastComparison = Boolean.valueOf(isSetSkewedColNames()).compareTo(other.isSetSkewedColNames()); + lastComparison = Boolean.valueOf(isSetSkewedColNames()).compareTo(typedOther.isSetSkewedColNames()); if (lastComparison != 0) { return lastComparison; } if (isSetSkewedColNames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedColNames, other.skewedColNames); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedColNames, typedOther.skewedColNames); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSkewedColValues()).compareTo(other.isSetSkewedColValues()); + lastComparison = Boolean.valueOf(isSetSkewedColValues()).compareTo(typedOther.isSetSkewedColValues()); if (lastComparison != 0) { return lastComparison; } if (isSetSkewedColValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedColValues, other.skewedColValues); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedColValues, typedOther.skewedColValues); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSkewedColValueLocationMaps()).compareTo(other.isSetSkewedColValueLocationMaps()); + lastComparison = Boolean.valueOf(isSetSkewedColValueLocationMaps()).compareTo(typedOther.isSetSkewedColValueLocationMaps()); if (lastComparison != 0) { return lastComparison; } if (isSetSkewedColValueLocationMaps()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedColValueLocationMaps, other.skewedColValueLocationMaps); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedColValueLocationMaps, typedOther.skewedColValueLocationMaps); if (lastComparison != 0) { return lastComparison; } @@ -559,11 +564,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SkewedInfo struct) { org.apache.thrift.protocol.TList _list114 = iprot.readListBegin(); struct.skewedColNames = new ArrayList(_list114.size); - String _elem115; - for (int _i116 = 0; _i116 < _list114.size; ++_i116) + for (int _i115 = 0; _i115 < _list114.size; ++_i115) { - _elem115 = iprot.readString(); - struct.skewedColNames.add(_elem115); + String _elem116; // required + _elem116 = iprot.readString(); + struct.skewedColNames.add(_elem116); } iprot.readListEnd(); } @@ -577,21 +582,21 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SkewedInfo struct) { org.apache.thrift.protocol.TList _list117 = iprot.readListBegin(); struct.skewedColValues = new ArrayList>(_list117.size); - List _elem118; - for (int _i119 = 0; _i119 < _list117.size; ++_i119) + for (int _i118 = 0; _i118 < _list117.size; ++_i118) { + List _elem119; // required { org.apache.thrift.protocol.TList _list120 = iprot.readListBegin(); - _elem118 = new ArrayList(_list120.size); - String _elem121; - for (int _i122 = 0; _i122 < _list120.size; ++_i122) + _elem119 = new ArrayList(_list120.size); + for (int _i121 = 0; _i121 < _list120.size; ++_i121) { - _elem121 = iprot.readString(); - _elem118.add(_elem121); + String _elem122; // required + _elem122 = iprot.readString(); + _elem119.add(_elem122); } iprot.readListEnd(); } - struct.skewedColValues.add(_elem118); + struct.skewedColValues.add(_elem119); } iprot.readListEnd(); } @@ -605,23 +610,23 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SkewedInfo struct) { org.apache.thrift.protocol.TMap _map123 = iprot.readMapBegin(); struct.skewedColValueLocationMaps = new HashMap,String>(2*_map123.size); - List _key124; - String _val125; - for (int _i126 = 0; _i126 < _map123.size; ++_i126) + for (int _i124 = 0; _i124 < _map123.size; ++_i124) { + List _key125; // required + String _val126; // required { org.apache.thrift.protocol.TList _list127 = iprot.readListBegin(); - _key124 = new ArrayList(_list127.size); - String _elem128; - for (int _i129 = 0; _i129 < _list127.size; ++_i129) + _key125 = new ArrayList(_list127.size); + for (int _i128 = 0; _i128 < _list127.size; ++_i128) { - _elem128 = iprot.readString(); - _key124.add(_elem128); + String _elem129; // required + _elem129 = iprot.readString(); + _key125.add(_elem129); } iprot.readListEnd(); } - _val125 = iprot.readString(); - struct.skewedColValueLocationMaps.put(_key124, _val125); + _val126 = iprot.readString(); + struct.skewedColValueLocationMaps.put(_key125, _val126); } iprot.readMapEnd(); } @@ -772,11 +777,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SkewedInfo struct) t { org.apache.thrift.protocol.TList _list140 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.skewedColNames = new ArrayList(_list140.size); - String _elem141; - for (int _i142 = 0; _i142 < _list140.size; ++_i142) + for (int _i141 = 0; _i141 < _list140.size; ++_i141) { - _elem141 = iprot.readString(); - struct.skewedColNames.add(_elem141); + String _elem142; // required + _elem142 = iprot.readString(); + struct.skewedColNames.add(_elem142); } } struct.setSkewedColNamesIsSet(true); @@ -785,20 +790,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SkewedInfo struct) t { org.apache.thrift.protocol.TList _list143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.skewedColValues = new ArrayList>(_list143.size); - List _elem144; - for (int _i145 = 0; _i145 < _list143.size; ++_i145) + for (int _i144 = 0; _i144 < _list143.size; ++_i144) { + List _elem145; // required { org.apache.thrift.protocol.TList _list146 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - _elem144 = new ArrayList(_list146.size); - String _elem147; - for (int _i148 = 0; _i148 < _list146.size; ++_i148) + _elem145 = new ArrayList(_list146.size); + for (int _i147 = 0; _i147 < _list146.size; ++_i147) { - _elem147 = iprot.readString(); - _elem144.add(_elem147); + String _elem148; // required + _elem148 = iprot.readString(); + _elem145.add(_elem148); } } - struct.skewedColValues.add(_elem144); + struct.skewedColValues.add(_elem145); } } struct.setSkewedColValuesIsSet(true); @@ -807,22 +812,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SkewedInfo struct) t { org.apache.thrift.protocol.TMap _map149 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.LIST, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.skewedColValueLocationMaps = new HashMap,String>(2*_map149.size); - List _key150; - String _val151; - for (int _i152 = 0; _i152 < _map149.size; ++_i152) + for (int _i150 = 0; _i150 < _map149.size; ++_i150) { + List _key151; // required + String _val152; // required { org.apache.thrift.protocol.TList _list153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - _key150 = new ArrayList(_list153.size); - String _elem154; - for (int _i155 = 0; _i155 < _list153.size; ++_i155) + _key151 = new ArrayList(_list153.size); + for (int _i154 = 0; _i154 < _list153.size; ++_i154) { - _elem154 = iprot.readString(); - _key150.add(_elem154); + String _elem155; // required + _elem155 = iprot.readString(); + _key151.add(_elem155); } } - _val151 = iprot.readString(); - struct.skewedColValueLocationMaps.put(_key150, _val151); + _val152 = iprot.readString(); + struct.skewedColValueLocationMaps.put(_key151, _val152); } } struct.setSkewedColValueLocationMapsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java index 165a879..b91cc1c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class StorageDescriptor implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class StorageDescriptor implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StorageDescriptor"); private static final org.apache.thrift.protocol.TField COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("cols", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -166,7 +162,7 @@ public String getFieldName() { private static final int __NUMBUCKETS_ISSET_ID = 1; private static final int __STOREDASSUBDIRECTORIES_ISSET_ID = 2; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.SKEWED_INFO,_Fields.STORED_AS_SUB_DIRECTORIES}; + private _Fields optionals[] = {_Fields.SKEWED_INFO,_Fields.STORED_AS_SUB_DIRECTORIES}; 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); @@ -239,7 +235,7 @@ public StorageDescriptor( public StorageDescriptor(StorageDescriptor other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetCols()) { - List __this__cols = new ArrayList(other.cols.size()); + List __this__cols = new ArrayList(); for (FieldSchema other_element : other.cols) { __this__cols.add(new FieldSchema(other_element)); } @@ -260,18 +256,32 @@ public StorageDescriptor(StorageDescriptor other) { this.serdeInfo = new SerDeInfo(other.serdeInfo); } if (other.isSetBucketCols()) { - List __this__bucketCols = new ArrayList(other.bucketCols); + List __this__bucketCols = new ArrayList(); + for (String other_element : other.bucketCols) { + __this__bucketCols.add(other_element); + } this.bucketCols = __this__bucketCols; } if (other.isSetSortCols()) { - List __this__sortCols = new ArrayList(other.sortCols.size()); + List __this__sortCols = new ArrayList(); for (Order other_element : other.sortCols) { __this__sortCols.add(new Order(other_element)); } this.sortCols = __this__sortCols; } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = org.apache.hive.common.util.HiveStringUtils.intern(other_element_key); + + String __this__parameters_copy_value = org.apache.hive.common.util.HiveStringUtils.intern(other_element_value); + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } if (other.isSetSkewedInfo()) { @@ -936,195 +946,195 @@ public boolean equals(StorageDescriptor that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_cols = true && (isSetCols()); - list.add(present_cols); + builder.append(present_cols); if (present_cols) - list.add(cols); + builder.append(cols); boolean present_location = true && (isSetLocation()); - list.add(present_location); + builder.append(present_location); if (present_location) - list.add(location); + builder.append(location); boolean present_inputFormat = true && (isSetInputFormat()); - list.add(present_inputFormat); + builder.append(present_inputFormat); if (present_inputFormat) - list.add(inputFormat); + builder.append(inputFormat); boolean present_outputFormat = true && (isSetOutputFormat()); - list.add(present_outputFormat); + builder.append(present_outputFormat); if (present_outputFormat) - list.add(outputFormat); + builder.append(outputFormat); boolean present_compressed = true; - list.add(present_compressed); + builder.append(present_compressed); if (present_compressed) - list.add(compressed); + builder.append(compressed); boolean present_numBuckets = true; - list.add(present_numBuckets); + builder.append(present_numBuckets); if (present_numBuckets) - list.add(numBuckets); + builder.append(numBuckets); boolean present_serdeInfo = true && (isSetSerdeInfo()); - list.add(present_serdeInfo); + builder.append(present_serdeInfo); if (present_serdeInfo) - list.add(serdeInfo); + builder.append(serdeInfo); boolean present_bucketCols = true && (isSetBucketCols()); - list.add(present_bucketCols); + builder.append(present_bucketCols); if (present_bucketCols) - list.add(bucketCols); + builder.append(bucketCols); boolean present_sortCols = true && (isSetSortCols()); - list.add(present_sortCols); + builder.append(present_sortCols); if (present_sortCols) - list.add(sortCols); + builder.append(sortCols); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); boolean present_skewedInfo = true && (isSetSkewedInfo()); - list.add(present_skewedInfo); + builder.append(present_skewedInfo); if (present_skewedInfo) - list.add(skewedInfo); + builder.append(skewedInfo); boolean present_storedAsSubDirectories = true && (isSetStoredAsSubDirectories()); - list.add(present_storedAsSubDirectories); + builder.append(present_storedAsSubDirectories); if (present_storedAsSubDirectories) - list.add(storedAsSubDirectories); + builder.append(storedAsSubDirectories); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(StorageDescriptor other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + StorageDescriptor typedOther = (StorageDescriptor)other; - lastComparison = Boolean.valueOf(isSetCols()).compareTo(other.isSetCols()); + lastComparison = Boolean.valueOf(isSetCols()).compareTo(typedOther.isSetCols()); if (lastComparison != 0) { return lastComparison; } if (isSetCols()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cols, other.cols); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cols, typedOther.cols); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLocation()).compareTo(other.isSetLocation()); + lastComparison = Boolean.valueOf(isSetLocation()).compareTo(typedOther.isSetLocation()); if (lastComparison != 0) { return lastComparison; } if (isSetLocation()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, other.location); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, typedOther.location); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetInputFormat()).compareTo(other.isSetInputFormat()); + lastComparison = Boolean.valueOf(isSetInputFormat()).compareTo(typedOther.isSetInputFormat()); if (lastComparison != 0) { return lastComparison; } if (isSetInputFormat()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inputFormat, other.inputFormat); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inputFormat, typedOther.inputFormat); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOutputFormat()).compareTo(other.isSetOutputFormat()); + lastComparison = Boolean.valueOf(isSetOutputFormat()).compareTo(typedOther.isSetOutputFormat()); if (lastComparison != 0) { return lastComparison; } if (isSetOutputFormat()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.outputFormat, other.outputFormat); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.outputFormat, typedOther.outputFormat); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCompressed()).compareTo(other.isSetCompressed()); + lastComparison = Boolean.valueOf(isSetCompressed()).compareTo(typedOther.isSetCompressed()); if (lastComparison != 0) { return lastComparison; } if (isSetCompressed()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compressed, other.compressed); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.compressed, typedOther.compressed); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumBuckets()).compareTo(other.isSetNumBuckets()); + lastComparison = Boolean.valueOf(isSetNumBuckets()).compareTo(typedOther.isSetNumBuckets()); if (lastComparison != 0) { return lastComparison; } if (isSetNumBuckets()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numBuckets, other.numBuckets); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numBuckets, typedOther.numBuckets); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSerdeInfo()).compareTo(other.isSetSerdeInfo()); + lastComparison = Boolean.valueOf(isSetSerdeInfo()).compareTo(typedOther.isSetSerdeInfo()); if (lastComparison != 0) { return lastComparison; } if (isSetSerdeInfo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serdeInfo, other.serdeInfo); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serdeInfo, typedOther.serdeInfo); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBucketCols()).compareTo(other.isSetBucketCols()); + lastComparison = Boolean.valueOf(isSetBucketCols()).compareTo(typedOther.isSetBucketCols()); if (lastComparison != 0) { return lastComparison; } if (isSetBucketCols()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bucketCols, other.bucketCols); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bucketCols, typedOther.bucketCols); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSortCols()).compareTo(other.isSetSortCols()); + lastComparison = Boolean.valueOf(isSetSortCols()).compareTo(typedOther.isSetSortCols()); if (lastComparison != 0) { return lastComparison; } if (isSetSortCols()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sortCols, other.sortCols); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sortCols, typedOther.sortCols); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSkewedInfo()).compareTo(other.isSetSkewedInfo()); + lastComparison = Boolean.valueOf(isSetSkewedInfo()).compareTo(typedOther.isSetSkewedInfo()); if (lastComparison != 0) { return lastComparison; } if (isSetSkewedInfo()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedInfo, other.skewedInfo); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skewedInfo, typedOther.skewedInfo); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStoredAsSubDirectories()).compareTo(other.isSetStoredAsSubDirectories()); + lastComparison = Boolean.valueOf(isSetStoredAsSubDirectories()).compareTo(typedOther.isSetStoredAsSubDirectories()); if (lastComparison != 0) { return lastComparison; } if (isSetStoredAsSubDirectories()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storedAsSubDirectories, other.storedAsSubDirectories); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storedAsSubDirectories, typedOther.storedAsSubDirectories); if (lastComparison != 0) { return lastComparison; } @@ -1292,12 +1302,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s { org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); struct.cols = new ArrayList(_list156.size); - FieldSchema _elem157; - for (int _i158 = 0; _i158 < _list156.size; ++_i158) + for (int _i157 = 0; _i157 < _list156.size; ++_i157) { - _elem157 = new FieldSchema(); - _elem157.read(iprot); - struct.cols.add(_elem157); + FieldSchema _elem158; // required + _elem158 = new FieldSchema(); + _elem158.read(iprot); + struct.cols.add(_elem158); } iprot.readListEnd(); } @@ -1360,11 +1370,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s { org.apache.thrift.protocol.TList _list159 = iprot.readListBegin(); struct.bucketCols = new ArrayList(_list159.size); - String _elem160; - for (int _i161 = 0; _i161 < _list159.size; ++_i161) + for (int _i160 = 0; _i160 < _list159.size; ++_i160) { - _elem160 = iprot.readString(); - struct.bucketCols.add(_elem160); + String _elem161; // required + _elem161 = iprot.readString(); + struct.bucketCols.add(_elem161); } iprot.readListEnd(); } @@ -1378,12 +1388,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s { org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(); struct.sortCols = new ArrayList(_list162.size); - Order _elem163; - for (int _i164 = 0; _i164 < _list162.size; ++_i164) + for (int _i163 = 0; _i163 < _list162.size; ++_i163) { - _elem163 = new Order(); - _elem163.read(iprot); - struct.sortCols.add(_elem163); + Order _elem164; // required + _elem164 = new Order(); + _elem164.read(iprot); + struct.sortCols.add(_elem164); } iprot.readListEnd(); } @@ -1397,13 +1407,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s { org.apache.thrift.protocol.TMap _map165 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map165.size); - String _key166; - String _val167; - for (int _i168 = 0; _i168 < _map165.size; ++_i168) + for (int _i166 = 0; _i166 < _map165.size; ++_i166) { - _key166 = iprot.readString(); - _val167 = iprot.readString(); - struct.parameters.put(_key166, _val167); + String _key167; // required + String _val168; // required + _key167 = iprot.readString(); + _val168 = iprot.readString(); + struct.parameters.put(_key167, _val168); } iprot.readMapEnd(); } @@ -1655,12 +1665,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor st { org.apache.thrift.protocol.TList _list177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.cols = new ArrayList(_list177.size); - FieldSchema _elem178; - for (int _i179 = 0; _i179 < _list177.size; ++_i179) + for (int _i178 = 0; _i178 < _list177.size; ++_i178) { - _elem178 = new FieldSchema(); - _elem178.read(iprot); - struct.cols.add(_elem178); + FieldSchema _elem179; // required + _elem179 = new FieldSchema(); + _elem179.read(iprot); + struct.cols.add(_elem179); } } struct.setColsIsSet(true); @@ -1694,11 +1704,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor st { org.apache.thrift.protocol.TList _list180 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.bucketCols = new ArrayList(_list180.size); - String _elem181; - for (int _i182 = 0; _i182 < _list180.size; ++_i182) + for (int _i181 = 0; _i181 < _list180.size; ++_i181) { - _elem181 = iprot.readString(); - struct.bucketCols.add(_elem181); + String _elem182; // required + _elem182 = iprot.readString(); + struct.bucketCols.add(_elem182); } } struct.setBucketColsIsSet(true); @@ -1707,12 +1717,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor st { org.apache.thrift.protocol.TList _list183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.sortCols = new ArrayList(_list183.size); - Order _elem184; - for (int _i185 = 0; _i185 < _list183.size; ++_i185) + for (int _i184 = 0; _i184 < _list183.size; ++_i184) { - _elem184 = new Order(); - _elem184.read(iprot); - struct.sortCols.add(_elem184); + Order _elem185; // required + _elem185 = new Order(); + _elem185.read(iprot); + struct.sortCols.add(_elem185); } } struct.setSortColsIsSet(true); @@ -1721,13 +1731,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor st { org.apache.thrift.protocol.TMap _map186 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map186.size); - String _key187; - String _val188; - for (int _i189 = 0; _i189 < _map186.size; ++_i189) + for (int _i187 = 0; _i187 < _map186.size; ++_i187) { - _key187 = iprot.readString(); - _val188 = iprot.readString(); - struct.parameters.put(_key187, _val188); + String _key188; // required + String _val189; // required + _key188 = iprot.readString(); + _val189 = iprot.readString(); + struct.parameters.put(_key188, _val189); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StringColumnStatsData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StringColumnStatsData.java index 9906ff3..db3274a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StringColumnStatsData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StringColumnStatsData.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class StringColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class StringColumnStatsData implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StringColumnStatsData"); private static final org.apache.thrift.protocol.TField MAX_COL_LEN_FIELD_DESC = new org.apache.thrift.protocol.TField("maxColLen", org.apache.thrift.protocol.TType.I64, (short)1); @@ -405,75 +401,75 @@ public boolean equals(StringColumnStatsData that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_maxColLen = true; - list.add(present_maxColLen); + builder.append(present_maxColLen); if (present_maxColLen) - list.add(maxColLen); + builder.append(maxColLen); boolean present_avgColLen = true; - list.add(present_avgColLen); + builder.append(present_avgColLen); if (present_avgColLen) - list.add(avgColLen); + builder.append(avgColLen); boolean present_numNulls = true; - list.add(present_numNulls); + builder.append(present_numNulls); if (present_numNulls) - list.add(numNulls); + builder.append(numNulls); boolean present_numDVs = true; - list.add(present_numDVs); + builder.append(present_numDVs); if (present_numDVs) - list.add(numDVs); + builder.append(numDVs); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(StringColumnStatsData other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + StringColumnStatsData typedOther = (StringColumnStatsData)other; - lastComparison = Boolean.valueOf(isSetMaxColLen()).compareTo(other.isSetMaxColLen()); + lastComparison = Boolean.valueOf(isSetMaxColLen()).compareTo(typedOther.isSetMaxColLen()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxColLen()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxColLen, other.maxColLen); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxColLen, typedOther.maxColLen); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAvgColLen()).compareTo(other.isSetAvgColLen()); + lastComparison = Boolean.valueOf(isSetAvgColLen()).compareTo(typedOther.isSetAvgColLen()); if (lastComparison != 0) { return lastComparison; } if (isSetAvgColLen()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.avgColLen, other.avgColLen); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.avgColLen, typedOther.avgColLen); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(other.isSetNumNulls()); + lastComparison = Boolean.valueOf(isSetNumNulls()).compareTo(typedOther.isSetNumNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNumNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, other.numNulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numNulls, typedOther.numNulls); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(other.isSetNumDVs()); + lastComparison = Boolean.valueOf(isSetNumDVs()).compareTo(typedOther.isSetNumDVs()); if (lastComparison != 0) { return lastComparison; } if (isSetNumDVs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, other.numDVs); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numDVs, typedOther.numDVs); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java index 51b9e38..229a819 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Table implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable
{ +public class Table implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Table"); private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tableName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -177,7 +173,7 @@ public String getFieldName() { private static final int __RETENTION_ISSET_ID = 2; private static final int __TEMPORARY_ISSET_ID = 3; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.TEMPORARY}; + private _Fields optionals[] = {_Fields.PRIVILEGES,_Fields.TEMPORARY}; 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); @@ -274,14 +270,25 @@ public Table(Table other) { this.sd = new StorageDescriptor(other.sd); } if (other.isSetPartitionKeys()) { - List __this__partitionKeys = new ArrayList(other.partitionKeys.size()); + List __this__partitionKeys = new ArrayList(); for (FieldSchema other_element : other.partitionKeys) { __this__partitionKeys.add(new FieldSchema(other_element)); } this.partitionKeys = __this__partitionKeys; } if (other.isSetParameters()) { - Map __this__parameters = new HashMap(other.parameters); + Map __this__parameters = new HashMap(); + for (Map.Entry other_element : other.parameters.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__parameters_copy_key = other_element_key; + + String __this__parameters_copy_value = other_element_value; + + __this__parameters.put(__this__parameters_copy_key, __this__parameters_copy_value); + } this.parameters = __this__parameters; } if (other.isSetViewOriginalText()) { @@ -1017,225 +1024,225 @@ public boolean equals(Table that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_owner = true && (isSetOwner()); - list.add(present_owner); + builder.append(present_owner); if (present_owner) - list.add(owner); + builder.append(owner); boolean present_createTime = true; - list.add(present_createTime); + builder.append(present_createTime); if (present_createTime) - list.add(createTime); + builder.append(createTime); boolean present_lastAccessTime = true; - list.add(present_lastAccessTime); + builder.append(present_lastAccessTime); if (present_lastAccessTime) - list.add(lastAccessTime); + builder.append(lastAccessTime); boolean present_retention = true; - list.add(present_retention); + builder.append(present_retention); if (present_retention) - list.add(retention); + builder.append(retention); boolean present_sd = true && (isSetSd()); - list.add(present_sd); + builder.append(present_sd); if (present_sd) - list.add(sd); + builder.append(sd); boolean present_partitionKeys = true && (isSetPartitionKeys()); - list.add(present_partitionKeys); + builder.append(present_partitionKeys); if (present_partitionKeys) - list.add(partitionKeys); + builder.append(partitionKeys); boolean present_parameters = true && (isSetParameters()); - list.add(present_parameters); + builder.append(present_parameters); if (present_parameters) - list.add(parameters); + builder.append(parameters); boolean present_viewOriginalText = true && (isSetViewOriginalText()); - list.add(present_viewOriginalText); + builder.append(present_viewOriginalText); if (present_viewOriginalText) - list.add(viewOriginalText); + builder.append(viewOriginalText); boolean present_viewExpandedText = true && (isSetViewExpandedText()); - list.add(present_viewExpandedText); + builder.append(present_viewExpandedText); if (present_viewExpandedText) - list.add(viewExpandedText); + builder.append(viewExpandedText); boolean present_tableType = true && (isSetTableType()); - list.add(present_tableType); + builder.append(present_tableType); if (present_tableType) - list.add(tableType); + builder.append(tableType); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); boolean present_temporary = true && (isSetTemporary()); - list.add(present_temporary); + builder.append(present_temporary); if (present_temporary) - list.add(temporary); + builder.append(temporary); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Table other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Table typedOther = (Table)other; - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwner()).compareTo(other.isSetOwner()); + lastComparison = Boolean.valueOf(isSetOwner()).compareTo(typedOther.isSetOwner()); if (lastComparison != 0) { return lastComparison; } if (isSetOwner()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.owner, other.owner); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.owner, typedOther.owner); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); + lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(typedOther.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; } if (isSetCreateTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, other.createTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createTime, typedOther.createTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(other.isSetLastAccessTime()); + lastComparison = Boolean.valueOf(isSetLastAccessTime()).compareTo(typedOther.isSetLastAccessTime()); if (lastComparison != 0) { return lastComparison; } if (isSetLastAccessTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, other.lastAccessTime); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastAccessTime, typedOther.lastAccessTime); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRetention()).compareTo(other.isSetRetention()); + lastComparison = Boolean.valueOf(isSetRetention()).compareTo(typedOther.isSetRetention()); if (lastComparison != 0) { return lastComparison; } if (isSetRetention()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.retention, other.retention); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.retention, typedOther.retention); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSd()).compareTo(other.isSetSd()); + lastComparison = Boolean.valueOf(isSetSd()).compareTo(typedOther.isSetSd()); if (lastComparison != 0) { return lastComparison; } if (isSetSd()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, other.sd); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sd, typedOther.sd); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPartitionKeys()).compareTo(other.isSetPartitionKeys()); + lastComparison = Boolean.valueOf(isSetPartitionKeys()).compareTo(typedOther.isSetPartitionKeys()); if (lastComparison != 0) { return lastComparison; } if (isSetPartitionKeys()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionKeys, other.partitionKeys); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionKeys, typedOther.partitionKeys); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetParameters()).compareTo(other.isSetParameters()); + lastComparison = Boolean.valueOf(isSetParameters()).compareTo(typedOther.isSetParameters()); if (lastComparison != 0) { return lastComparison; } if (isSetParameters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, other.parameters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parameters, typedOther.parameters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetViewOriginalText()).compareTo(other.isSetViewOriginalText()); + lastComparison = Boolean.valueOf(isSetViewOriginalText()).compareTo(typedOther.isSetViewOriginalText()); if (lastComparison != 0) { return lastComparison; } if (isSetViewOriginalText()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.viewOriginalText, other.viewOriginalText); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.viewOriginalText, typedOther.viewOriginalText); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetViewExpandedText()).compareTo(other.isSetViewExpandedText()); + lastComparison = Boolean.valueOf(isSetViewExpandedText()).compareTo(typedOther.isSetViewExpandedText()); if (lastComparison != 0) { return lastComparison; } if (isSetViewExpandedText()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.viewExpandedText, other.viewExpandedText); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.viewExpandedText, typedOther.viewExpandedText); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableType()).compareTo(other.isSetTableType()); + lastComparison = Boolean.valueOf(isSetTableType()).compareTo(typedOther.isSetTableType()); if (lastComparison != 0) { return lastComparison; } if (isSetTableType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, other.tableType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableType, typedOther.tableType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTemporary()).compareTo(other.isSetTemporary()); + lastComparison = Boolean.valueOf(isSetTemporary()).compareTo(typedOther.isSetTemporary()); if (lastComparison != 0) { return lastComparison; } if (isSetTemporary()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.temporary, other.temporary); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.temporary, typedOther.temporary); if (lastComparison != 0) { return lastComparison; } @@ -1472,12 +1479,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw { org.apache.thrift.protocol.TList _list190 = iprot.readListBegin(); struct.partitionKeys = new ArrayList(_list190.size); - FieldSchema _elem191; - for (int _i192 = 0; _i192 < _list190.size; ++_i192) + for (int _i191 = 0; _i191 < _list190.size; ++_i191) { - _elem191 = new FieldSchema(); - _elem191.read(iprot); - struct.partitionKeys.add(_elem191); + FieldSchema _elem192; // required + _elem192 = new FieldSchema(); + _elem192.read(iprot); + struct.partitionKeys.add(_elem192); } iprot.readListEnd(); } @@ -1491,13 +1498,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw { org.apache.thrift.protocol.TMap _map193 = iprot.readMapBegin(); struct.parameters = new HashMap(2*_map193.size); - String _key194; - String _val195; - for (int _i196 = 0; _i196 < _map193.size; ++_i196) + for (int _i194 = 0; _i194 < _map193.size; ++_i194) { - _key194 = iprot.readString(); - _val195 = iprot.readString(); - struct.parameters.put(_key194, _val195); + String _key195; // required + String _val196; // required + _key195 = iprot.readString(); + _val196 = iprot.readString(); + struct.parameters.put(_key195, _val196); } iprot.readMapEnd(); } @@ -1796,12 +1803,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws { org.apache.thrift.protocol.TList _list201 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.partitionKeys = new ArrayList(_list201.size); - FieldSchema _elem202; - for (int _i203 = 0; _i203 < _list201.size; ++_i203) + for (int _i202 = 0; _i202 < _list201.size; ++_i202) { - _elem202 = new FieldSchema(); - _elem202.read(iprot); - struct.partitionKeys.add(_elem202); + FieldSchema _elem203; // required + _elem203 = new FieldSchema(); + _elem203.read(iprot); + struct.partitionKeys.add(_elem203); } } struct.setPartitionKeysIsSet(true); @@ -1810,13 +1817,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws { org.apache.thrift.protocol.TMap _map204 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.parameters = new HashMap(2*_map204.size); - String _key205; - String _val206; - for (int _i207 = 0; _i207 < _map204.size; ++_i207) + for (int _i205 = 0; _i205 < _map204.size; ++_i205) { - _key205 = iprot.readString(); - _val206 = iprot.readString(); - struct.parameters.put(_key205, _val206); + String _key206; // required + String _val207; // required + _key206 = iprot.readString(); + _val207 = iprot.readString(); + struct.parameters.put(_key206, _val207); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java index 1edcaf9..bd997b4 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TableStatsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TableStatsRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TableStatsRequest"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -156,7 +152,10 @@ public TableStatsRequest(TableStatsRequest other) { this.tblName = other.tblName; } if (other.isSetColNames()) { - List __this__colNames = new ArrayList(other.colNames); + List __this__colNames = new ArrayList(); + for (String other_element : other.colNames) { + __this__colNames.add(other_element); + } this.colNames = __this__colNames; } } @@ -362,60 +361,60 @@ public boolean equals(TableStatsRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_tblName = true && (isSetTblName()); - list.add(present_tblName); + builder.append(present_tblName); if (present_tblName) - list.add(tblName); + builder.append(tblName); boolean present_colNames = true && (isSetColNames()); - list.add(present_colNames); + builder.append(present_colNames); if (present_colNames) - list.add(colNames); + builder.append(colNames); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TableStatsRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TableStatsRequest typedOther = (TableStatsRequest)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(typedOther.isSetTblName()); if (lastComparison != 0) { return lastComparison; } if (isSetTblName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, typedOther.tblName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColNames()).compareTo(other.isSetColNames()); + lastComparison = Boolean.valueOf(isSetColNames()).compareTo(typedOther.isSetColNames()); if (lastComparison != 0) { return lastComparison; } if (isSetColNames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colNames, other.colNames); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colNames, typedOther.colNames); if (lastComparison != 0) { return lastComparison; } @@ -539,11 +538,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableStatsRequest s { org.apache.thrift.protocol.TList _list356 = iprot.readListBegin(); struct.colNames = new ArrayList(_list356.size); - String _elem357; - for (int _i358 = 0; _i358 < _list356.size; ++_i358) + for (int _i357 = 0; _i357 < _list356.size; ++_i357) { - _elem357 = iprot.readString(); - struct.colNames.add(_elem357); + String _elem358; // required + _elem358 = iprot.readString(); + struct.colNames.add(_elem358); } iprot.readListEnd(); } @@ -625,11 +624,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest st { org.apache.thrift.protocol.TList _list361 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.colNames = new ArrayList(_list361.size); - String _elem362; - for (int _i363 = 0; _i363 < _list361.size; ++_i363) + for (int _i362 = 0; _i362 < _list361.size; ++_i362) { - _elem362 = iprot.readString(); - struct.colNames.add(_elem362); + String _elem363; // required + _elem363 = iprot.readString(); + struct.colNames.add(_elem363); } } struct.setColNamesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java index 25a1f25..68ecd7d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TableStatsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TableStatsResult implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TableStatsResult"); private static final org.apache.thrift.protocol.TField TABLE_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("tableStats", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public TableStatsResult( */ public TableStatsResult(TableStatsResult other) { if (other.isSetTableStats()) { - List __this__tableStats = new ArrayList(other.tableStats.size()); + List __this__tableStats = new ArrayList(); for (ColumnStatisticsObj other_element : other.tableStats) { __this__tableStats.add(new ColumnStatisticsObj(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(TableStatsResult that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_tableStats = true && (isSetTableStats()); - list.add(present_tableStats); + builder.append(present_tableStats); if (present_tableStats) - list.add(tableStats); + builder.append(tableStats); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TableStatsResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TableStatsResult typedOther = (TableStatsResult)other; - lastComparison = Boolean.valueOf(isSetTableStats()).compareTo(other.isSetTableStats()); + lastComparison = Boolean.valueOf(isSetTableStats()).compareTo(typedOther.isSetTableStats()); if (lastComparison != 0) { return lastComparison; } if (isSetTableStats()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableStats, other.tableStats); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableStats, typedOther.tableStats); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableStatsResult st { org.apache.thrift.protocol.TList _list330 = iprot.readListBegin(); struct.tableStats = new ArrayList(_list330.size); - ColumnStatisticsObj _elem331; - for (int _i332 = 0; _i332 < _list330.size; ++_i332) + for (int _i331 = 0; _i331 < _list330.size; ++_i331) { - _elem331 = new ColumnStatisticsObj(); - _elem331.read(iprot); - struct.tableStats.add(_elem331); + ColumnStatisticsObj _elem332; // required + _elem332 = new ColumnStatisticsObj(); + _elem332.read(iprot); + struct.tableStats.add(_elem332); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsResult str { org.apache.thrift.protocol.TList _list335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.tableStats = new ArrayList(_list335.size); - ColumnStatisticsObj _elem336; - for (int _i337 = 0; _i337 < _list335.size; ++_i337) + for (int _i336 = 0; _i336 < _list335.size; ++_i336) { - _elem336 = new ColumnStatisticsObj(); - _elem336.read(iprot); - struct.tableStats.add(_elem336); + ColumnStatisticsObj _elem337; // required + _elem337 = new ColumnStatisticsObj(); + _elem337.read(iprot); + struct.tableStats.add(_elem337); } } struct.setTableStatsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index cdbae95..9beaf35 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 @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,12 +28,9 @@ 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.2)", date = "2015-8-3") public class ThriftHiveMetastore { /** @@ -154,6 +150,8 @@ public PartitionsByExprResult get_partitions_by_expr(PartitionsByExprRequest req) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + public int get_num_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + public List get_partitions_by_names(String db_name, String tbl_name, List names) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; public void alter_partition(String db_name, String tbl_name, Partition new_part) throws InvalidOperationException, MetaException, org.apache.thrift.TException; @@ -294,253 +292,255 @@ public interface AsyncIface extends com.facebook.fb303.FacebookService .AsyncIface { - public void getMetaConf(String key, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getMetaConf(String key, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void setMetaConf(String key, String value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void setMetaConf(String key, String value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_database(Database database, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_database(Database database, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_database(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_database(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_database(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_database(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_all_databases(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_all_databases(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_database(String dbname, Database db, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_database(String dbname, Database db, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_type(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_type(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_type(Type type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_type(Type type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_type(String type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_type(String type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_type_all(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_type_all(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_fields(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_fields(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_fields_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_fields_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_schema(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_schema(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_schema_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_schema_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_tables(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_tables(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table(String dbname, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table(String dbname, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table_objects_by_name(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table_objects_by_name(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table_names_by_filter(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table_names_by_filter(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_table_with_environment_context(String dbname, String tbl_name, Table new_tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_table_with_environment_context(String dbname, String tbl_name, Table new_tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_table_with_cascade(String dbname, String tbl_name, Table new_tbl, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_table_with_cascade(String dbname, String tbl_name, Table new_tbl, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_partition(Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_partition(Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_partitions(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_partitions(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_partitions_pspec(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_partitions_pspec(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void append_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void append_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_partitions_req(AddPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_partitions_req(AddPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void append_partition_with_environment_context(String db_name, String tbl_name, List part_vals, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void append_partition_with_environment_context(String db_name, String tbl_name, List part_vals, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void append_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void append_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void append_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void append_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_partition_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partition_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_partitions_req(DropPartitionsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_partitions_req(DropPartitionsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void exchange_partition(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void exchange_partition(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_pspec(String db_name, String tbl_name, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_pspec(String db_name, String tbl_name, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_names(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_names(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_part_specs_by_filter(String db_name, String tbl_name, String filter, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_part_specs_by_filter(String db_name, String tbl_name, String filter, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_by_expr(PartitionsByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_by_expr(PartitionsByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_num_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_by_names(String db_name, String tbl_name, List names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_by_names(String db_name, String tbl_name, List names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_partition(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_partition(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_partitions(String db_name, String tbl_name, List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_partitions(String db_name, String tbl_name, List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void rename_partition(String db_name, String tbl_name, List part_vals, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void rename_partition(String db_name, String tbl_name, List part_vals, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void partition_name_has_valid_characters(List part_vals, boolean throw_exception, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void partition_name_has_valid_characters(List part_vals, boolean throw_exception, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_config_value(String name, String defaultValue, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_config_value(String name, String defaultValue, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void partition_name_to_vals(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void partition_name_to_vals(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void partition_name_to_spec(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void partition_name_to_spec(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_index(Index new_index, Table index_table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_index(Index new_index, Table index_table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_index_by_name(String db_name, String tbl_name, String index_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_index_by_name(String db_name, String tbl_name, String index_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_indexes(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_indexes(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - 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_index_names(String db_name, String tbl_name, short max_indexes, 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_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; + public void update_partition_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_table_statistics_req(TableStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_table_statistics_req(TableStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_partitions_statistics_req(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_statistics_req(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_aggr_stats_for(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_aggr_stats_for(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void set_aggr_stats_for(SetPartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void set_aggr_stats_for(SetPartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void delete_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void delete_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_function(Function func, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_function(Function func, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void alter_function(String dbName, String funcName, Function newFunc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void alter_function(String dbName, String funcName, Function newFunc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_functions(String dbName, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_functions(String dbName, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_all_functions(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_all_functions(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void create_role(Role role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void create_role(Role role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void drop_role(String role_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_role(String role_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_role_names(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_role_names(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void list_roles(String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void list_roles(String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void grant_revoke_role(GrantRevokeRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void grant_revoke_role(GrantRevokeRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_principals_in_role(GetPrincipalsInRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_principals_in_role(GetPrincipalsInRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void grant_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void grant_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void revoke_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void revoke_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void grant_revoke_privileges(GrantRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void grant_revoke_privileges(GrantRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void set_ugi(String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void set_ugi(String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void renew_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void renew_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void cancel_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void cancel_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_open_txns(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_open_txns(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_open_txns_info(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_open_txns_info(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void open_txns(OpenTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void open_txns(OpenTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void abort_txn(AbortTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void abort_txn(AbortTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void commit_txn(CommitTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void commit_txn(CommitTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void lock(LockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void lock(LockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void check_lock(CheckLockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void check_lock(CheckLockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void unlock(UnlockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void unlock(UnlockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void show_locks(ShowLocksRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void show_locks(ShowLocksRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void heartbeat(HeartbeatRequest ids, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void heartbeat(HeartbeatRequest ids, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void heartbeat_txn_range(HeartbeatTxnRangeRequest txns, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void heartbeat_txn_range(HeartbeatTxnRangeRequest txns, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void compact(CompactionRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void compact(CompactionRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void show_compact(ShowCompactRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void show_compact(ShowCompactRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void add_dynamic_partitions(AddDynamicPartitions rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_dynamic_partitions(AddDynamicPartitions rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_next_notification(NotificationEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_next_notification(NotificationEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void get_current_notificationEventId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_current_notificationEventId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void fire_listener_event(FireEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void fire_listener_event(FireEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -2295,6 +2295,38 @@ public PartitionsByExprResult recv_get_partitions_by_expr() throws MetaException throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partitions_by_expr failed: unknown result"); } + public int get_num_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + send_get_num_partitions_by_filter(db_name, tbl_name, filter, max_parts); + return recv_get_num_partitions_by_filter(); + } + + public void send_get_num_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws org.apache.thrift.TException + { + get_num_partitions_by_filter_args args = new get_num_partitions_by_filter_args(); + args.setDb_name(db_name); + args.setTbl_name(tbl_name); + args.setFilter(filter); + args.setMax_parts(max_parts); + sendBase("get_num_partitions_by_filter", args); + } + + public int recv_get_num_partitions_by_filter() throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + get_num_partitions_by_filter_result result = new get_num_partitions_by_filter_result(); + receiveBase(result, "get_num_partitions_by_filter"); + 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_num_partitions_by_filter failed: unknown result"); + } + public List get_partitions_by_names(String db_name, String tbl_name, List names) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_partitions_by_names(db_name, tbl_name, names); @@ -4237,7 +4269,7 @@ public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, super(protocolFactory, clientManager, transport); } - public void getMetaConf(String key, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getMetaConf(String key, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getMetaConf_call method_call = new getMetaConf_call(key, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4246,7 +4278,7 @@ public void getMetaConf(String key, org.apache.thrift.async.AsyncMethodCallback public static class getMetaConf_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; - public getMetaConf_call(String key, 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 { + public getMetaConf_call(String key, 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.key = key; } @@ -4269,7 +4301,7 @@ public String getResult() throws MetaException, org.apache.thrift.TException { } } - public void setMetaConf(String key, String value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void setMetaConf(String key, String value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); setMetaConf_call method_call = new setMetaConf_call(key, value, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4279,7 +4311,7 @@ public void setMetaConf(String key, String value, org.apache.thrift.async.AsyncM public static class setMetaConf_call extends org.apache.thrift.async.TAsyncMethodCall { private String key; private String value; - public setMetaConf_call(String key, String value, 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 { + public setMetaConf_call(String key, String value, 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.key = key; this.value = value; @@ -4304,7 +4336,7 @@ public void getResult() throws MetaException, org.apache.thrift.TException { } } - public void create_database(Database database, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_database(Database database, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); create_database_call method_call = new create_database_call(database, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4313,7 +4345,7 @@ public void create_database(Database database, org.apache.thrift.async.AsyncMeth public static class create_database_call extends org.apache.thrift.async.TAsyncMethodCall { private Database database; - public create_database_call(Database database, 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 { + public create_database_call(Database database, 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.database = database; } @@ -4336,7 +4368,7 @@ public void getResult() throws AlreadyExistsException, InvalidObjectException, M } } - public void get_database(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_database(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_database_call method_call = new get_database_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4345,7 +4377,7 @@ public void get_database(String name, org.apache.thrift.async.AsyncMethodCallbac public static class get_database_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; - public get_database_call(String 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 { + public get_database_call(String 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.name = name; } @@ -4368,7 +4400,7 @@ public Database getResult() throws NoSuchObjectException, MetaException, org.apa } } - public void drop_database(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_database(String name, boolean deleteData, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_database_call method_call = new drop_database_call(name, deleteData, cascade, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4379,7 +4411,7 @@ public void drop_database(String name, boolean deleteData, boolean cascade, org. private String name; private boolean deleteData; private boolean cascade; - public drop_database_call(String name, boolean deleteData, boolean cascade, 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 { + public drop_database_call(String name, boolean deleteData, boolean cascade, 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.name = name; this.deleteData = deleteData; @@ -4406,7 +4438,7 @@ public void getResult() throws NoSuchObjectException, InvalidOperationException, } } - public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_databases_call method_call = new get_databases_call(pattern, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4415,7 +4447,7 @@ public void get_databases(String pattern, org.apache.thrift.async.AsyncMethodCal public static class get_databases_call extends org.apache.thrift.async.TAsyncMethodCall { private String pattern; - public get_databases_call(String pattern, 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 { + public get_databases_call(String pattern, 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.pattern = pattern; } @@ -4438,7 +4470,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_all_databases(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_all_databases(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_all_databases_call method_call = new get_all_databases_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4446,7 +4478,7 @@ public void get_all_databases(org.apache.thrift.async.AsyncMethodCallback result } public static class get_all_databases_call extends org.apache.thrift.async.TAsyncMethodCall { - public get_all_databases_call(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 { + public get_all_databases_call(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); } @@ -4467,7 +4499,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void alter_database(String dbname, Database db, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_database(String dbname, Database db, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_database_call method_call = new alter_database_call(dbname, db, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4477,7 +4509,7 @@ public void alter_database(String dbname, Database db, org.apache.thrift.async.A public static class alter_database_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbname; private Database db; - public alter_database_call(String dbname, Database db, 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 { + public alter_database_call(String dbname, Database db, 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.dbname = dbname; this.db = db; @@ -4502,7 +4534,7 @@ public void getResult() throws MetaException, NoSuchObjectException, org.apache. } } - public void get_type(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_type(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_type_call method_call = new get_type_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4511,7 +4543,7 @@ public void get_type(String name, org.apache.thrift.async.AsyncMethodCallback re public static class get_type_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; - public get_type_call(String 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 { + public get_type_call(String 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.name = name; } @@ -4534,7 +4566,7 @@ public Type getResult() throws MetaException, NoSuchObjectException, org.apache. } } - public void create_type(Type type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_type(Type type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); create_type_call method_call = new create_type_call(type, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4543,7 +4575,7 @@ public void create_type(Type type, org.apache.thrift.async.AsyncMethodCallback r public static class create_type_call extends org.apache.thrift.async.TAsyncMethodCall { private Type type; - public create_type_call(Type type, 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 { + public create_type_call(Type type, 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.type = type; } @@ -4566,7 +4598,7 @@ public boolean getResult() throws AlreadyExistsException, InvalidObjectException } } - public void drop_type(String type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_type(String type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_type_call method_call = new drop_type_call(type, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4575,7 +4607,7 @@ public void drop_type(String type, org.apache.thrift.async.AsyncMethodCallback r public static class drop_type_call extends org.apache.thrift.async.TAsyncMethodCall { private String type; - public drop_type_call(String type, 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 { + public drop_type_call(String type, 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.type = type; } @@ -4598,7 +4630,7 @@ public boolean getResult() throws MetaException, NoSuchObjectException, org.apac } } - public void get_type_all(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_type_all(String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_type_all_call method_call = new get_type_all_call(name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4607,7 +4639,7 @@ public void get_type_all(String name, org.apache.thrift.async.AsyncMethodCallbac public static class get_type_all_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; - public get_type_all_call(String 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 { + public get_type_all_call(String 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.name = name; } @@ -4630,7 +4662,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_fields(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_fields(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_fields_call method_call = new get_fields_call(db_name, table_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4640,7 +4672,7 @@ public void get_fields(String db_name, String table_name, org.apache.thrift.asyn public static class get_fields_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String table_name; - public get_fields_call(String db_name, String table_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 { + public get_fields_call(String db_name, String table_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.table_name = table_name; @@ -4665,7 +4697,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_fields_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_fields_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_fields_with_environment_context_call method_call = new get_fields_with_environment_context_call(db_name, table_name, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4676,7 +4708,7 @@ public void get_fields_with_environment_context(String db_name, String table_nam private String db_name; private String table_name; private EnvironmentContext environment_context; - public get_fields_with_environment_context_call(String db_name, String table_name, EnvironmentContext environment_context, 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 { + public get_fields_with_environment_context_call(String db_name, String table_name, EnvironmentContext environment_context, 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.table_name = table_name; @@ -4703,7 +4735,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_schema(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_schema(String db_name, String table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_schema_call method_call = new get_schema_call(db_name, table_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4713,7 +4745,7 @@ public void get_schema(String db_name, String table_name, org.apache.thrift.asyn public static class get_schema_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String table_name; - public get_schema_call(String db_name, String table_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 { + public get_schema_call(String db_name, String table_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.table_name = table_name; @@ -4738,7 +4770,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_schema_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_schema_with_environment_context(String db_name, String table_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_schema_with_environment_context_call method_call = new get_schema_with_environment_context_call(db_name, table_name, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4749,7 +4781,7 @@ public void get_schema_with_environment_context(String db_name, String table_nam private String db_name; private String table_name; private EnvironmentContext environment_context; - public get_schema_with_environment_context_call(String db_name, String table_name, EnvironmentContext environment_context, 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 { + public get_schema_with_environment_context_call(String db_name, String table_name, EnvironmentContext environment_context, 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.table_name = table_name; @@ -4776,7 +4808,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); create_table_call method_call = new create_table_call(tbl, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4785,7 +4817,7 @@ public void create_table(Table tbl, org.apache.thrift.async.AsyncMethodCallback public static class create_table_call extends org.apache.thrift.async.TAsyncMethodCall { private Table tbl; - public create_table_call(Table tbl, 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 { + public create_table_call(Table tbl, 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.tbl = tbl; } @@ -4808,7 +4840,7 @@ public void getResult() throws AlreadyExistsException, InvalidObjectException, M } } - public void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); create_table_with_environment_context_call method_call = new create_table_with_environment_context_call(tbl, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4818,7 +4850,7 @@ public void create_table_with_environment_context(Table tbl, EnvironmentContext public static class create_table_with_environment_context_call extends org.apache.thrift.async.TAsyncMethodCall { private Table tbl; private EnvironmentContext environment_context; - public create_table_with_environment_context_call(Table tbl, EnvironmentContext environment_context, 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 { + public create_table_with_environment_context_call(Table tbl, EnvironmentContext environment_context, 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.tbl = tbl; this.environment_context = environment_context; @@ -4843,7 +4875,7 @@ public void getResult() throws AlreadyExistsException, InvalidObjectException, M } } - public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_table_call method_call = new drop_table_call(dbname, name, deleteData, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4854,7 +4886,7 @@ public void drop_table(String dbname, String name, boolean deleteData, org.apach private String dbname; private String name; private boolean deleteData; - public drop_table_call(String dbname, String name, boolean deleteData, 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 { + public drop_table_call(String dbname, String name, boolean deleteData, 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.dbname = dbname; this.name = name; @@ -4881,7 +4913,7 @@ public void getResult() throws NoSuchObjectException, MetaException, org.apache. } } - public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_table_with_environment_context_call method_call = new drop_table_with_environment_context_call(dbname, name, deleteData, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4893,7 +4925,7 @@ public void drop_table_with_environment_context(String dbname, String name, bool private String name; private boolean deleteData; private EnvironmentContext environment_context; - public drop_table_with_environment_context_call(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, 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 { + public drop_table_with_environment_context_call(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, 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.dbname = dbname; this.name = name; @@ -4922,7 +4954,7 @@ public void getResult() throws NoSuchObjectException, MetaException, org.apache. } } - public void get_tables(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_tables(String db_name, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_tables_call method_call = new get_tables_call(db_name, pattern, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4932,7 +4964,7 @@ public void get_tables(String db_name, String pattern, org.apache.thrift.async.A public static class get_tables_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; private String pattern; - public get_tables_call(String db_name, String pattern, 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 { + public get_tables_call(String db_name, String pattern, 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.pattern = pattern; @@ -4957,7 +4989,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_all_tables_call method_call = new get_all_tables_call(db_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4966,7 +4998,7 @@ public void get_all_tables(String db_name, org.apache.thrift.async.AsyncMethodCa public static class get_all_tables_call extends org.apache.thrift.async.TAsyncMethodCall { private String db_name; - public get_all_tables_call(String db_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 { + public get_all_tables_call(String db_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; } @@ -4989,7 +5021,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_table(String dbname, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_table(String dbname, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_call method_call = new get_table_call(dbname, tbl_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -4999,7 +5031,7 @@ public void get_table(String dbname, String tbl_name, org.apache.thrift.async.As public static class get_table_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbname; private String tbl_name; - public get_table_call(String dbname, 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 { + public get_table_call(String dbname, 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.dbname = dbname; this.tbl_name = tbl_name; @@ -5024,7 +5056,7 @@ public Table getResult() throws MetaException, NoSuchObjectException, org.apache } } - public void get_table_objects_by_name(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_table_objects_by_name(String dbname, List tbl_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_objects_by_name_call method_call = new get_table_objects_by_name_call(dbname, tbl_names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5034,7 +5066,7 @@ public void get_table_objects_by_name(String dbname, List tbl_names, org public static class get_table_objects_by_name_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbname; private List tbl_names; - public get_table_objects_by_name_call(String dbname, List tbl_names, 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 { + public get_table_objects_by_name_call(String dbname, List tbl_names, 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.dbname = dbname; this.tbl_names = tbl_names; @@ -5059,7 +5091,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_table_names_by_filter(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_table_names_by_filter(String dbname, String filter, short max_tables, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_names_by_filter_call method_call = new get_table_names_by_filter_call(dbname, filter, max_tables, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5070,7 +5102,7 @@ public void get_table_names_by_filter(String dbname, String filter, short max_ta private String dbname; private String filter; private short max_tables; - public get_table_names_by_filter_call(String dbname, String filter, short max_tables, 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 { + public get_table_names_by_filter_call(String dbname, String filter, short max_tables, 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.dbname = dbname; this.filter = filter; @@ -5097,7 +5129,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_table_call method_call = new alter_table_call(dbname, tbl_name, new_tbl, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5108,7 +5140,7 @@ public void alter_table(String dbname, String tbl_name, Table new_tbl, org.apach private String dbname; private String tbl_name; private Table new_tbl; - public alter_table_call(String dbname, String tbl_name, Table new_tbl, 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 { + public alter_table_call(String dbname, String tbl_name, Table new_tbl, 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.dbname = dbname; this.tbl_name = tbl_name; @@ -5135,7 +5167,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void alter_table_with_environment_context(String dbname, String tbl_name, Table new_tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_table_with_environment_context(String dbname, String tbl_name, Table new_tbl, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_table_with_environment_context_call method_call = new alter_table_with_environment_context_call(dbname, tbl_name, new_tbl, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5147,7 +5179,7 @@ public void alter_table_with_environment_context(String dbname, String tbl_name, private String tbl_name; private Table new_tbl; private EnvironmentContext environment_context; - public alter_table_with_environment_context_call(String dbname, String tbl_name, Table new_tbl, EnvironmentContext environment_context, 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 { + public alter_table_with_environment_context_call(String dbname, String tbl_name, Table new_tbl, EnvironmentContext environment_context, 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.dbname = dbname; this.tbl_name = tbl_name; @@ -5176,7 +5208,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void alter_table_with_cascade(String dbname, String tbl_name, Table new_tbl, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_table_with_cascade(String dbname, String tbl_name, Table new_tbl, boolean cascade, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_table_with_cascade_call method_call = new alter_table_with_cascade_call(dbname, tbl_name, new_tbl, cascade, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5188,7 +5220,7 @@ public void alter_table_with_cascade(String dbname, String tbl_name, Table new_t private String tbl_name; private Table new_tbl; private boolean cascade; - public alter_table_with_cascade_call(String dbname, String tbl_name, Table new_tbl, boolean cascade, 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 { + public alter_table_with_cascade_call(String dbname, String tbl_name, Table new_tbl, boolean cascade, 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.dbname = dbname; this.tbl_name = tbl_name; @@ -5217,7 +5249,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void add_partition(Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_partition(Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_partition_call method_call = new add_partition_call(new_part, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5226,7 +5258,7 @@ public void add_partition(Partition new_part, org.apache.thrift.async.AsyncMetho public static class add_partition_call extends org.apache.thrift.async.TAsyncMethodCall { private Partition new_part; - public add_partition_call(Partition new_part, 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 { + public add_partition_call(Partition new_part, 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.new_part = new_part; } @@ -5249,7 +5281,7 @@ public Partition getResult() throws InvalidObjectException, AlreadyExistsExcepti } } - public void add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_partition_with_environment_context_call method_call = new add_partition_with_environment_context_call(new_part, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5259,7 +5291,7 @@ public void add_partition_with_environment_context(Partition new_part, Environme public static class add_partition_with_environment_context_call extends org.apache.thrift.async.TAsyncMethodCall { private Partition new_part; private EnvironmentContext environment_context; - public add_partition_with_environment_context_call(Partition new_part, EnvironmentContext environment_context, 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 { + public add_partition_with_environment_context_call(Partition new_part, EnvironmentContext environment_context, 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.new_part = new_part; this.environment_context = environment_context; @@ -5284,7 +5316,7 @@ public Partition getResult() throws InvalidObjectException, AlreadyExistsExcepti } } - public void add_partitions(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_partitions(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_partitions_call method_call = new add_partitions_call(new_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5293,7 +5325,7 @@ public void add_partitions(List new_parts, org.apache.thrift.async.As public static class add_partitions_call extends org.apache.thrift.async.TAsyncMethodCall { private List new_parts; - public add_partitions_call(List new_parts, 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 { + public add_partitions_call(List new_parts, 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.new_parts = new_parts; } @@ -5316,7 +5348,7 @@ public int getResult() throws InvalidObjectException, AlreadyExistsException, Me } } - public void add_partitions_pspec(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_partitions_pspec(List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_partitions_pspec_call method_call = new add_partitions_pspec_call(new_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5325,7 +5357,7 @@ public void add_partitions_pspec(List new_parts, org.apache.thrif public static class add_partitions_pspec_call extends org.apache.thrift.async.TAsyncMethodCall { private List new_parts; - public add_partitions_pspec_call(List new_parts, 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 { + public add_partitions_pspec_call(List new_parts, 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.new_parts = new_parts; } @@ -5348,7 +5380,7 @@ public int getResult() throws InvalidObjectException, AlreadyExistsException, Me } } - public void append_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void append_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); append_partition_call method_call = new append_partition_call(db_name, tbl_name, part_vals, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5359,7 +5391,7 @@ public void append_partition(String db_name, String tbl_name, List part_ private String db_name; private String tbl_name; private List part_vals; - public append_partition_call(String db_name, String tbl_name, List part_vals, 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 { + public append_partition_call(String db_name, String tbl_name, List part_vals, 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; @@ -5386,7 +5418,7 @@ public Partition getResult() throws InvalidObjectException, AlreadyExistsExcepti } } - public void add_partitions_req(AddPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_partitions_req(AddPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_partitions_req_call method_call = new add_partitions_req_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5395,7 +5427,7 @@ public void add_partitions_req(AddPartitionsRequest request, org.apache.thrift.a public static class add_partitions_req_call extends org.apache.thrift.async.TAsyncMethodCall { private AddPartitionsRequest request; - public add_partitions_req_call(AddPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public add_partitions_req_call(AddPartitionsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.request = request; } @@ -5418,7 +5450,7 @@ public AddPartitionsResult getResult() throws InvalidObjectException, AlreadyExi } } - public void append_partition_with_environment_context(String db_name, String tbl_name, List part_vals, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void append_partition_with_environment_context(String db_name, String tbl_name, List part_vals, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); append_partition_with_environment_context_call method_call = new append_partition_with_environment_context_call(db_name, tbl_name, part_vals, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5430,7 +5462,7 @@ public void append_partition_with_environment_context(String db_name, String tbl private String tbl_name; private List part_vals; private EnvironmentContext environment_context; - public append_partition_with_environment_context_call(String db_name, String tbl_name, List part_vals, EnvironmentContext environment_context, 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 { + public append_partition_with_environment_context_call(String db_name, String tbl_name, List part_vals, EnvironmentContext environment_context, 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; @@ -5459,7 +5491,7 @@ public Partition getResult() throws InvalidObjectException, AlreadyExistsExcepti } } - public void append_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void append_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); append_partition_by_name_call method_call = new append_partition_by_name_call(db_name, tbl_name, part_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5470,7 +5502,7 @@ public void append_partition_by_name(String db_name, String tbl_name, String par private String db_name; private String tbl_name; private String part_name; - public append_partition_by_name_call(String db_name, String tbl_name, String part_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 { + public append_partition_by_name_call(String db_name, String tbl_name, String part_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; @@ -5497,7 +5529,7 @@ public Partition getResult() throws InvalidObjectException, AlreadyExistsExcepti } } - public void append_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void append_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); append_partition_by_name_with_environment_context_call method_call = new append_partition_by_name_with_environment_context_call(db_name, tbl_name, part_name, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5509,7 +5541,7 @@ public void append_partition_by_name_with_environment_context(String db_name, St private String tbl_name; private String part_name; private EnvironmentContext environment_context; - public append_partition_by_name_with_environment_context_call(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context, 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 { + public append_partition_by_name_with_environment_context_call(String db_name, String tbl_name, String part_name, EnvironmentContext environment_context, 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; @@ -5538,7 +5570,7 @@ public Partition getResult() throws InvalidObjectException, AlreadyExistsExcepti } } - public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_partition(String db_name, String tbl_name, List part_vals, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_partition_call method_call = new drop_partition_call(db_name, tbl_name, part_vals, deleteData, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5550,7 +5582,7 @@ public void drop_partition(String db_name, String tbl_name, List part_va private String tbl_name; private List part_vals; private boolean deleteData; - public drop_partition_call(String db_name, String tbl_name, List part_vals, boolean deleteData, 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 { + public drop_partition_call(String db_name, String tbl_name, List part_vals, boolean deleteData, 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; @@ -5579,7 +5611,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, org.apac } } - public void drop_partition_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_partition_with_environment_context(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_partition_with_environment_context_call method_call = new drop_partition_with_environment_context_call(db_name, tbl_name, part_vals, deleteData, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5592,7 +5624,7 @@ public void drop_partition_with_environment_context(String db_name, String tbl_n private List part_vals; private boolean deleteData; private EnvironmentContext environment_context; - public drop_partition_with_environment_context_call(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, 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 { + public drop_partition_with_environment_context_call(String db_name, String tbl_name, List part_vals, boolean deleteData, EnvironmentContext environment_context, 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; @@ -5623,7 +5655,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, org.apac } } - public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_partition_by_name(String db_name, String tbl_name, String part_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_partition_by_name_call method_call = new drop_partition_by_name_call(db_name, tbl_name, part_name, deleteData, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5635,7 +5667,7 @@ public void drop_partition_by_name(String db_name, String tbl_name, String part_ private String tbl_name; private String part_name; private boolean deleteData; - public drop_partition_by_name_call(String db_name, String tbl_name, String part_name, boolean deleteData, 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 { + public drop_partition_by_name_call(String db_name, String tbl_name, String part_name, boolean deleteData, 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; @@ -5664,7 +5696,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, org.apac } } - public void drop_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_partition_by_name_with_environment_context(String db_name, String tbl_name, String part_name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_partition_by_name_with_environment_context_call method_call = new drop_partition_by_name_with_environment_context_call(db_name, tbl_name, part_name, deleteData, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5677,7 +5709,7 @@ public void drop_partition_by_name_with_environment_context(String db_name, Stri private String part_name; private boolean deleteData; private EnvironmentContext environment_context; - public drop_partition_by_name_with_environment_context_call(String db_name, String tbl_name, String part_name, boolean deleteData, EnvironmentContext environment_context, 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 { + public drop_partition_by_name_with_environment_context_call(String db_name, String tbl_name, String part_name, boolean deleteData, EnvironmentContext environment_context, 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; @@ -5708,7 +5740,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, org.apac } } - public void drop_partitions_req(DropPartitionsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_partitions_req(DropPartitionsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_partitions_req_call method_call = new drop_partitions_req_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5717,7 +5749,7 @@ public void drop_partitions_req(DropPartitionsRequest req, org.apache.thrift.asy public static class drop_partitions_req_call extends org.apache.thrift.async.TAsyncMethodCall { private DropPartitionsRequest req; - public drop_partitions_req_call(DropPartitionsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public drop_partitions_req_call(DropPartitionsRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -5740,7 +5772,7 @@ public DropPartitionsResult getResult() throws NoSuchObjectException, MetaExcept } } - public void get_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partition(String db_name, String tbl_name, List part_vals, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_call method_call = new get_partition_call(db_name, tbl_name, part_vals, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5751,7 +5783,7 @@ public void get_partition(String db_name, String tbl_name, List part_val private String db_name; private String tbl_name; private List part_vals; - public get_partition_call(String db_name, String tbl_name, List part_vals, 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 { + public get_partition_call(String db_name, String tbl_name, List part_vals, 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; @@ -5778,7 +5810,7 @@ public Partition getResult() throws MetaException, NoSuchObjectException, org.ap } } - public void exchange_partition(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void exchange_partition(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); exchange_partition_call method_call = new exchange_partition_call(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5791,7 +5823,7 @@ public void exchange_partition(Map partitionSpecs, String source_ private String source_table_name; private String dest_db; private String dest_table_name; - public exchange_partition_call(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_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 { + public exchange_partition_call(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_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.partitionSpecs = partitionSpecs; this.source_db = source_db; @@ -5822,7 +5854,7 @@ public Partition getResult() throws MetaException, NoSuchObjectException, Invali } } - public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_with_auth_call method_call = new get_partition_with_auth_call(db_name, tbl_name, part_vals, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5835,7 +5867,7 @@ public void get_partition_with_auth(String db_name, String tbl_name, List part_vals; private String user_name; private List group_names; - public get_partition_with_auth_call(String db_name, String tbl_name, List part_vals, String user_name, List group_names, 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 { + public get_partition_with_auth_call(String db_name, String tbl_name, List part_vals, String user_name, List group_names, 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; @@ -5866,7 +5898,7 @@ public Partition getResult() throws MetaException, NoSuchObjectException, org.ap } } - public void get_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_by_name_call method_call = new get_partition_by_name_call(db_name, tbl_name, part_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5877,7 +5909,7 @@ public void get_partition_by_name(String db_name, String tbl_name, String part_n private String db_name; private String tbl_name; private String part_name; - public get_partition_by_name_call(String db_name, String tbl_name, String part_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 { + public get_partition_by_name_call(String db_name, String tbl_name, String part_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; @@ -5904,7 +5936,7 @@ public Partition getResult() throws MetaException, NoSuchObjectException, org.ap } } - public void get_partitions(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_call method_call = new get_partitions_call(db_name, tbl_name, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5915,7 +5947,7 @@ public void get_partitions(String db_name, String tbl_name, short max_parts, org private String db_name; private String tbl_name; private short max_parts; - public get_partitions_call(String db_name, String tbl_name, short max_parts, 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 { + public get_partitions_call(String db_name, String tbl_name, short max_parts, 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; @@ -5942,7 +5974,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_with_auth(String db_name, String tbl_name, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_with_auth_call method_call = new get_partitions_with_auth_call(db_name, tbl_name, max_parts, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5955,7 +5987,7 @@ public void get_partitions_with_auth(String db_name, String tbl_name, short max_ private short max_parts; private String user_name; private List group_names; - public get_partitions_with_auth_call(String db_name, String tbl_name, short max_parts, String user_name, List group_names, 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 { + public get_partitions_with_auth_call(String db_name, String tbl_name, short max_parts, String user_name, List group_names, 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; @@ -5986,7 +6018,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partitions_pspec(String db_name, String tbl_name, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_pspec(String db_name, String tbl_name, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_pspec_call method_call = new get_partitions_pspec_call(db_name, tbl_name, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -5997,7 +6029,7 @@ public void get_partitions_pspec(String db_name, String tbl_name, int max_parts, private String db_name; private String tbl_name; private int max_parts; - public get_partitions_pspec_call(String db_name, String tbl_name, int max_parts, 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 { + public get_partitions_pspec_call(String db_name, String tbl_name, int max_parts, 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; @@ -6024,7 +6056,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partition_names(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partition_names(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_names_call method_call = new get_partition_names_call(db_name, tbl_name, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6035,7 +6067,7 @@ public void get_partition_names(String db_name, String tbl_name, short max_parts private String db_name; private String tbl_name; private short max_parts; - public get_partition_names_call(String db_name, String tbl_name, short max_parts, 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 { + public get_partition_names_call(String db_name, String tbl_name, short max_parts, 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; @@ -6062,7 +6094,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_ps_call method_call = new get_partitions_ps_call(db_name, tbl_name, part_vals, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6074,7 +6106,7 @@ public void get_partitions_ps(String db_name, String tbl_name, List part private String tbl_name; private List part_vals; private short max_parts; - public get_partitions_ps_call(String db_name, String tbl_name, List part_vals, short max_parts, 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 { + public get_partitions_ps_call(String db_name, String tbl_name, List part_vals, short max_parts, 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; @@ -6103,7 +6135,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_ps_with_auth_call method_call = new get_partitions_ps_with_auth_call(db_name, tbl_name, part_vals, max_parts, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6117,7 +6149,7 @@ public void get_partitions_ps_with_auth(String db_name, String tbl_name, List group_names; - public get_partitions_ps_with_auth_call(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, 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 { + public get_partitions_ps_with_auth_call(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, 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; @@ -6150,7 +6182,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partition_names_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_names_ps_call method_call = new get_partition_names_ps_call(db_name, tbl_name, part_vals, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6162,7 +6194,7 @@ public void get_partition_names_ps(String db_name, String tbl_name, List private String tbl_name; private List part_vals; private short max_parts; - public get_partition_names_ps_call(String db_name, String tbl_name, List part_vals, short max_parts, 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 { + public get_partition_names_ps_call(String db_name, String tbl_name, List part_vals, short max_parts, 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; @@ -6191,7 +6223,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_by_filter_call method_call = new get_partitions_by_filter_call(db_name, tbl_name, filter, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6203,7 +6235,7 @@ public void get_partitions_by_filter(String db_name, String tbl_name, String fil private String tbl_name; private String filter; private short max_parts; - public get_partitions_by_filter_call(String db_name, String tbl_name, String filter, short max_parts, 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 { + public get_partitions_by_filter_call(String db_name, String tbl_name, String filter, short max_parts, 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; @@ -6232,7 +6264,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_part_specs_by_filter(String db_name, String tbl_name, String filter, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_part_specs_by_filter(String db_name, String tbl_name, String filter, int max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_part_specs_by_filter_call method_call = new get_part_specs_by_filter_call(db_name, tbl_name, filter, max_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6244,7 +6276,7 @@ public void get_part_specs_by_filter(String db_name, String tbl_name, String fil private String tbl_name; private String filter; private int max_parts; - public get_part_specs_by_filter_call(String db_name, String tbl_name, String filter, int max_parts, 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 { + public get_part_specs_by_filter_call(String db_name, String tbl_name, String filter, int max_parts, 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; @@ -6273,7 +6305,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_partitions_by_expr(PartitionsByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_by_expr(PartitionsByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_by_expr_call method_call = new get_partitions_by_expr_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6282,7 +6314,7 @@ public void get_partitions_by_expr(PartitionsByExprRequest req, org.apache.thrif public static class get_partitions_by_expr_call extends org.apache.thrift.async.TAsyncMethodCall { private PartitionsByExprRequest req; - public get_partitions_by_expr_call(PartitionsByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_partitions_by_expr_call(PartitionsByExprRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -6305,7 +6337,48 @@ public PartitionsByExprResult getResult() throws MetaException, NoSuchObjectExce } } - public void get_partitions_by_names(String db_name, String tbl_name, List names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_num_partitions_by_filter(String db_name, String tbl_name, String filter, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_num_partitions_by_filter_call method_call = new get_num_partitions_by_filter_call(db_name, tbl_name, filter, max_parts, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class get_num_partitions_by_filter_call extends org.apache.thrift.async.TAsyncMethodCall { + private String db_name; + private String tbl_name; + private String filter; + private short max_parts; + public get_num_partitions_by_filter_call(String db_name, String tbl_name, String filter, short max_parts, 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; + this.filter = filter; + this.max_parts = max_parts; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_num_partitions_by_filter", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_num_partitions_by_filter_args args = new get_num_partitions_by_filter_args(); + args.setDb_name(db_name); + args.setTbl_name(tbl_name); + args.setFilter(filter); + args.setMax_parts(max_parts); + args.write(prot); + prot.writeMessageEnd(); + } + + public int 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_num_partitions_by_filter(); + } + } + + public void get_partitions_by_names(String db_name, String tbl_name, List names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_by_names_call method_call = new get_partitions_by_names_call(db_name, tbl_name, names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6316,7 +6389,7 @@ public void get_partitions_by_names(String db_name, String tbl_name, List names; - public get_partitions_by_names_call(String db_name, String tbl_name, List names, 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 { + public get_partitions_by_names_call(String db_name, String tbl_name, List names, 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; @@ -6343,7 +6416,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void alter_partition(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_partition(String db_name, String tbl_name, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_partition_call method_call = new alter_partition_call(db_name, tbl_name, new_part, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6354,7 +6427,7 @@ public void alter_partition(String db_name, String tbl_name, Partition new_part, private String db_name; private String tbl_name; private Partition new_part; - public alter_partition_call(String db_name, String tbl_name, Partition new_part, 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 { + public alter_partition_call(String db_name, String tbl_name, Partition new_part, 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; @@ -6381,7 +6454,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void alter_partitions(String db_name, String tbl_name, List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_partitions(String db_name, String tbl_name, List new_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_partitions_call method_call = new alter_partitions_call(db_name, tbl_name, new_parts, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6392,7 +6465,7 @@ public void alter_partitions(String db_name, String tbl_name, List ne private String db_name; private String tbl_name; private List new_parts; - public alter_partitions_call(String db_name, String tbl_name, List new_parts, 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 { + public alter_partitions_call(String db_name, String tbl_name, List new_parts, 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; @@ -6419,7 +6492,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_partition_with_environment_context(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_partition_with_environment_context_call method_call = new alter_partition_with_environment_context_call(db_name, tbl_name, new_part, environment_context, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6431,7 +6504,7 @@ public void alter_partition_with_environment_context(String db_name, String tbl_ private String tbl_name; private Partition new_part; private EnvironmentContext environment_context; - public alter_partition_with_environment_context_call(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, 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 { + public alter_partition_with_environment_context_call(String db_name, String tbl_name, Partition new_part, EnvironmentContext environment_context, 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; @@ -6460,7 +6533,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void rename_partition(String db_name, String tbl_name, List part_vals, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void rename_partition(String db_name, String tbl_name, List part_vals, Partition new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); rename_partition_call method_call = new rename_partition_call(db_name, tbl_name, part_vals, new_part, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6472,7 +6545,7 @@ public void rename_partition(String db_name, String tbl_name, List part_ private String tbl_name; private List part_vals; private Partition new_part; - public rename_partition_call(String db_name, String tbl_name, List part_vals, Partition new_part, 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 { + public rename_partition_call(String db_name, String tbl_name, List part_vals, Partition new_part, 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; @@ -6501,7 +6574,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void partition_name_has_valid_characters(List part_vals, boolean throw_exception, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void partition_name_has_valid_characters(List part_vals, boolean throw_exception, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); partition_name_has_valid_characters_call method_call = new partition_name_has_valid_characters_call(part_vals, throw_exception, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6511,7 +6584,7 @@ public void partition_name_has_valid_characters(List part_vals, boolean public static class partition_name_has_valid_characters_call extends org.apache.thrift.async.TAsyncMethodCall { private List part_vals; private boolean throw_exception; - public partition_name_has_valid_characters_call(List part_vals, boolean throw_exception, 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 { + public partition_name_has_valid_characters_call(List part_vals, boolean throw_exception, 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.part_vals = part_vals; this.throw_exception = throw_exception; @@ -6536,7 +6609,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void get_config_value(String name, String defaultValue, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_config_value(String name, String defaultValue, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_config_value_call method_call = new get_config_value_call(name, defaultValue, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6546,7 +6619,7 @@ public void get_config_value(String name, String defaultValue, org.apache.thrift public static class get_config_value_call extends org.apache.thrift.async.TAsyncMethodCall { private String name; private String defaultValue; - public get_config_value_call(String name, String defaultValue, 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 { + public get_config_value_call(String name, String defaultValue, 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.name = name; this.defaultValue = defaultValue; @@ -6571,7 +6644,7 @@ public String getResult() throws ConfigValSecurityException, org.apache.thrift.T } } - public void partition_name_to_vals(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void partition_name_to_vals(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); partition_name_to_vals_call method_call = new partition_name_to_vals_call(part_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6580,7 +6653,7 @@ public void partition_name_to_vals(String part_name, org.apache.thrift.async.Asy public static class partition_name_to_vals_call extends org.apache.thrift.async.TAsyncMethodCall { private String part_name; - public partition_name_to_vals_call(String part_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 { + public partition_name_to_vals_call(String part_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.part_name = part_name; } @@ -6603,7 +6676,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void partition_name_to_spec(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void partition_name_to_spec(String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); partition_name_to_spec_call method_call = new partition_name_to_spec_call(part_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6612,7 +6685,7 @@ public void partition_name_to_spec(String part_name, org.apache.thrift.async.Asy public static class partition_name_to_spec_call extends org.apache.thrift.async.TAsyncMethodCall { private String part_name; - public partition_name_to_spec_call(String part_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 { + public partition_name_to_spec_call(String part_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.part_name = part_name; } @@ -6635,7 +6708,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); markPartitionForEvent_call method_call = new markPartitionForEvent_call(db_name, tbl_name, part_vals, eventType, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6647,7 +6720,7 @@ public void markPartitionForEvent(String db_name, String tbl_name, Map part_vals; private PartitionEventType eventType; - public markPartitionForEvent_call(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, 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 { + public markPartitionForEvent_call(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, 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; @@ -6676,7 +6749,7 @@ public void getResult() throws MetaException, NoSuchObjectException, UnknownDBEx } } - public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); isPartitionMarkedForEvent_call method_call = new isPartitionMarkedForEvent_call(db_name, tbl_name, part_vals, eventType, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6688,7 +6761,7 @@ public void isPartitionMarkedForEvent(String db_name, String tbl_name, Map part_vals; private PartitionEventType eventType; - public isPartitionMarkedForEvent_call(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, 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 { + public isPartitionMarkedForEvent_call(String db_name, String tbl_name, Map part_vals, PartitionEventType eventType, 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; @@ -6717,7 +6790,7 @@ public boolean getResult() throws MetaException, NoSuchObjectException, UnknownD } } - public void add_index(Index new_index, Table index_table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_index(Index new_index, Table index_table, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_index_call method_call = new add_index_call(new_index, index_table, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6727,7 +6800,7 @@ public void add_index(Index new_index, Table index_table, org.apache.thrift.asyn public static class add_index_call extends org.apache.thrift.async.TAsyncMethodCall { private Index new_index; private Table index_table; - public add_index_call(Index new_index, Table index_table, 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 { + public add_index_call(Index new_index, Table index_table, 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.new_index = new_index; this.index_table = index_table; @@ -6752,7 +6825,7 @@ public Index getResult() throws InvalidObjectException, AlreadyExistsException, } } - public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_index_call method_call = new alter_index_call(dbname, base_tbl_name, idx_name, new_idx, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6764,7 +6837,7 @@ public void alter_index(String dbname, String base_tbl_name, String idx_name, In private String base_tbl_name; private String idx_name; private Index new_idx; - public alter_index_call(String dbname, String base_tbl_name, String idx_name, Index new_idx, 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 { + public alter_index_call(String dbname, String base_tbl_name, String idx_name, Index new_idx, 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.dbname = dbname; this.base_tbl_name = base_tbl_name; @@ -6793,7 +6866,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_index_by_name(String db_name, String tbl_name, String index_name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_index_by_name_call method_call = new drop_index_by_name_call(db_name, tbl_name, index_name, deleteData, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6805,7 +6878,7 @@ public void drop_index_by_name(String db_name, String tbl_name, String index_nam private String tbl_name; private String index_name; private boolean deleteData; - public drop_index_by_name_call(String db_name, String tbl_name, String index_name, boolean deleteData, 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 { + public drop_index_by_name_call(String db_name, String tbl_name, String index_name, boolean deleteData, 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; @@ -6834,7 +6907,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, org.apac } } - public void get_index_by_name(String db_name, String tbl_name, String index_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_index_by_name(String db_name, String tbl_name, String index_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_index_by_name_call method_call = new get_index_by_name_call(db_name, tbl_name, index_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6845,7 +6918,7 @@ public void get_index_by_name(String db_name, String tbl_name, String index_name private String db_name; private String tbl_name; private String index_name; - public get_index_by_name_call(String db_name, String tbl_name, String index_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 { + public get_index_by_name_call(String db_name, String tbl_name, String index_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; @@ -6872,7 +6945,7 @@ public Index getResult() throws MetaException, NoSuchObjectException, org.apache } } - public void get_indexes(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_indexes(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_indexes_call method_call = new get_indexes_call(db_name, tbl_name, max_indexes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6883,7 +6956,7 @@ public void get_indexes(String db_name, String tbl_name, short max_indexes, org. private String db_name; private String tbl_name; private short max_indexes; - public get_indexes_call(String db_name, String tbl_name, short max_indexes, 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 { + public get_indexes_call(String db_name, String tbl_name, short max_indexes, 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; @@ -6910,7 +6983,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - 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_index_names(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_index_names_call method_call = new get_index_names_call(db_name, tbl_name, max_indexes, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6921,7 +6994,7 @@ public void get_index_names(String db_name, String tbl_name, short max_indexes, private String db_name; private String tbl_name; private short max_indexes; - public get_index_names_call(String db_name, String tbl_name, short max_indexes, 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 { + public get_index_names_call(String db_name, String tbl_name, short max_indexes, 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; @@ -6948,7 +7021,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void update_table_column_statistics(ColumnStatistics stats_obj, 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 { checkReady(); update_table_column_statistics_call method_call = new update_table_column_statistics_call(stats_obj, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6957,7 +7030,7 @@ public void update_table_column_statistics(ColumnStatistics stats_obj, org.apach public static class update_table_column_statistics_call extends org.apache.thrift.async.TAsyncMethodCall { private ColumnStatistics stats_obj; - public update_table_column_statistics_call(ColumnStatistics stats_obj, 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 { + public update_table_column_statistics_call(ColumnStatistics stats_obj, 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.stats_obj = stats_obj; } @@ -6980,7 +7053,7 @@ public boolean getResult() throws NoSuchObjectException, InvalidObjectException, } } - public void update_partition_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 { checkReady(); update_partition_column_statistics_call method_call = new update_partition_column_statistics_call(stats_obj, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -6989,7 +7062,7 @@ public void update_partition_column_statistics(ColumnStatistics stats_obj, org.a public static class update_partition_column_statistics_call extends org.apache.thrift.async.TAsyncMethodCall { private ColumnStatistics stats_obj; - public update_partition_column_statistics_call(ColumnStatistics stats_obj, 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 { + public update_partition_column_statistics_call(ColumnStatistics stats_obj, 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.stats_obj = stats_obj; } @@ -7012,7 +7085,7 @@ public boolean getResult() throws NoSuchObjectException, InvalidObjectException, } } - public void get_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_column_statistics_call method_call = new get_table_column_statistics_call(db_name, tbl_name, col_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7023,7 +7096,7 @@ public void get_table_column_statistics(String db_name, String tbl_name, String private String db_name; private String tbl_name; private String col_name; - public get_table_column_statistics_call(String db_name, String tbl_name, String col_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 { + public get_table_column_statistics_call(String db_name, String tbl_name, String col_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; @@ -7050,7 +7123,7 @@ public ColumnStatistics getResult() throws NoSuchObjectException, MetaException, } } - public void get_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_column_statistics_call method_call = new get_partition_column_statistics_call(db_name, tbl_name, part_name, col_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7062,7 +7135,7 @@ public void get_partition_column_statistics(String db_name, String tbl_name, Str private String tbl_name; private String part_name; private String col_name; - public get_partition_column_statistics_call(String db_name, String tbl_name, String part_name, String col_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 { + public get_partition_column_statistics_call(String db_name, String tbl_name, String part_name, String col_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; @@ -7091,7 +7164,7 @@ public ColumnStatistics getResult() throws NoSuchObjectException, MetaException, } } - public void get_table_statistics_req(TableStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_table_statistics_req(TableStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_table_statistics_req_call method_call = new get_table_statistics_req_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7100,7 +7173,7 @@ public void get_table_statistics_req(TableStatsRequest request, org.apache.thrif public static class get_table_statistics_req_call extends org.apache.thrift.async.TAsyncMethodCall { private TableStatsRequest request; - public get_table_statistics_req_call(TableStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_table_statistics_req_call(TableStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.request = request; } @@ -7123,7 +7196,7 @@ public TableStatsResult getResult() throws NoSuchObjectException, MetaException, } } - public void get_partitions_statistics_req(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_partitions_statistics_req(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_statistics_req_call method_call = new get_partitions_statistics_req_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7132,7 +7205,7 @@ public void get_partitions_statistics_req(PartitionsStatsRequest request, org.ap public static class get_partitions_statistics_req_call extends org.apache.thrift.async.TAsyncMethodCall { private PartitionsStatsRequest request; - public get_partitions_statistics_req_call(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_partitions_statistics_req_call(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.request = request; } @@ -7155,7 +7228,7 @@ public PartitionsStatsResult getResult() throws NoSuchObjectException, MetaExcep } } - public void get_aggr_stats_for(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_aggr_stats_for(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_aggr_stats_for_call method_call = new get_aggr_stats_for_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7164,7 +7237,7 @@ public void get_aggr_stats_for(PartitionsStatsRequest request, org.apache.thrift public static class get_aggr_stats_for_call extends org.apache.thrift.async.TAsyncMethodCall { private PartitionsStatsRequest request; - public get_aggr_stats_for_call(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_aggr_stats_for_call(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.request = request; } @@ -7187,7 +7260,7 @@ public AggrStats getResult() throws NoSuchObjectException, MetaException, org.ap } } - public void set_aggr_stats_for(SetPartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void set_aggr_stats_for(SetPartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); set_aggr_stats_for_call method_call = new set_aggr_stats_for_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7196,7 +7269,7 @@ public void set_aggr_stats_for(SetPartitionsStatsRequest request, org.apache.thr public static class set_aggr_stats_for_call extends org.apache.thrift.async.TAsyncMethodCall { private SetPartitionsStatsRequest request; - public set_aggr_stats_for_call(SetPartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public set_aggr_stats_for_call(SetPartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.request = request; } @@ -7219,7 +7292,7 @@ public boolean getResult() throws NoSuchObjectException, InvalidObjectException, } } - public void delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); delete_partition_column_statistics_call method_call = new delete_partition_column_statistics_call(db_name, tbl_name, part_name, col_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7231,7 +7304,7 @@ public void delete_partition_column_statistics(String db_name, String tbl_name, private String tbl_name; private String part_name; private String col_name; - public delete_partition_column_statistics_call(String db_name, String tbl_name, String part_name, String col_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 { + public delete_partition_column_statistics_call(String db_name, String tbl_name, String part_name, String col_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; @@ -7260,7 +7333,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, InvalidO } } - public void delete_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void delete_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); delete_table_column_statistics_call method_call = new delete_table_column_statistics_call(db_name, tbl_name, col_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7271,7 +7344,7 @@ public void delete_table_column_statistics(String db_name, String tbl_name, Stri private String db_name; private String tbl_name; private String col_name; - public delete_table_column_statistics_call(String db_name, String tbl_name, String col_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 { + public delete_table_column_statistics_call(String db_name, String tbl_name, String col_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; @@ -7298,7 +7371,7 @@ public boolean getResult() throws NoSuchObjectException, MetaException, InvalidO } } - public void create_function(Function func, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_function(Function func, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); create_function_call method_call = new create_function_call(func, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7307,7 +7380,7 @@ public void create_function(Function func, org.apache.thrift.async.AsyncMethodCa public static class create_function_call extends org.apache.thrift.async.TAsyncMethodCall { private Function func; - public create_function_call(Function func, 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 { + public create_function_call(Function func, 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.func = func; } @@ -7330,7 +7403,7 @@ public void getResult() throws AlreadyExistsException, InvalidObjectException, M } } - public void drop_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_function_call method_call = new drop_function_call(dbName, funcName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7340,7 +7413,7 @@ public void drop_function(String dbName, String funcName, org.apache.thrift.asyn public static class drop_function_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbName; private String funcName; - public drop_function_call(String dbName, String funcName, 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 { + public drop_function_call(String dbName, String funcName, 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.dbName = dbName; this.funcName = funcName; @@ -7365,7 +7438,7 @@ public void getResult() throws NoSuchObjectException, MetaException, org.apache. } } - public void alter_function(String dbName, String funcName, Function newFunc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void alter_function(String dbName, String funcName, Function newFunc, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); alter_function_call method_call = new alter_function_call(dbName, funcName, newFunc, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7376,7 +7449,7 @@ public void alter_function(String dbName, String funcName, Function newFunc, org private String dbName; private String funcName; private Function newFunc; - public alter_function_call(String dbName, String funcName, Function newFunc, 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 { + public alter_function_call(String dbName, String funcName, Function newFunc, 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.dbName = dbName; this.funcName = funcName; @@ -7403,7 +7476,7 @@ public void getResult() throws InvalidOperationException, MetaException, org.apa } } - public void get_functions(String dbName, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_functions(String dbName, String pattern, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_functions_call method_call = new get_functions_call(dbName, pattern, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7413,7 +7486,7 @@ public void get_functions(String dbName, String pattern, org.apache.thrift.async public static class get_functions_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbName; private String pattern; - public get_functions_call(String dbName, String pattern, 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 { + public get_functions_call(String dbName, String pattern, 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.dbName = dbName; this.pattern = pattern; @@ -7438,7 +7511,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_function(String dbName, String funcName, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_function_call method_call = new get_function_call(dbName, funcName, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7448,7 +7521,7 @@ public void get_function(String dbName, String funcName, org.apache.thrift.async public static class get_function_call extends org.apache.thrift.async.TAsyncMethodCall { private String dbName; private String funcName; - public get_function_call(String dbName, String funcName, 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 { + public get_function_call(String dbName, String funcName, 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.dbName = dbName; this.funcName = funcName; @@ -7473,7 +7546,7 @@ public Function getResult() throws MetaException, NoSuchObjectException, org.apa } } - public void get_all_functions(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_all_functions(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_all_functions_call method_call = new get_all_functions_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7481,7 +7554,7 @@ public void get_all_functions(org.apache.thrift.async.AsyncMethodCallback result } public static class get_all_functions_call extends org.apache.thrift.async.TAsyncMethodCall { - public get_all_functions_call(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 { + public get_all_functions_call(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); } @@ -7502,7 +7575,7 @@ public GetAllFunctionsResponse getResult() throws MetaException, org.apache.thri } } - public void create_role(Role role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void create_role(Role role, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); create_role_call method_call = new create_role_call(role, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7511,7 +7584,7 @@ public void create_role(Role role, org.apache.thrift.async.AsyncMethodCallback r public static class create_role_call extends org.apache.thrift.async.TAsyncMethodCall { private Role role; - public create_role_call(Role role, 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 { + public create_role_call(Role role, 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.role = role; } @@ -7534,7 +7607,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void drop_role(String role_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void drop_role(String role_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_role_call method_call = new drop_role_call(role_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7543,7 +7616,7 @@ public void drop_role(String role_name, org.apache.thrift.async.AsyncMethodCallb public static class drop_role_call extends org.apache.thrift.async.TAsyncMethodCall { private String role_name; - public drop_role_call(String role_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 { + public drop_role_call(String role_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.role_name = role_name; } @@ -7566,7 +7639,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void get_role_names(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_role_names(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_role_names_call method_call = new get_role_names_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7574,7 +7647,7 @@ public void get_role_names(org.apache.thrift.async.AsyncMethodCallback resultHan } public static class get_role_names_call extends org.apache.thrift.async.TAsyncMethodCall { - public get_role_names_call(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 { + public get_role_names_call(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); } @@ -7595,7 +7668,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void grant_role(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); grant_role_call method_call = new grant_role_call(role_name, principal_name, principal_type, grantor, grantorType, grant_option, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7609,7 +7682,7 @@ public void grant_role(String role_name, String principal_name, PrincipalType pr private String grantor; private PrincipalType grantorType; private boolean grant_option; - public grant_role_call(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, 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 { + public grant_role_call(String role_name, String principal_name, PrincipalType principal_type, String grantor, PrincipalType grantorType, boolean grant_option, 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.role_name = role_name; this.principal_name = principal_name; @@ -7642,7 +7715,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void revoke_role(String role_name, String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revoke_role_call method_call = new revoke_role_call(role_name, principal_name, principal_type, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7653,7 +7726,7 @@ public void revoke_role(String role_name, String principal_name, PrincipalType p private String role_name; private String principal_name; private PrincipalType principal_type; - public revoke_role_call(String role_name, String principal_name, PrincipalType principal_type, 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 { + public revoke_role_call(String role_name, String principal_name, PrincipalType principal_type, 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.role_name = role_name; this.principal_name = principal_name; @@ -7680,7 +7753,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void list_roles(String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void list_roles(String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); list_roles_call method_call = new list_roles_call(principal_name, principal_type, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7690,7 +7763,7 @@ public void list_roles(String principal_name, PrincipalType principal_type, org. public static class list_roles_call extends org.apache.thrift.async.TAsyncMethodCall { private String principal_name; private PrincipalType principal_type; - public list_roles_call(String principal_name, PrincipalType principal_type, 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 { + public list_roles_call(String principal_name, PrincipalType principal_type, 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.principal_name = principal_name; this.principal_type = principal_type; @@ -7715,7 +7788,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void grant_revoke_role(GrantRevokeRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void grant_revoke_role(GrantRevokeRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); grant_revoke_role_call method_call = new grant_revoke_role_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7724,7 +7797,7 @@ public void grant_revoke_role(GrantRevokeRoleRequest request, org.apache.thrift. public static class grant_revoke_role_call extends org.apache.thrift.async.TAsyncMethodCall { private GrantRevokeRoleRequest request; - public grant_revoke_role_call(GrantRevokeRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public grant_revoke_role_call(GrantRevokeRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.request = request; } @@ -7747,7 +7820,7 @@ public GrantRevokeRoleResponse getResult() throws MetaException, org.apache.thri } } - public void get_principals_in_role(GetPrincipalsInRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_principals_in_role(GetPrincipalsInRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_principals_in_role_call method_call = new get_principals_in_role_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7756,7 +7829,7 @@ public void get_principals_in_role(GetPrincipalsInRoleRequest request, org.apach public static class get_principals_in_role_call extends org.apache.thrift.async.TAsyncMethodCall { private GetPrincipalsInRoleRequest request; - public get_principals_in_role_call(GetPrincipalsInRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_principals_in_role_call(GetPrincipalsInRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.request = request; } @@ -7779,7 +7852,7 @@ public GetPrincipalsInRoleResponse getResult() throws MetaException, org.apache. } } - public void get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_role_grants_for_principal_call method_call = new get_role_grants_for_principal_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7788,7 +7861,7 @@ public void get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest reque public static class get_role_grants_for_principal_call extends org.apache.thrift.async.TAsyncMethodCall { private GetRoleGrantsForPrincipalRequest request; - public get_role_grants_for_principal_call(GetRoleGrantsForPrincipalRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public get_role_grants_for_principal_call(GetRoleGrantsForPrincipalRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.request = request; } @@ -7811,7 +7884,7 @@ public GetRoleGrantsForPrincipalResponse getResult() throws MetaException, org.a } } - public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_privilege_set_call method_call = new get_privilege_set_call(hiveObject, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7822,7 +7895,7 @@ public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names; - public get_privilege_set_call(HiveObjectRef hiveObject, String user_name, List group_names, 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 { + public get_privilege_set_call(HiveObjectRef hiveObject, String user_name, List group_names, 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.hiveObject = hiveObject; this.user_name = user_name; @@ -7849,7 +7922,7 @@ public PrincipalPrivilegeSet getResult() throws MetaException, org.apache.thrift } } - public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); list_privileges_call method_call = new list_privileges_call(principal_name, principal_type, hiveObject, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7860,7 +7933,7 @@ public void list_privileges(String principal_name, PrincipalType principal_type, private String principal_name; private PrincipalType principal_type; private HiveObjectRef hiveObject; - public list_privileges_call(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, 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 { + public list_privileges_call(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, 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.principal_name = principal_name; this.principal_type = principal_type; @@ -7887,7 +7960,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void grant_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void grant_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); grant_privileges_call method_call = new grant_privileges_call(privileges, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7896,7 +7969,7 @@ public void grant_privileges(PrivilegeBag privileges, org.apache.thrift.async.As public static class grant_privileges_call extends org.apache.thrift.async.TAsyncMethodCall { private PrivilegeBag privileges; - public grant_privileges_call(PrivilegeBag privileges, 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 { + public grant_privileges_call(PrivilegeBag privileges, 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.privileges = privileges; } @@ -7919,7 +7992,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void revoke_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void revoke_privileges(PrivilegeBag privileges, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); revoke_privileges_call method_call = new revoke_privileges_call(privileges, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7928,7 +8001,7 @@ public void revoke_privileges(PrivilegeBag privileges, org.apache.thrift.async.A public static class revoke_privileges_call extends org.apache.thrift.async.TAsyncMethodCall { private PrivilegeBag privileges; - public revoke_privileges_call(PrivilegeBag privileges, 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 { + public revoke_privileges_call(PrivilegeBag privileges, 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.privileges = privileges; } @@ -7951,7 +8024,7 @@ public boolean getResult() throws MetaException, org.apache.thrift.TException { } } - public void grant_revoke_privileges(GrantRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void grant_revoke_privileges(GrantRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); grant_revoke_privileges_call method_call = new grant_revoke_privileges_call(request, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7960,7 +8033,7 @@ public void grant_revoke_privileges(GrantRevokePrivilegeRequest request, org.apa public static class grant_revoke_privileges_call extends org.apache.thrift.async.TAsyncMethodCall { private GrantRevokePrivilegeRequest request; - public grant_revoke_privileges_call(GrantRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public grant_revoke_privileges_call(GrantRevokePrivilegeRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.request = request; } @@ -7983,7 +8056,7 @@ public GrantRevokePrivilegeResponse getResult() throws MetaException, org.apache } } - public void set_ugi(String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void set_ugi(String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); set_ugi_call method_call = new set_ugi_call(user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -7993,7 +8066,7 @@ public void set_ugi(String user_name, List group_names, org.apache.thrif public static class set_ugi_call extends org.apache.thrift.async.TAsyncMethodCall { private String user_name; private List group_names; - public set_ugi_call(String user_name, List group_names, 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 { + public set_ugi_call(String user_name, List group_names, 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.user_name = user_name; this.group_names = group_names; @@ -8018,7 +8091,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_delegation_token(String token_owner, String renewer_kerberos_principal_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_delegation_token_call method_call = new get_delegation_token_call(token_owner, renewer_kerberos_principal_name, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8028,7 +8101,7 @@ public void get_delegation_token(String token_owner, String renewer_kerberos_pri public static class get_delegation_token_call extends org.apache.thrift.async.TAsyncMethodCall { private String token_owner; private String renewer_kerberos_principal_name; - public get_delegation_token_call(String token_owner, String renewer_kerberos_principal_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 { + public get_delegation_token_call(String token_owner, String renewer_kerberos_principal_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.token_owner = token_owner; this.renewer_kerberos_principal_name = renewer_kerberos_principal_name; @@ -8053,7 +8126,7 @@ public String getResult() throws MetaException, org.apache.thrift.TException { } } - public void renew_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void renew_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); renew_delegation_token_call method_call = new renew_delegation_token_call(token_str_form, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8062,7 +8135,7 @@ public void renew_delegation_token(String token_str_form, org.apache.thrift.asyn public static class renew_delegation_token_call extends org.apache.thrift.async.TAsyncMethodCall { private String token_str_form; - public renew_delegation_token_call(String token_str_form, 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 { + public renew_delegation_token_call(String token_str_form, 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.token_str_form = token_str_form; } @@ -8085,7 +8158,7 @@ public long getResult() throws MetaException, org.apache.thrift.TException { } } - public void cancel_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void cancel_delegation_token(String token_str_form, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); cancel_delegation_token_call method_call = new cancel_delegation_token_call(token_str_form, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8094,7 +8167,7 @@ public void cancel_delegation_token(String token_str_form, org.apache.thrift.asy public static class cancel_delegation_token_call extends org.apache.thrift.async.TAsyncMethodCall { private String token_str_form; - public cancel_delegation_token_call(String token_str_form, 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 { + public cancel_delegation_token_call(String token_str_form, 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.token_str_form = token_str_form; } @@ -8117,7 +8190,7 @@ public void getResult() throws MetaException, org.apache.thrift.TException { } } - public void get_open_txns(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_open_txns(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_open_txns_call method_call = new get_open_txns_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8125,7 +8198,7 @@ public void get_open_txns(org.apache.thrift.async.AsyncMethodCallback resultHand } public static class get_open_txns_call extends org.apache.thrift.async.TAsyncMethodCall { - public get_open_txns_call(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 { + public get_open_txns_call(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); } @@ -8146,7 +8219,7 @@ public GetOpenTxnsResponse getResult() throws org.apache.thrift.TException { } } - public void get_open_txns_info(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_open_txns_info(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_open_txns_info_call method_call = new get_open_txns_info_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8154,7 +8227,7 @@ public void get_open_txns_info(org.apache.thrift.async.AsyncMethodCallback resul } public static class get_open_txns_info_call extends org.apache.thrift.async.TAsyncMethodCall { - public get_open_txns_info_call(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 { + public get_open_txns_info_call(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); } @@ -8175,7 +8248,7 @@ public GetOpenTxnsInfoResponse getResult() throws org.apache.thrift.TException { } } - public void open_txns(OpenTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void open_txns(OpenTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); open_txns_call method_call = new open_txns_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8184,7 +8257,7 @@ public void open_txns(OpenTxnRequest rqst, org.apache.thrift.async.AsyncMethodCa public static class open_txns_call extends org.apache.thrift.async.TAsyncMethodCall { private OpenTxnRequest rqst; - public open_txns_call(OpenTxnRequest rqst, 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 { + public open_txns_call(OpenTxnRequest rqst, 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.rqst = rqst; } @@ -8207,7 +8280,7 @@ public OpenTxnsResponse getResult() throws org.apache.thrift.TException { } } - public void abort_txn(AbortTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void abort_txn(AbortTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); abort_txn_call method_call = new abort_txn_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8216,7 +8289,7 @@ public void abort_txn(AbortTxnRequest rqst, org.apache.thrift.async.AsyncMethodC public static class abort_txn_call extends org.apache.thrift.async.TAsyncMethodCall { private AbortTxnRequest rqst; - public abort_txn_call(AbortTxnRequest rqst, 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 { + public abort_txn_call(AbortTxnRequest rqst, 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.rqst = rqst; } @@ -8239,7 +8312,7 @@ public void getResult() throws NoSuchTxnException, org.apache.thrift.TException } } - public void commit_txn(CommitTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void commit_txn(CommitTxnRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); commit_txn_call method_call = new commit_txn_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8248,7 +8321,7 @@ public void commit_txn(CommitTxnRequest rqst, org.apache.thrift.async.AsyncMetho public static class commit_txn_call extends org.apache.thrift.async.TAsyncMethodCall { private CommitTxnRequest rqst; - public commit_txn_call(CommitTxnRequest rqst, 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 { + public commit_txn_call(CommitTxnRequest rqst, 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.rqst = rqst; } @@ -8271,7 +8344,7 @@ public void getResult() throws NoSuchTxnException, TxnAbortedException, org.apac } } - public void lock(LockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void lock(LockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); lock_call method_call = new lock_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8280,7 +8353,7 @@ public void lock(LockRequest rqst, org.apache.thrift.async.AsyncMethodCallback r public static class lock_call extends org.apache.thrift.async.TAsyncMethodCall { private LockRequest rqst; - public lock_call(LockRequest rqst, 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 { + public lock_call(LockRequest rqst, 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.rqst = rqst; } @@ -8303,7 +8376,7 @@ public LockResponse getResult() throws NoSuchTxnException, TxnAbortedException, } } - public void check_lock(CheckLockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void check_lock(CheckLockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); check_lock_call method_call = new check_lock_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8312,7 +8385,7 @@ public void check_lock(CheckLockRequest rqst, org.apache.thrift.async.AsyncMetho public static class check_lock_call extends org.apache.thrift.async.TAsyncMethodCall { private CheckLockRequest rqst; - public check_lock_call(CheckLockRequest rqst, 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 { + public check_lock_call(CheckLockRequest rqst, 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.rqst = rqst; } @@ -8335,7 +8408,7 @@ public LockResponse getResult() throws NoSuchTxnException, TxnAbortedException, } } - public void unlock(UnlockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void unlock(UnlockRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); unlock_call method_call = new unlock_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8344,7 +8417,7 @@ public void unlock(UnlockRequest rqst, org.apache.thrift.async.AsyncMethodCallba public static class unlock_call extends org.apache.thrift.async.TAsyncMethodCall { private UnlockRequest rqst; - public unlock_call(UnlockRequest rqst, 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 { + public unlock_call(UnlockRequest rqst, 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.rqst = rqst; } @@ -8367,7 +8440,7 @@ public void getResult() throws NoSuchLockException, TxnOpenException, org.apache } } - public void show_locks(ShowLocksRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void show_locks(ShowLocksRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); show_locks_call method_call = new show_locks_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8376,7 +8449,7 @@ public void show_locks(ShowLocksRequest rqst, org.apache.thrift.async.AsyncMetho public static class show_locks_call extends org.apache.thrift.async.TAsyncMethodCall { private ShowLocksRequest rqst; - public show_locks_call(ShowLocksRequest rqst, 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 { + public show_locks_call(ShowLocksRequest rqst, 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.rqst = rqst; } @@ -8399,7 +8472,7 @@ public ShowLocksResponse getResult() throws org.apache.thrift.TException { } } - public void heartbeat(HeartbeatRequest ids, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void heartbeat(HeartbeatRequest ids, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); heartbeat_call method_call = new heartbeat_call(ids, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8408,7 +8481,7 @@ public void heartbeat(HeartbeatRequest ids, org.apache.thrift.async.AsyncMethodC public static class heartbeat_call extends org.apache.thrift.async.TAsyncMethodCall { private HeartbeatRequest ids; - public heartbeat_call(HeartbeatRequest ids, 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 { + public heartbeat_call(HeartbeatRequest ids, 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.ids = ids; } @@ -8431,7 +8504,7 @@ public void getResult() throws NoSuchLockException, NoSuchTxnException, TxnAbort } } - public void heartbeat_txn_range(HeartbeatTxnRangeRequest txns, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void heartbeat_txn_range(HeartbeatTxnRangeRequest txns, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); heartbeat_txn_range_call method_call = new heartbeat_txn_range_call(txns, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8440,7 +8513,7 @@ public void heartbeat_txn_range(HeartbeatTxnRangeRequest txns, org.apache.thrift public static class heartbeat_txn_range_call extends org.apache.thrift.async.TAsyncMethodCall { private HeartbeatTxnRangeRequest txns; - public heartbeat_txn_range_call(HeartbeatTxnRangeRequest txns, 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 { + public heartbeat_txn_range_call(HeartbeatTxnRangeRequest txns, 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.txns = txns; } @@ -8463,7 +8536,7 @@ public HeartbeatTxnRangeResponse getResult() throws org.apache.thrift.TException } } - public void compact(CompactionRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void compact(CompactionRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); compact_call method_call = new compact_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8472,7 +8545,7 @@ public void compact(CompactionRequest rqst, org.apache.thrift.async.AsyncMethodC public static class compact_call extends org.apache.thrift.async.TAsyncMethodCall { private CompactionRequest rqst; - public compact_call(CompactionRequest rqst, 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 { + public compact_call(CompactionRequest rqst, 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.rqst = rqst; } @@ -8495,7 +8568,7 @@ public void getResult() throws org.apache.thrift.TException { } } - public void show_compact(ShowCompactRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void show_compact(ShowCompactRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); show_compact_call method_call = new show_compact_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8504,7 +8577,7 @@ public void show_compact(ShowCompactRequest rqst, org.apache.thrift.async.AsyncM public static class show_compact_call extends org.apache.thrift.async.TAsyncMethodCall { private ShowCompactRequest rqst; - public show_compact_call(ShowCompactRequest rqst, 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 { + public show_compact_call(ShowCompactRequest rqst, 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.rqst = rqst; } @@ -8527,7 +8600,7 @@ public ShowCompactResponse getResult() throws org.apache.thrift.TException { } } - public void add_dynamic_partitions(AddDynamicPartitions rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void add_dynamic_partitions(AddDynamicPartitions rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); add_dynamic_partitions_call method_call = new add_dynamic_partitions_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8536,7 +8609,7 @@ public void add_dynamic_partitions(AddDynamicPartitions rqst, org.apache.thrift. public static class add_dynamic_partitions_call extends org.apache.thrift.async.TAsyncMethodCall { private AddDynamicPartitions rqst; - public add_dynamic_partitions_call(AddDynamicPartitions rqst, 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 { + public add_dynamic_partitions_call(AddDynamicPartitions rqst, 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.rqst = rqst; } @@ -8559,7 +8632,7 @@ public void getResult() throws NoSuchTxnException, TxnAbortedException, org.apac } } - public void get_next_notification(NotificationEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_next_notification(NotificationEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_next_notification_call method_call = new get_next_notification_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8568,7 +8641,7 @@ public void get_next_notification(NotificationEventRequest rqst, org.apache.thri public static class get_next_notification_call extends org.apache.thrift.async.TAsyncMethodCall { private NotificationEventRequest rqst; - public get_next_notification_call(NotificationEventRequest rqst, 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 { + public get_next_notification_call(NotificationEventRequest rqst, 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.rqst = rqst; } @@ -8591,7 +8664,7 @@ public NotificationEventResponse getResult() throws org.apache.thrift.TException } } - public void get_current_notificationEventId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void get_current_notificationEventId(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_current_notificationEventId_call method_call = new get_current_notificationEventId_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8599,7 +8672,7 @@ public void get_current_notificationEventId(org.apache.thrift.async.AsyncMethodC } public static class get_current_notificationEventId_call extends org.apache.thrift.async.TAsyncMethodCall { - public get_current_notificationEventId_call(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 { + public get_current_notificationEventId_call(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); } @@ -8620,7 +8693,7 @@ public CurrentNotificationEventId getResult() throws org.apache.thrift.TExceptio } } - public void fire_listener_event(FireEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void fire_listener_event(FireEventRequest rqst, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); fire_listener_event_call method_call = new fire_listener_event_call(rqst, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -8629,7 +8702,7 @@ public void fire_listener_event(FireEventRequest rqst, org.apache.thrift.async.A public static class fire_listener_event_call extends org.apache.thrift.async.TAsyncMethodCall { private FireEventRequest rqst; - public fire_listener_event_call(FireEventRequest rqst, 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 { + public fire_listener_event_call(FireEventRequest rqst, 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.rqst = rqst; } @@ -8721,6 +8794,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public get_num_partitions_by_filter() { + super("get_num_partitions_by_filter"); + } + + public get_num_partitions_by_filter_args getEmptyArgsInstance() { + return new get_num_partitions_by_filter_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_num_partitions_by_filter_result getResult(I iface, get_num_partitions_by_filter_args args) throws org.apache.thrift.TException { + get_num_partitions_by_filter_result result = new get_num_partitions_by_filter_result(); + try { + result.success = iface.get_num_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts); + result.setSuccessIsSet(true); + } catch (MetaException o1) { + result.o1 = o1; + } catch (NoSuchObjectException o2) { + result.o2 = o2; + } + return result; + } + } + public static class get_partitions_by_names extends org.apache.thrift.ProcessFunction { public get_partitions_by_names() { super("get_partitions_by_names"); @@ -12015,8454 +12116,655 @@ public fire_listener_event_result getResult(I iface, fire_listener_event_args ar } - public static class AsyncProcessor extends com.facebook.fb303.FacebookService.AsyncProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); - public AsyncProcessor(I iface) { - super(iface, getProcessMap(new HashMap>())); - } + public static class getMetaConf_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMetaConf_args"); - protected AsyncProcessor(I iface, Map> processMap) { - super(iface, getProcessMap(processMap)); - } + private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); - private static Map> getProcessMap(Map> processMap) { - processMap.put("getMetaConf", new getMetaConf()); - processMap.put("setMetaConf", new setMetaConf()); - processMap.put("create_database", new create_database()); - processMap.put("get_database", new get_database()); - processMap.put("drop_database", new drop_database()); - processMap.put("get_databases", new get_databases()); - processMap.put("get_all_databases", new get_all_databases()); - processMap.put("alter_database", new alter_database()); - processMap.put("get_type", new get_type()); - processMap.put("create_type", new create_type()); - processMap.put("drop_type", new drop_type()); - processMap.put("get_type_all", new get_type_all()); - processMap.put("get_fields", new get_fields()); - processMap.put("get_fields_with_environment_context", new get_fields_with_environment_context()); - processMap.put("get_schema", new get_schema()); - processMap.put("get_schema_with_environment_context", new get_schema_with_environment_context()); - processMap.put("create_table", new create_table()); - processMap.put("create_table_with_environment_context", new create_table_with_environment_context()); - processMap.put("drop_table", new drop_table()); - processMap.put("drop_table_with_environment_context", new drop_table_with_environment_context()); - processMap.put("get_tables", new get_tables()); - processMap.put("get_all_tables", new get_all_tables()); - processMap.put("get_table", new get_table()); - processMap.put("get_table_objects_by_name", new get_table_objects_by_name()); - processMap.put("get_table_names_by_filter", new get_table_names_by_filter()); - processMap.put("alter_table", new alter_table()); - processMap.put("alter_table_with_environment_context", new alter_table_with_environment_context()); - processMap.put("alter_table_with_cascade", new alter_table_with_cascade()); - processMap.put("add_partition", new add_partition()); - processMap.put("add_partition_with_environment_context", new add_partition_with_environment_context()); - processMap.put("add_partitions", new add_partitions()); - processMap.put("add_partitions_pspec", new add_partitions_pspec()); - processMap.put("append_partition", new append_partition()); - processMap.put("add_partitions_req", new add_partitions_req()); - processMap.put("append_partition_with_environment_context", new append_partition_with_environment_context()); - processMap.put("append_partition_by_name", new append_partition_by_name()); - processMap.put("append_partition_by_name_with_environment_context", new append_partition_by_name_with_environment_context()); - processMap.put("drop_partition", new drop_partition()); - processMap.put("drop_partition_with_environment_context", new drop_partition_with_environment_context()); - processMap.put("drop_partition_by_name", new drop_partition_by_name()); - processMap.put("drop_partition_by_name_with_environment_context", new drop_partition_by_name_with_environment_context()); - processMap.put("drop_partitions_req", new drop_partitions_req()); - processMap.put("get_partition", new get_partition()); - processMap.put("exchange_partition", new exchange_partition()); - processMap.put("get_partition_with_auth", new get_partition_with_auth()); - processMap.put("get_partition_by_name", new get_partition_by_name()); - processMap.put("get_partitions", new get_partitions()); - processMap.put("get_partitions_with_auth", new get_partitions_with_auth()); - processMap.put("get_partitions_pspec", new get_partitions_pspec()); - processMap.put("get_partition_names", new get_partition_names()); - processMap.put("get_partitions_ps", new get_partitions_ps()); - processMap.put("get_partitions_ps_with_auth", new get_partitions_ps_with_auth()); - processMap.put("get_partition_names_ps", new get_partition_names_ps()); - processMap.put("get_partitions_by_filter", new get_partitions_by_filter()); - processMap.put("get_part_specs_by_filter", new get_part_specs_by_filter()); - processMap.put("get_partitions_by_expr", new get_partitions_by_expr()); - processMap.put("get_partitions_by_names", new get_partitions_by_names()); - processMap.put("alter_partition", new alter_partition()); - processMap.put("alter_partitions", new alter_partitions()); - processMap.put("alter_partition_with_environment_context", new alter_partition_with_environment_context()); - processMap.put("rename_partition", new rename_partition()); - processMap.put("partition_name_has_valid_characters", new partition_name_has_valid_characters()); - processMap.put("get_config_value", new get_config_value()); - processMap.put("partition_name_to_vals", new partition_name_to_vals()); - processMap.put("partition_name_to_spec", new partition_name_to_spec()); - processMap.put("markPartitionForEvent", new markPartitionForEvent()); - processMap.put("isPartitionMarkedForEvent", new isPartitionMarkedForEvent()); - processMap.put("add_index", new add_index()); - processMap.put("alter_index", new alter_index()); - processMap.put("drop_index_by_name", new drop_index_by_name()); - processMap.put("get_index_by_name", new get_index_by_name()); - processMap.put("get_indexes", new get_indexes()); - processMap.put("get_index_names", new get_index_names()); - processMap.put("update_table_column_statistics", new update_table_column_statistics()); - processMap.put("update_partition_column_statistics", new update_partition_column_statistics()); - processMap.put("get_table_column_statistics", new get_table_column_statistics()); - processMap.put("get_partition_column_statistics", new get_partition_column_statistics()); - processMap.put("get_table_statistics_req", new get_table_statistics_req()); - processMap.put("get_partitions_statistics_req", new get_partitions_statistics_req()); - processMap.put("get_aggr_stats_for", new get_aggr_stats_for()); - processMap.put("set_aggr_stats_for", new set_aggr_stats_for()); - processMap.put("delete_partition_column_statistics", new delete_partition_column_statistics()); - processMap.put("delete_table_column_statistics", new delete_table_column_statistics()); - processMap.put("create_function", new create_function()); - processMap.put("drop_function", new drop_function()); - processMap.put("alter_function", new alter_function()); - processMap.put("get_functions", new get_functions()); - processMap.put("get_function", new get_function()); - processMap.put("get_all_functions", new get_all_functions()); - processMap.put("create_role", new create_role()); - processMap.put("drop_role", new drop_role()); - processMap.put("get_role_names", new get_role_names()); - processMap.put("grant_role", new grant_role()); - processMap.put("revoke_role", new revoke_role()); - processMap.put("list_roles", new list_roles()); - processMap.put("grant_revoke_role", new grant_revoke_role()); - processMap.put("get_principals_in_role", new get_principals_in_role()); - processMap.put("get_role_grants_for_principal", new get_role_grants_for_principal()); - processMap.put("get_privilege_set", new get_privilege_set()); - processMap.put("list_privileges", new list_privileges()); - processMap.put("grant_privileges", new grant_privileges()); - processMap.put("revoke_privileges", new revoke_privileges()); - processMap.put("grant_revoke_privileges", new grant_revoke_privileges()); - processMap.put("set_ugi", new set_ugi()); - processMap.put("get_delegation_token", new get_delegation_token()); - processMap.put("renew_delegation_token", new renew_delegation_token()); - processMap.put("cancel_delegation_token", new cancel_delegation_token()); - processMap.put("get_open_txns", new get_open_txns()); - processMap.put("get_open_txns_info", new get_open_txns_info()); - processMap.put("open_txns", new open_txns()); - processMap.put("abort_txn", new abort_txn()); - processMap.put("commit_txn", new commit_txn()); - processMap.put("lock", new lock()); - processMap.put("check_lock", new check_lock()); - processMap.put("unlock", new unlock()); - processMap.put("show_locks", new show_locks()); - processMap.put("heartbeat", new heartbeat()); - processMap.put("heartbeat_txn_range", new heartbeat_txn_range()); - processMap.put("compact", new compact()); - processMap.put("show_compact", new show_compact()); - processMap.put("add_dynamic_partitions", new add_dynamic_partitions()); - processMap.put("get_next_notification", new get_next_notification()); - processMap.put("get_current_notificationEventId", new get_current_notificationEventId()); - processMap.put("fire_listener_event", new fire_listener_event()); - return processMap; + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getMetaConf_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getMetaConf_argsTupleSchemeFactory()); } - public static class getMetaConf extends org.apache.thrift.AsyncProcessFunction { - public getMetaConf() { - super("getMetaConf"); - } + private String key; // required - public getMetaConf_args getEmptyArgsInstance() { - return new getMetaConf_args(); - } + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + KEY((short)1, "key"); - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - getMetaConf_result result = new getMetaConf_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; - getMetaConf_result result = new getMetaConf_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } + private static final Map byName = new HashMap(); - protected boolean isOneway() { - return false; + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } } - public void start(I iface, getMetaConf_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getMetaConf(args.key,resultHandler); + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // KEY + return KEY; + default: + return null; + } } - } - public static class setMetaConf extends org.apache.thrift.AsyncProcessFunction { - public setMetaConf() { - super("setMetaConf"); + /** + * 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; } - public setMetaConf_args getEmptyArgsInstance() { - return new setMetaConf_args(); + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - setMetaConf_result result = new setMetaConf_result(); - 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; - setMetaConf_result result = new setMetaConf_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; } - protected boolean isOneway() { - return false; + public short getThriftFieldId() { + return _thriftId; } - public void start(I iface, setMetaConf_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.setMetaConf(args.key, args.value,resultHandler); + public String getFieldName() { + return _fieldName; } } - public static class create_database extends org.apache.thrift.AsyncProcessFunction { - public create_database() { - super("create_database"); - } + // 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", 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(getMetaConf_args.class, metaDataMap); + } - public create_database_args getEmptyArgsInstance() { - return new create_database_args(); - } + public getMetaConf_args() { + } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - create_database_result result = new create_database_result(); - 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; - create_database_result result = new create_database_result(); - if (e instanceof AlreadyExistsException) { - result.o1 = (AlreadyExistsException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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(); - } - }; - } + public getMetaConf_args( + String key) + { + this(); + this.key = key; + } - protected boolean isOneway() { - return false; + /** + * Performs a deep copy on other. + */ + public getMetaConf_args(getMetaConf_args other) { + if (other.isSetKey()) { + this.key = other.key; } + } - public void start(I iface, create_database_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.create_database(args.database,resultHandler); - } + public getMetaConf_args deepCopy() { + return new getMetaConf_args(this); } - public static class get_database extends org.apache.thrift.AsyncProcessFunction { - public get_database() { - super("get_database"); - } + @Override + public void clear() { + this.key = null; + } - public get_database_args getEmptyArgsInstance() { - return new get_database_args(); - } + public String getKey() { + return this.key; + } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Database o) { - get_database_result result = new get_database_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_database_result result = new get_database_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 - { - 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(); - } - }; - } + public void setKey(String key) { + this.key = key; + } - protected boolean isOneway() { - return false; - } + public void unsetKey() { + this.key = null; + } - public void start(I iface, get_database_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_database(args.name,resultHandler); - } + /** Returns true if field key is set (has been assigned a value) and false otherwise */ + public boolean isSetKey() { + return this.key != null; } - public static class drop_database extends org.apache.thrift.AsyncProcessFunction { - public drop_database() { - super("drop_database"); + public void setKeyIsSet(boolean value) { + if (!value) { + this.key = null; } + } - public drop_database_args getEmptyArgsInstance() { - return new drop_database_args(); - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case KEY: + if (value == null) { + unsetKey(); + } else { + setKey((String)value); + } + break; - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - drop_database_result result = new drop_database_result(); - 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; - drop_database_result result = new drop_database_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidOperationException) { - result.o2 = (InvalidOperationException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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 Object getFieldValue(_Fields field) { + switch (field) { + case KEY: + return getKey(); - public void start(I iface, drop_database_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_database(args.name, args.deleteData, args.cascade,resultHandler); } + throw new IllegalStateException(); } - public static class get_databases extends org.apache.thrift.AsyncProcessFunction> { - public get_databases() { - super("get_databases"); + /** 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(); } - public get_databases_args getEmptyArgsInstance() { - return new get_databases_args(); + switch (field) { + case KEY: + return isSetKey(); } + throw new IllegalStateException(); + } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_databases_result result = new get_databases_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_databases_result result = new get_databases_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getMetaConf_args) + return this.equals((getMetaConf_args)that); + return false; + } - protected boolean isOneway() { + public boolean equals(getMetaConf_args that) { + if (that == null) return false; - } - public void start(I iface, get_databases_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_databases(args.pattern,resultHandler); + boolean this_present_key = true && this.isSetKey(); + boolean that_present_key = true && that.isSetKey(); + if (this_present_key || that_present_key) { + if (!(this_present_key && that_present_key)) + return false; + if (!this.key.equals(that.key)) + return false; } + + return true; } - public static class get_all_databases extends org.apache.thrift.AsyncProcessFunction> { - public get_all_databases() { - super("get_all_databases"); - } + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); - public get_all_databases_args getEmptyArgsInstance() { - return new get_all_databases_args(); - } + boolean present_key = true && (isSetKey()); + builder.append(present_key); + if (present_key) + builder.append(key); - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_all_databases_result result = new get_all_databases_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_all_databases_result result = new get_all_databases_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } + return builder.toHashCode(); + } - protected boolean isOneway() { - return false; + public int compareTo(getMetaConf_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); } - public void start(I iface, get_all_databases_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_all_databases(resultHandler); - } - } + int lastComparison = 0; + getMetaConf_args typedOther = (getMetaConf_args)other; - public static class alter_database extends org.apache.thrift.AsyncProcessFunction { - public alter_database() { - super("alter_database"); + lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); + if (lastComparison != 0) { + return lastComparison; } - - public alter_database_args getEmptyArgsInstance() { - return new alter_database_args(); + if (isSetKey()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); + if (lastComparison != 0) { + return lastComparison; + } } + return 0; + } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_database_result result = new alter_database_result(); - 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; - alter_database_result result = new alter_database_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } - protected boolean isOneway() { - return false; - } + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } - public void start(I iface, alter_database_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_database(args.dbname, args.db,resultHandler); - } + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); } - public static class get_type extends org.apache.thrift.AsyncProcessFunction { - public get_type() { - super("get_type"); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder("getMetaConf_args("); + boolean first = true; - public get_type_args getEmptyArgsInstance() { - return new get_type_args(); + sb.append("key:"); + if (this.key == null) { + sb.append("null"); + } else { + sb.append(this.key); } + first = false; + sb.append(")"); + return sb.toString(); + } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Type o) { - get_type_result result = new get_type_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_type_result result = new get_type_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } - protected boolean isOneway() { - return false; + 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); } + } - public void start(I iface, get_type_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_type(args.name,resultHandler); + 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); } } - public static class create_type extends org.apache.thrift.AsyncProcessFunction { - public create_type() { - super("create_type"); + private static class getMetaConf_argsStandardSchemeFactory implements SchemeFactory { + public getMetaConf_argsStandardScheme getScheme() { + return new getMetaConf_argsStandardScheme(); } + } - public create_type_args getEmptyArgsInstance() { - return new create_type_args(); - } + private static class getMetaConf_argsStandardScheme extends StandardScheme { - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - create_type_result result = new create_type_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - create_type_result result = new create_type_result(); - if (e instanceof AlreadyExistsException) { - result.o1 = (AlreadyExistsException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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(); + public void read(org.apache.thrift.protocol.TProtocol iprot, getMetaConf_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: // KEY + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.key = iprot.readString(); + struct.setKeyIsSet(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(); } - protected boolean isOneway() { - return false; - } + public void write(org.apache.thrift.protocol.TProtocol oprot, getMetaConf_args struct) throws org.apache.thrift.TException { + struct.validate(); - public void start(I iface, create_type_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.create_type(args.type,resultHandler); + oprot.writeStructBegin(STRUCT_DESC); + if (struct.key != null) { + oprot.writeFieldBegin(KEY_FIELD_DESC); + oprot.writeString(struct.key); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); } - } - public static class drop_type extends org.apache.thrift.AsyncProcessFunction { - public drop_type() { - super("drop_type"); - } + } - public drop_type_args getEmptyArgsInstance() { - return new drop_type_args(); + private static class getMetaConf_argsTupleSchemeFactory implements SchemeFactory { + public getMetaConf_argsTupleScheme getScheme() { + return new getMetaConf_argsTupleScheme(); } + } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_type_result result = new drop_type_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - drop_type_result result = new drop_type_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } + private static class getMetaConf_argsTupleScheme extends TupleScheme { - protected boolean isOneway() { - return false; + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, getMetaConf_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetKey()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetKey()) { + oprot.writeString(struct.key); + } } - public void start(I iface, drop_type_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_type(args.type,resultHandler); + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, getMetaConf_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.key = iprot.readString(); + struct.setKeyIsSet(true); + } } } - public static class get_type_all extends org.apache.thrift.AsyncProcessFunction> { - public get_type_all() { - super("get_type_all"); - } - - public get_type_all_args getEmptyArgsInstance() { - return new get_type_all_args(); - } + } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - get_type_all_result result = new get_type_all_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_type_all_result result = new get_type_all_result(); - if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } + public static class getMetaConf_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMetaConf_result"); - protected boolean isOneway() { - return false; - } + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (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); - public void start(I iface, get_type_all_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_type_all(args.name,resultHandler); - } + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new getMetaConf_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new getMetaConf_resultTupleSchemeFactory()); } - public static class get_fields extends org.apache.thrift.AsyncProcessFunction> { - public get_fields() { - super("get_fields"); - } + private String success; // required + private MetaException o1; // required - public get_fields_args getEmptyArgsInstance() { - return new get_fields_args(); - } + /** 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"); - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_fields_result result = new get_fields_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_fields_result result = new get_fields_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof UnknownTableException) { - result.o2 = (UnknownTableException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(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(); - } - }; - } + private static final Map byName = new HashMap(); - protected boolean isOneway() { - return false; + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } } - public void start(I iface, get_fields_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_fields(args.db_name, args.table_name,resultHandler); + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // O1 + return O1; + default: + return null; + } } - } - public static class get_fields_with_environment_context extends org.apache.thrift.AsyncProcessFunction> { - public get_fields_with_environment_context() { - super("get_fields_with_environment_context"); + /** + * 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; } - public get_fields_with_environment_context_args getEmptyArgsInstance() { - return new get_fields_with_environment_context_args(); + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_fields_with_environment_context_result result = new get_fields_with_environment_context_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_fields_with_environment_context_result result = new get_fields_with_environment_context_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof UnknownTableException) { - result.o2 = (UnknownTableException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(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(); - } - }; + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; } - protected boolean isOneway() { - return false; + public short getThriftFieldId() { + return _thriftId; } - public void start(I iface, get_fields_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_fields_with_environment_context(args.db_name, args.table_name, args.environment_context,resultHandler); + public String getFieldName() { + return _fieldName; } } - public static class get_schema extends org.apache.thrift.AsyncProcessFunction> { - public get_schema() { - super("get_schema"); - } + // 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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMetaConf_result.class, metaDataMap); + } - public get_schema_args getEmptyArgsInstance() { - return new get_schema_args(); - } + public getMetaConf_result() { + } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_schema_result result = new get_schema_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_schema_result result = new get_schema_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof UnknownTableException) { - result.o2 = (UnknownTableException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(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(); - } - }; - } + public getMetaConf_result( + String success, + MetaException o1) + { + this(); + this.success = success; + this.o1 = o1; + } - protected boolean isOneway() { - return false; + /** + * Performs a deep copy on other. + */ + public getMetaConf_result(getMetaConf_result other) { + if (other.isSetSuccess()) { + this.success = other.success; } - - public void start(I iface, get_schema_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_schema(args.db_name, args.table_name,resultHandler); + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); } } - public static class get_schema_with_environment_context extends org.apache.thrift.AsyncProcessFunction> { - public get_schema_with_environment_context() { - super("get_schema_with_environment_context"); - } + public getMetaConf_result deepCopy() { + return new getMetaConf_result(this); + } - public get_schema_with_environment_context_args getEmptyArgsInstance() { - return new get_schema_with_environment_context_args(); - } + @Override + public void clear() { + this.success = null; + this.o1 = null; + } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_schema_with_environment_context_result result = new get_schema_with_environment_context_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_schema_with_environment_context_result result = new get_schema_with_environment_context_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof UnknownTableException) { - result.o2 = (UnknownTableException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(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(); - } - }; - } + public String getSuccess() { + return this.success; + } - protected boolean isOneway() { - return false; - } + public void setSuccess(String success) { + this.success = success; + } - public void start(I iface, get_schema_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_schema_with_environment_context(args.db_name, args.table_name, args.environment_context,resultHandler); - } + public void unsetSuccess() { + this.success = null; } - public static class create_table extends org.apache.thrift.AsyncProcessFunction { - public create_table() { - super("create_table"); - } + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } - public create_table_args getEmptyArgsInstance() { - return new create_table_args(); + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; } + } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - create_table_result result = new create_table_result(); - 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; - create_table_result result = new create_table_result(); - if (e instanceof AlreadyExistsException) { - result.o1 = (AlreadyExistsException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o4 = (NoSuchObjectException) 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(); - } - }; - } + public MetaException getO1() { + return this.o1; + } - protected boolean isOneway() { - return false; - } + public void setO1(MetaException o1) { + this.o1 = o1; + } - public void start(I iface, create_table_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.create_table(args.tbl,resultHandler); - } + public void unsetO1() { + this.o1 = null; } - public static class create_table_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public create_table_with_environment_context() { - super("create_table_with_environment_context"); - } + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } - public create_table_with_environment_context_args getEmptyArgsInstance() { - return new create_table_with_environment_context_args(); + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; } + } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - create_table_with_environment_context_result result = new create_table_with_environment_context_result(); - 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; - create_table_with_environment_context_result result = new create_table_with_environment_context_result(); - if (e instanceof AlreadyExistsException) { - result.o1 = (AlreadyExistsException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o4 = (NoSuchObjectException) 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(); - } - }; - } + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((String)value); + } + break; - protected boolean isOneway() { - return false; - } + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; - public void start(I iface, create_table_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.create_table_with_environment_context(args.tbl, args.environment_context,resultHandler); } } - public static class drop_table extends org.apache.thrift.AsyncProcessFunction { - public drop_table() { - super("drop_table"); - } + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); - public drop_table_args getEmptyArgsInstance() { - return new drop_table_args(); - } + case O1: + return getO1(); - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - drop_table_result result = new drop_table_result(); - 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; - drop_table_result result = new drop_table_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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(); - } - }; } + throw new IllegalStateException(); + } - protected boolean isOneway() { - return false; + /** 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(); } - public void start(I iface, drop_table_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_table(args.dbname, args.name, args.deleteData,resultHandler); + switch (field) { + case SUCCESS: + return isSetSuccess(); + case O1: + return isSetO1(); } + throw new IllegalStateException(); } - public static class drop_table_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public drop_table_with_environment_context() { - super("drop_table_with_environment_context"); - } + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof getMetaConf_result) + return this.equals((getMetaConf_result)that); + return false; + } - public drop_table_with_environment_context_args getEmptyArgsInstance() { - return new drop_table_with_environment_context_args(); - } + public boolean equals(getMetaConf_result that) { + if (that == null) + return false; - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - drop_table_with_environment_context_result result = new drop_table_with_environment_context_result(); - 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; - drop_table_with_environment_context_result result = new drop_table_with_environment_context_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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(); - } - }; + 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; } - protected boolean isOneway() { - 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; } - public void start(I iface, drop_table_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context,resultHandler); - } + return true; } - public static class get_tables extends org.apache.thrift.AsyncProcessFunction> { - public get_tables() { - super("get_tables"); - } - - public get_tables_args getEmptyArgsInstance() { - return new get_tables_args(); - } + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_tables_result result = new get_tables_result(); - result.success = o; - 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_tables_result result = new get_tables_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } + boolean present_success = true && (isSetSuccess()); + builder.append(present_success); + if (present_success) + builder.append(success); - protected boolean isOneway() { - return false; - } + boolean present_o1 = true && (isSetO1()); + builder.append(present_o1); + if (present_o1) + builder.append(o1); - public void start(I iface, get_tables_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_tables(args.db_name, args.pattern,resultHandler); - } + return builder.toHashCode(); } - public static class get_all_tables extends org.apache.thrift.AsyncProcessFunction> { - public get_all_tables() { - super("get_all_tables"); + public int compareTo(getMetaConf_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); } - public get_all_tables_args getEmptyArgsInstance() { - return new get_all_tables_args(); - } + int lastComparison = 0; + getMetaConf_result typedOther = (getMetaConf_result)other; - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_all_tables_result result = new get_all_tables_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_all_tables_result result = new get_all_tables_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; } - - protected boolean isOneway() { - return false; + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (lastComparison != 0) { + return lastComparison; + } } - - public void start(I iface, get_all_tables_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_all_tables(args.db_name,resultHandler); - } - } - - public static class get_table extends org.apache.thrift.AsyncProcessFunction { - public get_table() { - super("get_table"); - } - - public get_table_args getEmptyArgsInstance() { - return new get_table_args(); - } - - public AsyncMethodCallback
getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback
() { - public void onComplete(Table o) { - get_table_result result = new get_table_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_table_result result = new get_table_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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_args args, org.apache.thrift.async.AsyncMethodCallback
resultHandler) throws TException { - iface.get_table(args.dbname, args.tbl_name,resultHandler); - } - } - - public static class get_table_objects_by_name extends org.apache.thrift.AsyncProcessFunction> { - public get_table_objects_by_name() { - super("get_table_objects_by_name"); - } - - public get_table_objects_by_name_args getEmptyArgsInstance() { - return new get_table_objects_by_name_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List
o) { - get_table_objects_by_name_result result = new get_table_objects_by_name_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_objects_by_name_result result = new get_table_objects_by_name_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidOperationException) { - result.o2 = (InvalidOperationException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(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_objects_by_name_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_table_objects_by_name(args.dbname, args.tbl_names,resultHandler); - } - } - - public static class get_table_names_by_filter extends org.apache.thrift.AsyncProcessFunction> { - public get_table_names_by_filter() { - super("get_table_names_by_filter"); - } - - public get_table_names_by_filter_args getEmptyArgsInstance() { - return new get_table_names_by_filter_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_table_names_by_filter_result result = new get_table_names_by_filter_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_names_by_filter_result result = new get_table_names_by_filter_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidOperationException) { - result.o2 = (InvalidOperationException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(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_names_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_table_names_by_filter(args.dbname, args.filter, args.max_tables,resultHandler); - } - } - - public static class alter_table extends org.apache.thrift.AsyncProcessFunction { - public alter_table() { - super("alter_table"); - } - - public alter_table_args getEmptyArgsInstance() { - return new alter_table_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_table_result result = new alter_table_result(); - 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; - alter_table_result result = new alter_table_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_table_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_table(args.dbname, args.tbl_name, args.new_tbl,resultHandler); - } - } - - public static class alter_table_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public alter_table_with_environment_context() { - super("alter_table_with_environment_context"); - } - - public alter_table_with_environment_context_args getEmptyArgsInstance() { - return new alter_table_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_table_with_environment_context_result result = new alter_table_with_environment_context_result(); - 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; - alter_table_with_environment_context_result result = new alter_table_with_environment_context_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_table_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_table_with_environment_context(args.dbname, args.tbl_name, args.new_tbl, args.environment_context,resultHandler); - } - } - - public static class alter_table_with_cascade extends org.apache.thrift.AsyncProcessFunction { - public alter_table_with_cascade() { - super("alter_table_with_cascade"); - } - - public alter_table_with_cascade_args getEmptyArgsInstance() { - return new alter_table_with_cascade_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_table_with_cascade_result result = new alter_table_with_cascade_result(); - 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; - alter_table_with_cascade_result result = new alter_table_with_cascade_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_table_with_cascade_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_table_with_cascade(args.dbname, args.tbl_name, args.new_tbl, args.cascade,resultHandler); - } - } - - public static class add_partition extends org.apache.thrift.AsyncProcessFunction { - public add_partition() { - super("add_partition"); - } - - public add_partition_args getEmptyArgsInstance() { - return new add_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - add_partition_result result = new add_partition_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; - add_partition_result result = new add_partition_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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, add_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_partition(args.new_part,resultHandler); - } - } - - public static class add_partition_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public add_partition_with_environment_context() { - super("add_partition_with_environment_context"); - } - - public add_partition_with_environment_context_args getEmptyArgsInstance() { - return new add_partition_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - add_partition_with_environment_context_result result = new add_partition_with_environment_context_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; - add_partition_with_environment_context_result result = new add_partition_with_environment_context_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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, add_partition_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_partition_with_environment_context(args.new_part, args.environment_context,resultHandler); - } - } - - public static class add_partitions extends org.apache.thrift.AsyncProcessFunction { - public add_partitions() { - super("add_partitions"); - } - - public add_partitions_args getEmptyArgsInstance() { - return new add_partitions_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { - add_partitions_result result = new add_partitions_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - add_partitions_result result = new add_partitions_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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, add_partitions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_partitions(args.new_parts,resultHandler); - } - } - - public static class add_partitions_pspec extends org.apache.thrift.AsyncProcessFunction { - public add_partitions_pspec() { - super("add_partitions_pspec"); - } - - public add_partitions_pspec_args getEmptyArgsInstance() { - return new add_partitions_pspec_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { - add_partitions_pspec_result result = new add_partitions_pspec_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - add_partitions_pspec_result result = new add_partitions_pspec_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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, add_partitions_pspec_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_partitions_pspec(args.new_parts,resultHandler); - } - } - - public static class append_partition extends org.apache.thrift.AsyncProcessFunction { - public append_partition() { - super("append_partition"); - } - - public append_partition_args getEmptyArgsInstance() { - return new append_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - append_partition_result result = new append_partition_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; - append_partition_result result = new append_partition_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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, append_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.append_partition(args.db_name, args.tbl_name, args.part_vals,resultHandler); - } - } - - public static class add_partitions_req extends org.apache.thrift.AsyncProcessFunction { - public add_partitions_req() { - super("add_partitions_req"); - } - - public add_partitions_req_args getEmptyArgsInstance() { - return new add_partitions_req_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(AddPartitionsResult o) { - add_partitions_req_result result = new add_partitions_req_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; - add_partitions_req_result result = new add_partitions_req_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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, add_partitions_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_partitions_req(args.request,resultHandler); - } - } - - public static class append_partition_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public append_partition_with_environment_context() { - super("append_partition_with_environment_context"); - } - - public append_partition_with_environment_context_args getEmptyArgsInstance() { - return new append_partition_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - append_partition_with_environment_context_result result = new append_partition_with_environment_context_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; - append_partition_with_environment_context_result result = new append_partition_with_environment_context_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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, append_partition_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.append_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.environment_context,resultHandler); - } - } - - public static class append_partition_by_name extends org.apache.thrift.AsyncProcessFunction { - public append_partition_by_name() { - super("append_partition_by_name"); - } - - public append_partition_by_name_args getEmptyArgsInstance() { - return new append_partition_by_name_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - append_partition_by_name_result result = new append_partition_by_name_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; - append_partition_by_name_result result = new append_partition_by_name_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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, append_partition_by_name_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.append_partition_by_name(args.db_name, args.tbl_name, args.part_name,resultHandler); - } - } - - public static class append_partition_by_name_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public append_partition_by_name_with_environment_context() { - super("append_partition_by_name_with_environment_context"); - } - - public append_partition_by_name_with_environment_context_args getEmptyArgsInstance() { - return new append_partition_by_name_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - append_partition_by_name_with_environment_context_result result = new append_partition_by_name_with_environment_context_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; - append_partition_by_name_with_environment_context_result result = new append_partition_by_name_with_environment_context_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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, append_partition_by_name_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.append_partition_by_name_with_environment_context(args.db_name, args.tbl_name, args.part_name, args.environment_context,resultHandler); - } - } - - public static class drop_partition extends org.apache.thrift.AsyncProcessFunction { - public drop_partition() { - super("drop_partition"); - } - - public drop_partition_args getEmptyArgsInstance() { - return new drop_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_partition_result result = new drop_partition_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - drop_partition_result result = new drop_partition_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 - { - 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, drop_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData,resultHandler); - } - } - - public static class drop_partition_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public drop_partition_with_environment_context() { - super("drop_partition_with_environment_context"); - } - - public drop_partition_with_environment_context_args getEmptyArgsInstance() { - return new drop_partition_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_partition_with_environment_context_result result = new drop_partition_with_environment_context_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - drop_partition_with_environment_context_result result = new drop_partition_with_environment_context_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 - { - 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, drop_partition_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context,resultHandler); - } - } - - public static class drop_partition_by_name extends org.apache.thrift.AsyncProcessFunction { - public drop_partition_by_name() { - super("drop_partition_by_name"); - } - - public drop_partition_by_name_args getEmptyArgsInstance() { - return new drop_partition_by_name_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_partition_by_name_result result = new drop_partition_by_name_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - drop_partition_by_name_result result = new drop_partition_by_name_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 - { - 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, drop_partition_by_name_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData,resultHandler); - } - } - - public static class drop_partition_by_name_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public drop_partition_by_name_with_environment_context() { - super("drop_partition_by_name_with_environment_context"); - } - - public drop_partition_by_name_with_environment_context_args getEmptyArgsInstance() { - return new drop_partition_by_name_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_partition_by_name_with_environment_context_result result = new drop_partition_by_name_with_environment_context_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - drop_partition_by_name_with_environment_context_result result = new drop_partition_by_name_with_environment_context_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 - { - 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, drop_partition_by_name_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_partition_by_name_with_environment_context(args.db_name, args.tbl_name, args.part_name, args.deleteData, args.environment_context,resultHandler); - } - } - - public static class drop_partitions_req extends org.apache.thrift.AsyncProcessFunction { - public drop_partitions_req() { - super("drop_partitions_req"); - } - - public drop_partitions_req_args getEmptyArgsInstance() { - return new drop_partitions_req_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(DropPartitionsResult o) { - drop_partitions_req_result result = new drop_partitions_req_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; - drop_partitions_req_result result = new drop_partitions_req_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 - { - 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, drop_partitions_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_partitions_req(args.req,resultHandler); - } - } - - public static class get_partition extends org.apache.thrift.AsyncProcessFunction { - public get_partition() { - super("get_partition"); - } - - public get_partition_args getEmptyArgsInstance() { - return new get_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - get_partition_result result = new get_partition_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_result result = new get_partition_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partition(args.db_name, args.tbl_name, args.part_vals,resultHandler); - } - } - - public static class exchange_partition extends org.apache.thrift.AsyncProcessFunction { - public exchange_partition() { - super("exchange_partition"); - } - - public exchange_partition_args getEmptyArgsInstance() { - return new exchange_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - exchange_partition_result result = new exchange_partition_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; - exchange_partition_result result = new exchange_partition_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o3 = (InvalidObjectException) 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; - 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, exchange_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.exchange_partition(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name,resultHandler); - } - } - - public static class get_partition_with_auth extends org.apache.thrift.AsyncProcessFunction { - public get_partition_with_auth() { - super("get_partition_with_auth"); - } - - public get_partition_with_auth_args getEmptyArgsInstance() { - return new get_partition_with_auth_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - get_partition_with_auth_result result = new get_partition_with_auth_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_with_auth_result result = new get_partition_with_auth_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partition_with_auth_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names,resultHandler); - } - } - - public static class get_partition_by_name extends org.apache.thrift.AsyncProcessFunction { - public get_partition_by_name() { - super("get_partition_by_name"); - } - - public get_partition_by_name_args getEmptyArgsInstance() { - return new get_partition_by_name_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - get_partition_by_name_result result = new get_partition_by_name_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_by_name_result result = new get_partition_by_name_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partition_by_name_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partition_by_name(args.db_name, args.tbl_name, args.part_name,resultHandler); - } - } - - public static class get_partitions extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions() { - super("get_partitions"); - } - - public get_partitions_args getEmptyArgsInstance() { - return new get_partitions_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_result result = new get_partitions_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_partitions_result result = new get_partitions_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 - { - 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_partitions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions(args.db_name, args.tbl_name, args.max_parts,resultHandler); - } - } - - public static class get_partitions_with_auth extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_with_auth() { - super("get_partitions_with_auth"); - } - - public get_partitions_with_auth_args getEmptyArgsInstance() { - return new get_partitions_with_auth_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_with_auth_result result = new get_partitions_with_auth_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_partitions_with_auth_result result = new get_partitions_with_auth_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 - { - 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_partitions_with_auth_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names,resultHandler); - } - } - - public static class get_partitions_pspec extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_pspec() { - super("get_partitions_pspec"); - } - - public get_partitions_pspec_args getEmptyArgsInstance() { - return new get_partitions_pspec_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_pspec_result result = new get_partitions_pspec_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_partitions_pspec_result result = new get_partitions_pspec_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 - { - 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_partitions_pspec_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_pspec(args.db_name, args.tbl_name, args.max_parts,resultHandler); - } - } - - public static class get_partition_names extends org.apache.thrift.AsyncProcessFunction> { - public get_partition_names() { - super("get_partition_names"); - } - - public get_partition_names_args getEmptyArgsInstance() { - return new get_partition_names_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partition_names_result result = new get_partition_names_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_names_result result = new get_partition_names_result(); - if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partition_names_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partition_names(args.db_name, args.tbl_name, args.max_parts,resultHandler); - } - } - - public static class get_partitions_ps extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_ps() { - super("get_partitions_ps"); - } - - public get_partitions_ps_args getEmptyArgsInstance() { - return new get_partitions_ps_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_ps_result result = new get_partitions_ps_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_partitions_ps_result result = new get_partitions_ps_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_ps_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts,resultHandler); - } - } - - public static class get_partitions_ps_with_auth extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_ps_with_auth() { - super("get_partitions_ps_with_auth"); - } - - public get_partitions_ps_with_auth_args getEmptyArgsInstance() { - return new get_partitions_ps_with_auth_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_ps_with_auth_result result = new get_partitions_ps_with_auth_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_partitions_ps_with_auth_result result = new get_partitions_ps_with_auth_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 - { - 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_partitions_ps_with_auth_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_ps_with_auth(args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names,resultHandler); - } - } - - public static class get_partition_names_ps extends org.apache.thrift.AsyncProcessFunction> { - public get_partition_names_ps() { - super("get_partition_names_ps"); - } - - public get_partition_names_ps_args getEmptyArgsInstance() { - return new get_partition_names_ps_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partition_names_ps_result result = new get_partition_names_ps_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_names_ps_result result = new get_partition_names_ps_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partition_names_ps_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts,resultHandler); - } - } - - public static class get_partitions_by_filter extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_by_filter() { - super("get_partitions_by_filter"); - } - - public get_partitions_by_filter_args getEmptyArgsInstance() { - return new get_partitions_by_filter_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_by_filter_result result = new get_partitions_by_filter_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_partitions_by_filter_result result = new get_partitions_by_filter_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts,resultHandler); - } - } - - public static class get_part_specs_by_filter extends org.apache.thrift.AsyncProcessFunction> { - public get_part_specs_by_filter() { - super("get_part_specs_by_filter"); - } - - public get_part_specs_by_filter_args getEmptyArgsInstance() { - return new get_part_specs_by_filter_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_part_specs_by_filter_result result = new get_part_specs_by_filter_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_part_specs_by_filter_result result = new get_part_specs_by_filter_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_part_specs_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_part_specs_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts,resultHandler); - } - } - - public static class get_partitions_by_expr extends org.apache.thrift.AsyncProcessFunction { - public get_partitions_by_expr() { - super("get_partitions_by_expr"); - } - - public get_partitions_by_expr_args getEmptyArgsInstance() { - return new get_partitions_by_expr_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(PartitionsByExprResult o) { - get_partitions_by_expr_result result = new get_partitions_by_expr_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_partitions_by_expr_result result = new get_partitions_by_expr_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_by_expr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partitions_by_expr(args.req,resultHandler); - } - } - - public static class get_partitions_by_names extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_by_names() { - super("get_partitions_by_names"); - } - - public get_partitions_by_names_args getEmptyArgsInstance() { - return new get_partitions_by_names_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_by_names_result result = new get_partitions_by_names_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_partitions_by_names_result result = new get_partitions_by_names_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_by_names_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_by_names(args.db_name, args.tbl_name, args.names,resultHandler); - } - } - - public static class alter_partition extends org.apache.thrift.AsyncProcessFunction { - public alter_partition() { - super("alter_partition"); - } - - public alter_partition_args getEmptyArgsInstance() { - return new alter_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_partition_result result = new alter_partition_result(); - 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; - alter_partition_result result = new alter_partition_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_partition(args.db_name, args.tbl_name, args.new_part,resultHandler); - } - } - - public static class alter_partitions extends org.apache.thrift.AsyncProcessFunction { - public alter_partitions() { - super("alter_partitions"); - } - - public alter_partitions_args getEmptyArgsInstance() { - return new alter_partitions_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_partitions_result result = new alter_partitions_result(); - 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; - alter_partitions_result result = new alter_partitions_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_partitions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_partitions(args.db_name, args.tbl_name, args.new_parts,resultHandler); - } - } - - public static class alter_partition_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public alter_partition_with_environment_context() { - super("alter_partition_with_environment_context"); - } - - public alter_partition_with_environment_context_args getEmptyArgsInstance() { - return new alter_partition_with_environment_context_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_partition_with_environment_context_result result = new alter_partition_with_environment_context_result(); - 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; - alter_partition_with_environment_context_result result = new alter_partition_with_environment_context_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_partition_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_partition_with_environment_context(args.db_name, args.tbl_name, args.new_part, args.environment_context,resultHandler); - } - } - - public static class rename_partition extends org.apache.thrift.AsyncProcessFunction { - public rename_partition() { - super("rename_partition"); - } - - public rename_partition_args getEmptyArgsInstance() { - return new rename_partition_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - rename_partition_result result = new rename_partition_result(); - 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; - rename_partition_result result = new rename_partition_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, rename_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.rename_partition(args.db_name, args.tbl_name, args.part_vals, args.new_part,resultHandler); - } - } - - public static class partition_name_has_valid_characters extends org.apache.thrift.AsyncProcessFunction { - public partition_name_has_valid_characters() { - super("partition_name_has_valid_characters"); - } - - public partition_name_has_valid_characters_args getEmptyArgsInstance() { - return new partition_name_has_valid_characters_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - partition_name_has_valid_characters_result result = new partition_name_has_valid_characters_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - partition_name_has_valid_characters_result result = new partition_name_has_valid_characters_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, partition_name_has_valid_characters_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.partition_name_has_valid_characters(args.part_vals, args.throw_exception,resultHandler); - } - } - - public static class get_config_value extends org.apache.thrift.AsyncProcessFunction { - public get_config_value() { - super("get_config_value"); - } - - public get_config_value_args getEmptyArgsInstance() { - return new get_config_value_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - get_config_value_result result = new get_config_value_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_config_value_result result = new get_config_value_result(); - if (e instanceof ConfigValSecurityException) { - result.o1 = (ConfigValSecurityException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_config_value_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_config_value(args.name, args.defaultValue,resultHandler); - } - } - - public static class partition_name_to_vals extends org.apache.thrift.AsyncProcessFunction> { - public partition_name_to_vals() { - super("partition_name_to_vals"); - } - - public partition_name_to_vals_args getEmptyArgsInstance() { - return new partition_name_to_vals_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - partition_name_to_vals_result result = new partition_name_to_vals_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; - partition_name_to_vals_result result = new partition_name_to_vals_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, partition_name_to_vals_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.partition_name_to_vals(args.part_name,resultHandler); - } - } - - public static class partition_name_to_spec extends org.apache.thrift.AsyncProcessFunction> { - public partition_name_to_spec() { - super("partition_name_to_spec"); - } - - public partition_name_to_spec_args getEmptyArgsInstance() { - return new partition_name_to_spec_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(Map o) { - partition_name_to_spec_result result = new partition_name_to_spec_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; - partition_name_to_spec_result result = new partition_name_to_spec_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, partition_name_to_spec_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.partition_name_to_spec(args.part_name,resultHandler); - } - } - - public static class markPartitionForEvent extends org.apache.thrift.AsyncProcessFunction { - public markPartitionForEvent() { - super("markPartitionForEvent"); - } - - public markPartitionForEvent_args getEmptyArgsInstance() { - return new markPartitionForEvent_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - markPartitionForEvent_result result = new markPartitionForEvent_result(); - 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; - markPartitionForEvent_result result = new markPartitionForEvent_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof UnknownTableException) { - result.o4 = (UnknownTableException) e; - result.setO4IsSet(true); - msg = result; - } - else if (e instanceof UnknownPartitionException) { - result.o5 = (UnknownPartitionException) e; - result.setO5IsSet(true); - msg = result; - } - else if (e instanceof InvalidPartitionException) { - result.o6 = (InvalidPartitionException) e; - result.setO6IsSet(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, markPartitionForEvent_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.markPartitionForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType,resultHandler); - } - } - - public static class isPartitionMarkedForEvent extends org.apache.thrift.AsyncProcessFunction { - public isPartitionMarkedForEvent() { - super("isPartitionMarkedForEvent"); - } - - public isPartitionMarkedForEvent_args getEmptyArgsInstance() { - return new isPartitionMarkedForEvent_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - isPartitionMarkedForEvent_result result = new isPartitionMarkedForEvent_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - isPartitionMarkedForEvent_result result = new isPartitionMarkedForEvent_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof UnknownDBException) { - result.o3 = (UnknownDBException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof UnknownTableException) { - result.o4 = (UnknownTableException) e; - result.setO4IsSet(true); - msg = result; - } - else if (e instanceof UnknownPartitionException) { - result.o5 = (UnknownPartitionException) e; - result.setO5IsSet(true); - msg = result; - } - else if (e instanceof InvalidPartitionException) { - result.o6 = (InvalidPartitionException) e; - result.setO6IsSet(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, isPartitionMarkedForEvent_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.isPartitionMarkedForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType,resultHandler); - } - } - - public static class add_index extends org.apache.thrift.AsyncProcessFunction { - public add_index() { - super("add_index"); - } - - public add_index_args getEmptyArgsInstance() { - return new add_index_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Index o) { - add_index_result result = new add_index_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; - add_index_result result = new add_index_result(); - if (e instanceof InvalidObjectException) { - result.o1 = (InvalidObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof AlreadyExistsException) { - result.o2 = (AlreadyExistsException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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, add_index_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_index(args.new_index, args.index_table,resultHandler); - } - } - - public static class alter_index extends org.apache.thrift.AsyncProcessFunction { - public alter_index() { - super("alter_index"); - } - - public alter_index_args getEmptyArgsInstance() { - return new alter_index_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_index_result result = new alter_index_result(); - 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; - alter_index_result result = new alter_index_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_index_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx,resultHandler); - } - } - - public static class drop_index_by_name extends org.apache.thrift.AsyncProcessFunction { - public drop_index_by_name() { - super("drop_index_by_name"); - } - - public drop_index_by_name_args getEmptyArgsInstance() { - return new drop_index_by_name_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_index_by_name_result result = new drop_index_by_name_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - drop_index_by_name_result result = new drop_index_by_name_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 - { - 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, drop_index_by_name_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData,resultHandler); - } - } - - public static class get_index_by_name extends org.apache.thrift.AsyncProcessFunction { - public get_index_by_name() { - super("get_index_by_name"); - } - - public get_index_by_name_args getEmptyArgsInstance() { - return new get_index_by_name_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Index o) { - get_index_by_name_result result = new get_index_by_name_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_index_by_name_result result = new get_index_by_name_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_index_by_name_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_index_by_name(args.db_name, args.tbl_name, args.index_name,resultHandler); - } - } - - public static class get_indexes extends org.apache.thrift.AsyncProcessFunction> { - public get_indexes() { - super("get_indexes"); - } - - public get_indexes_args getEmptyArgsInstance() { - return new get_indexes_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_indexes_result result = new get_indexes_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_indexes_result result = new get_indexes_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 - { - 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_indexes_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_indexes(args.db_name, args.tbl_name, args.max_indexes,resultHandler); - } - } - - public static class get_index_names extends org.apache.thrift.AsyncProcessFunction> { - public get_index_names() { - super("get_index_names"); - } - - public get_index_names_args getEmptyArgsInstance() { - return new get_index_names_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_index_names_result result = new get_index_names_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_index_names_result result = new get_index_names_result(); - if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_index_names_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_index_names(args.db_name, args.tbl_name, args.max_indexes,resultHandler); - } - } - - public static class update_table_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public update_table_column_statistics() { - super("update_table_column_statistics"); - } - - public update_table_column_statistics_args getEmptyArgsInstance() { - return new update_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(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; - } 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; - 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 InvalidObjectException) { - result.o2 = (InvalidObjectException) 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; - 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_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 update_partition_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public update_partition_column_statistics() { - super("update_partition_column_statistics"); - } - - public update_partition_column_statistics_args getEmptyArgsInstance() { - return new update_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(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; - } 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; - 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 InvalidObjectException) { - result.o2 = (InvalidObjectException) 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; - 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; - } - 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_partition_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name,resultHandler); - } - } - - public static class get_table_statistics_req extends org.apache.thrift.AsyncProcessFunction { - public get_table_statistics_req() { - super("get_table_statistics_req"); - } - - public get_table_statistics_req_args getEmptyArgsInstance() { - return new get_table_statistics_req_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TableStatsResult o) { - get_table_statistics_req_result result = new get_table_statistics_req_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_statistics_req_result result = new get_table_statistics_req_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 - { - 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_statistics_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_table_statistics_req(args.request,resultHandler); - } - } - - public static class get_partitions_statistics_req extends org.apache.thrift.AsyncProcessFunction { - public get_partitions_statistics_req() { - super("get_partitions_statistics_req"); - } - - public get_partitions_statistics_req_args getEmptyArgsInstance() { - return new get_partitions_statistics_req_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(PartitionsStatsResult o) { - get_partitions_statistics_req_result result = new get_partitions_statistics_req_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_partitions_statistics_req_result result = new get_partitions_statistics_req_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 - { - 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_partitions_statistics_req_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partitions_statistics_req(args.request,resultHandler); - } - } - - public static class get_aggr_stats_for extends org.apache.thrift.AsyncProcessFunction { - public get_aggr_stats_for() { - super("get_aggr_stats_for"); - } - - public get_aggr_stats_for_args getEmptyArgsInstance() { - return new get_aggr_stats_for_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(AggrStats o) { - get_aggr_stats_for_result result = new get_aggr_stats_for_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_aggr_stats_for_result result = new get_aggr_stats_for_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 - { - 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_aggr_stats_for_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_aggr_stats_for(args.request,resultHandler); - } - } - - public static class set_aggr_stats_for extends org.apache.thrift.AsyncProcessFunction { - public set_aggr_stats_for() { - super("set_aggr_stats_for"); - } - - public set_aggr_stats_for_args getEmptyArgsInstance() { - return new set_aggr_stats_for_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - set_aggr_stats_for_result result = new set_aggr_stats_for_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - set_aggr_stats_for_result result = new set_aggr_stats_for_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) 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; - 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, set_aggr_stats_for_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.set_aggr_stats_for(args.request,resultHandler); - } - } - - public static class delete_partition_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public delete_partition_column_statistics() { - super("delete_partition_column_statistics"); - } - - public delete_partition_column_statistics_args getEmptyArgsInstance() { - return new delete_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(Boolean o) { - delete_partition_column_statistics_result result = new delete_partition_column_statistics_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - delete_partition_column_statistics_result result = new delete_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 InvalidObjectException) { - result.o3 = (InvalidObjectException) 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; - 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, delete_partition_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.delete_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name,resultHandler); - } - } - - public static class delete_table_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public delete_table_column_statistics() { - super("delete_table_column_statistics"); - } - - public delete_table_column_statistics_args getEmptyArgsInstance() { - return new delete_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(Boolean o) { - delete_table_column_statistics_result result = new delete_table_column_statistics_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - delete_table_column_statistics_result result = new delete_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 InvalidObjectException) { - result.o3 = (InvalidObjectException) 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; - 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, delete_table_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.delete_table_column_statistics(args.db_name, args.tbl_name, args.col_name,resultHandler); - } - } - - public static class create_function extends org.apache.thrift.AsyncProcessFunction { - public create_function() { - super("create_function"); - } - - public create_function_args getEmptyArgsInstance() { - return new create_function_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - create_function_result result = new create_function_result(); - 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; - create_function_result result = new create_function_result(); - if (e instanceof AlreadyExistsException) { - result.o1 = (AlreadyExistsException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o4 = (NoSuchObjectException) 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, create_function_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.create_function(args.func,resultHandler); - } - } - - public static class drop_function extends org.apache.thrift.AsyncProcessFunction { - public drop_function() { - super("drop_function"); - } - - public drop_function_args getEmptyArgsInstance() { - return new drop_function_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - drop_function_result result = new drop_function_result(); - 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; - drop_function_result result = new drop_function_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - 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, drop_function_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_function(args.dbName, args.funcName,resultHandler); - } - } - - public static class alter_function extends org.apache.thrift.AsyncProcessFunction { - public alter_function() { - super("alter_function"); - } - - public alter_function_args getEmptyArgsInstance() { - return new alter_function_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_function_result result = new alter_function_result(); - 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; - alter_function_result result = new alter_function_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, alter_function_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_function(args.dbName, args.funcName, args.newFunc,resultHandler); - } - } - - public static class get_functions extends org.apache.thrift.AsyncProcessFunction> { - public get_functions() { - super("get_functions"); - } - - public get_functions_args getEmptyArgsInstance() { - return new get_functions_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_functions_result result = new get_functions_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_functions_result result = new get_functions_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_functions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_functions(args.dbName, args.pattern,resultHandler); - } - } - - public static class get_function extends org.apache.thrift.AsyncProcessFunction { - public get_function() { - super("get_function"); - } - - public get_function_args getEmptyArgsInstance() { - return new get_function_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Function o) { - get_function_result result = new get_function_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_function_result result = new get_function_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_function_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_function(args.dbName, args.funcName,resultHandler); - } - } - - public static class get_all_functions extends org.apache.thrift.AsyncProcessFunction { - public get_all_functions() { - super("get_all_functions"); - } - - public get_all_functions_args getEmptyArgsInstance() { - return new get_all_functions_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetAllFunctionsResponse o) { - get_all_functions_result result = new get_all_functions_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_all_functions_result result = new get_all_functions_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_all_functions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_all_functions(resultHandler); - } - } - - public static class create_role extends org.apache.thrift.AsyncProcessFunction { - public create_role() { - super("create_role"); - } - - public create_role_args getEmptyArgsInstance() { - return new create_role_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - create_role_result result = new create_role_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - create_role_result result = new create_role_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, create_role_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.create_role(args.role,resultHandler); - } - } - - public static class drop_role extends org.apache.thrift.AsyncProcessFunction { - public drop_role() { - super("drop_role"); - } - - public drop_role_args getEmptyArgsInstance() { - return new drop_role_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - drop_role_result result = new drop_role_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - drop_role_result result = new drop_role_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, drop_role_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_role(args.role_name,resultHandler); - } - } - - public static class get_role_names extends org.apache.thrift.AsyncProcessFunction> { - public get_role_names() { - super("get_role_names"); - } - - public get_role_names_args getEmptyArgsInstance() { - return new get_role_names_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_role_names_result result = new get_role_names_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_role_names_result result = new get_role_names_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_role_names_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_role_names(resultHandler); - } - } - - public static class grant_role extends org.apache.thrift.AsyncProcessFunction { - public grant_role() { - super("grant_role"); - } - - public grant_role_args getEmptyArgsInstance() { - return new grant_role_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - grant_role_result result = new grant_role_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - grant_role_result result = new grant_role_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, grant_role_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option,resultHandler); - } - } - - public static class revoke_role extends org.apache.thrift.AsyncProcessFunction { - public revoke_role() { - super("revoke_role"); - } - - public revoke_role_args getEmptyArgsInstance() { - return new revoke_role_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - revoke_role_result result = new revoke_role_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - revoke_role_result result = new revoke_role_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, revoke_role_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.revoke_role(args.role_name, args.principal_name, args.principal_type,resultHandler); - } - } - - public static class list_roles extends org.apache.thrift.AsyncProcessFunction> { - public list_roles() { - super("list_roles"); - } - - public list_roles_args getEmptyArgsInstance() { - return new list_roles_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - list_roles_result result = new list_roles_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; - list_roles_result result = new list_roles_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, list_roles_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.list_roles(args.principal_name, args.principal_type,resultHandler); - } - } - - public static class grant_revoke_role extends org.apache.thrift.AsyncProcessFunction { - public grant_revoke_role() { - super("grant_revoke_role"); - } - - public grant_revoke_role_args getEmptyArgsInstance() { - return new grant_revoke_role_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GrantRevokeRoleResponse o) { - grant_revoke_role_result result = new grant_revoke_role_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; - grant_revoke_role_result result = new grant_revoke_role_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, grant_revoke_role_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.grant_revoke_role(args.request,resultHandler); - } - } - - public static class get_principals_in_role extends org.apache.thrift.AsyncProcessFunction { - public get_principals_in_role() { - super("get_principals_in_role"); - } - - public get_principals_in_role_args getEmptyArgsInstance() { - return new get_principals_in_role_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetPrincipalsInRoleResponse o) { - get_principals_in_role_result result = new get_principals_in_role_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_principals_in_role_result result = new get_principals_in_role_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_principals_in_role_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_principals_in_role(args.request,resultHandler); - } - } - - public static class get_role_grants_for_principal extends org.apache.thrift.AsyncProcessFunction { - public get_role_grants_for_principal() { - super("get_role_grants_for_principal"); - } - - public get_role_grants_for_principal_args getEmptyArgsInstance() { - return new get_role_grants_for_principal_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetRoleGrantsForPrincipalResponse o) { - get_role_grants_for_principal_result result = new get_role_grants_for_principal_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_role_grants_for_principal_result result = new get_role_grants_for_principal_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_role_grants_for_principal_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_role_grants_for_principal(args.request,resultHandler); - } - } - - public static class get_privilege_set extends org.apache.thrift.AsyncProcessFunction { - public get_privilege_set() { - super("get_privilege_set"); - } - - public get_privilege_set_args getEmptyArgsInstance() { - return new get_privilege_set_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(PrincipalPrivilegeSet o) { - get_privilege_set_result result = new get_privilege_set_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_privilege_set_result result = new get_privilege_set_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_privilege_set_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_privilege_set(args.hiveObject, args.user_name, args.group_names,resultHandler); - } - } - - public static class list_privileges extends org.apache.thrift.AsyncProcessFunction> { - public list_privileges() { - super("list_privileges"); - } - - public list_privileges_args getEmptyArgsInstance() { - return new list_privileges_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - list_privileges_result result = new list_privileges_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; - list_privileges_result result = new list_privileges_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, list_privileges_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.list_privileges(args.principal_name, args.principal_type, args.hiveObject,resultHandler); - } - } - - public static class grant_privileges extends org.apache.thrift.AsyncProcessFunction { - public grant_privileges() { - super("grant_privileges"); - } - - public grant_privileges_args getEmptyArgsInstance() { - return new grant_privileges_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - grant_privileges_result result = new grant_privileges_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - grant_privileges_result result = new grant_privileges_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, grant_privileges_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.grant_privileges(args.privileges,resultHandler); - } - } - - public static class revoke_privileges extends org.apache.thrift.AsyncProcessFunction { - public revoke_privileges() { - super("revoke_privileges"); - } - - public revoke_privileges_args getEmptyArgsInstance() { - return new revoke_privileges_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Boolean o) { - revoke_privileges_result result = new revoke_privileges_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - revoke_privileges_result result = new revoke_privileges_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, revoke_privileges_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.revoke_privileges(args.privileges,resultHandler); - } - } - - public static class grant_revoke_privileges extends org.apache.thrift.AsyncProcessFunction { - public grant_revoke_privileges() { - super("grant_revoke_privileges"); - } - - public grant_revoke_privileges_args getEmptyArgsInstance() { - return new grant_revoke_privileges_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GrantRevokePrivilegeResponse o) { - grant_revoke_privileges_result result = new grant_revoke_privileges_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; - grant_revoke_privileges_result result = new grant_revoke_privileges_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, grant_revoke_privileges_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.grant_revoke_privileges(args.request,resultHandler); - } - } - - public static class set_ugi extends org.apache.thrift.AsyncProcessFunction> { - public set_ugi() { - super("set_ugi"); - } - - public set_ugi_args getEmptyArgsInstance() { - return new set_ugi_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - set_ugi_result result = new set_ugi_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; - set_ugi_result result = new set_ugi_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, set_ugi_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.set_ugi(args.user_name, args.group_names,resultHandler); - } - } - - public static class get_delegation_token extends org.apache.thrift.AsyncProcessFunction { - public get_delegation_token() { - super("get_delegation_token"); - } - - public get_delegation_token_args getEmptyArgsInstance() { - return new get_delegation_token_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - get_delegation_token_result result = new get_delegation_token_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_delegation_token_result result = new get_delegation_token_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_delegation_token_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_delegation_token(args.token_owner, args.renewer_kerberos_principal_name,resultHandler); - } - } - - public static class renew_delegation_token extends org.apache.thrift.AsyncProcessFunction { - public renew_delegation_token() { - super("renew_delegation_token"); - } - - public renew_delegation_token_args getEmptyArgsInstance() { - return new renew_delegation_token_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Long o) { - renew_delegation_token_result result = new renew_delegation_token_result(); - result.success = o; - result.setSuccessIsSet(true); - 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; - renew_delegation_token_result result = new renew_delegation_token_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, renew_delegation_token_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.renew_delegation_token(args.token_str_form,resultHandler); - } - } - - public static class cancel_delegation_token extends org.apache.thrift.AsyncProcessFunction { - public cancel_delegation_token() { - super("cancel_delegation_token"); - } - - public cancel_delegation_token_args getEmptyArgsInstance() { - return new cancel_delegation_token_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - cancel_delegation_token_result result = new cancel_delegation_token_result(); - 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; - cancel_delegation_token_result result = new cancel_delegation_token_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, cancel_delegation_token_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.cancel_delegation_token(args.token_str_form,resultHandler); - } - } - - public static class get_open_txns extends org.apache.thrift.AsyncProcessFunction { - public get_open_txns() { - super("get_open_txns"); - } - - public get_open_txns_args getEmptyArgsInstance() { - return new get_open_txns_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetOpenTxnsResponse o) { - get_open_txns_result result = new get_open_txns_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_open_txns_result result = new get_open_txns_result(); - { - 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_open_txns_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_open_txns(resultHandler); - } - } - - public static class get_open_txns_info extends org.apache.thrift.AsyncProcessFunction { - public get_open_txns_info() { - super("get_open_txns_info"); - } - - public get_open_txns_info_args getEmptyArgsInstance() { - return new get_open_txns_info_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(GetOpenTxnsInfoResponse o) { - get_open_txns_info_result result = new get_open_txns_info_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_open_txns_info_result result = new get_open_txns_info_result(); - { - 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_open_txns_info_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_open_txns_info(resultHandler); - } - } - - public static class open_txns extends org.apache.thrift.AsyncProcessFunction { - public open_txns() { - super("open_txns"); - } - - public open_txns_args getEmptyArgsInstance() { - return new open_txns_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(OpenTxnsResponse o) { - open_txns_result result = new open_txns_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; - open_txns_result result = new open_txns_result(); - { - 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, open_txns_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.open_txns(args.rqst,resultHandler); - } - } - - public static class abort_txn extends org.apache.thrift.AsyncProcessFunction { - public abort_txn() { - super("abort_txn"); - } - - public abort_txn_args getEmptyArgsInstance() { - return new abort_txn_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - abort_txn_result result = new abort_txn_result(); - 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; - abort_txn_result result = new abort_txn_result(); - if (e instanceof NoSuchTxnException) { - result.o1 = (NoSuchTxnException) e; - result.setO1IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, abort_txn_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.abort_txn(args.rqst,resultHandler); - } - } - - public static class commit_txn extends org.apache.thrift.AsyncProcessFunction { - public commit_txn() { - super("commit_txn"); - } - - public commit_txn_args getEmptyArgsInstance() { - return new commit_txn_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - commit_txn_result result = new commit_txn_result(); - 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; - commit_txn_result result = new commit_txn_result(); - if (e instanceof NoSuchTxnException) { - result.o1 = (NoSuchTxnException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof TxnAbortedException) { - result.o2 = (TxnAbortedException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, commit_txn_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.commit_txn(args.rqst,resultHandler); - } - } - - public static class lock extends org.apache.thrift.AsyncProcessFunction { - public lock() { - super("lock"); - } - - public lock_args getEmptyArgsInstance() { - return new lock_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(LockResponse o) { - lock_result result = new lock_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; - lock_result result = new lock_result(); - if (e instanceof NoSuchTxnException) { - result.o1 = (NoSuchTxnException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof TxnAbortedException) { - result.o2 = (TxnAbortedException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, lock_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.lock(args.rqst,resultHandler); - } - } - - public static class check_lock extends org.apache.thrift.AsyncProcessFunction { - public check_lock() { - super("check_lock"); - } - - public check_lock_args getEmptyArgsInstance() { - return new check_lock_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(LockResponse o) { - check_lock_result result = new check_lock_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; - check_lock_result result = new check_lock_result(); - if (e instanceof NoSuchTxnException) { - result.o1 = (NoSuchTxnException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof TxnAbortedException) { - result.o2 = (TxnAbortedException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof NoSuchLockException) { - result.o3 = (NoSuchLockException) e; - result.setO3IsSet(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, check_lock_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.check_lock(args.rqst,resultHandler); - } - } - - public static class unlock extends org.apache.thrift.AsyncProcessFunction { - public unlock() { - super("unlock"); - } - - public unlock_args getEmptyArgsInstance() { - return new unlock_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - unlock_result result = new unlock_result(); - 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; - unlock_result result = new unlock_result(); - if (e instanceof NoSuchLockException) { - result.o1 = (NoSuchLockException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof TxnOpenException) { - result.o2 = (TxnOpenException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, unlock_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.unlock(args.rqst,resultHandler); - } - } - - public static class show_locks extends org.apache.thrift.AsyncProcessFunction { - public show_locks() { - super("show_locks"); - } - - public show_locks_args getEmptyArgsInstance() { - return new show_locks_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(ShowLocksResponse o) { - show_locks_result result = new show_locks_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; - show_locks_result result = new show_locks_result(); - { - 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, show_locks_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.show_locks(args.rqst,resultHandler); - } - } - - public static class heartbeat extends org.apache.thrift.AsyncProcessFunction { - public heartbeat() { - super("heartbeat"); - } - - public heartbeat_args getEmptyArgsInstance() { - return new heartbeat_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - heartbeat_result result = new heartbeat_result(); - 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; - heartbeat_result result = new heartbeat_result(); - if (e instanceof NoSuchLockException) { - result.o1 = (NoSuchLockException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchTxnException) { - result.o2 = (NoSuchTxnException) e; - result.setO2IsSet(true); - msg = result; - } - else if (e instanceof TxnAbortedException) { - result.o3 = (TxnAbortedException) e; - result.setO3IsSet(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, heartbeat_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.heartbeat(args.ids,resultHandler); - } - } - - public static class heartbeat_txn_range extends org.apache.thrift.AsyncProcessFunction { - public heartbeat_txn_range() { - super("heartbeat_txn_range"); - } - - public heartbeat_txn_range_args getEmptyArgsInstance() { - return new heartbeat_txn_range_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(HeartbeatTxnRangeResponse o) { - heartbeat_txn_range_result result = new heartbeat_txn_range_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; - heartbeat_txn_range_result result = new heartbeat_txn_range_result(); - { - 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, heartbeat_txn_range_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.heartbeat_txn_range(args.txns,resultHandler); - } - } - - public static class compact extends org.apache.thrift.AsyncProcessFunction { - public compact() { - super("compact"); - } - - public compact_args getEmptyArgsInstance() { - return new compact_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - compact_result result = new compact_result(); - 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; - compact_result result = new compact_result(); - { - 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, compact_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.compact(args.rqst,resultHandler); - } - } - - public static class show_compact extends org.apache.thrift.AsyncProcessFunction { - public show_compact() { - super("show_compact"); - } - - public show_compact_args getEmptyArgsInstance() { - return new show_compact_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(ShowCompactResponse o) { - show_compact_result result = new show_compact_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; - show_compact_result result = new show_compact_result(); - { - 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, show_compact_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.show_compact(args.rqst,resultHandler); - } - } - - public static class add_dynamic_partitions extends org.apache.thrift.AsyncProcessFunction { - public add_dynamic_partitions() { - super("add_dynamic_partitions"); - } - - public add_dynamic_partitions_args getEmptyArgsInstance() { - return new add_dynamic_partitions_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - add_dynamic_partitions_result result = new add_dynamic_partitions_result(); - 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; - add_dynamic_partitions_result result = new add_dynamic_partitions_result(); - if (e instanceof NoSuchTxnException) { - result.o1 = (NoSuchTxnException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof TxnAbortedException) { - result.o2 = (TxnAbortedException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, add_dynamic_partitions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.add_dynamic_partitions(args.rqst,resultHandler); - } - } - - public static class get_next_notification extends org.apache.thrift.AsyncProcessFunction { - public get_next_notification() { - super("get_next_notification"); - } - - public get_next_notification_args getEmptyArgsInstance() { - return new get_next_notification_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(NotificationEventResponse o) { - get_next_notification_result result = new get_next_notification_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_next_notification_result result = new get_next_notification_result(); - { - 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_next_notification_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_next_notification(args.rqst,resultHandler); - } - } - - public static class get_current_notificationEventId extends org.apache.thrift.AsyncProcessFunction { - public get_current_notificationEventId() { - super("get_current_notificationEventId"); - } - - public get_current_notificationEventId_args getEmptyArgsInstance() { - return new get_current_notificationEventId_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(CurrentNotificationEventId o) { - get_current_notificationEventId_result result = new get_current_notificationEventId_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_current_notificationEventId_result result = new get_current_notificationEventId_result(); - { - 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_current_notificationEventId_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_current_notificationEventId(resultHandler); - } - } - - public static class fire_listener_event extends org.apache.thrift.AsyncProcessFunction { - public fire_listener_event() { - super("fire_listener_event"); - } - - public fire_listener_event_args getEmptyArgsInstance() { - return new fire_listener_event_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(FireEventResponse o) { - fire_listener_event_result result = new fire_listener_event_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; - fire_listener_event_result result = new fire_listener_event_result(); - { - 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, fire_listener_event_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.fire_listener_event(args.rqst,resultHandler); - } - } - - } - - public static class getMetaConf_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("getMetaConf_args"); - - private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getMetaConf_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getMetaConf_argsTupleSchemeFactory()); - } - - private String key; // 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 { - KEY((short)1, "key"); - - 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: // KEY - return KEY; - 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.KEY, new org.apache.thrift.meta_data.FieldMetaData("key", 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(getMetaConf_args.class, metaDataMap); - } - - public getMetaConf_args() { - } - - public getMetaConf_args( - String key) - { - this(); - this.key = key; - } - - /** - * Performs a deep copy on other. - */ - public getMetaConf_args(getMetaConf_args other) { - if (other.isSetKey()) { - this.key = other.key; - } - } - - public getMetaConf_args deepCopy() { - return new getMetaConf_args(this); - } - - @Override - public void clear() { - this.key = null; - } - - public String getKey() { - return this.key; - } - - public void setKey(String key) { - this.key = key; - } - - public void unsetKey() { - this.key = null; - } - - /** Returns true if field key is set (has been assigned a value) and false otherwise */ - public boolean isSetKey() { - return this.key != null; - } - - public void setKeyIsSet(boolean value) { - if (!value) { - this.key = null; - } - } - - public void setFieldValue(_Fields field, Object value) { - switch (field) { - case KEY: - if (value == null) { - unsetKey(); - } else { - setKey((String)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case KEY: - return getKey(); - - } - 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 KEY: - return isSetKey(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof getMetaConf_args) - return this.equals((getMetaConf_args)that); - return false; - } - - public boolean equals(getMetaConf_args that) { - if (that == null) - return false; - - boolean this_present_key = true && this.isSetKey(); - boolean that_present_key = true && that.isSetKey(); - if (this_present_key || that_present_key) { - if (!(this_present_key && that_present_key)) - return false; - if (!this.key.equals(that.key)) - return false; - } - - return true; - } - - @Override - public int hashCode() { - List list = new ArrayList(); - - boolean present_key = true && (isSetKey()); - list.add(present_key); - if (present_key) - list.add(key); - - return list.hashCode(); - } - - @Override - public int compareTo(getMetaConf_args other) { - if (!getClass().equals(other.getClass())) { - return getClass().getName().compareTo(other.getClass().getName()); - } - - int lastComparison = 0; - - lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); - 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("getMetaConf_args("); - boolean first = true; - - sb.append("key:"); - if (this.key == null) { - sb.append("null"); - } else { - sb.append(this.key); - } - 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 getMetaConf_argsStandardSchemeFactory implements SchemeFactory { - public getMetaConf_argsStandardScheme getScheme() { - return new getMetaConf_argsStandardScheme(); - } - } - - private static class getMetaConf_argsStandardScheme extends StandardScheme { - - public void read(org.apache.thrift.protocol.TProtocol iprot, getMetaConf_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: // KEY - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.key = iprot.readString(); - struct.setKeyIsSet(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, getMetaConf_args struct) throws org.apache.thrift.TException { - struct.validate(); - - oprot.writeStructBegin(STRUCT_DESC); - if (struct.key != null) { - oprot.writeFieldBegin(KEY_FIELD_DESC); - oprot.writeString(struct.key); - oprot.writeFieldEnd(); - } - oprot.writeFieldStop(); - oprot.writeStructEnd(); - } - - } - - private static class getMetaConf_argsTupleSchemeFactory implements SchemeFactory { - public getMetaConf_argsTupleScheme getScheme() { - return new getMetaConf_argsTupleScheme(); - } - } - - private static class getMetaConf_argsTupleScheme extends TupleScheme { - - @Override - public void write(org.apache.thrift.protocol.TProtocol prot, getMetaConf_args struct) throws org.apache.thrift.TException { - TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetKey()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetKey()) { - oprot.writeString(struct.key); - } - } - - @Override - public void read(org.apache.thrift.protocol.TProtocol prot, getMetaConf_args struct) throws org.apache.thrift.TException { - TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.key = iprot.readString(); - struct.setKeyIsSet(true); - } - } - } - - } - - public static class getMetaConf_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("getMetaConf_result"); - - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); - private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - - private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); - static { - schemes.put(StandardScheme.class, new getMetaConf_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new getMetaConf_resultTupleSchemeFactory()); - } - - private String success; // required - private MetaException o1; // required - - /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ - public enum _Fields implements org.apache.thrift.TFieldIdEnum { - SUCCESS((short)0, "success"), - O1((short)1, "o1"); - - private static final Map byName = new HashMap(); - - static { - for (_Fields field : EnumSet.allOf(_Fields.class)) { - byName.put(field.getFieldName(), field); - } - } - - /** - * Find the _Fields constant that matches fieldId, or null if its not found. - */ - public static _Fields findByThriftId(int fieldId) { - switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; - case 1: // O1 - return O1; - default: - return null; - } - } - - /** - * Find the _Fields constant that matches fieldId, throwing an exception - * if it is not found. - */ - public static _Fields findByThriftIdOrThrow(int fieldId) { - _Fields fields = findByThriftId(fieldId); - if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); - return fields; - } - - /** - * Find the _Fields constant that matches name, or null if its not found. - */ - public static _Fields findByName(String name) { - return byName.get(name); - } - - private final short _thriftId; - private final String _fieldName; - - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = fieldName; - } - - public short getThriftFieldId() { - return _thriftId; - } - - public String getFieldName() { - return _fieldName; - } - } - - // isset id assignments - 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.STRING))); - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMetaConf_result.class, metaDataMap); - } - - public getMetaConf_result() { - } - - public getMetaConf_result( - String success, - MetaException o1) - { - this(); - this.success = success; - this.o1 = o1; - } - - /** - * Performs a deep copy on other. - */ - public getMetaConf_result(getMetaConf_result other) { - if (other.isSetSuccess()) { - this.success = other.success; - } - if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); - } - } - - public getMetaConf_result deepCopy() { - return new getMetaConf_result(this); - } - - @Override - public void clear() { - this.success = null; - this.o1 = null; - } - - public String getSuccess() { - return this.success; - } - - public void setSuccess(String 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 void setFieldValue(_Fields field, Object value) { - switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((String)value); - } - break; - - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((MetaException)value); - } - break; - - } - } - - public Object getFieldValue(_Fields field) { - switch (field) { - case SUCCESS: - return getSuccess(); - - case O1: - return getO1(); - - } - throw new IllegalStateException(); - } - - /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ - public boolean isSet(_Fields field) { - if (field == null) { - throw new IllegalArgumentException(); - } - - switch (field) { - case SUCCESS: - return isSetSuccess(); - case O1: - return isSetO1(); - } - throw new IllegalStateException(); - } - - @Override - public boolean equals(Object that) { - if (that == null) - return false; - if (that instanceof getMetaConf_result) - return this.equals((getMetaConf_result)that); - return false; - } - - public boolean equals(getMetaConf_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; - } - - 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); - - return list.hashCode(); - } - - @Override - public int compareTo(getMetaConf_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; + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); + if (lastComparison != 0) { + return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -20636,7 +12938,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getMetaConf_result s } - public static class setMetaConf_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class setMetaConf_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setMetaConf_args"); private static final org.apache.thrift.protocol.TField KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("key", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -20888,45 +13190,45 @@ public boolean equals(setMetaConf_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_key = true && (isSetKey()); - list.add(present_key); + builder.append(present_key); if (present_key) - list.add(key); + builder.append(key); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(setMetaConf_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + setMetaConf_args typedOther = (setMetaConf_args)other; - lastComparison = Boolean.valueOf(isSetKey()).compareTo(other.isSetKey()); + lastComparison = Boolean.valueOf(isSetKey()).compareTo(typedOther.isSetKey()); if (lastComparison != 0) { return lastComparison; } if (isSetKey()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, other.key); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } @@ -21098,7 +13400,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, setMetaConf_args str } - public static class setMetaConf_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class setMetaConf_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setMetaConf_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -21292,30 +13594,30 @@ public boolean equals(setMetaConf_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(setMetaConf_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + setMetaConf_result typedOther = (setMetaConf_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -21458,7 +13760,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, setMetaConf_result s } - public static class create_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_database_args"); private static final org.apache.thrift.protocol.TField DATABASE_FIELD_DESC = new org.apache.thrift.protocol.TField("database", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -21652,30 +13954,30 @@ public boolean equals(create_database_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_database = true && (isSetDatabase()); - list.add(present_database); + builder.append(present_database); if (present_database) - list.add(database); + builder.append(database); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_database_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_database_args typedOther = (create_database_args)other; - lastComparison = Boolean.valueOf(isSetDatabase()).compareTo(other.isSetDatabase()); + lastComparison = Boolean.valueOf(isSetDatabase()).compareTo(typedOther.isSetDatabase()); if (lastComparison != 0) { return lastComparison; } if (isSetDatabase()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.database, other.database); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.database, typedOther.database); if (lastComparison != 0) { return lastComparison; } @@ -21821,7 +14123,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_database_args } - public static class create_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_database_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -22131,60 +14433,60 @@ public boolean equals(create_database_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_database_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_database_result typedOther = (create_database_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -22393,7 +14695,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_database_resu } - public static class get_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_database_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -22587,30 +14889,30 @@ public boolean equals(get_database_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_database_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_database_args typedOther = (get_database_args)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -22751,7 +15053,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_database_args st } - public static class get_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_database_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); @@ -23061,60 +15363,60 @@ public boolean equals(get_database_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_database_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_database_result typedOther = (get_database_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -23326,7 +15628,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_database_result } - public static class drop_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_database_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -23638,60 +15940,60 @@ public boolean equals(drop_database_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); boolean present_cascade = true; - list.add(present_cascade); + builder.append(present_cascade); if (present_cascade) - list.add(cascade); + builder.append(cascade); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_database_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_database_args typedOther = (drop_database_args)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCascade()).compareTo(other.isSetCascade()); + lastComparison = Boolean.valueOf(isSetCascade()).compareTo(typedOther.isSetCascade()); if (lastComparison != 0) { return lastComparison; } if (isSetCascade()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cascade, other.cascade); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cascade, typedOther.cascade); if (lastComparison != 0) { return lastComparison; } @@ -23884,7 +16186,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_database_args s } - public static class drop_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_database_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -24194,60 +16496,60 @@ public boolean equals(drop_database_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_database_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_database_result typedOther = (drop_database_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -24456,7 +16758,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_database_result } - public static class get_databases_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_databases_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_databases_args"); private static final org.apache.thrift.protocol.TField PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -24650,30 +16952,30 @@ public boolean equals(get_databases_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_pattern = true && (isSetPattern()); - list.add(present_pattern); + builder.append(present_pattern); if (present_pattern) - list.add(pattern); + builder.append(pattern); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_databases_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_databases_args typedOther = (get_databases_args)other; - lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); + lastComparison = Boolean.valueOf(isSetPattern()).compareTo(typedOther.isSetPattern()); if (lastComparison != 0) { return lastComparison; } if (isSetPattern()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, typedOther.pattern); if (lastComparison != 0) { return lastComparison; } @@ -24814,7 +17116,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_args s } - public static class get_databases_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_databases_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_databases_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); @@ -24920,7 +17222,10 @@ public get_databases_result( */ public get_databases_result(get_databases_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -25083,45 +17388,45 @@ public boolean equals(get_databases_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_databases_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_databases_result typedOther = (get_databases_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -25209,11 +17514,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_resul { org.apache.thrift.protocol.TList _list532 = iprot.readListBegin(); struct.success = new ArrayList(_list532.size); - String _elem533; - for (int _i534 = 0; _i534 < _list532.size; ++_i534) + for (int _i533 = 0; _i533 < _list532.size; ++_i533) { - _elem533 = iprot.readString(); - struct.success.add(_elem533); + String _elem534; // required + _elem534 = iprot.readString(); + struct.success.add(_elem534); } iprot.readListEnd(); } @@ -25308,11 +17613,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_result { org.apache.thrift.protocol.TList _list537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list537.size); - String _elem538; - for (int _i539 = 0; _i539 < _list537.size; ++_i539) + for (int _i538 = 0; _i538 < _list537.size; ++_i538) { - _elem538 = iprot.readString(); - struct.success.add(_elem538); + String _elem539; // required + _elem539 = iprot.readString(); + struct.success.add(_elem539); } } struct.setSuccessIsSet(true); @@ -25327,7 +17632,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_result } - public static class get_all_databases_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_all_databases_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_databases_args"); @@ -25457,18 +17762,18 @@ public boolean equals(get_all_databases_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_all_databases_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_all_databases_args typedOther = (get_all_databases_args)other; return 0; } @@ -25573,7 +17878,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_ar } - public static class get_all_databases_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_all_databases_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_databases_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); @@ -25679,7 +17984,10 @@ public get_all_databases_result( */ public get_all_databases_result(get_all_databases_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -25842,45 +18150,45 @@ public boolean equals(get_all_databases_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_all_databases_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_all_databases_result typedOther = (get_all_databases_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -25968,11 +18276,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_databases_r { org.apache.thrift.protocol.TList _list540 = iprot.readListBegin(); struct.success = new ArrayList(_list540.size); - String _elem541; - for (int _i542 = 0; _i542 < _list540.size; ++_i542) + for (int _i541 = 0; _i541 < _list540.size; ++_i541) { - _elem541 = iprot.readString(); - struct.success.add(_elem541); + String _elem542; // required + _elem542 = iprot.readString(); + struct.success.add(_elem542); } iprot.readListEnd(); } @@ -26067,11 +18375,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_re { org.apache.thrift.protocol.TList _list545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list545.size); - String _elem546; - for (int _i547 = 0; _i547 < _list545.size; ++_i547) + for (int _i546 = 0; _i546 < _list545.size; ++_i546) { - _elem546 = iprot.readString(); - struct.success.add(_elem546); + String _elem547; // required + _elem547 = iprot.readString(); + struct.success.add(_elem547); } } struct.setSuccessIsSet(true); @@ -26086,7 +18394,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_re } - public static class alter_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_database_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_database_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -26338,45 +18646,45 @@ public boolean equals(alter_database_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_db = true && (isSetDb()); - list.add(present_db); + builder.append(present_db); if (present_db) - list.add(db); + builder.append(db); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_database_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_database_args typedOther = (alter_database_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDb()).compareTo(other.isSetDb()); + lastComparison = Boolean.valueOf(isSetDb()).compareTo(typedOther.isSetDb()); if (lastComparison != 0) { return lastComparison; } if (isSetDb()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db, other.db); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db, typedOther.db); if (lastComparison != 0) { return lastComparison; } @@ -26553,7 +18861,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_database_args } - public static class alter_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_database_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_database_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -26805,45 +19113,942 @@ public boolean equals(alter_database_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_database_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_database_result typedOther = (alter_database_result)other; + + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + 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("alter_database_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class alter_database_resultStandardSchemeFactory implements SchemeFactory { + public alter_database_resultStandardScheme getScheme() { + return new alter_database_resultStandardScheme(); + } + } + + private static class alter_database_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_database_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 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 { + 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_database_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_database_resultTupleSchemeFactory implements SchemeFactory { + public alter_database_resultTupleScheme getScheme() { + return new alter_database_resultTupleScheme(); + } + } + + private static class alter_database_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, alter_database_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_database_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new NoSuchObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + public static class get_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_type_args"); + + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_type_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_type_argsTupleSchemeFactory()); + } + + private String 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 { + NAME((short)1, "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: // NAME + return 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.NAME, new org.apache.thrift.meta_data.FieldMetaData("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_type_args.class, metaDataMap); + } + + public get_type_args() { + } + + public get_type_args( + String name) + { + this(); + this.name = name; + } + + /** + * Performs a deep copy on other. + */ + public get_type_args(get_type_args other) { + if (other.isSetName()) { + this.name = other.name; + } + } + + public get_type_args deepCopy() { + return new get_type_args(this); + } + + @Override + public void clear() { + this.name = null; + } + + public String getName() { + return this.name; + } + + public void setName(String name) { + this.name = name; + } + + public void unsetName() { + this.name = null; + } + + /** Returns true if field name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; + } + + public void setNameIsSet(boolean value) { + if (!value) { + this.name = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case NAME: + if (value == null) { + unsetName(); + } else { + setName((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case NAME: + return getName(); + + } + 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 NAME: + return isSetName(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_type_args) + return this.equals((get_type_args)that); + return false; + } + + public boolean equals(get_type_args that) { + if (that == null) + return false; + + boolean this_present_name = true && this.isSetName(); + boolean that_present_name = true && that.isSetName(); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) + return false; + if (!this.name.equals(that.name)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_name = true && (isSetName()); + builder.append(present_name); + if (present_name) + builder.append(name); + + return builder.toHashCode(); + } + + public int compareTo(get_type_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + get_type_args typedOther = (get_type_args)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.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_type_args("); + boolean first = true; + + sb.append("name:"); + if (this.name == null) { + sb.append("null"); + } else { + sb.append(this.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_type_argsStandardSchemeFactory implements SchemeFactory { + public get_type_argsStandardScheme getScheme() { + return new get_type_argsStandardScheme(); + } + } + + private static class get_type_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_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: // NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.name = iprot.readString(); + struct.setNameIsSet(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_type_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_type_argsTupleSchemeFactory implements SchemeFactory { + public get_type_argsTupleScheme getScheme() { + return new get_type_argsTupleScheme(); + } + } + + private static class get_type_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_type_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetName()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetName()) { + oprot.writeString(struct.name); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_type_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } + } + } + + } + + public static class get_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_type_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_type_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_type_resultTupleSchemeFactory()); + } + + private Type 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, Type.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_type_result.class, metaDataMap); + } + + public get_type_result() { + } + + public get_type_result( + Type success, + MetaException o1, + NoSuchObjectException o2) + { + this(); + this.success = success; + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public get_type_result(get_type_result other) { + if (other.isSetSuccess()) { + this.success = new Type(other.success); + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new NoSuchObjectException(other.o2); + } + } + + public get_type_result deepCopy() { + return new get_type_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + this.o2 = null; + } + + public Type getSuccess() { + return this.success; + } + + public void setSuccess(Type 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((Type)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_type_result) + return this.equals((get_type_result)that); + return false; + } + + public boolean equals(get_type_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() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_success = true && (isSetSuccess()); + builder.append(present_success); + if (present_success) + builder.append(success); + + boolean present_o1 = true && (isSetO1()); + builder.append(present_o1); + if (present_o1) + builder.append(o1); + + boolean present_o2 = true && (isSetO2()); + builder.append(present_o2); + if (present_o2) + builder.append(o2); + + return builder.toHashCode(); + } + + public int compareTo(get_type_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + get_type_result typedOther = (get_type_result)other; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -26865,9 +20070,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_database_result("); + StringBuilder sb = new StringBuilder("get_type_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"); @@ -26890,6 +20103,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -26908,15 +20124,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_database_resultStandardSchemeFactory implements SchemeFactory { - public alter_database_resultStandardScheme getScheme() { - return new alter_database_resultStandardScheme(); + private static class get_type_resultStandardSchemeFactory implements SchemeFactory { + public get_type_resultStandardScheme getScheme() { + return new get_type_resultStandardScheme(); } } - private static class alter_database_resultStandardScheme extends StandardScheme { + private static class get_type_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_database_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -26926,6 +20142,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_database_resu break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Type(); + 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 MetaException(); @@ -26953,10 +20178,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_database_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_database_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_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); @@ -26973,25 +20203,31 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_database_res } - private static class alter_database_resultTupleSchemeFactory implements SchemeFactory { - public alter_database_resultTupleScheme getScheme() { - return new alter_database_resultTupleScheme(); + private static class get_type_resultTupleSchemeFactory implements SchemeFactory { + public get_type_resultTupleScheme getScheme() { + return new get_type_resultTupleScheme(); } } - private static class alter_database_resultTupleScheme extends TupleScheme { + private static class get_type_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_database_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_type_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); } @@ -27001,15 +20237,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_database_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_database_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_type_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.success = new Type(); + 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)) { + if (incoming.get(2)) { struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); @@ -27019,22 +20260,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_database_resul } - public static class get_type_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_type_args"); + public static class create_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_type_args"); - private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_type_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_type_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new create_type_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_type_argsTupleSchemeFactory()); } - private String name; // required + private Type type; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - NAME((short)1, "name"); + TYPE((short)1, "type"); private static final Map byName = new HashMap(); @@ -27049,8 +20290,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_database_resul */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NAME - return NAME; + case 1: // TYPE + return TYPE; default: return null; } @@ -27094,70 +20335,70 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Type.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_type_args.class, metaDataMap); } - public get_type_args() { + public create_type_args() { } - public get_type_args( - String name) + public create_type_args( + Type type) { this(); - this.name = name; + this.type = type; } /** * Performs a deep copy on other. */ - public get_type_args(get_type_args other) { - if (other.isSetName()) { - this.name = other.name; + public create_type_args(create_type_args other) { + if (other.isSetType()) { + this.type = new Type(other.type); } } - public get_type_args deepCopy() { - return new get_type_args(this); + public create_type_args deepCopy() { + return new create_type_args(this); } @Override public void clear() { - this.name = null; + this.type = null; } - public String getName() { - return this.name; + public Type getType() { + return this.type; } - public void setName(String name) { - this.name = name; + public void setType(Type type) { + this.type = type; } - public void unsetName() { - this.name = null; + public void unsetType() { + this.type = null; } - /** Returns true if field name is set (has been assigned a value) and false otherwise */ - public boolean isSetName() { - return this.name != null; + /** Returns true if field type is set (has been assigned a value) and false otherwise */ + public boolean isSetType() { + return this.type != null; } - public void setNameIsSet(boolean value) { + public void setTypeIsSet(boolean value) { if (!value) { - this.name = null; + this.type = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case NAME: + case TYPE: if (value == null) { - unsetName(); + unsetType(); } else { - setName((String)value); + setType((Type)value); } break; @@ -27166,8 +20407,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NAME: - return getName(); + case TYPE: + return getType(); } throw new IllegalStateException(); @@ -27180,8 +20421,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case NAME: - return isSetName(); + case TYPE: + return isSetType(); } throw new IllegalStateException(); } @@ -27190,21 +20431,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_type_args) - return this.equals((get_type_args)that); + if (that instanceof create_type_args) + return this.equals((create_type_args)that); return false; } - public boolean equals(get_type_args that) { + public boolean equals(create_type_args that) { if (that == null) return false; - boolean this_present_name = true && this.isSetName(); - boolean that_present_name = true && that.isSetName(); - if (this_present_name || that_present_name) { - if (!(this_present_name && that_present_name)) + boolean this_present_type = true && this.isSetType(); + boolean that_present_type = true && that.isSetType(); + if (this_present_type || that_present_type) { + if (!(this_present_type && that_present_type)) return false; - if (!this.name.equals(that.name)) + if (!this.type.equals(that.type)) return false; } @@ -27213,30 +20454,30 @@ public boolean equals(get_type_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_name = true && (isSetName()); - list.add(present_name); - if (present_name) - list.add(name); + boolean present_type = true && (isSetType()); + builder.append(present_type); + if (present_type) + builder.append(type); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_type_args other) { + public int compareTo(create_type_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_type_args typedOther = (create_type_args)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } - if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (isSetType()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } @@ -27258,14 +20499,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_type_args("); + StringBuilder sb = new StringBuilder("create_type_args("); boolean first = true; - sb.append("name:"); - if (this.name == null) { + sb.append("type:"); + if (this.type == null) { sb.append("null"); } else { - sb.append(this.name); + sb.append(this.type); } first = false; sb.append(")"); @@ -27275,6 +20516,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (type != null) { + type.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -27293,15 +20537,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_type_argsStandardSchemeFactory implements SchemeFactory { - public get_type_argsStandardScheme getScheme() { - return new get_type_argsStandardScheme(); + private static class create_type_argsStandardSchemeFactory implements SchemeFactory { + public create_type_argsStandardScheme getScheme() { + return new create_type_argsStandardScheme(); } } - private static class get_type_argsStandardScheme extends StandardScheme { + private static class create_type_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, create_type_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -27311,10 +20555,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_args struc break; } switch (schemeField.id) { - case 1: // NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); + case 1: // TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.type = new Type(); + struct.type.read(iprot); + struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -27328,13 +20573,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_args struc struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, create_type_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.name != null) { - oprot.writeFieldBegin(NAME_FIELD_DESC); - oprot.writeString(struct.name); + if (struct.type != null) { + oprot.writeFieldBegin(TYPE_FIELD_DESC); + struct.type.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -27343,62 +20588,66 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_args stru } - private static class get_type_argsTupleSchemeFactory implements SchemeFactory { - public get_type_argsTupleScheme getScheme() { - return new get_type_argsTupleScheme(); + private static class create_type_argsTupleSchemeFactory implements SchemeFactory { + public create_type_argsTupleScheme getScheme() { + return new create_type_argsTupleScheme(); } } - private static class get_type_argsTupleScheme extends TupleScheme { + private static class create_type_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_type_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, create_type_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetName()) { + if (struct.isSetType()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetName()) { - oprot.writeString(struct.name); + if (struct.isSetType()) { + struct.type.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_type_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, create_type_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); + struct.type = new Type(); + struct.type.read(iprot); + struct.setTypeIsSet(true); } } } } - public static class get_type_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_type_result"); + public static class create_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_type_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 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 org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_type_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_type_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new create_type_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_type_resultTupleSchemeFactory()); } - private Type success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private boolean success; // required + private AlreadyExistsException o1; // required + private InvalidObjectException o2; // required + private MetaException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -27419,6 +20668,8 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -27459,87 +20710,97 @@ 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Type.class))); + 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))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_type_result.class, metaDataMap); } - public get_type_result() { + public create_type_result() { } - public get_type_result( - Type success, - MetaException o1, - NoSuchObjectException o2) + public create_type_result( + boolean success, + AlreadyExistsException o1, + InvalidObjectException o2, + MetaException o3) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_type_result(get_type_result other) { - if (other.isSetSuccess()) { - this.success = new Type(other.success); - } + public create_type_result(create_type_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new AlreadyExistsException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new InvalidObjectException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); } } - public get_type_result deepCopy() { - return new get_type_result(this); + public create_type_result deepCopy() { + return new create_type_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; this.o1 = null; this.o2 = null; + this.o3 = null; } - public Type getSuccess() { + public boolean isSuccess() { return this.success; } - public void setSuccess(Type success) { + public void setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __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 this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public MetaException getO1() { + public AlreadyExistsException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(AlreadyExistsException o1) { this.o1 = o1; } @@ -27558,11 +20819,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public InvalidObjectException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(InvalidObjectException o2) { this.o2 = o2; } @@ -27581,13 +20842,36 @@ public void setO2IsSet(boolean value) { } } + public MetaException getO3() { + return this.o3; + } + + public void setO3(MetaException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Type)value); + setSuccess((Boolean)value); } break; @@ -27595,7 +20879,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((AlreadyExistsException)value); } break; @@ -27603,7 +20887,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((InvalidObjectException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((MetaException)value); } break; @@ -27613,7 +20905,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -27621,6 +20913,9 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -27638,6 +20933,8 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -27646,21 +20943,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_type_result) - return this.equals((get_type_result)that); + if (that instanceof create_type_result) + return this.equals((create_type_result)that); return false; } - public boolean equals(get_type_result that) { + public boolean equals(create_type_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + 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.equals(that.success)) + if (this.success != that.success) return false; } @@ -27682,65 +20979,89 @@ public boolean equals(get_type_result that) { return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); + boolean present_success = true; + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); + + boolean present_o3 = true && (isSetO3()); + builder.append(present_o3); + if (present_o3) + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_type_result other) { + public int compareTo(create_type_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_type_result typedOther = (create_type_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -27762,15 +21083,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_type_result("); + StringBuilder sb = new StringBuilder("create_type_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -27788,6 +21105,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -27795,9 +21120,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 { @@ -27810,21 +21132,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_type_resultStandardSchemeFactory implements SchemeFactory { - public get_type_resultStandardScheme getScheme() { - return new get_type_resultStandardScheme(); + private static class create_type_resultStandardSchemeFactory implements SchemeFactory { + public create_type_resultStandardScheme getScheme() { + return new create_type_resultStandardScheme(); } } - private static class get_type_resultStandardScheme extends StandardScheme { + private static class create_type_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, create_type_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -27835,9 +21159,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_result str } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Type(); - struct.success.read(iprot); + 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); @@ -27845,7 +21168,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_result str break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new AlreadyExistsException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -27854,13 +21177,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_result str break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new InvalidObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -27870,13 +21202,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_result str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, create_type_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -27889,22 +21221,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_result st struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_type_resultTupleSchemeFactory implements SchemeFactory { - public get_type_resultTupleScheme getScheme() { - return new get_type_resultTupleScheme(); + private static class create_type_resultTupleSchemeFactory implements SchemeFactory { + public create_type_resultTupleScheme getScheme() { + return new create_type_resultTupleScheme(); } } - private static class get_type_resultTupleScheme extends TupleScheme { + private static class create_type_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_type_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, create_type_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -27916,9 +21253,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_type_result str if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeBool(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -27926,44 +21266,51 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_type_result str if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_type_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, create_type_result 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.success = new Type(); - struct.success.read(iprot); + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new AlreadyExistsException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new InvalidObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - public static class create_type_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("create_type_args"); + public static class drop_type_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_type_args"); - private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_type_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_type_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_type_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_type_argsTupleSchemeFactory()); } - private Type type; // required + private String type; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -28028,16 +21375,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Type.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_type_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_type_args.class, metaDataMap); } - public create_type_args() { + public drop_type_args() { } - public create_type_args( - Type type) + public drop_type_args( + String type) { this(); this.type = type; @@ -28046,14 +21393,14 @@ public create_type_args( /** * Performs a deep copy on other. */ - public create_type_args(create_type_args other) { + public drop_type_args(drop_type_args other) { if (other.isSetType()) { - this.type = new Type(other.type); + this.type = other.type; } } - public create_type_args deepCopy() { - return new create_type_args(this); + public drop_type_args deepCopy() { + return new drop_type_args(this); } @Override @@ -28061,11 +21408,11 @@ public void clear() { this.type = null; } - public Type getType() { + public String getType() { return this.type; } - public void setType(Type type) { + public void setType(String type) { this.type = type; } @@ -28090,7 +21437,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetType(); } else { - setType((Type)value); + setType((String)value); } break; @@ -28123,12 +21470,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_type_args) - return this.equals((create_type_args)that); + if (that instanceof drop_type_args) + return this.equals((drop_type_args)that); return false; } - public boolean equals(create_type_args that) { + public boolean equals(drop_type_args that) { if (that == null) return false; @@ -28146,30 +21493,30 @@ public boolean equals(create_type_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type); + builder.append(type); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(create_type_args other) { + public int compareTo(drop_type_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_type_args typedOther = (drop_type_args)other; - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } @@ -28191,7 +21538,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_type_args("); + StringBuilder sb = new StringBuilder("drop_type_args("); boolean first = true; sb.append("type:"); @@ -28208,9 +21555,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (type != null) { - type.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -28229,15 +21573,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class create_type_argsStandardSchemeFactory implements SchemeFactory { - public create_type_argsStandardScheme getScheme() { - return new create_type_argsStandardScheme(); + private static class drop_type_argsStandardSchemeFactory implements SchemeFactory { + public drop_type_argsStandardScheme getScheme() { + return new drop_type_argsStandardScheme(); } } - private static class create_type_argsStandardScheme extends StandardScheme { + private static class drop_type_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_type_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_type_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -28248,9 +21592,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_type_args st } switch (schemeField.id) { case 1: // TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.type = new Type(); - struct.type.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.type = iprot.readString(); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -28265,13 +21608,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_type_args st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_type_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_type_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); - struct.type.write(oprot); + oprot.writeString(struct.type); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -28280,16 +21623,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_type_args s } - private static class create_type_argsTupleSchemeFactory implements SchemeFactory { - public create_type_argsTupleScheme getScheme() { - return new create_type_argsTupleScheme(); + private static class drop_type_argsTupleSchemeFactory implements SchemeFactory { + public drop_type_argsTupleScheme getScheme() { + return new drop_type_argsTupleScheme(); } } - private static class create_type_argsTupleScheme extends TupleScheme { + private static class drop_type_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_type_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_type_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetType()) { @@ -28297,17 +21640,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_type_args st } oprot.writeBitSet(optionals, 1); if (struct.isSetType()) { - struct.type.write(oprot); + oprot.writeString(struct.type); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_type_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_type_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.type = new Type(); - struct.type.read(iprot); + struct.type = iprot.readString(); struct.setTypeIsSet(true); } } @@ -28315,31 +21657,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_type_args str } - public static class create_type_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("create_type_result"); + public static class drop_type_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_type_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 org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_type_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_type_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_type_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_type_resultTupleSchemeFactory()); } private boolean success; // required - private AlreadyExistsException o1; // required - private InvalidObjectException o2; // required - private MetaException o3; // 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"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -28360,8 +21699,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -28413,48 +21750,41 @@ public String getFieldName() { 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))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_type_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_type_result.class, metaDataMap); } - public create_type_result() { + public drop_type_result() { } - public create_type_result( + public drop_type_result( boolean success, - AlreadyExistsException o1, - InvalidObjectException o2, - MetaException o3) + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public create_type_result(create_type_result other) { + public drop_type_result(drop_type_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetO1()) { - this.o1 = new AlreadyExistsException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new InvalidObjectException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + this.o2 = new NoSuchObjectException(other.o2); } } - public create_type_result deepCopy() { - return new create_type_result(this); + public drop_type_result deepCopy() { + return new drop_type_result(this); } @Override @@ -28463,7 +21793,6 @@ public void clear() { this.success = false; this.o1 = null; this.o2 = null; - this.o3 = null; } public boolean isSuccess() { @@ -28488,11 +21817,11 @@ public void setSuccessIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public AlreadyExistsException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(AlreadyExistsException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -28511,11 +21840,11 @@ public void setO1IsSet(boolean value) { } } - public InvalidObjectException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(InvalidObjectException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -28534,29 +21863,6 @@ public void setO2IsSet(boolean value) { } } - public MetaException getO3() { - return this.o3; - } - - public void setO3(MetaException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -28571,7 +21877,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((AlreadyExistsException)value); + setO1((MetaException)value); } break; @@ -28579,15 +21885,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((InvalidObjectException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -28605,9 +21903,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -28625,8 +21920,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -28635,12 +21928,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_type_result) - return this.equals((create_type_result)that); + if (that instanceof drop_type_result) + return this.equals((drop_type_result)that); return false; } - public boolean equals(create_type_result that) { + public boolean equals(drop_type_result that) { if (that == null) return false; @@ -28671,89 +21964,65 @@ public boolean equals(create_type_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); - - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(create_type_result other) { + public int compareTo(drop_type_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_type_result typedOther = (drop_type_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -28775,7 +22044,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_type_result("); + StringBuilder sb = new StringBuilder("drop_type_result("); boolean first = true; sb.append("success:"); @@ -28797,14 +22066,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -28832,15 +22093,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class create_type_resultStandardSchemeFactory implements SchemeFactory { - public create_type_resultStandardScheme getScheme() { - return new create_type_resultStandardScheme(); + private static class drop_type_resultStandardSchemeFactory implements SchemeFactory { + public drop_type_resultStandardScheme getScheme() { + return new drop_type_resultStandardScheme(); } } - private static class create_type_resultStandardScheme extends StandardScheme { + private static class drop_type_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_type_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_type_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -28860,7 +22121,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_type_result break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new AlreadyExistsException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -28869,22 +22130,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_type_result break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new InvalidObjectException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -28894,7 +22146,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_type_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_type_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_type_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -28913,27 +22165,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_type_result struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class create_type_resultTupleSchemeFactory implements SchemeFactory { - public create_type_resultTupleScheme getScheme() { - return new create_type_resultTupleScheme(); + private static class drop_type_resultTupleSchemeFactory implements SchemeFactory { + public drop_type_resultTupleScheme getScheme() { + return new drop_type_resultTupleScheme(); } } - private static class create_type_resultTupleScheme extends TupleScheme { + private static class drop_type_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_type_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_type_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -28945,10 +22192,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_type_result if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { oprot.writeBool(struct.success); } @@ -28958,55 +22202,47 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_type_result if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_type_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_type_result 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.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new AlreadyExistsException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new InvalidObjectException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - public static class drop_type_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_type_args"); + public static class get_type_all_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_type_all_args"); - private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_type_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_type_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_type_all_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_type_all_argsTupleSchemeFactory()); } - private String type; // required + private String 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 { - TYPE((short)1, "type"); + NAME((short)1, "name"); private static final Map byName = new HashMap(); @@ -29021,8 +22257,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_type_result s */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TYPE - return TYPE; + case 1: // NAME + return NAME; default: return null; } @@ -29066,70 +22302,70 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("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(drop_type_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_all_args.class, metaDataMap); } - public drop_type_args() { + public get_type_all_args() { } - public drop_type_args( - String type) + public get_type_all_args( + String name) { this(); - this.type = type; + this.name = name; } /** * Performs a deep copy on other. */ - public drop_type_args(drop_type_args other) { - if (other.isSetType()) { - this.type = other.type; + public get_type_all_args(get_type_all_args other) { + if (other.isSetName()) { + this.name = other.name; } } - public drop_type_args deepCopy() { - return new drop_type_args(this); + public get_type_all_args deepCopy() { + return new get_type_all_args(this); } @Override public void clear() { - this.type = null; + this.name = null; } - public String getType() { - return this.type; + public String getName() { + return this.name; } - public void setType(String type) { - this.type = type; + public void setName(String name) { + this.name = name; } - public void unsetType() { - this.type = null; + public void unsetName() { + this.name = null; } - /** Returns true if field type is set (has been assigned a value) and false otherwise */ - public boolean isSetType() { - return this.type != null; + /** Returns true if field name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; } - public void setTypeIsSet(boolean value) { + public void setNameIsSet(boolean value) { if (!value) { - this.type = null; + this.name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case TYPE: + case NAME: if (value == null) { - unsetType(); + unsetName(); } else { - setType((String)value); + setName((String)value); } break; @@ -29138,8 +22374,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case TYPE: - return getType(); + case NAME: + return getName(); } throw new IllegalStateException(); @@ -29152,8 +22388,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case TYPE: - return isSetType(); + case NAME: + return isSetName(); } throw new IllegalStateException(); } @@ -29162,21 +22398,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_type_args) - return this.equals((drop_type_args)that); + if (that instanceof get_type_all_args) + return this.equals((get_type_all_args)that); return false; } - public boolean equals(drop_type_args that) { + public boolean equals(get_type_all_args that) { if (that == null) return false; - boolean this_present_type = true && this.isSetType(); - boolean that_present_type = true && that.isSetType(); - if (this_present_type || that_present_type) { - if (!(this_present_type && that_present_type)) + boolean this_present_name = true && this.isSetName(); + boolean that_present_name = true && that.isSetName(); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) return false; - if (!this.type.equals(that.type)) + if (!this.name.equals(that.name)) return false; } @@ -29185,30 +22421,30 @@ public boolean equals(drop_type_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_type = true && (isSetType()); - list.add(present_type); - if (present_type) - list.add(type); + boolean present_name = true && (isSetName()); + builder.append(present_name); + if (present_name) + builder.append(name); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_type_args other) { + public int compareTo(get_type_all_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_type_all_args typedOther = (get_type_all_args)other; - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } - if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } @@ -29230,14 +22466,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_type_args("); + StringBuilder sb = new StringBuilder("get_type_all_args("); boolean first = true; - sb.append("type:"); - if (this.type == null) { + sb.append("name:"); + if (this.name == null) { sb.append("null"); } else { - sb.append(this.type); + sb.append(this.name); } first = false; sb.append(")"); @@ -29265,15 +22501,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_type_argsStandardSchemeFactory implements SchemeFactory { - public drop_type_argsStandardScheme getScheme() { - return new drop_type_argsStandardScheme(); + private static class get_type_all_argsStandardSchemeFactory implements SchemeFactory { + public get_type_all_argsStandardScheme getScheme() { + return new get_type_all_argsStandardScheme(); } } - private static class drop_type_argsStandardScheme extends StandardScheme { + private static class get_type_all_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_type_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -29283,10 +22519,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_type_args stru break; } switch (schemeField.id) { - case 1: // TYPE + case 1: // NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.type = iprot.readString(); - struct.setTypeIsSet(true); + struct.name = iprot.readString(); + struct.setNameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -29300,13 +22536,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_type_args stru struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_type_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_all_args struct) throws org.apache.thrift.TException { struct.validate(); - oprot.writeStructBegin(STRUCT_DESC); - if (struct.type != null) { - oprot.writeFieldBegin(TYPE_FIELD_DESC); - oprot.writeString(struct.type); + oprot.writeStructBegin(STRUCT_DESC); + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -29315,62 +22551,59 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_type_args str } - private static class drop_type_argsTupleSchemeFactory implements SchemeFactory { - public drop_type_argsTupleScheme getScheme() { - return new drop_type_argsTupleScheme(); + private static class get_type_all_argsTupleSchemeFactory implements SchemeFactory { + public get_type_all_argsTupleScheme getScheme() { + return new get_type_all_argsTupleScheme(); } } - private static class drop_type_argsTupleScheme extends TupleScheme { + private static class get_type_all_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_type_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_type_all_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetType()) { + if (struct.isSetName()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); - if (struct.isSetType()) { - oprot.writeString(struct.type); + if (struct.isSetName()) { + oprot.writeString(struct.name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_type_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.type = iprot.readString(); - struct.setTypeIsSet(true); + struct.name = iprot.readString(); + struct.setNameIsSet(true); } } } } - public static class drop_type_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_type_result"); + public static class get_type_all_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_type_all_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 org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (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 drop_type_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_type_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_type_all_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_type_all_resultTupleSchemeFactory()); } - private boolean success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private Map 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(); @@ -29387,9 +22620,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; @@ -29431,112 +22662,104 @@ 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))); - 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, + 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, Type.class)))); 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_type_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_all_result.class, metaDataMap); } - public drop_type_result() { + public get_type_all_result() { } - public drop_type_result( - boolean success, - MetaException o1, - NoSuchObjectException o2) + public get_type_all_result( + Map success, + MetaException o2) { this(); this.success = success; - setSuccessIsSet(true); - this.o1 = o1; this.o2 = o2; } /** * Performs a deep copy on other. */ - public drop_type_result(drop_type_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; - if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + public get_type_all_result(get_type_all_result other) { + if (other.isSetSuccess()) { + Map __this__success = new HashMap(); + for (Map.Entry other_element : other.success.entrySet()) { + + String other_element_key = other_element.getKey(); + Type other_element_value = other_element.getValue(); + + String __this__success_copy_key = other_element_key; + + Type __this__success_copy_value = new Type(other_element_value); + + __this__success.put(__this__success_copy_key, __this__success_copy_value); + } + this.success = __this__success; } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public drop_type_result deepCopy() { - return new drop_type_result(this); + public get_type_all_result deepCopy() { + return new get_type_all_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; - this.o1 = null; + this.success = null; this.o2 = null; } - public boolean isSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public void putToSuccess(String key, Type val) { + if (this.success == null) { + this.success = new HashMap(); + } + this.success.put(key, val); + } + + public Map getSuccess() { return this.success; } - public void setSuccess(boolean success) { + public void setSuccess(Map 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); - } - - 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; + this.success = null; } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -29561,15 +22784,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); - } - break; - - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((MetaException)value); + setSuccess((Map)value); } break; @@ -29577,7 +22792,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -29587,10 +22802,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); - - case O1: - return getO1(); + return getSuccess(); case O2: return getO2(); @@ -29608,8 +22820,6 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); - case O1: - return isSetO1(); case O2: return isSetO2(); } @@ -29620,30 +22830,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_type_result) - return this.equals((drop_type_result)that); + if (that instanceof get_type_all_result) + return this.equals((get_type_all_result)that); return false; } - public boolean equals(drop_type_result that) { + public boolean equals(get_type_all_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) - 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)) + if (!this.success.equals(that.success)) return false; } @@ -29661,60 +22862,45 @@ public boolean equals(drop_type_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_success = true; - list.add(present_success); + boolean present_success = true && (isSetSuccess()); + builder.append(present_success); if (present_success) - list.add(success); - - boolean present_o1 = true && (isSetO1()); - list.add(present_o1); - if (present_o1) - list.add(o1); + builder.append(success); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_type_result other) { + public int compareTo(get_type_all_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_type_all_result typedOther = (get_type_all_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -29736,18 +22922,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_type_result("); + StringBuilder sb = new StringBuilder("get_type_all_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); - first = false; - if (!first) sb.append(", "); - sb.append("o1:"); - if (this.o1 == null) { + if (this.success == null) { sb.append("null"); } else { - sb.append(this.o1); + sb.append(this.success); } first = false; if (!first) sb.append(", "); @@ -29777,23 +22959,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_type_resultStandardSchemeFactory implements SchemeFactory { - public drop_type_resultStandardScheme getScheme() { - return new drop_type_resultStandardScheme(); + private static class get_type_all_resultStandardSchemeFactory implements SchemeFactory { + public get_type_all_resultStandardScheme getScheme() { + return new get_type_all_resultStandardScheme(); } } - private static class drop_type_resultStandardScheme extends StandardScheme { + private static class get_type_all_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_type_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -29804,25 +22984,29 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_type_result st } 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.MAP) { + { + org.apache.thrift.protocol.TMap _map548 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map548.size); + for (int _i549 = 0; _i549 < _map548.size; ++_i549) + { + String _key550; // required + Type _val551; // required + _key550 = iprot.readString(); + _val551 = new Type(); + _val551.read(iprot); + struct.success.put(_key550, _val551); + } + iprot.readMapEnd(); + } 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 { @@ -29838,18 +23022,21 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_type_result st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_type_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_all_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.writeFieldEnd(); - } - if (struct.o1 != null) { - oprot.writeFieldBegin(O1_FIELD_DESC); - struct.o1.write(oprot); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Map.Entry _iter552 : struct.success.entrySet()) + { + oprot.writeString(_iter552.getKey()); + _iter552.getValue().write(oprot); + } + oprot.writeMapEnd(); + } oprot.writeFieldEnd(); } if (struct.o2 != null) { @@ -29863,33 +23050,34 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_type_result s } - private static class drop_type_resultTupleSchemeFactory implements SchemeFactory { - public drop_type_resultTupleScheme getScheme() { - return new drop_type_resultTupleScheme(); + private static class get_type_all_resultTupleSchemeFactory implements SchemeFactory { + public get_type_all_resultTupleScheme getScheme() { + return new get_type_all_resultTupleScheme(); } } - private static class drop_type_resultTupleScheme extends TupleScheme { + private static class get_type_all_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_type_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_type_all_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()) { - oprot.writeBool(struct.success); - } - if (struct.isSetO1()) { - struct.o1.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (Map.Entry _iter553 : struct.success.entrySet()) + { + oprot.writeString(_iter553.getKey()); + _iter553.getValue().write(oprot); + } + } } if (struct.isSetO2()) { struct.o2.write(oprot); @@ -29897,20 +23085,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_type_result st } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_type_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_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 = iprot.readBool(); + { + org.apache.thrift.protocol.TMap _map554 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map554.size); + for (int _i555 = 0; _i555 < _map554.size; ++_i555) + { + String _key556; // required + Type _val557; // required + _key556 = iprot.readString(); + _val557 = new Type(); + _val557.read(iprot); + struct.success.put(_key556, _val557); + } + } 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); } @@ -29919,22 +23114,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_type_result str } - public static class get_type_all_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_type_all_args"); + public static class get_fields_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_fields_args"); - private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); + 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 TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("table_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_type_all_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_type_all_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_fields_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_fields_argsTupleSchemeFactory()); } - private String name; // required + private String db_name; // required + private String table_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 { - NAME((short)1, "name"); + DB_NAME((short)1, "db_name"), + TABLE_NAME((short)2, "table_name"); private static final Map byName = new HashMap(); @@ -29949,8 +23147,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_type_result str */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NAME - return NAME; + case 1: // DB_NAME + return DB_NAME; + case 2: // TABLE_NAME + return TABLE_NAME; default: return null; } @@ -29994,70 +23194,109 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_all_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_args.class, metaDataMap); } - public get_type_all_args() { + public get_fields_args() { } - public get_type_all_args( - String name) + public get_fields_args( + String db_name, + String table_name) { this(); - this.name = name; + this.db_name = db_name; + this.table_name = table_name; } /** * Performs a deep copy on other. */ - public get_type_all_args(get_type_all_args other) { - if (other.isSetName()) { - this.name = other.name; + public get_fields_args(get_fields_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTable_name()) { + this.table_name = other.table_name; } } - public get_type_all_args deepCopy() { - return new get_type_all_args(this); + public get_fields_args deepCopy() { + return new get_fields_args(this); } @Override public void clear() { - this.name = null; + this.db_name = null; + this.table_name = null; } - public String getName() { - return this.name; + public String getDb_name() { + return this.db_name; } - public void setName(String name) { - this.name = name; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetName() { - this.name = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field name is set (has been assigned a value) and false otherwise */ - public boolean isSetName() { - return this.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 setNameIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.name = null; + this.db_name = 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 void setFieldValue(_Fields field, Object value) { switch (field) { - case NAME: + case DB_NAME: if (value == null) { - unsetName(); + unsetDb_name(); } else { - setName((String)value); + setDb_name((String)value); + } + break; + + case TABLE_NAME: + if (value == null) { + unsetTable_name(); + } else { + setTable_name((String)value); } break; @@ -30066,8 +23305,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NAME: - return getName(); + case DB_NAME: + return getDb_name(); + + case TABLE_NAME: + return getTable_name(); } throw new IllegalStateException(); @@ -30080,8 +23322,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case NAME: - return isSetName(); + case DB_NAME: + return isSetDb_name(); + case TABLE_NAME: + return isSetTable_name(); } throw new IllegalStateException(); } @@ -30090,21 +23334,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_type_all_args) - return this.equals((get_type_all_args)that); + if (that instanceof get_fields_args) + return this.equals((get_fields_args)that); return false; } - public boolean equals(get_type_all_args that) { + public boolean equals(get_fields_args that) { if (that == null) return false; - boolean this_present_name = true && this.isSetName(); - boolean that_present_name = true && that.isSetName(); - if (this_present_name || that_present_name) { - if (!(this_present_name && that_present_name)) + 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.name.equals(that.name)) + if (!this.db_name.equals(that.db_name)) + 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; } @@ -30113,30 +23366,45 @@ public boolean equals(get_type_all_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_name = true && (isSetName()); - list.add(present_name); - if (present_name) - list.add(name); + boolean present_db_name = true && (isSetDb_name()); + builder.append(present_db_name); + if (present_db_name) + builder.append(db_name); + + boolean present_table_name = true && (isSetTable_name()); + builder.append(present_table_name); + if (present_table_name) + builder.append(table_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_type_all_args other) { + public int compareTo(get_fields_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_fields_args typedOther = (get_fields_args)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(typedOther.isSetTable_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTable_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, typedOther.table_name); if (lastComparison != 0) { return lastComparison; } @@ -30158,14 +23426,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_type_all_args("); + StringBuilder sb = new StringBuilder("get_fields_args("); boolean first = true; - sb.append("name:"); - if (this.name == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.name); + sb.append(this.db_name); + } + 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; sb.append(")"); @@ -30193,15 +23469,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_type_all_argsStandardSchemeFactory implements SchemeFactory { - public get_type_all_argsStandardScheme getScheme() { - return new get_type_all_argsStandardScheme(); + private static class get_fields_argsStandardSchemeFactory implements SchemeFactory { + public get_fields_argsStandardScheme getScheme() { + return new get_fields_argsStandardScheme(); } } - private static class get_type_all_argsStandardScheme extends StandardScheme { + private static class get_fields_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -30211,10 +23487,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_args s break; } switch (schemeField.id) { - case 1: // NAME + case 1: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(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); } @@ -30228,13 +23512,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_args s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_all_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.name != null) { - oprot.writeFieldBegin(NAME_FIELD_DESC); - oprot.writeString(struct.name); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.table_name != null) { + oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.table_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -30243,59 +23532,75 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_all_args } - private static class get_type_all_argsTupleSchemeFactory implements SchemeFactory { - public get_type_all_argsTupleScheme getScheme() { - return new get_type_all_argsTupleScheme(); + private static class get_fields_argsTupleSchemeFactory implements SchemeFactory { + public get_fields_argsTupleScheme getScheme() { + return new get_fields_argsTupleScheme(); } } - private static class get_type_all_argsTupleScheme extends TupleScheme { + private static class get_fields_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_type_all_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetName()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetName()) { - oprot.writeString(struct.name); + if (struct.isSetTable_name()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTable_name()) { + oprot.writeString(struct.table_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.table_name = iprot.readString(); + struct.setTable_nameIsSet(true); } } } } - public static class get_type_all_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_type_all_result"); + public static class get_fields_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_fields_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (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 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 org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_type_all_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_type_all_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_fields_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_fields_resultTupleSchemeFactory()); } - private Map success; // required - private MetaException o2; // required + private List success; // required + private MetaException o1; // required + private UnknownTableException o2; // required + private UnknownDBException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - O2((short)1, "o2"); + O1((short)1, "o1"), + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -30312,8 +23617,12 @@ 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; + case 3: // O3 + return O3; default: return null; } @@ -30358,77 +23667,88 @@ 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.MapMetaData(org.apache.thrift.protocol.TType.MAP, - 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, Type.class)))); + 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, FieldSchema.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))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_type_all_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_result.class, metaDataMap); } - public get_type_all_result() { + public get_fields_result() { } - public get_type_all_result( - Map success, - MetaException o2) + public get_fields_result( + List success, + MetaException o1, + UnknownTableException o2, + UnknownDBException o3) { this(); this.success = success; + this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_type_all_result(get_type_all_result other) { + public get_fields_result(get_fields_result other) { if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success.size()); - for (Map.Entry other_element : other.success.entrySet()) { - - String other_element_key = other_element.getKey(); - Type other_element_value = other_element.getValue(); - - String __this__success_copy_key = other_element_key; - - Type __this__success_copy_value = new Type(other_element_value); - - __this__success.put(__this__success_copy_key, __this__success_copy_value); + List __this__success = new ArrayList(); + for (FieldSchema other_element : other.success) { + __this__success.add(new FieldSchema(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 UnknownTableException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new UnknownDBException(other.o3); } } - public get_type_all_result deepCopy() { - return new get_type_all_result(this); + public get_fields_result deepCopy() { + return new get_fields_result(this); } @Override public void clear() { this.success = null; + this.o1 = null; this.o2 = null; + this.o3 = null; } public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public void putToSuccess(String key, Type val) { + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(FieldSchema elem) { if (this.success == null) { - this.success = new HashMap(); + this.success = new ArrayList(); } - this.success.put(key, val); + this.success.add(elem); } - public Map getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(Map success) { + public void setSuccess(List success) { this.success = success; } @@ -30447,11 +23767,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 UnknownTableException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(UnknownTableException o2) { this.o2 = o2; } @@ -30470,13 +23813,44 @@ public void setO2IsSet(boolean value) { } } + public UnknownDBException getO3() { + return this.o3; + } + + public void setO3(UnknownDBException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Map)value); + setSuccess((List)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); } break; @@ -30484,7 +23858,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((UnknownTableException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((UnknownDBException)value); } break; @@ -30496,9 +23878,15 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); + case O1: + return getO1(); + case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -30512,8 +23900,12 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); + case O1: + return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -30522,12 +23914,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_type_all_result) - return this.equals((get_type_all_result)that); + if (that instanceof get_fields_result) + return this.equals((get_fields_result)that); return false; } - public boolean equals(get_type_all_result that) { + public boolean equals(get_fields_result that) { if (that == null) return false; @@ -30540,6 +23932,15 @@ public boolean equals(get_type_all_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) { @@ -30549,50 +23950,89 @@ public boolean equals(get_type_all_result that) { return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); + + boolean present_o1 = true && (isSetO1()); + builder.append(present_o1); + if (present_o1) + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + boolean present_o3 = true && (isSetO3()); + builder.append(present_o3); + if (present_o3) + builder.append(o3); + + return builder.toHashCode(); } - @Override - public int compareTo(get_type_all_result other) { + public int compareTo(get_fields_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_fields_result typedOther = (get_fields_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -30614,7 +24054,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_type_all_result("); + StringBuilder sb = new StringBuilder("get_fields_result("); boolean first = true; sb.append("success:"); @@ -30625,6 +24065,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"); @@ -30632,6 +24080,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -30657,15 +24113,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_type_all_resultStandardSchemeFactory implements SchemeFactory { - public get_type_all_resultStandardScheme getScheme() { - return new get_type_all_resultStandardScheme(); + private static class get_fields_resultStandardSchemeFactory implements SchemeFactory { + public get_fields_resultStandardScheme getScheme() { + return new get_fields_resultStandardScheme(); } } - private static class get_type_all_resultStandardScheme extends StandardScheme { + private static class get_fields_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -30676,35 +24132,51 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_result } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TMap _map548 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map548.size); - String _key549; - Type _val550; - for (int _i551 = 0; _i551 < _map548.size; ++_i551) + org.apache.thrift.protocol.TList _list558 = iprot.readListBegin(); + struct.success = new ArrayList(_list558.size); + for (int _i559 = 0; _i559 < _list558.size; ++_i559) { - _key549 = iprot.readString(); - _val550 = new Type(); - _val550.read(iprot); - struct.success.put(_key549, _val550); + FieldSchema _elem560; // required + _elem560 = new FieldSchema(); + _elem560.read(iprot); + struct.success.add(_elem560); } - iprot.readMapEnd(); + iprot.readListEnd(); } struct.setSuccessIsSet(true); } else { 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 UnknownTableException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -30714,117 +24186,148 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_all_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter552 : struct.success.entrySet()) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (FieldSchema _iter561 : struct.success) { - oprot.writeString(_iter552.getKey()); - _iter552.getValue().write(oprot); + _iter561.write(oprot); } - oprot.writeMapEnd(); + 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); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_type_all_resultTupleSchemeFactory implements SchemeFactory { - public get_type_all_resultTupleScheme getScheme() { - return new get_type_all_resultTupleScheme(); + private static class get_fields_resultTupleSchemeFactory implements SchemeFactory { + public get_fields_resultTupleScheme getScheme() { + return new get_fields_resultTupleScheme(); } } - private static class get_type_all_resultTupleScheme extends TupleScheme { + private static class get_fields_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_type_all_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_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); + } + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter553 : struct.success.entrySet()) + for (FieldSchema _iter562 : struct.success) { - oprot.writeString(_iter553.getKey()); - _iter553.getValue().write(oprot); + _iter562.write(oprot); } } } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map554 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map554.size); - String _key555; - Type _val556; - for (int _i557 = 0; _i557 < _map554.size; ++_i557) + org.apache.thrift.protocol.TList _list563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list563.size); + for (int _i564 = 0; _i564 < _list563.size; ++_i564) { - _key555 = iprot.readString(); - _val556 = new Type(); - _val556.read(iprot); - struct.success.put(_key555, _val556); + FieldSchema _elem565; // required + _elem565 = new FieldSchema(); + _elem565.read(iprot); + struct.success.add(_elem565); } } 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 UnknownTableException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - public static class get_fields_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_fields_args"); + public static class get_fields_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_fields_with_environment_context_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 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 ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_fields_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_fields_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_fields_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_fields_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required private String table_name; // required + private EnvironmentContext environment_context; // 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"), - TABLE_NAME((short)2, "table_name"); + TABLE_NAME((short)2, "table_name"), + ENVIRONMENT_CONTEXT((short)3, "environment_context"); private static final Map byName = new HashMap(); @@ -30843,6 +24346,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TABLE_NAME return TABLE_NAME; + case 3: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -30890,42 +24395,50 @@ public String getFieldName() { 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.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_with_environment_context_args.class, metaDataMap); } - public get_fields_args() { + public get_fields_with_environment_context_args() { } - public get_fields_args( + public get_fields_with_environment_context_args( String db_name, - String table_name) + String table_name, + EnvironmentContext environment_context) { this(); this.db_name = db_name; this.table_name = table_name; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public get_fields_args(get_fields_args other) { + public get_fields_with_environment_context_args(get_fields_with_environment_context_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTable_name()) { this.table_name = other.table_name; } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); + } } - public get_fields_args deepCopy() { - return new get_fields_args(this); + public get_fields_with_environment_context_args deepCopy() { + return new get_fields_with_environment_context_args(this); } @Override public void clear() { this.db_name = null; this.table_name = null; + this.environment_context = null; } public String getDb_name() { @@ -30974,6 +24487,29 @@ public void setTable_nameIsSet(boolean value) { } } + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -30992,6 +24528,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); + } + break; + } } @@ -31003,6 +24547,9 @@ public Object getFieldValue(_Fields field) { case TABLE_NAME: return getTable_name(); + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); + } throw new IllegalStateException(); } @@ -31018,6 +24565,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TABLE_NAME: return isSetTable_name(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -31026,12 +24575,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_fields_args) - return this.equals((get_fields_args)that); + if (that instanceof get_fields_with_environment_context_args) + return this.equals((get_fields_with_environment_context_args)that); return false; } - public boolean equals(get_fields_args that) { + public boolean equals(get_fields_with_environment_context_args that) { if (that == null) return false; @@ -31053,50 +24602,74 @@ public boolean equals(get_fields_args that) { return false; } + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_table_name = true && (isSetTable_name()); - list.add(present_table_name); + builder.append(present_table_name); if (present_table_name) - list.add(table_name); + builder.append(table_name); + + boolean present_environment_context = true && (isSetEnvironment_context()); + builder.append(present_environment_context); + if (present_environment_context) + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_fields_args other) { + public int compareTo(get_fields_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_fields_with_environment_context_args typedOther = (get_fields_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(other.isSetTable_name()); + lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(typedOther.isSetTable_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTable_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, other.table_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, typedOther.table_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -31118,7 +24691,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_fields_args("); + StringBuilder sb = new StringBuilder("get_fields_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -31136,6 +24709,14 @@ public String toString() { sb.append(this.table_name); } first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); + } + first = false; sb.append(")"); return sb.toString(); } @@ -31143,6 +24724,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -31161,15 +24745,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_fields_argsStandardSchemeFactory implements SchemeFactory { - public get_fields_argsStandardScheme getScheme() { - return new get_fields_argsStandardScheme(); + private static class get_fields_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public get_fields_with_environment_context_argsStandardScheme getScheme() { + return new get_fields_with_environment_context_argsStandardScheme(); } } - private static class get_fields_argsStandardScheme extends StandardScheme { + private static class get_fields_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -31195,6 +24779,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_args str org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -31204,7 +24797,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -31218,22 +24811,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_args st oprot.writeString(struct.table_name); oprot.writeFieldEnd(); } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_fields_argsTupleSchemeFactory implements SchemeFactory { - public get_fields_argsTupleScheme getScheme() { - return new get_fields_argsTupleScheme(); + private static class get_fields_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public get_fields_with_environment_context_argsTupleScheme getScheme() { + return new get_fields_with_environment_context_argsTupleScheme(); } } - private static class get_fields_argsTupleScheme extends TupleScheme { + private static class get_fields_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -31242,19 +24840,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_args str if (struct.isSetTable_name()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetEnvironment_context()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTable_name()) { oprot.writeString(struct.table_name); } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_environment_context_args 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.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -31263,13 +24867,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_args stru struct.table_name = iprot.readString(); struct.setTable_nameIsSet(true); } + if (incoming.get(2)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } } } } - public static class get_fields_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_fields_result"); + public static class get_fields_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_fields_with_environment_context_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); @@ -31278,8 +24887,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_args stru private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_fields_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_fields_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_fields_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_fields_with_environment_context_resultTupleSchemeFactory()); } private List success; // required @@ -31368,13 +24977,13 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_with_environment_context_result.class, metaDataMap); } - public get_fields_result() { + public get_fields_with_environment_context_result() { } - public get_fields_result( + public get_fields_with_environment_context_result( List success, MetaException o1, UnknownTableException o2, @@ -31390,9 +24999,9 @@ public get_fields_result( /** * Performs a deep copy on other. */ - public get_fields_result(get_fields_result other) { + public get_fields_with_environment_context_result(get_fields_with_environment_context_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (FieldSchema other_element : other.success) { __this__success.add(new FieldSchema(other_element)); } @@ -31409,8 +25018,8 @@ public get_fields_result(get_fields_result other) { } } - public get_fields_result deepCopy() { - return new get_fields_result(this); + public get_fields_with_environment_context_result deepCopy() { + return new get_fields_with_environment_context_result(this); } @Override @@ -31606,12 +25215,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_fields_result) - return this.equals((get_fields_result)that); + if (that instanceof get_fields_with_environment_context_result) + return this.equals((get_fields_with_environment_context_result)that); return false; } - public boolean equals(get_fields_result that) { + public boolean equals(get_fields_with_environment_context_result that) { if (that == null) return false; @@ -31656,75 +25265,75 @@ public boolean equals(get_fields_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_fields_result other) { + public int compareTo(get_fields_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_fields_with_environment_context_result typedOther = (get_fields_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -31746,7 +25355,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_fields_result("); + StringBuilder sb = new StringBuilder("get_fields_with_environment_context_result("); boolean first = true; sb.append("success:"); @@ -31805,15 +25414,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_fields_resultStandardSchemeFactory implements SchemeFactory { - public get_fields_resultStandardScheme getScheme() { - return new get_fields_resultStandardScheme(); + private static class get_fields_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public get_fields_with_environment_context_resultStandardScheme getScheme() { + return new get_fields_with_environment_context_resultStandardScheme(); } } - private static class get_fields_resultStandardScheme extends StandardScheme { + private static class get_fields_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -31826,14 +25435,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list558 = iprot.readListBegin(); - struct.success = new ArrayList(_list558.size); - FieldSchema _elem559; - for (int _i560 = 0; _i560 < _list558.size; ++_i560) + org.apache.thrift.protocol.TList _list566 = iprot.readListBegin(); + struct.success = new ArrayList(_list566.size); + for (int _i567 = 0; _i567 < _list566.size; ++_i567) { - _elem559 = new FieldSchema(); - _elem559.read(iprot); - struct.success.add(_elem559); + FieldSchema _elem568; // required + _elem568 = new FieldSchema(); + _elem568.read(iprot); + struct.success.add(_elem568); } iprot.readListEnd(); } @@ -31878,7 +25487,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -31886,9 +25495,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter561 : struct.success) + for (FieldSchema _iter569 : struct.success) { - _iter561.write(oprot); + _iter569.write(oprot); } oprot.writeListEnd(); } @@ -31915,16 +25524,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_result } - private static class get_fields_resultTupleSchemeFactory implements SchemeFactory { - public get_fields_resultTupleScheme getScheme() { - return new get_fields_resultTupleScheme(); + private static class get_fields_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public get_fields_with_environment_context_resultTupleScheme getScheme() { + return new get_fields_with_environment_context_resultTupleScheme(); } } - private static class get_fields_resultTupleScheme extends TupleScheme { + private static class get_fields_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -31943,9 +25552,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter562 : struct.success) + for (FieldSchema _iter570 : struct.success) { - _iter562.write(oprot); + _iter570.write(oprot); } } } @@ -31961,19 +25570,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list563.size); - FieldSchema _elem564; - for (int _i565 = 0; _i565 < _list563.size; ++_i565) + org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list571.size); + for (int _i572 = 0; _i572 < _list571.size; ++_i572) { - _elem564 = new FieldSchema(); - _elem564.read(iprot); - struct.success.add(_elem564); + FieldSchema _elem573; // required + _elem573 = new FieldSchema(); + _elem573.read(iprot); + struct.success.add(_elem573); } } struct.setSuccessIsSet(true); @@ -31998,28 +25607,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_result st } - public static class get_fields_with_environment_context_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_fields_with_environment_context_args"); + public static class get_schema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_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 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 ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_fields_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_fields_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_schema_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_schema_argsTupleSchemeFactory()); } private String db_name; // required private String table_name; // required - private EnvironmentContext environment_context; // 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"), - TABLE_NAME((short)2, "table_name"), - ENVIRONMENT_CONTEXT((short)3, "environment_context"); + TABLE_NAME((short)2, "table_name"); private static final Map byName = new HashMap(); @@ -32038,8 +25644,6 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TABLE_NAME return TABLE_NAME; - case 3: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; default: return null; } @@ -32087,50 +25691,42 @@ public String getFieldName() { 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.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_args.class, metaDataMap); } - public get_fields_with_environment_context_args() { + public get_schema_args() { } - public get_fields_with_environment_context_args( + public get_schema_args( String db_name, - String table_name, - EnvironmentContext environment_context) + String table_name) { this(); this.db_name = db_name; this.table_name = table_name; - this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public get_fields_with_environment_context_args(get_fields_with_environment_context_args other) { + public get_schema_args(get_schema_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTable_name()) { this.table_name = other.table_name; } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); - } } - public get_fields_with_environment_context_args deepCopy() { - return new get_fields_with_environment_context_args(this); + public get_schema_args deepCopy() { + return new get_schema_args(this); } @Override public void clear() { this.db_name = null; this.table_name = null; - this.environment_context = null; } public String getDb_name() { @@ -32179,29 +25775,6 @@ public void setTable_nameIsSet(boolean value) { } } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; - } - - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; - } - - public void unsetEnvironment_context() { - this.environment_context = null; - } - - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; - } - - public void setEnvironment_contextIsSet(boolean value) { - if (!value) { - this.environment_context = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -32220,14 +25793,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case ENVIRONMENT_CONTEXT: - if (value == null) { - unsetEnvironment_context(); - } else { - setEnvironment_context((EnvironmentContext)value); - } - break; - } } @@ -32239,9 +25804,6 @@ public Object getFieldValue(_Fields field) { case TABLE_NAME: return getTable_name(); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); - } throw new IllegalStateException(); } @@ -32257,8 +25819,6 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TABLE_NAME: return isSetTable_name(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -32267,12 +25827,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_fields_with_environment_context_args) - return this.equals((get_fields_with_environment_context_args)that); + if (that instanceof get_schema_args) + return this.equals((get_schema_args)that); return false; } - public boolean equals(get_fields_with_environment_context_args that) { + public boolean equals(get_schema_args that) { if (that == null) return false; @@ -32294,74 +25854,50 @@ public boolean equals(get_fields_with_environment_context_args that) { return false; } - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) - return false; - if (!this.environment_context.equals(that.environment_context)) - return false; - } - return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_table_name = true && (isSetTable_name()); - list.add(present_table_name); + builder.append(present_table_name); if (present_table_name) - list.add(table_name); - - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + builder.append(table_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_fields_with_environment_context_args other) { + public int compareTo(get_schema_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_schema_args typedOther = (get_schema_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(other.isSetTable_name()); + lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(typedOther.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(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, typedOther.table_name); if (lastComparison != 0) { return lastComparison; } @@ -32383,7 +25919,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_fields_with_environment_context_args("); + StringBuilder sb = new StringBuilder("get_schema_args("); boolean first = true; sb.append("db_name:"); @@ -32401,14 +25937,6 @@ public String toString() { sb.append(this.table_name); } first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { - sb.append("null"); - } else { - sb.append(this.environment_context); - } - first = false; sb.append(")"); return sb.toString(); } @@ -32416,9 +25944,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -32437,15 +25962,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_fields_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public get_fields_with_environment_context_argsStandardScheme getScheme() { - return new get_fields_with_environment_context_argsStandardScheme(); + private static class get_schema_argsStandardSchemeFactory implements SchemeFactory { + public get_schema_argsStandardScheme getScheme() { + return new get_schema_argsStandardScheme(); } } - private static class get_fields_with_environment_context_argsStandardScheme extends StandardScheme { + private static class get_schema_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -32471,15 +25996,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_env org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // ENVIRONMENT_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -32489,7 +26005,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_env struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -32503,27 +26019,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_with_en oprot.writeString(struct.table_name); oprot.writeFieldEnd(); } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_fields_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public get_fields_with_environment_context_argsTupleScheme getScheme() { - return new get_fields_with_environment_context_argsTupleScheme(); + private static class get_schema_argsTupleSchemeFactory implements SchemeFactory { + public get_schema_argsTupleScheme getScheme() { + return new get_schema_argsTupleScheme(); } } - private static class get_fields_with_environment_context_argsTupleScheme extends TupleScheme { + private static class get_schema_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -32532,25 +26043,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetTable_name()) { optionals.set(1); } - if (struct.isSetEnvironment_context()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTable_name()) { oprot.writeString(struct.table_name); } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_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); @@ -32559,18 +26064,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi struct.table_name = iprot.readString(); struct.setTable_nameIsSet(true); } - if (incoming.get(2)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); - } } } } - public static class get_fields_with_environment_context_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_fields_with_environment_context_result"); + public static class get_schema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_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); @@ -32579,8 +26079,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_fields_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_fields_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_schema_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_schema_resultTupleSchemeFactory()); } private List success; // required @@ -32669,13 +26169,13 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_fields_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_result.class, metaDataMap); } - public get_fields_with_environment_context_result() { + public get_schema_result() { } - public get_fields_with_environment_context_result( + public get_schema_result( List success, MetaException o1, UnknownTableException o2, @@ -32691,9 +26191,9 @@ public get_fields_with_environment_context_result( /** * Performs a deep copy on other. */ - public get_fields_with_environment_context_result(get_fields_with_environment_context_result other) { + public get_schema_result(get_schema_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (FieldSchema other_element : other.success) { __this__success.add(new FieldSchema(other_element)); } @@ -32710,8 +26210,8 @@ public get_fields_with_environment_context_result(get_fields_with_environment_co } } - public get_fields_with_environment_context_result deepCopy() { - return new get_fields_with_environment_context_result(this); + public get_schema_result deepCopy() { + return new get_schema_result(this); } @Override @@ -32907,12 +26407,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_fields_with_environment_context_result) - return this.equals((get_fields_with_environment_context_result)that); + if (that instanceof get_schema_result) + return this.equals((get_schema_result)that); return false; } - public boolean equals(get_fields_with_environment_context_result that) { + public boolean equals(get_schema_result that) { if (that == null) return false; @@ -32957,75 +26457,75 @@ public boolean equals(get_fields_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_fields_with_environment_context_result other) { + public int compareTo(get_schema_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_schema_result typedOther = (get_schema_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -33047,7 +26547,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_fields_with_environment_context_result("); + StringBuilder sb = new StringBuilder("get_schema_result("); boolean first = true; sb.append("success:"); @@ -33106,15 +26606,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_fields_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public get_fields_with_environment_context_resultStandardScheme getScheme() { - return new get_fields_with_environment_context_resultStandardScheme(); + private static class get_schema_resultStandardSchemeFactory implements SchemeFactory { + public get_schema_resultStandardScheme getScheme() { + return new get_schema_resultStandardScheme(); } } - private static class get_fields_with_environment_context_resultStandardScheme extends StandardScheme { + private static class get_schema_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -33127,14 +26627,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_env case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list566 = iprot.readListBegin(); - struct.success = new ArrayList(_list566.size); - FieldSchema _elem567; - for (int _i568 = 0; _i568 < _list566.size; ++_i568) + org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); + struct.success = new ArrayList(_list574.size); + for (int _i575 = 0; _i575 < _list574.size; ++_i575) { - _elem567 = new FieldSchema(); - _elem567.read(iprot); - struct.success.add(_elem567); + FieldSchema _elem576; // required + _elem576 = new FieldSchema(); + _elem576.read(iprot); + struct.success.add(_elem576); } iprot.readListEnd(); } @@ -33179,7 +26679,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_env struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -33187,9 +26687,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_with_en oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter569 : struct.success) + for (FieldSchema _iter577 : struct.success) { - _iter569.write(oprot); + _iter577.write(oprot); } oprot.writeListEnd(); } @@ -33216,16 +26716,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_with_en } - private static class get_fields_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public get_fields_with_environment_context_resultTupleScheme getScheme() { - return new get_fields_with_environment_context_resultTupleScheme(); + private static class get_schema_resultTupleSchemeFactory implements SchemeFactory { + public get_schema_resultTupleScheme getScheme() { + return new get_schema_resultTupleScheme(); } } - private static class get_fields_with_environment_context_resultTupleScheme extends TupleScheme { + private static class get_schema_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -33244,9 +26744,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter570 : struct.success) + for (FieldSchema _iter578 : struct.success) { - _iter570.write(oprot); + _iter578.write(oprot); } } } @@ -33262,19 +26762,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list571.size); - FieldSchema _elem572; - for (int _i573 = 0; _i573 < _list571.size; ++_i573) + org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list579.size); + for (int _i580 = 0; _i580 < _list579.size; ++_i580) { - _elem572 = new FieldSchema(); - _elem572.read(iprot); - struct.success.add(_elem572); + FieldSchema _elem581; // required + _elem581 = new FieldSchema(); + _elem581.read(iprot); + struct.success.add(_elem581); } } struct.setSuccessIsSet(true); @@ -33299,25 +26799,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi } - public static class get_schema_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_schema_args"); + public static class get_schema_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_with_environment_context_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 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 ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_schema_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_schema_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_schema_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_schema_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required private String table_name; // required + private EnvironmentContext environment_context; // 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"), - TABLE_NAME((short)2, "table_name"); + TABLE_NAME((short)2, "table_name"), + ENVIRONMENT_CONTEXT((short)3, "environment_context"); private static final Map byName = new HashMap(); @@ -33336,6 +26839,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TABLE_NAME return TABLE_NAME; + case 3: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -33383,42 +26888,50 @@ public String getFieldName() { 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.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_with_environment_context_args.class, metaDataMap); } - public get_schema_args() { + public get_schema_with_environment_context_args() { } - public get_schema_args( + public get_schema_with_environment_context_args( String db_name, - String table_name) + String table_name, + EnvironmentContext environment_context) { this(); this.db_name = db_name; this.table_name = table_name; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public get_schema_args(get_schema_args other) { + public get_schema_with_environment_context_args(get_schema_with_environment_context_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTable_name()) { this.table_name = other.table_name; } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); + } } - public get_schema_args deepCopy() { - return new get_schema_args(this); + public get_schema_with_environment_context_args deepCopy() { + return new get_schema_with_environment_context_args(this); } @Override public void clear() { this.db_name = null; this.table_name = null; + this.environment_context = null; } public String getDb_name() { @@ -33467,6 +26980,29 @@ public void setTable_nameIsSet(boolean value) { } } + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -33485,6 +27021,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); + } + break; + } } @@ -33496,6 +27040,9 @@ public Object getFieldValue(_Fields field) { case TABLE_NAME: return getTable_name(); + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); + } throw new IllegalStateException(); } @@ -33511,6 +27058,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TABLE_NAME: return isSetTable_name(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -33519,12 +27068,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_schema_args) - return this.equals((get_schema_args)that); + if (that instanceof get_schema_with_environment_context_args) + return this.equals((get_schema_with_environment_context_args)that); return false; } - public boolean equals(get_schema_args that) { + public boolean equals(get_schema_with_environment_context_args that) { if (that == null) return false; @@ -33546,50 +27095,74 @@ public boolean equals(get_schema_args that) { return false; } + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_table_name = true && (isSetTable_name()); - list.add(present_table_name); + builder.append(present_table_name); if (present_table_name) - list.add(table_name); + builder.append(table_name); - return list.hashCode(); + boolean present_environment_context = true && (isSetEnvironment_context()); + builder.append(present_environment_context); + if (present_environment_context) + builder.append(environment_context); + + return builder.toHashCode(); } - @Override - public int compareTo(get_schema_args other) { + public int compareTo(get_schema_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_schema_with_environment_context_args typedOther = (get_schema_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(other.isSetTable_name()); + lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(typedOther.isSetTable_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTable_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, other.table_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, typedOther.table_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -33611,7 +27184,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_schema_args("); + StringBuilder sb = new StringBuilder("get_schema_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -33629,6 +27202,14 @@ public String toString() { sb.append(this.table_name); } first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); + } + first = false; sb.append(")"); return sb.toString(); } @@ -33636,6 +27217,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -33654,15 +27238,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_schema_argsStandardSchemeFactory implements SchemeFactory { - public get_schema_argsStandardScheme getScheme() { - return new get_schema_argsStandardScheme(); + private static class get_schema_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public get_schema_with_environment_context_argsStandardScheme getScheme() { + return new get_schema_with_environment_context_argsStandardScheme(); } } - private static class get_schema_argsStandardScheme extends StandardScheme { + private static class get_schema_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -33688,6 +27272,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_args str org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -33697,7 +27290,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -33711,22 +27304,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_args st oprot.writeString(struct.table_name); oprot.writeFieldEnd(); } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_schema_argsTupleSchemeFactory implements SchemeFactory { - public get_schema_argsTupleScheme getScheme() { - return new get_schema_argsTupleScheme(); + private static class get_schema_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public get_schema_with_environment_context_argsTupleScheme getScheme() { + return new get_schema_with_environment_context_argsTupleScheme(); } } - private static class get_schema_argsTupleScheme extends TupleScheme { + private static class get_schema_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -33735,19 +27333,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_args str if (struct.isSetTable_name()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetEnvironment_context()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTable_name()) { oprot.writeString(struct.table_name); } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_args 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.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -33756,13 +27360,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_args stru struct.table_name = iprot.readString(); struct.setTable_nameIsSet(true); } + if (incoming.get(2)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } } } } - public static class get_schema_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_schema_result"); + public static class get_schema_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_schema_with_environment_context_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); @@ -33771,8 +27380,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_args stru private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_schema_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_schema_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_schema_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_schema_with_environment_context_resultTupleSchemeFactory()); } private List success; // required @@ -33861,13 +27470,13 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_with_environment_context_result.class, metaDataMap); } - public get_schema_result() { + public get_schema_with_environment_context_result() { } - public get_schema_result( + public get_schema_with_environment_context_result( List success, MetaException o1, UnknownTableException o2, @@ -33883,9 +27492,9 @@ public get_schema_result( /** * Performs a deep copy on other. */ - public get_schema_result(get_schema_result other) { + public get_schema_with_environment_context_result(get_schema_with_environment_context_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (FieldSchema other_element : other.success) { __this__success.add(new FieldSchema(other_element)); } @@ -33902,8 +27511,8 @@ public get_schema_result(get_schema_result other) { } } - public get_schema_result deepCopy() { - return new get_schema_result(this); + public get_schema_with_environment_context_result deepCopy() { + return new get_schema_with_environment_context_result(this); } @Override @@ -34099,12 +27708,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_schema_result) - return this.equals((get_schema_result)that); + if (that instanceof get_schema_with_environment_context_result) + return this.equals((get_schema_with_environment_context_result)that); return false; } - public boolean equals(get_schema_result that) { + public boolean equals(get_schema_with_environment_context_result that) { if (that == null) return false; @@ -34149,75 +27758,75 @@ public boolean equals(get_schema_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_schema_result other) { + public int compareTo(get_schema_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_schema_with_environment_context_result typedOther = (get_schema_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -34239,7 +27848,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_schema_result("); + StringBuilder sb = new StringBuilder("get_schema_with_environment_context_result("); boolean first = true; sb.append("success:"); @@ -34298,15 +27907,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_schema_resultStandardSchemeFactory implements SchemeFactory { - public get_schema_resultStandardScheme getScheme() { - return new get_schema_resultStandardScheme(); + private static class get_schema_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public get_schema_with_environment_context_resultStandardScheme getScheme() { + return new get_schema_with_environment_context_resultStandardScheme(); } } - private static class get_schema_resultStandardScheme extends StandardScheme { + private static class get_schema_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -34319,14 +27928,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); - struct.success = new ArrayList(_list574.size); - FieldSchema _elem575; - for (int _i576 = 0; _i576 < _list574.size; ++_i576) + org.apache.thrift.protocol.TList _list582 = iprot.readListBegin(); + struct.success = new ArrayList(_list582.size); + for (int _i583 = 0; _i583 < _list582.size; ++_i583) { - _elem575 = new FieldSchema(); - _elem575.read(iprot); - struct.success.add(_elem575); + FieldSchema _elem584; // required + _elem584 = new FieldSchema(); + _elem584.read(iprot); + struct.success.add(_elem584); } iprot.readListEnd(); } @@ -34371,7 +27980,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -34379,9 +27988,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter577 : struct.success) + for (FieldSchema _iter585 : struct.success) { - _iter577.write(oprot); + _iter585.write(oprot); } oprot.writeListEnd(); } @@ -34408,16 +28017,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_result } - private static class get_schema_resultTupleSchemeFactory implements SchemeFactory { - public get_schema_resultTupleScheme getScheme() { - return new get_schema_resultTupleScheme(); + private static class get_schema_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public get_schema_with_environment_context_resultTupleScheme getScheme() { + return new get_schema_with_environment_context_resultTupleScheme(); } } - private static class get_schema_resultTupleScheme extends TupleScheme { + private static class get_schema_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -34436,9 +28045,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter578 : struct.success) + for (FieldSchema _iter586 : struct.success) { - _iter578.write(oprot); + _iter586.write(oprot); } } } @@ -34454,19 +28063,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list579.size); - FieldSchema _elem580; - for (int _i581 = 0; _i581 < _list579.size; ++_i581) + org.apache.thrift.protocol.TList _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list587.size); + for (int _i588 = 0; _i588 < _list587.size; ++_i588) { - _elem580 = new FieldSchema(); - _elem580.read(iprot); - struct.success.add(_elem580); + FieldSchema _elem589; // required + _elem589 = new FieldSchema(); + _elem589.read(iprot); + struct.success.add(_elem589); } } struct.setSuccessIsSet(true); @@ -34491,28 +28100,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result st } - public static class get_schema_with_environment_context_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_schema_with_environment_context_args"); + public static class create_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_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 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 ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_schema_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_schema_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new create_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_argsTupleSchemeFactory()); } - private String db_name; // required - private String table_name; // required - private EnvironmentContext environment_context; // required + private Table tbl; // 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"), - TABLE_NAME((short)2, "table_name"), - ENVIRONMENT_CONTEXT((short)3, "environment_context"); + TBL((short)1, "tbl"); private static final Map byName = new HashMap(); @@ -34527,12 +28130,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result st */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TABLE_NAME - return TABLE_NAME; - case 3: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 1: // TBL + return TBL; default: return null; } @@ -34576,148 +28175,70 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.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.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.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); + tmpMap.put(_Fields.TBL, new org.apache.thrift.meta_data.FieldMetaData("tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_schema_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_args.class, metaDataMap); } - public get_schema_with_environment_context_args() { + public create_table_args() { } - public get_schema_with_environment_context_args( - String db_name, - String table_name, - EnvironmentContext environment_context) + public create_table_args( + Table tbl) { this(); - this.db_name = db_name; - this.table_name = table_name; - this.environment_context = environment_context; + this.tbl = tbl; } /** * Performs a deep copy on other. */ - public get_schema_with_environment_context_args(get_schema_with_environment_context_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTable_name()) { - this.table_name = other.table_name; - } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + public create_table_args(create_table_args other) { + if (other.isSetTbl()) { + this.tbl = new Table(other.tbl); } } - public get_schema_with_environment_context_args deepCopy() { - return new get_schema_with_environment_context_args(this); + public create_table_args deepCopy() { + return new create_table_args(this); } @Override public void clear() { - this.db_name = null; - this.table_name = null; - this.environment_context = 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 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; - } + this.tbl = null; } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public Table getTbl() { + return this.tbl; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setTbl(Table tbl) { + this.tbl = tbl; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetTbl() { + this.tbl = null; } - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; + /** Returns true if field tbl is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl() { + return this.tbl != null; } - public void setEnvironment_contextIsSet(boolean value) { + public void setTblIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.tbl = 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 TABLE_NAME: - if (value == null) { - unsetTable_name(); - } else { - setTable_name((String)value); - } - break; - - case ENVIRONMENT_CONTEXT: + case TBL: if (value == null) { - unsetEnvironment_context(); + unsetTbl(); } else { - setEnvironment_context((EnvironmentContext)value); + setTbl((Table)value); } break; @@ -34726,14 +28247,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TABLE_NAME: - return getTable_name(); - - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case TBL: + return getTbl(); } throw new IllegalStateException(); @@ -34746,12 +28261,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TABLE_NAME: - return isSetTable_name(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case TBL: + return isSetTbl(); } throw new IllegalStateException(); } @@ -34760,39 +28271,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_schema_with_environment_context_args) - return this.equals((get_schema_with_environment_context_args)that); + if (that instanceof create_table_args) + return this.equals((create_table_args)that); return false; } - public boolean equals(get_schema_with_environment_context_args that) { + public boolean equals(create_table_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_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_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) + boolean this_present_tbl = true && this.isSetTbl(); + boolean that_present_tbl = true && that.isSetTbl(); + if (this_present_tbl || that_present_tbl) { + if (!(this_present_tbl && that_present_tbl)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (!this.tbl.equals(that.tbl)) return false; } @@ -34801,60 +28294,30 @@ public boolean equals(get_schema_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_table_name = true && (isSetTable_name()); - list.add(present_table_name); - if (present_table_name) - list.add(table_name); - - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_tbl = true && (isSetTbl()); + builder.append(present_tbl); + if (present_tbl) + builder.append(tbl); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_schema_with_environment_context_args other) { + public int compareTo(create_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_table_args typedOther = (create_table_args)other; - 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(isSetTable_name()).compareTo(other.isSetTable_name()); + lastComparison = Boolean.valueOf(isSetTbl()).compareTo(typedOther.isSetTbl()); 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(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetTbl()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, typedOther.tbl); if (lastComparison != 0) { return lastComparison; } @@ -34876,30 +28339,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_schema_with_environment_context_args("); + StringBuilder sb = new StringBuilder("create_table_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("table_name:"); - if (this.table_name == null) { - sb.append("null"); - } else { - sb.append(this.table_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("tbl:"); + if (this.tbl == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.tbl); } first = false; sb.append(")"); @@ -34909,8 +28356,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (environment_context != null) { - environment_context.validate(); + if (tbl != null) { + tbl.validate(); } } @@ -34930,15 +28377,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_schema_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public get_schema_with_environment_context_argsStandardScheme getScheme() { - return new get_schema_with_environment_context_argsStandardScheme(); + private static class create_table_argsStandardSchemeFactory implements SchemeFactory { + public create_table_argsStandardScheme getScheme() { + return new create_table_argsStandardScheme(); } } - private static class get_schema_with_environment_context_argsStandardScheme extends StandardScheme { + private static class create_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -34948,27 +28395,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env 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: // 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: // ENVIRONMENT_CONTEXT + case 1: // TBL if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.tbl = new Table(); + struct.tbl.read(iprot); + struct.setTblIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -34982,23 +28413,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_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.table_name != null) { - oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.table_name); - oprot.writeFieldEnd(); - } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.tbl != null) { + oprot.writeFieldBegin(TBL_FIELD_DESC); + struct.tbl.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -35007,86 +28428,66 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_en } - private static class get_schema_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public get_schema_with_environment_context_argsTupleScheme getScheme() { - return new get_schema_with_environment_context_argsTupleScheme(); + private static class create_table_argsTupleSchemeFactory implements SchemeFactory { + public create_table_argsTupleScheme getScheme() { + return new create_table_argsTupleScheme(); } } - private static class get_schema_with_environment_context_argsTupleScheme extends TupleScheme { + private static class create_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetTbl()) { optionals.set(0); } - if (struct.isSetTable_name()) { - optionals.set(1); - } - if (struct.isSetEnvironment_context()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTable_name()) { - oprot.writeString(struct.table_name); - } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + oprot.writeBitSet(optionals, 1); + if (struct.isSetTbl()) { + struct.tbl.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.table_name = iprot.readString(); - struct.setTable_nameIsSet(true); - } - if (incoming.get(2)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.tbl = new Table(); + struct.tbl.read(iprot); + struct.setTblIsSet(true); } } } } - public static class get_schema_with_environment_context_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_schema_with_environment_context_result"); + public static class create_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_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); 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 O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_schema_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_schema_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new create_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_resultTupleSchemeFactory()); } - private List success; // required - private MetaException o1; // required - private UnknownTableException o2; // required - private UnknownDBException o3; // required + private AlreadyExistsException o1; // required + private InvalidObjectException o2; // required + private MetaException o3; // required + private NoSuchObjectException o4; // 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"), - O3((short)3, "o3"); + O3((short)3, "o3"), + O4((short)4, "o4"); private static final Map byName = new HashMap(); @@ -35101,14 +28502,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_envi */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; case 3: // O3 return O3; + case 4: // O4 + return O4; default: return null; } @@ -35152,112 +28553,69 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.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, FieldSchema.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))); tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", 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_schema_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_result.class, metaDataMap); } - public get_schema_with_environment_context_result() { + public create_table_result() { } - public get_schema_with_environment_context_result( - List success, - MetaException o1, - UnknownTableException o2, - UnknownDBException o3) + public create_table_result( + AlreadyExistsException o1, + InvalidObjectException o2, + MetaException o3, + NoSuchObjectException o4) { this(); - this.success = success; this.o1 = o1; this.o2 = o2; this.o3 = o3; + this.o4 = o4; } /** * Performs a deep copy on other. */ - public get_schema_with_environment_context_result(get_schema_with_environment_context_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (FieldSchema other_element : other.success) { - __this__success.add(new FieldSchema(other_element)); - } - this.success = __this__success; - } + public create_table_result(create_table_result other) { if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new AlreadyExistsException(other.o1); } if (other.isSetO2()) { - this.o2 = new UnknownTableException(other.o2); + this.o2 = new InvalidObjectException(other.o2); } if (other.isSetO3()) { - this.o3 = new UnknownDBException(other.o3); + this.o3 = new MetaException(other.o3); + } + if (other.isSetO4()) { + this.o4 = new NoSuchObjectException(other.o4); } } - public get_schema_with_environment_context_result deepCopy() { - return new get_schema_with_environment_context_result(this); + public create_table_result deepCopy() { + return new create_table_result(this); } @Override public void clear() { - this.success = null; this.o1 = null; this.o2 = null; this.o3 = null; + this.o4 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(FieldSchema elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public void setSuccess(List 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() { + public AlreadyExistsException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(AlreadyExistsException o1) { this.o1 = o1; } @@ -35276,11 +28634,11 @@ public void setO1IsSet(boolean value) { } } - public UnknownTableException getO2() { + public InvalidObjectException getO2() { return this.o2; } - public void setO2(UnknownTableException o2) { + public void setO2(InvalidObjectException o2) { this.o2 = o2; } @@ -35299,11 +28657,11 @@ public void setO2IsSet(boolean value) { } } - public UnknownDBException getO3() { + public MetaException getO3() { return this.o3; } - public void setO3(UnknownDBException o3) { + public void setO3(MetaException o3) { this.o3 = o3; } @@ -35322,21 +28680,36 @@ public void setO3IsSet(boolean value) { } } + public NoSuchObjectException getO4() { + return this.o4; + } + + public void setO4(NoSuchObjectException o4) { + this.o4 = o4; + } + + public void unsetO4() { + this.o4 = null; + } + + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ + public boolean isSetO4() { + return this.o4 != null; + } + + public void setO4IsSet(boolean value) { + if (!value) { + this.o4 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)value); - } - break; - case O1: if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((AlreadyExistsException)value); } break; @@ -35344,7 +28717,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((UnknownTableException)value); + setO2((InvalidObjectException)value); } break; @@ -35352,7 +28725,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO3(); } else { - setO3((UnknownDBException)value); + setO3((MetaException)value); + } + break; + + case O4: + if (value == null) { + unsetO4(); + } else { + setO4((NoSuchObjectException)value); } break; @@ -35361,9 +28742,6 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); @@ -35373,6 +28751,9 @@ public Object getFieldValue(_Fields field) { case O3: return getO3(); + case O4: + return getO4(); + } throw new IllegalStateException(); } @@ -35384,14 +28765,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); case O3: return isSetO3(); + case O4: + return isSetO4(); } throw new IllegalStateException(); } @@ -35400,24 +28781,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_schema_with_environment_context_result) - return this.equals((get_schema_with_environment_context_result)that); + if (that instanceof create_table_result) + return this.equals((create_table_result)that); return false; } - public boolean equals(get_schema_with_environment_context_result that) { + public boolean equals(create_table_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) { @@ -35445,80 +28817,89 @@ public boolean equals(get_schema_with_environment_context_result that) { return false; } + boolean this_present_o4 = true && this.isSetO4(); + boolean that_present_o4 = true && that.isSetO4(); + if (this_present_o4 || that_present_o4) { + if (!(this_present_o4 && that_present_o4)) + return false; + if (!this.o4.equals(that.o4)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); - - boolean present_success = true && (isSetSuccess()); - list.add(present_success); - if (present_success) - list.add(success); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); + + boolean present_o4 = true && (isSetO4()); + builder.append(present_o4); + if (present_o4) + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_schema_with_environment_context_result other) { + public int compareTo(create_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_table_result typedOther = (create_table_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } - if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } - if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (isSetO4()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -35540,17 +28921,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_schema_with_environment_context_result("); + StringBuilder sb = new StringBuilder("create_table_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"); @@ -35574,6 +28947,14 @@ public String toString() { sb.append(this.o3); } first = false; + if (!first) sb.append(", "); + sb.append("o4:"); + if (this.o4 == null) { + sb.append("null"); + } else { + sb.append(this.o4); + } + first = false; sb.append(")"); return sb.toString(); } @@ -35599,15 +28980,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_schema_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public get_schema_with_environment_context_resultStandardScheme getScheme() { - return new get_schema_with_environment_context_resultStandardScheme(); + private static class create_table_resultStandardSchemeFactory implements SchemeFactory { + public create_table_resultStandardScheme getScheme() { + return new create_table_resultStandardScheme(); } } - private static class get_schema_with_environment_context_resultStandardScheme extends StandardScheme { + private static class create_table_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -35617,28 +28998,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list582 = iprot.readListBegin(); - struct.success = new ArrayList(_list582.size); - FieldSchema _elem583; - for (int _i584 = 0; _i584 < _list582.size; ++_i584) - { - _elem583 = new FieldSchema(); - _elem583.read(iprot); - struct.success.add(_elem583); - } - 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 = new AlreadyExistsException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -35647,7 +29009,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new UnknownTableException(); + struct.o2 = new InvalidObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -35656,13 +29018,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env break; case 3: // O3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new UnknownDBException(); + struct.o3 = new MetaException(); struct.o3.read(iprot); struct.setO3IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // O4 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o4 = new NoSuchObjectException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -35672,22 +29043,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { - oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter585 : struct.success) - { - _iter585.write(oprot); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -35703,46 +29062,42 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_en struct.o3.write(oprot); oprot.writeFieldEnd(); } + if (struct.o4 != null) { + oprot.writeFieldBegin(O4_FIELD_DESC); + struct.o4.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_schema_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public get_schema_with_environment_context_resultTupleScheme getScheme() { - return new get_schema_with_environment_context_resultTupleScheme(); + private static class create_table_resultTupleSchemeFactory implements SchemeFactory { + public create_table_resultTupleScheme getScheme() { + return new create_table_resultTupleScheme(); } } - private static class get_schema_with_environment_context_resultTupleScheme extends TupleScheme { + private static class create_table_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetSuccess()) { + if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO1()) { + if (struct.isSetO2()) { optionals.set(1); } - if (struct.isSetO2()) { + if (struct.isSetO3()) { optionals.set(2); } - if (struct.isSetO3()) { + if (struct.isSetO4()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (FieldSchema _iter586 : struct.success) - { - _iter586.write(oprot); - } - } - } if (struct.isSetO1()) { struct.o1.write(oprot); } @@ -35752,62 +29107,59 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetO3()) { struct.o3.write(oprot); } + if (struct.isSetO4()) { + struct.o4.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list587.size); - FieldSchema _elem588; - for (int _i589 = 0; _i589 < _list587.size; ++_i589) - { - _elem588 = new FieldSchema(); - _elem588.read(iprot); - struct.success.add(_elem588); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new AlreadyExistsException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(2)) { - struct.o2 = new UnknownTableException(); + if (incoming.get(1)) { + struct.o2 = new InvalidObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new UnknownDBException(); + if (incoming.get(2)) { + struct.o3 = new MetaException(); struct.o3.read(iprot); struct.setO3IsSet(true); } + if (incoming.get(3)) { + struct.o4 = new NoSuchObjectException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } } } } - public static class create_table_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("create_table_args"); + public static class create_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_with_environment_context_args"); private static final org.apache.thrift.protocol.TField TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new create_table_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_with_environment_context_argsTupleSchemeFactory()); } private Table tbl; // required + private EnvironmentContext environment_context; // 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 { - TBL((short)1, "tbl"); + TBL((short)1, "tbl"), + ENVIRONMENT_CONTEXT((short)2, "environment_context"); private static final Map byName = new HashMap(); @@ -35824,6 +29176,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // TBL return TBL; + case 2: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -35869,36 +29223,44 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.TBL, new org.apache.thrift.meta_data.FieldMetaData("tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_with_environment_context_args.class, metaDataMap); } - public create_table_args() { + public create_table_with_environment_context_args() { } - public create_table_args( - Table tbl) + public create_table_with_environment_context_args( + Table tbl, + EnvironmentContext environment_context) { this(); this.tbl = tbl; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public create_table_args(create_table_args other) { + public create_table_with_environment_context_args(create_table_with_environment_context_args other) { if (other.isSetTbl()) { this.tbl = new Table(other.tbl); } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); + } } - public create_table_args deepCopy() { - return new create_table_args(this); + public create_table_with_environment_context_args deepCopy() { + return new create_table_with_environment_context_args(this); } @Override public void clear() { this.tbl = null; + this.environment_context = null; } public Table getTbl() { @@ -35924,6 +29286,29 @@ public void setTblIsSet(boolean value) { } } + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case TBL: @@ -35934,6 +29319,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); + } + break; + } } @@ -35942,6 +29335,9 @@ public Object getFieldValue(_Fields field) { case TBL: return getTbl(); + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); + } throw new IllegalStateException(); } @@ -35955,6 +29351,8 @@ public boolean isSet(_Fields field) { switch (field) { case TBL: return isSetTbl(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -35963,12 +29361,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_table_args) - return this.equals((create_table_args)that); + if (that instanceof create_table_with_environment_context_args) + return this.equals((create_table_with_environment_context_args)that); return false; } - public boolean equals(create_table_args that) { + public boolean equals(create_table_with_environment_context_args that) { if (that == null) return false; @@ -35981,35 +29379,59 @@ public boolean equals(create_table_args that) { return false; } + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_tbl = true && (isSetTbl()); - list.add(present_tbl); + builder.append(present_tbl); if (present_tbl) - list.add(tbl); + builder.append(tbl); - return list.hashCode(); + boolean present_environment_context = true && (isSetEnvironment_context()); + builder.append(present_environment_context); + if (present_environment_context) + builder.append(environment_context); + + return builder.toHashCode(); } - @Override - public int compareTo(create_table_args other) { + public int compareTo(create_table_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_table_with_environment_context_args typedOther = (create_table_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetTbl()).compareTo(other.isSetTbl()); + lastComparison = Boolean.valueOf(isSetTbl()).compareTo(typedOther.isSetTbl()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, other.tbl); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, typedOther.tbl); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -36031,7 +29453,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_table_args("); + StringBuilder sb = new StringBuilder("create_table_with_environment_context_args("); boolean first = true; sb.append("tbl:"); @@ -36041,6 +29463,14 @@ public String toString() { sb.append(this.tbl); } first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); + } + first = false; sb.append(")"); return sb.toString(); } @@ -36051,6 +29481,9 @@ public void validate() throws org.apache.thrift.TException { if (tbl != null) { tbl.validate(); } + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -36069,15 +29502,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class create_table_argsStandardSchemeFactory implements SchemeFactory { - public create_table_argsStandardScheme getScheme() { - return new create_table_argsStandardScheme(); + private static class create_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public create_table_with_environment_context_argsStandardScheme getScheme() { + return new create_table_with_environment_context_argsStandardScheme(); } } - private static class create_table_argsStandardScheme extends StandardScheme { + private static class create_table_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -36096,6 +29529,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_args s org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -36105,7 +29547,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_args s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -36114,49 +29556,65 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_args struct.tbl.write(oprot); oprot.writeFieldEnd(); } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class create_table_argsTupleSchemeFactory implements SchemeFactory { - public create_table_argsTupleScheme getScheme() { - return new create_table_argsTupleScheme(); + private static class create_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public create_table_with_environment_context_argsTupleScheme getScheme() { + return new create_table_with_environment_context_argsTupleScheme(); } } - private static class create_table_argsTupleScheme extends TupleScheme { + private static class create_table_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetTbl()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetEnvironment_context()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetTbl()) { struct.tbl.write(oprot); } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.tbl = new Table(); struct.tbl.read(iprot); struct.setTblIsSet(true); } + if (incoming.get(1)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } } } } - public static class create_table_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("create_table_result"); + public static class create_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_table_with_environment_context_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); @@ -36165,8 +29623,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_args st private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new create_table_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new create_table_with_environment_context_resultTupleSchemeFactory()); } private AlreadyExistsException o1; // required @@ -36254,13 +29712,13 @@ public String getFieldName() { tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", 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(create_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(create_table_with_environment_context_result.class, metaDataMap); } - public create_table_result() { + public create_table_with_environment_context_result() { } - public create_table_result( + public create_table_with_environment_context_result( AlreadyExistsException o1, InvalidObjectException o2, MetaException o3, @@ -36276,7 +29734,7 @@ public create_table_result( /** * Performs a deep copy on other. */ - public create_table_result(create_table_result other) { + public create_table_with_environment_context_result(create_table_with_environment_context_result other) { if (other.isSetO1()) { this.o1 = new AlreadyExistsException(other.o1); } @@ -36291,8 +29749,8 @@ public create_table_result(create_table_result other) { } } - public create_table_result deepCopy() { - return new create_table_result(this); + public create_table_with_environment_context_result deepCopy() { + return new create_table_with_environment_context_result(this); } @Override @@ -36473,12 +29931,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_table_result) - return this.equals((create_table_result)that); + if (that instanceof create_table_with_environment_context_result) + return this.equals((create_table_with_environment_context_result)that); return false; } - public boolean equals(create_table_result that) { + public boolean equals(create_table_with_environment_context_result that) { if (that == null) return false; @@ -36523,75 +29981,75 @@ public boolean equals(create_table_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(create_table_result other) { + public int compareTo(create_table_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_table_with_environment_context_result typedOther = (create_table_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -36613,7 +30071,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_table_result("); + StringBuilder sb = new StringBuilder("create_table_with_environment_context_result("); boolean first = true; sb.append("o1:"); @@ -36672,15 +30130,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class create_table_resultStandardSchemeFactory implements SchemeFactory { - public create_table_resultStandardScheme getScheme() { - return new create_table_resultStandardScheme(); + private static class create_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public create_table_with_environment_context_resultStandardScheme getScheme() { + return new create_table_with_environment_context_resultStandardScheme(); } } - private static class create_table_resultStandardScheme extends StandardScheme { + private static class create_table_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -36735,7 +30193,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -36765,16 +30223,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_resul } - private static class create_table_resultTupleSchemeFactory implements SchemeFactory { - public create_table_resultTupleScheme getScheme() { - return new create_table_resultTupleScheme(); + private static class create_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public create_table_with_environment_context_resultTupleScheme getScheme() { + return new create_table_with_environment_context_resultTupleScheme(); } } - private static class create_table_resultTupleScheme extends TupleScheme { + private static class create_table_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -36805,7 +30263,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -36833,25 +30291,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_result } - public static class create_table_with_environment_context_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("create_table_with_environment_context_args"); + public static class drop_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_args"); - private static final org.apache.thrift.protocol.TField TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); + 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)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_table_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_table_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_argsTupleSchemeFactory()); } - private Table tbl; // required - private EnvironmentContext environment_context; // required + private String dbname; // required + private String 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 { - TBL((short)1, "tbl"), - ENVIRONMENT_CONTEXT((short)2, "environment_context"); + DBNAME((short)1, "dbname"), + NAME((short)2, "name"), + DELETE_DATA((short)3, "deleteData"); private static final Map byName = new HashMap(); @@ -36866,10 +30327,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // TBL - return TBL; - case 2: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 1: // DBNAME + return DBNAME; + case 2: // NAME + return NAME; + case 3: // DELETE_DATA + return DELETE_DATA; default: return null; } @@ -36910,112 +30373,153 @@ public String getFieldName() { } // 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.TBL, new org.apache.thrift.meta_data.FieldMetaData("tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); - tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("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(create_table_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_args.class, metaDataMap); } - public create_table_with_environment_context_args() { + public drop_table_args() { } - public create_table_with_environment_context_args( - Table tbl, - EnvironmentContext environment_context) + public drop_table_args( + String dbname, + String name, + boolean deleteData) { this(); - this.tbl = tbl; - this.environment_context = environment_context; + this.dbname = dbname; + this.name = name; + this.deleteData = deleteData; + setDeleteDataIsSet(true); } /** * Performs a deep copy on other. */ - public create_table_with_environment_context_args(create_table_with_environment_context_args other) { - if (other.isSetTbl()) { - this.tbl = new Table(other.tbl); + public drop_table_args(drop_table_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbname()) { + this.dbname = other.dbname; } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + if (other.isSetName()) { + this.name = other.name; } + this.deleteData = other.deleteData; } - public create_table_with_environment_context_args deepCopy() { - return new create_table_with_environment_context_args(this); + public drop_table_args deepCopy() { + return new drop_table_args(this); } @Override public void clear() { - this.tbl = null; - this.environment_context = null; + this.dbname = null; + this.name = null; + setDeleteDataIsSet(false); + this.deleteData = false; } - public Table getTbl() { - return this.tbl; + public String getDbname() { + return this.dbname; } - public void setTbl(Table tbl) { - this.tbl = tbl; + public void setDbname(String dbname) { + this.dbname = dbname; } - public void unsetTbl() { - this.tbl = null; + public void unsetDbname() { + this.dbname = null; } - /** Returns true if field tbl is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl() { - return this.tbl != null; + /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ + public boolean isSetDbname() { + return this.dbname != null; } - public void setTblIsSet(boolean value) { + public void setDbnameIsSet(boolean value) { if (!value) { - this.tbl = null; + this.dbname = null; } } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public String getName() { + return this.name; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setName(String name) { + this.name = name; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetName() { + this.name = null; } - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; + /** Returns true if field name is set (has been assigned a value) and false otherwise */ + public boolean isSetName() { + return this.name != null; } - public void setEnvironment_contextIsSet(boolean value) { + public void setNameIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.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 TBL: + case DBNAME: if (value == null) { - unsetTbl(); + unsetDbname(); } else { - setTbl((Table)value); + setDbname((String)value); } break; - case ENVIRONMENT_CONTEXT: + case NAME: if (value == null) { - unsetEnvironment_context(); + unsetName(); } else { - setEnvironment_context((EnvironmentContext)value); + setName((String)value); + } + break; + + case DELETE_DATA: + if (value == null) { + unsetDeleteData(); + } else { + setDeleteData((Boolean)value); } break; @@ -37024,11 +30528,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case TBL: - return getTbl(); + case DBNAME: + return getDbname(); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case NAME: + return getName(); + + case DELETE_DATA: + return Boolean.valueOf(isDeleteData()); } throw new IllegalStateException(); @@ -37041,10 +30548,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case TBL: - return isSetTbl(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case DBNAME: + return isSetDbname(); + case NAME: + return isSetName(); + case DELETE_DATA: + return isSetDeleteData(); } throw new IllegalStateException(); } @@ -37053,30 +30562,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_table_with_environment_context_args) - return this.equals((create_table_with_environment_context_args)that); + if (that instanceof drop_table_args) + return this.equals((drop_table_args)that); return false; } - public boolean equals(create_table_with_environment_context_args that) { + public boolean equals(drop_table_args that) { if (that == null) return false; - boolean this_present_tbl = true && this.isSetTbl(); - boolean that_present_tbl = true && that.isSetTbl(); - if (this_present_tbl || that_present_tbl) { - if (!(this_present_tbl && that_present_tbl)) + boolean this_present_dbname = true && this.isSetDbname(); + boolean that_present_dbname = true && that.isSetDbname(); + if (this_present_dbname || that_present_dbname) { + if (!(this_present_dbname && that_present_dbname)) return false; - if (!this.tbl.equals(that.tbl)) + if (!this.dbname.equals(that.dbname)) return false; } - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) + boolean this_present_name = true && this.isSetName(); + boolean that_present_name = true && that.isSetName(); + if (this_present_name || that_present_name) { + if (!(this_present_name && that_present_name)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (!this.name.equals(that.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; } @@ -37085,45 +30603,60 @@ public boolean equals(create_table_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_tbl = true && (isSetTbl()); - list.add(present_tbl); - if (present_tbl) - list.add(tbl); + boolean present_dbname = true && (isSetDbname()); + builder.append(present_dbname); + if (present_dbname) + builder.append(dbname); - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_name = true && (isSetName()); + builder.append(present_name); + if (present_name) + builder.append(name); - return list.hashCode(); + boolean present_deleteData = true; + builder.append(present_deleteData); + if (present_deleteData) + builder.append(deleteData); + + return builder.toHashCode(); } - @Override - public int compareTo(create_table_with_environment_context_args other) { + public int compareTo(drop_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_table_args typedOther = (drop_table_args)other; - lastComparison = Boolean.valueOf(isSetTbl()).compareTo(other.isSetTbl()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, other.tbl); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -37145,24 +30678,28 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_table_with_environment_context_args("); + StringBuilder sb = new StringBuilder("drop_table_args("); boolean first = true; - sb.append("tbl:"); - if (this.tbl == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.tbl); + sb.append(this.dbname); } first = false; if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("name:"); + if (this.name == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.name); } first = false; + if (!first) sb.append(", "); + sb.append("deleteData:"); + sb.append(this.deleteData); + first = false; sb.append(")"); return sb.toString(); } @@ -37170,12 +30707,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (tbl != null) { - tbl.validate(); - } - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -37188,21 +30719,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 create_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public create_table_with_environment_context_argsStandardScheme getScheme() { - return new create_table_with_environment_context_argsStandardScheme(); + private static class drop_table_argsStandardSchemeFactory implements SchemeFactory { + public drop_table_argsStandardScheme getScheme() { + return new drop_table_argsStandardScheme(); } } - private static class create_table_with_environment_context_argsStandardScheme extends StandardScheme { + private static class drop_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -37212,20 +30745,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_e break; } switch (schemeField.id) { - case 1: // TBL - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.tbl = new Table(); - struct.tbl.read(iprot); - struct.setTblIsSet(true); + case 1: // DBNAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // ENVIRONMENT_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + case 2: // NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // 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); } @@ -37239,97 +30778,102 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_e struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.tbl != null) { - oprot.writeFieldBegin(TBL_FIELD_DESC); - struct.tbl.write(oprot); + if (struct.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); oprot.writeFieldEnd(); } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.name != null) { + oprot.writeFieldBegin(NAME_FIELD_DESC); + oprot.writeString(struct.name); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class create_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public create_table_with_environment_context_argsTupleScheme getScheme() { - return new create_table_with_environment_context_argsTupleScheme(); + private static class drop_table_argsTupleSchemeFactory implements SchemeFactory { + public drop_table_argsTupleScheme getScheme() { + return new drop_table_argsTupleScheme(); } } - private static class create_table_with_environment_context_argsTupleScheme extends TupleScheme { + private static class drop_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetTbl()) { + if (struct.isSetDbname()) { optionals.set(0); } - if (struct.isSetEnvironment_context()) { + if (struct.isSetName()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); - if (struct.isSetTbl()) { - struct.tbl.write(oprot); + if (struct.isSetDeleteData()) { + optionals.set(2); } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + oprot.writeBitSet(optionals, 3); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetName()) { + oprot.writeString(struct.name); + } + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_args 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.tbl = new Table(); - struct.tbl.read(iprot); - struct.setTblIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); } if (incoming.get(1)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.name = iprot.readString(); + struct.setNameIsSet(true); + } + if (incoming.get(2)) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); } } } } - public static class create_table_with_environment_context_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("create_table_with_environment_context_result"); + public static class drop_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new create_table_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new create_table_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_resultTupleSchemeFactory()); } - private AlreadyExistsException o1; // required - private InvalidObjectException o2; // required + private NoSuchObjectException o1; // required private MetaException o3; // required - private NoSuchObjectException o4; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { O1((short)1, "o1"), - O2((short)2, "o2"), - O3((short)3, "o3"), - O4((short)4, "o4"); + O3((short)2, "o3"); private static final Map byName = new HashMap(); @@ -37346,12 +30890,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // O1 return O1; - case 2: // O2 - return O2; - case 3: // O3 + case 2: // O3 return O3; - case 4: // O4 - return O4; default: return null; } @@ -37397,67 +30937,51 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.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))); tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", 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(create_table_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_result.class, metaDataMap); } - public create_table_with_environment_context_result() { + public drop_table_result() { } - public create_table_with_environment_context_result( - AlreadyExistsException o1, - InvalidObjectException o2, - MetaException o3, - NoSuchObjectException o4) + public drop_table_result( + NoSuchObjectException o1, + MetaException o3) { this(); this.o1 = o1; - this.o2 = o2; this.o3 = o3; - this.o4 = o4; } /** * Performs a deep copy on other. */ - public create_table_with_environment_context_result(create_table_with_environment_context_result other) { + public drop_table_result(drop_table_result other) { if (other.isSetO1()) { - this.o1 = new AlreadyExistsException(other.o1); - } - if (other.isSetO2()) { - this.o2 = new InvalidObjectException(other.o2); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO3()) { this.o3 = new MetaException(other.o3); } - if (other.isSetO4()) { - this.o4 = new NoSuchObjectException(other.o4); - } } - public create_table_with_environment_context_result deepCopy() { - return new create_table_with_environment_context_result(this); + public drop_table_result deepCopy() { + return new drop_table_result(this); } @Override public void clear() { this.o1 = null; - this.o2 = null; this.o3 = null; - this.o4 = null; } - public AlreadyExistsException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(AlreadyExistsException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -37476,29 +31000,6 @@ public void setO1IsSet(boolean value) { } } - public InvalidObjectException getO2() { - return this.o2; - } - - public void setO2(InvalidObjectException 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 MetaException getO3() { return this.o3; } @@ -37522,44 +31023,13 @@ public void setO3IsSet(boolean value) { } } - public NoSuchObjectException getO4() { - return this.o4; - } - - public void setO4(NoSuchObjectException o4) { - this.o4 = o4; - } - - public void unsetO4() { - this.o4 = null; - } - - /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ - public boolean isSetO4() { - return this.o4 != null; - } - - public void setO4IsSet(boolean value) { - if (!value) { - this.o4 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case O1: if (value == null) { unsetO1(); } else { - setO1((AlreadyExistsException)value); - } - break; - - case O2: - if (value == null) { - unsetO2(); - } else { - setO2((InvalidObjectException)value); + setO1((NoSuchObjectException)value); } break; @@ -37571,14 +31041,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O4: - if (value == null) { - unsetO4(); - } else { - setO4((NoSuchObjectException)value); - } - break; - } } @@ -37587,15 +31049,9 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O2: - return getO2(); - case O3: return getO3(); - case O4: - return getO4(); - } throw new IllegalStateException(); } @@ -37609,12 +31065,8 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); - case O2: - return isSetO2(); case O3: return isSetO3(); - case O4: - return isSetO4(); } throw new IllegalStateException(); } @@ -37623,12 +31075,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof create_table_with_environment_context_result) - return this.equals((create_table_with_environment_context_result)that); + if (that instanceof drop_table_result) + return this.equals((drop_table_result)that); return false; } - public boolean equals(create_table_with_environment_context_result that) { + public boolean equals(drop_table_result that) { if (that == null) return false; @@ -37641,15 +31093,6 @@ public boolean equals(create_table_with_environment_context_result that) { return false; } - boolean this_present_o2 = true && this.isSetO2(); - boolean that_present_o2 = true && that.isSetO2(); - if (this_present_o2 || that_present_o2) { - if (!(this_present_o2 && that_present_o2)) - return false; - if (!this.o2.equals(that.o2)) - return false; - } - boolean this_present_o3 = true && this.isSetO3(); boolean that_present_o3 = true && that.isSetO3(); if (this_present_o3 || that_present_o3) { @@ -37659,89 +31102,50 @@ public boolean equals(create_table_with_environment_context_result that) { return false; } - boolean this_present_o4 = true && this.isSetO4(); - boolean that_present_o4 = true && that.isSetO4(); - if (this_present_o4 || that_present_o4) { - if (!(this_present_o4 && that_present_o4)) - return false; - if (!this.o4.equals(that.o4)) - return false; - } - return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); - - boolean present_o2 = true && (isSetO2()); - list.add(present_o2); - if (present_o2) - list.add(o2); + builder.append(o1); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); - - boolean present_o4 = true && (isSetO4()); - list.add(present_o4); - if (present_o4) - list.add(o4); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(create_table_with_environment_context_result other) { + public int compareTo(drop_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_table_result typedOther = (drop_table_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -37763,7 +31167,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("create_table_with_environment_context_result("); + StringBuilder sb = new StringBuilder("drop_table_result("); boolean first = true; sb.append("o1:"); @@ -37774,14 +31178,6 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("o2:"); - if (this.o2 == null) { - sb.append("null"); - } else { - sb.append(this.o2); - } - first = false; - if (!first) sb.append(", "); sb.append("o3:"); if (this.o3 == null) { sb.append("null"); @@ -37789,14 +31185,6 @@ public String toString() { sb.append(this.o3); } first = false; - if (!first) sb.append(", "); - sb.append("o4:"); - if (this.o4 == null) { - sb.append("null"); - } else { - sb.append(this.o4); - } - first = false; sb.append(")"); return sb.toString(); } @@ -37822,15 +31210,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class create_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public create_table_with_environment_context_resultStandardScheme getScheme() { - return new create_table_with_environment_context_resultStandardScheme(); + private static class drop_table_resultStandardSchemeFactory implements SchemeFactory { + public drop_table_resultStandardScheme getScheme() { + return new drop_table_resultStandardScheme(); } } - private static class create_table_with_environment_context_resultStandardScheme extends StandardScheme { + private static class drop_table_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -37842,23 +31230,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_e switch (schemeField.id) { case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new AlreadyExistsException(); + 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 InvalidObjectException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // O3 + case 2: // O3 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o3 = new MetaException(); struct.o3.read(iprot); @@ -37867,15 +31246,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_e org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // O4 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o4 = new NoSuchObjectException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -37885,7 +31255,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_e struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -37894,117 +31264,88 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o2 != null) { - oprot.writeFieldBegin(O2_FIELD_DESC); - struct.o2.write(oprot); - oprot.writeFieldEnd(); - } if (struct.o3 != null) { oprot.writeFieldBegin(O3_FIELD_DESC); struct.o3.write(oprot); oprot.writeFieldEnd(); } - if (struct.o4 != null) { - oprot.writeFieldBegin(O4_FIELD_DESC); - struct.o4.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class create_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public create_table_with_environment_context_resultTupleScheme getScheme() { - return new create_table_with_environment_context_resultTupleScheme(); + private static class drop_table_resultTupleSchemeFactory implements SchemeFactory { + public drop_table_resultTupleScheme getScheme() { + return new drop_table_resultTupleScheme(); } } - private static class create_table_with_environment_context_resultTupleScheme extends TupleScheme { + private static class drop_table_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_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); - } if (struct.isSetO3()) { - optionals.set(2); - } - if (struct.isSetO4()) { - optionals.set(3); + optionals.set(1); } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO2()) { - struct.o2.write(oprot); - } if (struct.isSetO3()) { struct.o3.write(oprot); } - if (struct.isSetO4()) { - struct.o4.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.o1 = new AlreadyExistsException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(1)) { - struct.o2 = new InvalidObjectException(); - struct.o2.read(iprot); - struct.setO2IsSet(true); - } - if (incoming.get(2)) { struct.o3 = new MetaException(); struct.o3.read(iprot); struct.setO3IsSet(true); } - if (incoming.get(3)) { - struct.o4 = new NoSuchObjectException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } } } } - public static class drop_table_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_table_args"); + public static class drop_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); 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)3); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_with_environment_context_argsTupleSchemeFactory()); } private String dbname; // required private String name; // required private boolean deleteData; // required + private EnvironmentContext environment_context; // 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 { DBNAME((short)1, "dbname"), NAME((short)2, "name"), - DELETE_DATA((short)3, "deleteData"); + DELETE_DATA((short)3, "deleteData"), + ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -38025,6 +31366,8 @@ public static _Fields findByThriftId(int fieldId) { return NAME; case 3: // DELETE_DATA return DELETE_DATA; + case 4: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -38076,29 +31419,33 @@ public String getFieldName() { 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.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_with_environment_context_args.class, metaDataMap); } - public drop_table_args() { + public drop_table_with_environment_context_args() { } - public drop_table_args( + public drop_table_with_environment_context_args( String dbname, String name, - boolean deleteData) + boolean deleteData, + EnvironmentContext environment_context) { this(); this.dbname = dbname; this.name = name; this.deleteData = deleteData; setDeleteDataIsSet(true); + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public drop_table_args(drop_table_args other) { + public drop_table_with_environment_context_args(drop_table_with_environment_context_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDbname()) { this.dbname = other.dbname; @@ -38107,10 +31454,13 @@ public drop_table_args(drop_table_args other) { this.name = other.name; } this.deleteData = other.deleteData; + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); + } } - public drop_table_args deepCopy() { - return new drop_table_args(this); + public drop_table_with_environment_context_args deepCopy() { + return new drop_table_with_environment_context_args(this); } @Override @@ -38119,6 +31469,7 @@ public void clear() { this.name = null; setDeleteDataIsSet(false); this.deleteData = false; + this.environment_context = null; } public String getDbname() { @@ -38189,6 +31540,29 @@ public void setDeleteDataIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); } + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DBNAME: @@ -38215,6 +31589,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); + } + break; + } } @@ -38229,6 +31611,9 @@ public Object getFieldValue(_Fields field) { case DELETE_DATA: return Boolean.valueOf(isDeleteData()); + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); + } throw new IllegalStateException(); } @@ -38246,6 +31631,8 @@ public boolean isSet(_Fields field) { return isSetName(); case DELETE_DATA: return isSetDeleteData(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -38254,12 +31641,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_table_args) - return this.equals((drop_table_args)that); + if (that instanceof drop_table_with_environment_context_args) + return this.equals((drop_table_with_environment_context_args)that); return false; } - public boolean equals(drop_table_args that) { + public boolean equals(drop_table_with_environment_context_args that) { if (that == null) return false; @@ -38290,65 +31677,89 @@ public boolean equals(drop_table_args that) { return false; } + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); - return list.hashCode(); + boolean present_environment_context = true && (isSetEnvironment_context()); + builder.append(present_environment_context); + if (present_environment_context) + builder.append(environment_context); + + return builder.toHashCode(); } - @Override - public int compareTo(drop_table_args other) { + public int compareTo(drop_table_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_table_with_environment_context_args typedOther = (drop_table_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -38370,7 +31781,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_table_args("); + StringBuilder sb = new StringBuilder("drop_table_with_environment_context_args("); boolean first = true; sb.append("dbname:"); @@ -38392,6 +31803,14 @@ public String toString() { sb.append("deleteData:"); sb.append(this.deleteData); first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); + } + first = false; sb.append(")"); return sb.toString(); } @@ -38399,6 +31818,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -38419,15 +31841,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_table_argsStandardSchemeFactory implements SchemeFactory { - public drop_table_argsStandardScheme getScheme() { - return new drop_table_argsStandardScheme(); + private static class drop_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_argsStandardScheme getScheme() { + return new drop_table_with_environment_context_argsStandardScheme(); } } - private static class drop_table_argsStandardScheme extends StandardScheme { + private static class drop_table_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -38461,6 +31883,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_args str org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -38470,7 +31901,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -38487,22 +31918,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_args st oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); oprot.writeBool(struct.deleteData); oprot.writeFieldEnd(); + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_table_argsTupleSchemeFactory implements SchemeFactory { - public drop_table_argsTupleScheme getScheme() { - return new drop_table_argsTupleScheme(); + private static class drop_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_argsTupleScheme getScheme() { + return new drop_table_with_environment_context_argsTupleScheme(); } } - private static class drop_table_argsTupleScheme extends TupleScheme { + private static class drop_table_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDbname()) { @@ -38514,7 +31950,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_args str if (struct.isSetDeleteData()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetEnvironment_context()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetDbname()) { oprot.writeString(struct.dbname); } @@ -38524,12 +31963,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_args str if (struct.isSetDeleteData()) { oprot.writeBool(struct.deleteData); } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_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.dbname = iprot.readString(); struct.setDbnameIsSet(true); @@ -38542,21 +31984,26 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_args stru struct.deleteData = iprot.readBool(); struct.setDeleteDataIsSet(true); } + if (incoming.get(3)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } } } } - public static class drop_table_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_table_result"); + public static class drop_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_table_with_environment_context_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_table_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_table_with_environment_context_resultTupleSchemeFactory()); } private NoSuchObjectException o1; // required @@ -38632,13 +32079,13 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_with_environment_context_result.class, metaDataMap); } - public drop_table_result() { + public drop_table_with_environment_context_result() { } - public drop_table_result( + public drop_table_with_environment_context_result( NoSuchObjectException o1, MetaException o3) { @@ -38650,7 +32097,7 @@ public drop_table_result( /** * Performs a deep copy on other. */ - public drop_table_result(drop_table_result other) { + public drop_table_with_environment_context_result(drop_table_with_environment_context_result other) { if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -38659,8 +32106,8 @@ public drop_table_result(drop_table_result other) { } } - public drop_table_result deepCopy() { - return new drop_table_result(this); + public drop_table_with_environment_context_result deepCopy() { + return new drop_table_with_environment_context_result(this); } @Override @@ -38767,12 +32214,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_table_result) - return this.equals((drop_table_result)that); + if (that instanceof drop_table_with_environment_context_result) + return this.equals((drop_table_with_environment_context_result)that); return false; } - public boolean equals(drop_table_result that) { + public boolean equals(drop_table_with_environment_context_result that) { if (that == null) return false; @@ -38799,45 +32246,45 @@ public boolean equals(drop_table_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_table_result other) { + public int compareTo(drop_table_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_table_with_environment_context_result typedOther = (drop_table_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -38859,7 +32306,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_table_result("); + StringBuilder sb = new StringBuilder("drop_table_with_environment_context_result("); boolean first = true; sb.append("o1:"); @@ -38902,15 +32349,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_table_resultStandardSchemeFactory implements SchemeFactory { - public drop_table_resultStandardScheme getScheme() { - return new drop_table_resultStandardScheme(); + private static class drop_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_resultStandardScheme getScheme() { + return new drop_table_with_environment_context_resultStandardScheme(); } } - private static class drop_table_resultStandardScheme extends StandardScheme { + private static class drop_table_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -38947,7 +32394,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -38967,16 +32414,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_result } - private static class drop_table_resultTupleSchemeFactory implements SchemeFactory { - public drop_table_resultTupleScheme getScheme() { - return new drop_table_resultTupleScheme(); + private static class drop_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public drop_table_with_environment_context_resultTupleScheme getScheme() { + return new drop_table_with_environment_context_resultTupleScheme(); } } - private static class drop_table_resultTupleScheme extends TupleScheme { + private static class drop_table_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -38995,7 +32442,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_result s } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -39013,31 +32460,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_result st } - public static class drop_table_with_environment_context_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_table_with_environment_context_args"); + public static class get_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_args"); - private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2); - 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)3); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); + 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 PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_table_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_argsTupleSchemeFactory()); } - private String dbname; // required - private String name; // required - private boolean deleteData; // required - private EnvironmentContext environment_context; // required + private String db_name; // required + private String pattern; // 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 { - DBNAME((short)1, "dbname"), - NAME((short)2, "name"), - DELETE_DATA((short)3, "deleteData"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + DB_NAME((short)1, "db_name"), + PATTERN((short)2, "pattern"); private static final Map byName = new HashMap(); @@ -39052,14 +32493,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_result st */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // NAME - return NAME; - case 3: // DELETE_DATA - return DELETE_DATA; - case 4: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 1: // DB_NAME + return DB_NAME; + case 2: // PATTERN + return PATTERN; default: return null; } @@ -39100,192 +32537,112 @@ public String getFieldName() { } // 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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", 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.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_args.class, metaDataMap); } - public drop_table_with_environment_context_args() { + public get_tables_args() { } - public drop_table_with_environment_context_args( - String dbname, - String name, - boolean deleteData, - EnvironmentContext environment_context) + public get_tables_args( + String db_name, + String pattern) { this(); - this.dbname = dbname; - this.name = name; - this.deleteData = deleteData; - setDeleteDataIsSet(true); - this.environment_context = environment_context; + this.db_name = db_name; + this.pattern = pattern; } /** * Performs a deep copy on other. */ - public drop_table_with_environment_context_args(drop_table_with_environment_context_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetName()) { - this.name = other.name; + public get_tables_args(get_tables_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; } - this.deleteData = other.deleteData; - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + if (other.isSetPattern()) { + this.pattern = other.pattern; } } - public drop_table_with_environment_context_args deepCopy() { - return new drop_table_with_environment_context_args(this); + public get_tables_args deepCopy() { + return new get_tables_args(this); } @Override public void clear() { - this.dbname = null; - this.name = null; - setDeleteDataIsSet(false); - this.deleteData = false; - this.environment_context = null; - } - - public String getDbname() { - return this.dbname; - } - - public void setDbname(String dbname) { - this.dbname = dbname; - } - - public void unsetDbname() { - this.dbname = null; - } - - /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ - public boolean isSetDbname() { - return this.dbname != null; - } - - public void setDbnameIsSet(boolean value) { - if (!value) { - this.dbname = null; - } + this.db_name = null; + this.pattern = null; } - public String getName() { - return this.name; + public String getDb_name() { + return this.db_name; } - public void setName(String name) { - this.name = name; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetName() { - this.name = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field name is set (has been assigned a value) and false otherwise */ - public boolean isSetName() { - return this.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 setNameIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.name = null; + this.db_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 EnvironmentContext getEnvironment_context() { - return this.environment_context; + public String getPattern() { + return this.pattern; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setPattern(String pattern) { + this.pattern = pattern; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetPattern() { + this.pattern = null; } - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; + /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ + public boolean isSetPattern() { + return this.pattern != null; } - public void setEnvironment_contextIsSet(boolean value) { + public void setPatternIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.pattern = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case NAME: - if (value == null) { - unsetName(); - } else { - setName((String)value); - } - break; - - case DELETE_DATA: + case DB_NAME: if (value == null) { - unsetDeleteData(); + unsetDb_name(); } else { - setDeleteData((Boolean)value); + setDb_name((String)value); } break; - case ENVIRONMENT_CONTEXT: + case PATTERN: if (value == null) { - unsetEnvironment_context(); + unsetPattern(); } else { - setEnvironment_context((EnvironmentContext)value); + setPattern((String)value); } break; @@ -39294,17 +32651,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case NAME: - return getName(); - - case DELETE_DATA: - return Boolean.valueOf(isDeleteData()); + case DB_NAME: + return getDb_name(); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case PATTERN: + return getPattern(); } throw new IllegalStateException(); @@ -39317,14 +32668,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case NAME: - return isSetName(); - case DELETE_DATA: - return isSetDeleteData(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case DB_NAME: + return isSetDb_name(); + case PATTERN: + return isSetPattern(); } throw new IllegalStateException(); } @@ -39333,48 +32680,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_table_with_environment_context_args) - return this.equals((drop_table_with_environment_context_args)that); + if (that instanceof get_tables_args) + return this.equals((get_tables_args)that); return false; } - public boolean equals(drop_table_with_environment_context_args that) { + public boolean equals(get_tables_args that) { if (that == null) return false; - boolean this_present_dbname = true && this.isSetDbname(); - boolean that_present_dbname = true && that.isSetDbname(); - if (this_present_dbname || that_present_dbname) { - if (!(this_present_dbname && that_present_dbname)) - return false; - if (!this.dbname.equals(that.dbname)) - return false; - } - - boolean this_present_name = true && this.isSetName(); - boolean that_present_name = true && that.isSetName(); - if (this_present_name || that_present_name) { - if (!(this_present_name && that_present_name)) - return false; - if (!this.name.equals(that.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_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.deleteData != that.deleteData) + if (!this.db_name.equals(that.db_name)) return false; } - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) + boolean this_present_pattern = true && this.isSetPattern(); + boolean that_present_pattern = true && that.isSetPattern(); + if (this_present_pattern || that_present_pattern) { + if (!(this_present_pattern && that_present_pattern)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (!this.pattern.equals(that.pattern)) return false; } @@ -39383,75 +32712,45 @@ public boolean equals(drop_table_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); - - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); - - boolean present_name = true && (isSetName()); - list.add(present_name); - if (present_name) - list.add(name); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); + boolean present_db_name = true && (isSetDb_name()); + builder.append(present_db_name); + if (present_db_name) + builder.append(db_name); - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_pattern = true && (isSetPattern()); + builder.append(present_pattern); + if (present_pattern) + builder.append(pattern); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_table_with_environment_context_args other) { + public int compareTo(get_tables_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_tables_args typedOther = (get_tables_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetPattern()).compareTo(typedOther.isSetPattern()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetPattern()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, typedOther.pattern); if (lastComparison != 0) { return lastComparison; } @@ -39473,34 +32772,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_table_with_environment_context_args("); + StringBuilder sb = new StringBuilder("get_tables_args("); boolean first = true; - sb.append("dbname:"); - if (this.dbname == null) { - sb.append("null"); - } else { - sb.append(this.dbname); - } - first = false; - if (!first) sb.append(", "); - sb.append("name:"); - if (this.name == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.name); + sb.append(this.db_name); } first = false; if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); - first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("pattern:"); + if (this.pattern == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.pattern); } first = false; sb.append(")"); @@ -39510,9 +32797,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -39525,23 +32809,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_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_argsStandardScheme getScheme() { - return new drop_table_with_environment_context_argsStandardScheme(); + private static class get_tables_argsStandardSchemeFactory implements SchemeFactory { + public get_tables_argsStandardScheme getScheme() { + return new get_tables_argsStandardScheme(); } } - private static class drop_table_with_environment_context_argsStandardScheme extends StandardScheme { + private static class get_tables_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -39551,35 +32833,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env break; } switch (schemeField.id) { - case 1: // DBNAME + case 1: // DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // NAME + case 2: // PATTERN if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // 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; - case 4: // ENVIRONMENT_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.pattern = iprot.readString(); + struct.setPatternIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -39593,26 +32858,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); - oprot.writeFieldEnd(); - } - if (struct.name != null) { - oprot.writeFieldBegin(NAME_FIELD_DESC); - oprot.writeString(struct.name); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); - oprot.writeBool(struct.deleteData); - oprot.writeFieldEnd(); - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.pattern != null) { + oprot.writeFieldBegin(PATTERN_FIELD_DESC); + oprot.writeString(struct.pattern); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -39621,90 +32878,69 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_en } - private static class drop_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_argsTupleScheme getScheme() { - return new drop_table_with_environment_context_argsTupleScheme(); + private static class get_tables_argsTupleSchemeFactory implements SchemeFactory { + public get_tables_argsTupleScheme getScheme() { + return new get_tables_argsTupleScheme(); } } - private static class drop_table_with_environment_context_argsTupleScheme extends TupleScheme { + private static class get_tables_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetName()) { + if (struct.isSetPattern()) { optionals.set(1); } - if (struct.isSetDeleteData()) { - optionals.set(2); - } - if (struct.isSetEnvironment_context()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetName()) { - oprot.writeString(struct.name); - } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); + oprot.writeBitSet(optionals, 2); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + if (struct.isSetPattern()) { + oprot.writeString(struct.pattern); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } if (incoming.get(1)) { - struct.name = iprot.readString(); - struct.setNameIsSet(true); - } - if (incoming.get(2)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); - } - if (incoming.get(3)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.pattern = iprot.readString(); + struct.setPatternIsSet(true); } } } } - public static class drop_table_with_environment_context_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_table_with_environment_context_result"); + public static class get_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_tables_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); - private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_table_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_table_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_tables_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_tables_resultTupleSchemeFactory()); } - private NoSuchObjectException o1; // required - private MetaException o3; // required + private List success; // required + private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - O1((short)1, "o1"), - O3((short)2, "o3"); + SUCCESS((short)0, "success"), + O1((short)1, "o1"); private static final Map byName = new HashMap(); @@ -39719,10 +32955,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_envi */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; - case 2: // O3 - return O3; default: return null; } @@ -39766,109 +33002,129 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.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)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_table_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_result.class, metaDataMap); } - public drop_table_with_environment_context_result() { + public get_tables_result() { } - public drop_table_with_environment_context_result( - NoSuchObjectException o1, - MetaException o3) + public get_tables_result( + List success, + MetaException o1) { this(); + this.success = success; this.o1 = o1; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public drop_table_with_environment_context_result(drop_table_with_environment_context_result other) { - if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + public get_tables_result(get_tables_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } + this.success = __this__success; } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); } } - public drop_table_with_environment_context_result deepCopy() { - return new drop_table_with_environment_context_result(this); + public get_tables_result deepCopy() { + return new get_tables_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; - this.o3 = null; } - public NoSuchObjectException getO1() { - return this.o1; + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); } - public void setO1(NoSuchObjectException o1) { - this.o1 = o1; + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); } - public void unsetO1() { - this.o1 = null; + public void addToSuccess(String elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); } - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != null; + public List getSuccess() { + return this.success; } - public void setO1IsSet(boolean value) { + public void setSuccess(List 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.o1 = null; + this.success = null; } } - public MetaException getO3() { - return this.o3; + public MetaException getO1() { + return this.o1; } - public void setO3(MetaException o3) { - this.o3 = o3; + public void setO1(MetaException o1) { + this.o1 = o1; } - public void unsetO3() { - this.o3 = null; + public void unsetO1() { + this.o1 = null; } - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; } - public void setO3IsSet(boolean value) { + public void setO1IsSet(boolean value) { if (!value) { - this.o3 = null; + this.o1 = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case O1: + case SUCCESS: if (value == null) { - unsetO1(); + unsetSuccess(); } else { - setO1((NoSuchObjectException)value); + setSuccess((List)value); } break; - case O3: + case O1: if (value == null) { - unsetO3(); + unsetO1(); } else { - setO3((MetaException)value); + setO1((MetaException)value); } break; @@ -39877,12 +33133,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -39894,10 +33150,10 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -39906,15 +33162,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_table_with_environment_context_result) - return this.equals((drop_table_with_environment_context_result)that); + if (that instanceof get_tables_result) + return this.equals((get_tables_result)that); return false; } - public boolean equals(drop_table_with_environment_context_result that) { + public boolean equals(get_tables_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) { @@ -39924,59 +33189,50 @@ public boolean equals(drop_table_with_environment_context_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_success = true && (isSetSuccess()); + builder.append(present_success); + if (present_success) + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); - - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_table_with_environment_context_result other) { + public int compareTo(get_tables_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_tables_result typedOther = (get_tables_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -39998,22 +33254,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_table_with_environment_context_result("); + StringBuilder sb = new StringBuilder("get_tables_result("); boolean first = true; - sb.append("o1:"); - if (this.o1 == null) { + sb.append("success:"); + if (this.success == null) { sb.append("null"); } else { - sb.append(this.o1); + sb.append(this.success); } first = false; if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { + sb.append("o1:"); + if (this.o1 == null) { sb.append("null"); } else { - sb.append(this.o3); + sb.append(this.o1); } first = false; sb.append(")"); @@ -40041,15 +33297,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_resultStandardScheme getScheme() { - return new drop_table_with_environment_context_resultStandardScheme(); + private static class get_tables_resultStandardSchemeFactory implements SchemeFactory { + public get_tables_resultStandardScheme getScheme() { + return new get_tables_resultStandardScheme(); } } - private static class drop_table_with_environment_context_resultStandardScheme extends StandardScheme { + private static class get_tables_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -40059,20 +33315,29 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env break; } switch (schemeField.id) { - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list590 = iprot.readListBegin(); + struct.success = new ArrayList(_list590.size); + for (int _i591 = 0; _i591 < _list590.size; ++_i591) + { + String _elem592; // required + _elem592 = iprot.readString(); + struct.success.add(_elem592); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O3 + case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -40086,91 +33351,109 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_table_with_env struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_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 _iter593 : struct.success) + { + oprot.writeString(_iter593); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public drop_table_with_environment_context_resultTupleScheme getScheme() { - return new drop_table_with_environment_context_resultTupleScheme(); + private static class get_tables_resultTupleSchemeFactory implements SchemeFactory { + public get_tables_resultTupleScheme getScheme() { + return new get_tables_resultTupleScheme(); } } - private static class drop_table_with_environment_context_resultTupleScheme extends TupleScheme { + private static class get_tables_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_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.isSetO3()) { + if (struct.isSetO1()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (String _iter594 : struct.success) + { + oprot.writeString(_iter594); + } + } + } if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); + { + org.apache.thrift.protocol.TList _list595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list595.size); + for (int _i596 = 0; _i596 < _list595.size; ++_i596) + { + String _elem597; // required + _elem597 = iprot.readString(); + struct.success.add(_elem597); + } + } + struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); } } } } - public static class get_tables_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_tables_args"); + public static class get_all_tables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_tables_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 PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_tables_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_all_tables_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_all_tables_argsTupleSchemeFactory()); } private String db_name; // required - private String pattern; // 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"), - PATTERN((short)2, "pattern"); + DB_NAME((short)1, "db_name"); private static final Map byName = new HashMap(); @@ -40187,8 +33470,6 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // DB_NAME return DB_NAME; - case 2: // PATTERN - return PATTERN; default: return null; } @@ -40234,44 +33515,36 @@ 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.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.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", 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_tables_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_args.class, metaDataMap); } - public get_tables_args() { + public get_all_tables_args() { } - public get_tables_args( - String db_name, - String pattern) + public get_all_tables_args( + String db_name) { this(); this.db_name = db_name; - this.pattern = pattern; } /** * Performs a deep copy on other. */ - public get_tables_args(get_tables_args other) { + public get_all_tables_args(get_all_tables_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } - if (other.isSetPattern()) { - this.pattern = other.pattern; - } } - public get_tables_args deepCopy() { - return new get_tables_args(this); + public get_all_tables_args deepCopy() { + return new get_all_tables_args(this); } @Override public void clear() { this.db_name = null; - this.pattern = null; } public String getDb_name() { @@ -40297,29 +33570,6 @@ public void setDb_nameIsSet(boolean value) { } } - public String getPattern() { - return this.pattern; - } - - public void setPattern(String pattern) { - this.pattern = pattern; - } - - public void unsetPattern() { - this.pattern = null; - } - - /** Returns true if field pattern is set (has been assigned a value) and false otherwise */ - public boolean isSetPattern() { - return this.pattern != null; - } - - public void setPatternIsSet(boolean value) { - if (!value) { - this.pattern = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -40330,14 +33580,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PATTERN: - if (value == null) { - unsetPattern(); - } else { - setPattern((String)value); - } - break; - } } @@ -40346,9 +33588,6 @@ public Object getFieldValue(_Fields field) { case DB_NAME: return getDb_name(); - case PATTERN: - return getPattern(); - } throw new IllegalStateException(); } @@ -40362,8 +33601,6 @@ public boolean isSet(_Fields field) { switch (field) { case DB_NAME: return isSetDb_name(); - case PATTERN: - return isSetPattern(); } throw new IllegalStateException(); } @@ -40372,12 +33609,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_args) - return this.equals((get_tables_args)that); + if (that instanceof get_all_tables_args) + return this.equals((get_all_tables_args)that); return false; } - public boolean equals(get_tables_args that) { + public boolean equals(get_all_tables_args that) { if (that == null) return false; @@ -40390,59 +33627,35 @@ public boolean equals(get_tables_args that) { return false; } - boolean this_present_pattern = true && this.isSetPattern(); - boolean that_present_pattern = true && that.isSetPattern(); - if (this_present_pattern || that_present_pattern) { - if (!(this_present_pattern && that_present_pattern)) - return false; - if (!this.pattern.equals(that.pattern)) - return false; - } - return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); - boolean present_pattern = true && (isSetPattern()); - list.add(present_pattern); - if (present_pattern) - list.add(pattern); - - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_tables_args other) { + public int compareTo(get_all_tables_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_all_tables_args typedOther = (get_all_tables_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.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(isSetPattern()).compareTo(other.isSetPattern()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPattern()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } @@ -40464,7 +33677,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_args("); + StringBuilder sb = new StringBuilder("get_all_tables_args("); boolean first = true; sb.append("db_name:"); @@ -40474,14 +33687,6 @@ public String toString() { sb.append(this.db_name); } first = false; - if (!first) sb.append(", "); - sb.append("pattern:"); - if (this.pattern == null) { - sb.append("null"); - } else { - sb.append(this.pattern); - } - first = false; sb.append(")"); return sb.toString(); } @@ -40507,15 +33712,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_argsStandardSchemeFactory implements SchemeFactory { - public get_tables_argsStandardScheme getScheme() { - return new get_tables_argsStandardScheme(); + private static class get_all_tables_argsStandardSchemeFactory implements SchemeFactory { + public get_all_tables_argsStandardScheme getScheme() { + return new get_all_tables_argsStandardScheme(); } } - private static class get_tables_argsStandardScheme extends StandardScheme { + private static class get_all_tables_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -40533,14 +33738,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args str org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // PATTERN - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.pattern = iprot.readString(); - struct.setPatternIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -40550,7 +33747,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -40559,71 +33756,56 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_args st oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } - if (struct.pattern != null) { - oprot.writeFieldBegin(PATTERN_FIELD_DESC); - oprot.writeString(struct.pattern); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_tables_argsTupleSchemeFactory implements SchemeFactory { - public get_tables_argsTupleScheme getScheme() { - return new get_tables_argsTupleScheme(); + private static class get_all_tables_argsTupleSchemeFactory implements SchemeFactory { + public get_all_tables_argsTupleScheme getScheme() { + return new get_all_tables_argsTupleScheme(); } } - private static class get_tables_argsTupleScheme extends TupleScheme { + private static class get_all_tables_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetPattern()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); + oprot.writeBitSet(optionals, 1); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } - if (struct.isSetPattern()) { - oprot.writeString(struct.pattern); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); } - if (incoming.get(1)) { - struct.pattern = iprot.readString(); - struct.setPatternIsSet(true); - } } } } - public static class get_tables_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_tables_result"); + public static class get_all_tables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_tables_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); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_tables_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_tables_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_all_tables_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_all_tables_resultTupleSchemeFactory()); } private List success; // required @@ -40700,13 +33882,13 @@ public String getFieldName() { tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_tables_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_result.class, metaDataMap); } - public get_tables_result() { + public get_all_tables_result() { } - public get_tables_result( + public get_all_tables_result( List success, MetaException o1) { @@ -40718,9 +33900,12 @@ public get_tables_result( /** * Performs a deep copy on other. */ - public get_tables_result(get_tables_result other) { + public get_all_tables_result(get_all_tables_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -40728,8 +33913,8 @@ public get_tables_result(get_tables_result other) { } } - public get_tables_result deepCopy() { - return new get_tables_result(this); + public get_all_tables_result deepCopy() { + return new get_all_tables_result(this); } @Override @@ -40851,12 +34036,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_tables_result) - return this.equals((get_tables_result)that); + if (that instanceof get_all_tables_result) + return this.equals((get_all_tables_result)that); return false; } - public boolean equals(get_tables_result that) { + public boolean equals(get_all_tables_result that) { if (that == null) return false; @@ -40883,45 +34068,45 @@ public boolean equals(get_tables_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_tables_result other) { + public int compareTo(get_all_tables_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_all_tables_result typedOther = (get_all_tables_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -40943,7 +34128,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_tables_result("); + StringBuilder sb = new StringBuilder("get_all_tables_result("); boolean first = true; sb.append("success:"); @@ -40986,15 +34171,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_tables_resultStandardSchemeFactory implements SchemeFactory { - public get_tables_resultStandardScheme getScheme() { - return new get_tables_resultStandardScheme(); + private static class get_all_tables_resultStandardSchemeFactory implements SchemeFactory { + public get_all_tables_resultStandardScheme getScheme() { + return new get_all_tables_resultStandardScheme(); } } - private static class get_tables_resultStandardScheme extends StandardScheme { + private static class get_all_tables_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41007,13 +34192,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list590 = iprot.readListBegin(); - struct.success = new ArrayList(_list590.size); - String _elem591; - for (int _i592 = 0; _i592 < _list590.size; ++_i592) + org.apache.thrift.protocol.TList _list598 = iprot.readListBegin(); + struct.success = new ArrayList(_list598.size); + for (int _i599 = 0; _i599 < _list598.size; ++_i599) { - _elem591 = iprot.readString(); - struct.success.add(_elem591); + String _elem600; // required + _elem600 = iprot.readString(); + struct.success.add(_elem600); } iprot.readListEnd(); } @@ -41040,7 +34225,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -41048,9 +34233,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter593 : struct.success) + for (String _iter601 : struct.success) { - oprot.writeString(_iter593); + oprot.writeString(_iter601); } oprot.writeListEnd(); } @@ -41067,16 +34252,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result } - private static class get_tables_resultTupleSchemeFactory implements SchemeFactory { - public get_tables_resultTupleScheme getScheme() { - return new get_tables_resultTupleScheme(); + private static class get_all_tables_resultTupleSchemeFactory implements SchemeFactory { + public get_all_tables_resultTupleScheme getScheme() { + return new get_all_tables_resultTupleScheme(); } } - private static class get_tables_resultTupleScheme extends TupleScheme { + private static class get_all_tables_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -41089,9 +34274,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter594 : struct.success) + for (String _iter602 : struct.success) { - oprot.writeString(_iter594); + oprot.writeString(_iter602); } } } @@ -41101,18 +34286,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list595.size); - String _elem596; - for (int _i597 = 0; _i597 < _list595.size; ++_i597) + org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list603.size); + for (int _i604 = 0; _i604 < _list603.size; ++_i604) { - _elem596 = iprot.readString(); - struct.success.add(_elem596); + String _elem605; // required + _elem605 = iprot.readString(); + struct.success.add(_elem605); } } struct.setSuccessIsSet(true); @@ -41127,22 +34312,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st } - public static class get_all_tables_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_all_tables_args"); + public static class get_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_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 DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_all_tables_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_all_tables_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_argsTupleSchemeFactory()); } - private String db_name; // required + private String dbname; // required + private String 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"); + DBNAME((short)1, "dbname"), + TBL_NAME((short)2, "tbl_name"); private static final Map byName = new HashMap(); @@ -41157,8 +34345,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; + case 1: // DBNAME + return DBNAME; + case 2: // TBL_NAME + return TBL_NAME; default: return null; } @@ -41202,70 +34392,109 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", 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))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_all_tables_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_args.class, metaDataMap); } - public get_all_tables_args() { + public get_table_args() { } - public get_all_tables_args( - String db_name) + public get_table_args( + String dbname, + String tbl_name) { this(); - this.db_name = db_name; + this.dbname = dbname; + this.tbl_name = tbl_name; } /** * Performs a deep copy on other. */ - public get_all_tables_args(get_all_tables_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; + public get_table_args(get_table_args other) { + if (other.isSetDbname()) { + this.dbname = other.dbname; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; } } - public get_all_tables_args deepCopy() { - return new get_all_tables_args(this); + public get_table_args deepCopy() { + return new get_table_args(this); } @Override public void clear() { - this.db_name = null; + this.dbname = null; + this.tbl_name = null; } - public String getDb_name() { - return this.db_name; + public String getDbname() { + return this.dbname; } - public void setDb_name(String db_name) { - this.db_name = db_name; + public void setDbname(String dbname) { + this.dbname = dbname; } - public void unsetDb_name() { - this.db_name = null; + public void unsetDbname() { + this.dbname = 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; + /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ + public boolean isSetDbname() { + return this.dbname != null; } - public void setDb_nameIsSet(boolean value) { + public void setDbnameIsSet(boolean value) { if (!value) { - this.db_name = null; + this.dbname = 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 void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + case DBNAME: if (value == null) { - unsetDb_name(); + unsetDbname(); } else { - setDb_name((String)value); + setDbname((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); } break; @@ -41274,8 +34503,11 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); + case DBNAME: + return getDbname(); + + case TBL_NAME: + return getTbl_name(); } throw new IllegalStateException(); @@ -41288,8 +34520,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); + case DBNAME: + return isSetDbname(); + case TBL_NAME: + return isSetTbl_name(); } throw new IllegalStateException(); } @@ -41298,21 +34532,30 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_all_tables_args) - return this.equals((get_all_tables_args)that); + if (that instanceof get_table_args) + return this.equals((get_table_args)that); return false; } - public boolean equals(get_all_tables_args that) { + public boolean equals(get_table_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_dbname = true && this.isSetDbname(); + boolean that_present_dbname = true && that.isSetDbname(); + if (this_present_dbname || that_present_dbname) { + if (!(this_present_dbname && that_present_dbname)) return false; - if (!this.db_name.equals(that.db_name)) + if (!this.dbname.equals(that.dbname)) + 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; } @@ -41321,30 +34564,45 @@ public boolean equals(get_all_tables_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); + boolean present_dbname = true && (isSetDbname()); + builder.append(present_dbname); + if (present_dbname) + builder.append(dbname); + + boolean present_tbl_name = true && (isSetTbl_name()); + builder.append(present_tbl_name); + if (present_tbl_name) + builder.append(tbl_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_all_tables_args other) { + public int compareTo(get_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_args typedOther = (get_table_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (isSetDbname()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -41366,14 +34624,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_all_tables_args("); + StringBuilder sb = new StringBuilder("get_table_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { + sb.append("dbname:"); + if (this.dbname == null) { sb.append("null"); } else { - sb.append(this.db_name); + sb.append(this.dbname); + } + 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; sb.append(")"); @@ -41401,15 +34667,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_all_tables_argsStandardSchemeFactory implements SchemeFactory { - public get_all_tables_argsStandardScheme getScheme() { - return new get_all_tables_argsStandardScheme(); + private static class get_table_argsStandardSchemeFactory implements SchemeFactory { + public get_table_argsStandardScheme getScheme() { + return new get_table_argsStandardScheme(); } } - private static class get_all_tables_argsStandardScheme extends StandardScheme { + private static class get_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41419,10 +34685,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args break; } switch (schemeField.id) { - case 1: // DB_NAME + case 1: // DBNAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(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); } @@ -41436,13 +34710,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_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.dbname != null) { + oprot.writeFieldBegin(DBNAME_FIELD_DESC); + oprot.writeString(struct.dbname); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -41451,59 +34730,72 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_arg } - private static class get_all_tables_argsTupleSchemeFactory implements SchemeFactory { - public get_all_tables_argsTupleScheme getScheme() { - return new get_all_tables_argsTupleScheme(); + private static class get_table_argsTupleSchemeFactory implements SchemeFactory { + public get_table_argsTupleScheme getScheme() { + return new get_table_argsTupleScheme(); } } - private static class get_all_tables_argsTupleScheme extends TupleScheme { + private static class get_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetDbname()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetTbl_name()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetDbname()) { + oprot.writeString(struct.dbname); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.dbname = iprot.readString(); + struct.setDbnameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } } } } - public static class get_all_tables_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_all_tables_result"); + public static class get_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final 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_all_tables_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_all_tables_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_resultTupleSchemeFactory()); } - private List success; // required + private Table 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"); + O1((short)1, "o1"), + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -41522,6 +34814,8 @@ public static _Fields findByThriftId(int fieldId) { return SUCCESS; case 1: // O1 return O1; + case 2: // O2 + return O2; default: return null; } @@ -41566,69 +34860,60 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.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_all_tables_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_result.class, metaDataMap); } - public get_all_tables_result() { + public get_table_result() { } - public get_all_tables_result( - List success, - MetaException o1) + public get_table_result( + Table success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; this.o1 = o1; + this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_all_tables_result(get_all_tables_result other) { + public get_table_result(get_table_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); - this.success = __this__success; + this.success = new Table(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } + if (other.isSetO2()) { + this.o2 = new NoSuchObjectException(other.o2); + } } - public get_all_tables_result deepCopy() { - return new get_all_tables_result(this); + public get_table_result deepCopy() { + return new get_table_result(this); } @Override public void clear() { this.success = null; this.o1 = null; + this.o2 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(String elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public Table getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(Table success) { this.success = success; } @@ -41670,13 +34955,36 @@ public void setO1IsSet(boolean value) { } } + 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((List)value); + setSuccess((Table)value); } break; @@ -41688,6 +34996,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((NoSuchObjectException)value); + } + break; + } } @@ -41699,6 +35015,9 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); + case O2: + return getO2(); + } throw new IllegalStateException(); } @@ -41714,6 +35033,8 @@ public boolean isSet(_Fields field) { return isSetSuccess(); case O1: return isSetO1(); + case O2: + return isSetO2(); } throw new IllegalStateException(); } @@ -41722,12 +35043,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_all_tables_result) - return this.equals((get_all_tables_result)that); + if (that instanceof get_table_result) + return this.equals((get_table_result)that); return false; } - public boolean equals(get_all_tables_result that) { + public boolean equals(get_table_result that) { if (that == null) return false; @@ -41749,50 +35070,74 @@ public boolean equals(get_all_tables_result that) { 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(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + boolean present_o2 = true && (isSetO2()); + builder.append(present_o2); + if (present_o2) + builder.append(o2); + + return builder.toHashCode(); } - @Override - public int compareTo(get_all_tables_result other) { + public int compareTo(get_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_result typedOther = (get_table_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -41814,7 +35159,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_all_tables_result("); + StringBuilder sb = new StringBuilder("get_table_result("); boolean first = true; sb.append("success:"); @@ -41832,6 +35177,14 @@ public String toString() { 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(); } @@ -41839,6 +35192,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -41857,15 +35213,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_all_tables_resultStandardSchemeFactory implements SchemeFactory { - public get_all_tables_resultStandardScheme getScheme() { - return new get_all_tables_resultStandardScheme(); + private static class get_table_resultStandardSchemeFactory implements SchemeFactory { + public get_table_resultStandardScheme getScheme() { + return new get_table_resultStandardScheme(); } } - private static class get_all_tables_resultStandardScheme extends StandardScheme { + private static class get_table_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -41876,18 +35232,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list598 = iprot.readListBegin(); - struct.success = new ArrayList(_list598.size); - String _elem599; - for (int _i600 = 0; _i600 < _list598.size; ++_i600) - { - _elem599 = iprot.readString(); - struct.success.add(_elem599); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Table(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -41902,6 +35249,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu 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 { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -41911,20 +35267,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_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 _iter601 : struct.success) - { - oprot.writeString(_iter601); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -41932,22 +35281,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_res 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 get_all_tables_resultTupleSchemeFactory implements SchemeFactory { - public get_all_tables_resultTupleScheme getScheme() { - return new get_all_tables_resultTupleScheme(); + private static class get_table_resultTupleSchemeFactory implements SchemeFactory { + public get_table_resultTupleScheme getScheme() { + return new get_table_resultTupleScheme(); } } - private static class get_all_tables_resultTupleScheme extends TupleScheme { + private static class get_table_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -41956,36 +35310,28 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu 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 _iter602 : struct.success) - { - oprot.writeString(_iter602); - } - } + struct.success.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_all_tables_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_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 _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list603.size); - String _elem604; - for (int _i605 = 0; _i605 < _list603.size; ++_i605) - { - _elem604 = iprot.readString(); - struct.success.add(_elem604); - } - } + struct.success = new Table(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -41993,30 +35339,35 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul struct.o1.read(iprot); struct.setO1IsSet(true); } + if (incoming.get(2)) { + struct.o2 = new NoSuchObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } } } } - public static class get_table_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_table_args"); + public static class get_table_objects_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_by_name_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", 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 TBL_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_names", org.apache.thrift.protocol.TType.LIST, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_objects_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_objects_by_name_argsTupleSchemeFactory()); } private String dbname; // required - private String tbl_name; // required + private List tbl_names; // 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 { DBNAME((short)1, "dbname"), - TBL_NAME((short)2, "tbl_name"); + TBL_NAMES((short)2, "tbl_names"); private static final Map byName = new HashMap(); @@ -42033,8 +35384,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // DBNAME return DBNAME; - case 2: // TBL_NAME - return TBL_NAME; + case 2: // TBL_NAMES + return TBL_NAMES; default: return null; } @@ -42080,44 +35431,49 @@ 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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", 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.TBL_NAMES, new org.apache.thrift.meta_data.FieldMetaData("tbl_names", 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)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_args.class, metaDataMap); } - public get_table_args() { + public get_table_objects_by_name_args() { } - public get_table_args( + public get_table_objects_by_name_args( String dbname, - String tbl_name) + List tbl_names) { this(); this.dbname = dbname; - this.tbl_name = tbl_name; + this.tbl_names = tbl_names; } /** * Performs a deep copy on other. */ - public get_table_args(get_table_args other) { + public get_table_objects_by_name_args(get_table_objects_by_name_args other) { if (other.isSetDbname()) { this.dbname = other.dbname; } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + if (other.isSetTbl_names()) { + List __this__tbl_names = new ArrayList(); + for (String other_element : other.tbl_names) { + __this__tbl_names.add(other_element); + } + this.tbl_names = __this__tbl_names; } } - public get_table_args deepCopy() { - return new get_table_args(this); + public get_table_objects_by_name_args deepCopy() { + return new get_table_objects_by_name_args(this); } @Override public void clear() { this.dbname = null; - this.tbl_name = null; + this.tbl_names = null; } public String getDbname() { @@ -42143,26 +35499,41 @@ public void setDbnameIsSet(boolean value) { } } - public String getTbl_name() { - return this.tbl_name; + public int getTbl_namesSize() { + return (this.tbl_names == null) ? 0 : this.tbl_names.size(); } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public java.util.Iterator getTbl_namesIterator() { + return (this.tbl_names == null) ? null : this.tbl_names.iterator(); } - public void unsetTbl_name() { - this.tbl_name = null; + public void addToTbl_names(String elem) { + if (this.tbl_names == null) { + this.tbl_names = new ArrayList(); + } + this.tbl_names.add(elem); } - /** 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 List getTbl_names() { + return this.tbl_names; } - public void setTbl_nameIsSet(boolean value) { + public void setTbl_names(List tbl_names) { + this.tbl_names = tbl_names; + } + + public void unsetTbl_names() { + this.tbl_names = null; + } + + /** Returns true if field tbl_names is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_names() { + return this.tbl_names != null; + } + + public void setTbl_namesIsSet(boolean value) { if (!value) { - this.tbl_name = null; + this.tbl_names = null; } } @@ -42176,11 +35547,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case TBL_NAME: + case TBL_NAMES: if (value == null) { - unsetTbl_name(); + unsetTbl_names(); } else { - setTbl_name((String)value); + setTbl_names((List)value); } break; @@ -42192,8 +35563,8 @@ public Object getFieldValue(_Fields field) { case DBNAME: return getDbname(); - case TBL_NAME: - return getTbl_name(); + case TBL_NAMES: + return getTbl_names(); } throw new IllegalStateException(); @@ -42208,8 +35579,8 @@ public boolean isSet(_Fields field) { switch (field) { case DBNAME: return isSetDbname(); - case TBL_NAME: - return isSetTbl_name(); + case TBL_NAMES: + return isSetTbl_names(); } throw new IllegalStateException(); } @@ -42218,12 +35589,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_args) - return this.equals((get_table_args)that); + if (that instanceof get_table_objects_by_name_args) + return this.equals((get_table_objects_by_name_args)that); return false; } - public boolean equals(get_table_args that) { + public boolean equals(get_table_objects_by_name_args that) { if (that == null) return false; @@ -42236,12 +35607,12 @@ public boolean equals(get_table_args that) { 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_tbl_names = true && this.isSetTbl_names(); + boolean that_present_tbl_names = true && that.isSetTbl_names(); + if (this_present_tbl_names || that_present_tbl_names) { + if (!(this_present_tbl_names && that_present_tbl_names)) return false; - if (!this.tbl_name.equals(that.tbl_name)) + if (!this.tbl_names.equals(that.tbl_names)) return false; } @@ -42250,45 +35621,45 @@ public boolean equals(get_table_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); + boolean present_tbl_names = true && (isSetTbl_names()); + builder.append(present_tbl_names); + if (present_tbl_names) + builder.append(tbl_names); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_table_args other) { + public int compareTo(get_table_objects_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_objects_by_name_args typedOther = (get_table_objects_by_name_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_names()).compareTo(typedOther.isSetTbl_names()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (isSetTbl_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_names, typedOther.tbl_names); if (lastComparison != 0) { return lastComparison; } @@ -42310,7 +35681,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_args("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_args("); boolean first = true; sb.append("dbname:"); @@ -42321,11 +35692,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("tbl_names:"); + if (this.tbl_names == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.tbl_names); } first = false; sb.append(")"); @@ -42353,15 +35724,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_argsStandardSchemeFactory implements SchemeFactory { - public get_table_argsStandardScheme getScheme() { - return new get_table_argsStandardScheme(); + private static class get_table_objects_by_name_argsStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_argsStandardScheme getScheme() { + return new get_table_objects_by_name_argsStandardScheme(); } } - private static class get_table_argsStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -42379,10 +35750,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args stru 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); + case 2: // TBL_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list606.size); + for (int _i607 = 0; _i607 < _list606.size; ++_i607) + { + String _elem608; // required + _elem608 = iprot.readString(); + struct.tbl_names.add(_elem608); + } + iprot.readListEnd(); + } + struct.setTbl_namesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -42396,7 +35777,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_args stru struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -42405,9 +35786,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_args str oprot.writeString(struct.dbname); oprot.writeFieldEnd(); } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); + if (struct.tbl_names != null) { + oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); + for (String _iter609 : struct.tbl_names) + { + oprot.writeString(_iter609); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -42416,35 +35804,41 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_args str } - private static class get_table_argsTupleSchemeFactory implements SchemeFactory { - public get_table_argsTupleScheme getScheme() { - return new get_table_argsTupleScheme(); + private static class get_table_objects_by_name_argsTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_argsTupleScheme getScheme() { + return new get_table_objects_by_name_argsTupleScheme(); } } - private static class get_table_argsTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDbname()) { optionals.set(0); } - if (struct.isSetTbl_name()) { + if (struct.isSetTbl_names()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetDbname()) { oprot.writeString(struct.dbname); } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); + if (struct.isSetTbl_names()) { + { + oprot.writeI32(struct.tbl_names.size()); + for (String _iter610 : struct.tbl_names) + { + oprot.writeString(_iter610); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -42452,36 +35846,48 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_args struc struct.setDbnameIsSet(true); } if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + { + org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list611.size); + for (int _i612 = 0; _i612 < _list611.size; ++_i612) + { + String _elem613; // required + _elem613 = iprot.readString(); + struct.tbl_names.add(_elem613); + } + } + struct.setTbl_namesIsSet(true); } } } } - public static class get_table_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_table_result"); + public static class get_table_objects_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_objects_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 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 org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_objects_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_objects_by_name_resultTupleSchemeFactory()); } - private Table success; // required + private List
success; // required private MetaException o1; // required - private NoSuchObjectException o2; // required + private InvalidOperationException o2; // required + private UnknownDBException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -42502,6 +35908,8 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -42546,46 +35954,58 @@ 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, Table.class))); + 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, Table.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))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_result.class, metaDataMap); } - public get_table_result() { + public get_table_objects_by_name_result() { } - public get_table_result( - Table success, + public get_table_objects_by_name_result( + List
success, MetaException o1, - NoSuchObjectException o2) + InvalidOperationException o2, + UnknownDBException o3) { this(); this.success = success; this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_table_result(get_table_result other) { + public get_table_objects_by_name_result(get_table_objects_by_name_result other) { if (other.isSetSuccess()) { - this.success = new Table(other.success); + List
__this__success = new ArrayList
(); + for (Table other_element : other.success) { + __this__success.add(new Table(other_element)); + } + this.success = __this__success; } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new InvalidOperationException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new UnknownDBException(other.o3); } } - public get_table_result deepCopy() { - return new get_table_result(this); + public get_table_objects_by_name_result deepCopy() { + return new get_table_objects_by_name_result(this); } @Override @@ -42593,13 +36013,29 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; } - public Table 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(Table elem) { + if (this.success == null) { + this.success = new ArrayList
(); + } + this.success.add(elem); + } + + public List
getSuccess() { return this.success; } - public void setSuccess(Table success) { + public void setSuccess(List
success) { this.success = success; } @@ -42641,11 +36077,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public InvalidOperationException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(InvalidOperationException o2) { this.o2 = o2; } @@ -42664,13 +36100,36 @@ public void setO2IsSet(boolean value) { } } + public UnknownDBException getO3() { + return this.o3; + } + + public void setO3(UnknownDBException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Table)value); + setSuccess((List
)value); } break; @@ -42686,7 +36145,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((InvalidOperationException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((UnknownDBException)value); } break; @@ -42704,6 +36171,9 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -42721,6 +36191,8 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -42729,12 +36201,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_result) - return this.equals((get_table_result)that); + if (that instanceof get_table_objects_by_name_result) + return this.equals((get_table_objects_by_name_result)that); return false; } - public boolean equals(get_table_result that) { + public boolean equals(get_table_objects_by_name_result that) { if (that == null) return false; @@ -42765,65 +36237,89 @@ public boolean equals(get_table_result that) { return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + boolean present_o3 = true && (isSetO3()); + builder.append(present_o3); + if (present_o3) + builder.append(o3); + + return builder.toHashCode(); } - @Override - public int compareTo(get_table_result other) { + public int compareTo(get_table_objects_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_objects_by_name_result typedOther = (get_table_objects_by_name_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -42845,7 +36341,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_result("); + StringBuilder sb = new StringBuilder("get_table_objects_by_name_result("); boolean first = true; sb.append("success:"); @@ -42871,6 +36367,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -42878,9 +36382,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 { @@ -42899,15 +36400,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_resultStandardSchemeFactory implements SchemeFactory { - public get_table_resultStandardScheme getScheme() { - return new get_table_resultStandardScheme(); + private static class get_table_objects_by_name_resultStandardSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_resultStandardScheme getScheme() { + return new get_table_objects_by_name_resultStandardScheme(); } } - private static class get_table_resultStandardScheme extends StandardScheme { + private static class get_table_objects_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -42918,9 +36419,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result st } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Table(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list614 = iprot.readListBegin(); + struct.success = new ArrayList
(_list614.size); + for (int _i615 = 0; _i615 < _list614.size; ++_i615) + { + Table _elem616; // required + _elem616 = new Table(); + _elem616.read(iprot); + struct.success.add(_elem616); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -42937,13 +36448,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result st break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new InvalidOperationException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -42953,13 +36473,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_result st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_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.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Table _iter617 : struct.success) + { + _iter617.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -42972,22 +36499,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_result s struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_resultTupleSchemeFactory implements SchemeFactory { - public get_table_resultTupleScheme getScheme() { - return new get_table_resultTupleScheme(); + private static class get_table_objects_by_name_resultTupleSchemeFactory implements SchemeFactory { + public get_table_objects_by_name_resultTupleScheme getScheme() { + return new get_table_objects_by_name_resultTupleScheme(); } } - private static class get_table_resultTupleScheme extends TupleScheme { + private static class get_table_objects_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -42999,9 +36531,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result st if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (Table _iter618 : struct.success) + { + _iter618.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -43009,15 +36550,27 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_result st if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_result 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.success = new Table(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list619.size); + for (int _i620 = 0; _i620 < _list619.size; ++_i620) + { + Table _elem621; // required + _elem621 = new Table(); + _elem621.read(iprot); + struct.success.add(_elem621); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -43026,34 +36579,42 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_result str struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new InvalidOperationException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new UnknownDBException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - public static class get_table_objects_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_table_objects_by_name_args"); + public static class get_table_names_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_names_by_filter_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_names", org.apache.thrift.protocol.TType.LIST, (short)2); + private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField MAX_TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_tables", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_objects_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_names_by_filter_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_names_by_filter_argsTupleSchemeFactory()); } private String dbname; // required - private List tbl_names; // required + private String filter; // required + private short max_tables; // 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 { DBNAME((short)1, "dbname"), - TBL_NAMES((short)2, "tbl_names"); + FILTER((short)2, "filter"), + MAX_TABLES((short)3, "max_tables"); private static final Map byName = new HashMap(); @@ -43070,8 +36631,10 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // DBNAME return DBNAME; - case 2: // TBL_NAMES - return TBL_NAMES; + case 2: // FILTER + return FILTER; + case 3: // MAX_TABLES + return MAX_TABLES; default: return null; } @@ -43112,51 +36675,62 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_TABLES_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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAMES, new org.apache.thrift.meta_data.FieldMetaData("tbl_names", 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)))); + tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_TABLES, new org.apache.thrift.meta_data.FieldMetaData("max_tables", 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_table_objects_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_args.class, metaDataMap); } - public get_table_objects_by_name_args() { + public get_table_names_by_filter_args() { + this.max_tables = (short)-1; + } - public get_table_objects_by_name_args( + public get_table_names_by_filter_args( String dbname, - List tbl_names) + String filter, + short max_tables) { this(); this.dbname = dbname; - this.tbl_names = tbl_names; + this.filter = filter; + this.max_tables = max_tables; + setMax_tablesIsSet(true); } /** * Performs a deep copy on other. */ - public get_table_objects_by_name_args(get_table_objects_by_name_args other) { + public get_table_names_by_filter_args(get_table_names_by_filter_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDbname()) { this.dbname = other.dbname; } - if (other.isSetTbl_names()) { - List __this__tbl_names = new ArrayList(other.tbl_names); - this.tbl_names = __this__tbl_names; + if (other.isSetFilter()) { + this.filter = other.filter; } + this.max_tables = other.max_tables; } - public get_table_objects_by_name_args deepCopy() { - return new get_table_objects_by_name_args(this); + public get_table_names_by_filter_args deepCopy() { + return new get_table_names_by_filter_args(this); } @Override public void clear() { this.dbname = null; - this.tbl_names = null; + this.filter = null; + this.max_tables = (short)-1; + } public String getDbname() { @@ -43182,42 +36756,49 @@ public void setDbnameIsSet(boolean value) { } } - public int getTbl_namesSize() { - return (this.tbl_names == null) ? 0 : this.tbl_names.size(); + public String getFilter() { + return this.filter; } - public java.util.Iterator getTbl_namesIterator() { - return (this.tbl_names == null) ? null : this.tbl_names.iterator(); + public void setFilter(String filter) { + this.filter = filter; } - public void addToTbl_names(String elem) { - if (this.tbl_names == null) { - this.tbl_names = new ArrayList(); + public void unsetFilter() { + this.filter = null; + } + + /** Returns true if field filter is set (has been assigned a value) and false otherwise */ + public boolean isSetFilter() { + return this.filter != null; + } + + public void setFilterIsSet(boolean value) { + if (!value) { + this.filter = null; } - this.tbl_names.add(elem); } - public List getTbl_names() { - return this.tbl_names; + public short getMax_tables() { + return this.max_tables; } - public void setTbl_names(List tbl_names) { - this.tbl_names = tbl_names; + public void setMax_tables(short max_tables) { + this.max_tables = max_tables; + setMax_tablesIsSet(true); } - public void unsetTbl_names() { - this.tbl_names = null; + public void unsetMax_tables() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_TABLES_ISSET_ID); } - /** Returns true if field tbl_names is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_names() { - return this.tbl_names != null; + /** Returns true if field max_tables is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_tables() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_TABLES_ISSET_ID); } - public void setTbl_namesIsSet(boolean value) { - if (!value) { - this.tbl_names = null; - } + public void setMax_tablesIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_TABLES_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -43230,11 +36811,19 @@ public void setFieldValue(_Fields field, Object value) { } break; - case TBL_NAMES: + case FILTER: if (value == null) { - unsetTbl_names(); + unsetFilter(); } else { - setTbl_names((List)value); + setFilter((String)value); + } + break; + + case MAX_TABLES: + if (value == null) { + unsetMax_tables(); + } else { + setMax_tables((Short)value); } break; @@ -43246,8 +36835,11 @@ public Object getFieldValue(_Fields field) { case DBNAME: return getDbname(); - case TBL_NAMES: - return getTbl_names(); + case FILTER: + return getFilter(); + + case MAX_TABLES: + return Short.valueOf(getMax_tables()); } throw new IllegalStateException(); @@ -43262,8 +36854,10 @@ public boolean isSet(_Fields field) { switch (field) { case DBNAME: return isSetDbname(); - case TBL_NAMES: - return isSetTbl_names(); + case FILTER: + return isSetFilter(); + case MAX_TABLES: + return isSetMax_tables(); } throw new IllegalStateException(); } @@ -43272,12 +36866,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_objects_by_name_args) - return this.equals((get_table_objects_by_name_args)that); + if (that instanceof get_table_names_by_filter_args) + return this.equals((get_table_names_by_filter_args)that); return false; } - public boolean equals(get_table_objects_by_name_args that) { + public boolean equals(get_table_names_by_filter_args that) { if (that == null) return false; @@ -43290,12 +36884,21 @@ public boolean equals(get_table_objects_by_name_args that) { return false; } - boolean this_present_tbl_names = true && this.isSetTbl_names(); - boolean that_present_tbl_names = true && that.isSetTbl_names(); - if (this_present_tbl_names || that_present_tbl_names) { - if (!(this_present_tbl_names && that_present_tbl_names)) + boolean this_present_filter = true && this.isSetFilter(); + boolean that_present_filter = true && that.isSetFilter(); + if (this_present_filter || that_present_filter) { + if (!(this_present_filter && that_present_filter)) return false; - if (!this.tbl_names.equals(that.tbl_names)) + if (!this.filter.equals(that.filter)) + return false; + } + + boolean this_present_max_tables = true; + boolean that_present_max_tables = true; + if (this_present_max_tables || that_present_max_tables) { + if (!(this_present_max_tables && that_present_max_tables)) + return false; + if (this.max_tables != that.max_tables) return false; } @@ -43304,45 +36907,60 @@ public boolean equals(get_table_objects_by_name_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); - boolean present_tbl_names = true && (isSetTbl_names()); - list.add(present_tbl_names); - if (present_tbl_names) - list.add(tbl_names); + boolean present_filter = true && (isSetFilter()); + builder.append(present_filter); + if (present_filter) + builder.append(filter); + + boolean present_max_tables = true; + builder.append(present_max_tables); + if (present_max_tables) + builder.append(max_tables); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_table_objects_by_name_args other) { + public int compareTo(get_table_names_by_filter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_names_by_filter_args typedOther = (get_table_names_by_filter_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_names()).compareTo(other.isSetTbl_names()); + lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_names, other.tbl_names); + if (isSetFilter()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, typedOther.filter); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMax_tables()).compareTo(typedOther.isSetMax_tables()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMax_tables()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_tables, typedOther.max_tables); if (lastComparison != 0) { return lastComparison; } @@ -43364,7 +36982,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_objects_by_name_args("); + StringBuilder sb = new StringBuilder("get_table_names_by_filter_args("); boolean first = true; sb.append("dbname:"); @@ -43375,13 +36993,17 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("tbl_names:"); - if (this.tbl_names == null) { + sb.append("filter:"); + if (this.filter == null) { sb.append("null"); } else { - sb.append(this.tbl_names); + sb.append(this.filter); } first = false; + if (!first) sb.append(", "); + sb.append("max_tables:"); + sb.append(this.max_tables); + first = false; sb.append(")"); return sb.toString(); } @@ -43401,21 +37023,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_table_objects_by_name_argsStandardSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_argsStandardScheme getScheme() { - return new get_table_objects_by_name_argsStandardScheme(); + private static class get_table_names_by_filter_argsStandardSchemeFactory implements SchemeFactory { + public get_table_names_by_filter_argsStandardScheme getScheme() { + return new get_table_names_by_filter_argsStandardScheme(); } } - private static class get_table_objects_by_name_argsStandardScheme extends StandardScheme { + private static class get_table_names_by_filter_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -43433,20 +37057,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TBL_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list606.size); - String _elem607; - for (int _i608 = 0; _i608 < _list606.size; ++_i608) - { - _elem607 = iprot.readString(); - struct.tbl_names.add(_elem607); - } - iprot.readListEnd(); - } - struct.setTbl_namesIsSet(true); + case 2: // FILTER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // MAX_TABLES + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_tables = iprot.readI16(); + struct.setMax_tablesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -43460,7 +37082,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -43469,85 +37091,76 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeString(struct.dbname); oprot.writeFieldEnd(); } - if (struct.tbl_names != null) { - oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); - for (String _iter609 : struct.tbl_names) - { - oprot.writeString(_iter609); - } - oprot.writeListEnd(); - } + if (struct.filter != null) { + oprot.writeFieldBegin(FILTER_FIELD_DESC); + oprot.writeString(struct.filter); oprot.writeFieldEnd(); } + oprot.writeFieldBegin(MAX_TABLES_FIELD_DESC); + oprot.writeI16(struct.max_tables); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_objects_by_name_argsTupleSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_argsTupleScheme getScheme() { - return new get_table_objects_by_name_argsTupleScheme(); + private static class get_table_names_by_filter_argsTupleSchemeFactory implements SchemeFactory { + public get_table_names_by_filter_argsTupleScheme getScheme() { + return new get_table_names_by_filter_argsTupleScheme(); } } - private static class get_table_objects_by_name_argsTupleScheme extends TupleScheme { + private static class get_table_names_by_filter_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDbname()) { optionals.set(0); } - if (struct.isSetTbl_names()) { + if (struct.isSetFilter()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetMax_tables()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetDbname()) { oprot.writeString(struct.dbname); } - if (struct.isSetTbl_names()) { - { - oprot.writeI32(struct.tbl_names.size()); - for (String _iter610 : struct.tbl_names) - { - oprot.writeString(_iter610); - } - } + if (struct.isSetFilter()) { + oprot.writeString(struct.filter); + } + if (struct.isSetMax_tables()) { + oprot.writeI16(struct.max_tables); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_args 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.dbname = iprot.readString(); struct.setDbnameIsSet(true); } if (incoming.get(1)) { - { - org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list611.size); - String _elem612; - for (int _i613 = 0; _i613 < _list611.size; ++_i613) - { - _elem612 = iprot.readString(); - struct.tbl_names.add(_elem612); - } - } - struct.setTbl_namesIsSet(true); + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); + } + if (incoming.get(2)) { + struct.max_tables = iprot.readI16(); + struct.setMax_tablesIsSet(true); } } } } - public static class get_table_objects_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_table_objects_by_name_result"); + public static class get_table_names_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_names_by_filter_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); @@ -43556,11 +37169,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_objects_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_objects_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_table_names_by_filter_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_names_by_filter_resultTupleSchemeFactory()); } - private List
success; // required + private List success; // required private MetaException o1; // required private InvalidOperationException o2; // required private UnknownDBException o3; // required @@ -43638,7 +37251,7 @@ 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, Table.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); 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, @@ -43646,14 +37259,14 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_objects_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_result.class, metaDataMap); } - public get_table_objects_by_name_result() { + public get_table_names_by_filter_result() { } - public get_table_objects_by_name_result( - List
success, + public get_table_names_by_filter_result( + List success, MetaException o1, InvalidOperationException o2, UnknownDBException o3) @@ -43668,11 +37281,11 @@ public get_table_objects_by_name_result( /** * Performs a deep copy on other. */ - public get_table_objects_by_name_result(get_table_objects_by_name_result other) { + public get_table_names_by_filter_result(get_table_names_by_filter_result other) { if (other.isSetSuccess()) { - List
__this__success = new ArrayList
(other.success.size()); - for (Table other_element : other.success) { - __this__success.add(new Table(other_element)); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); } this.success = __this__success; } @@ -43687,8 +37300,8 @@ public get_table_objects_by_name_result(get_table_objects_by_name_result other) } } - public get_table_objects_by_name_result deepCopy() { - return new get_table_objects_by_name_result(this); + public get_table_names_by_filter_result deepCopy() { + return new get_table_names_by_filter_result(this); } @Override @@ -43703,22 +37316,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(Table elem) { + public void addToSuccess(String 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; } @@ -43812,7 +37425,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List
)value); + setSuccess((List)value); } break; @@ -43884,12 +37497,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_objects_by_name_result) - return this.equals((get_table_objects_by_name_result)that); + if (that instanceof get_table_names_by_filter_result) + return this.equals((get_table_names_by_filter_result)that); return false; } - public boolean equals(get_table_objects_by_name_result that) { + public boolean equals(get_table_names_by_filter_result that) { if (that == null) return false; @@ -43934,75 +37547,75 @@ public boolean equals(get_table_objects_by_name_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_table_objects_by_name_result other) { + public int compareTo(get_table_names_by_filter_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_names_by_filter_result typedOther = (get_table_names_by_filter_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -44024,7 +37637,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_objects_by_name_result("); + StringBuilder sb = new StringBuilder("get_table_names_by_filter_result("); boolean first = true; sb.append("success:"); @@ -44083,15 +37696,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_objects_by_name_resultStandardSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_resultStandardScheme getScheme() { - return new get_table_objects_by_name_resultStandardScheme(); + private static class get_table_names_by_filter_resultStandardSchemeFactory implements SchemeFactory { + public get_table_names_by_filter_resultStandardScheme getScheme() { + return new get_table_names_by_filter_resultStandardScheme(); } } - private static class get_table_objects_by_name_resultStandardScheme extends StandardScheme { + private static class get_table_names_by_filter_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -44104,14 +37717,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list614 = iprot.readListBegin(); - struct.success = new ArrayList
(_list614.size); - Table _elem615; - for (int _i616 = 0; _i616 < _list614.size; ++_i616) + org.apache.thrift.protocol.TList _list622 = iprot.readListBegin(); + struct.success = new ArrayList(_list622.size); + for (int _i623 = 0; _i623 < _list622.size; ++_i623) { - _elem615 = new Table(); - _elem615.read(iprot); - struct.success.add(_elem615); + String _elem624; // required + _elem624 = iprot.readString(); + struct.success.add(_elem624); } iprot.readListEnd(); } @@ -44156,17 +37768,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Table _iter617 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter625 : struct.success) { - _iter617.write(oprot); + oprot.writeString(_iter625); } oprot.writeListEnd(); } @@ -44193,16 +37805,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ } - private static class get_table_objects_by_name_resultTupleSchemeFactory implements SchemeFactory { - public get_table_objects_by_name_resultTupleScheme getScheme() { - return new get_table_objects_by_name_resultTupleScheme(); + private static class get_table_names_by_filter_resultTupleSchemeFactory implements SchemeFactory { + public get_table_names_by_filter_resultTupleScheme getScheme() { + return new get_table_names_by_filter_resultTupleScheme(); } } - private static class get_table_objects_by_name_resultTupleScheme extends TupleScheme { + private static class get_table_names_by_filter_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -44221,9 +37833,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter618 : struct.success) + for (String _iter626 : struct.success) { - _iter618.write(oprot); + oprot.writeString(_iter626); } } } @@ -44239,19 +37851,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list619.size); - Table _elem620; - for (int _i621 = 0; _i621 < _list619.size; ++_i621) + org.apache.thrift.protocol.TList _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list627.size); + for (int _i628 = 0; _i628 < _list627.size; ++_i628) { - _elem620 = new Table(); - _elem620.read(iprot); - struct.success.add(_elem620); + String _elem629; // required + _elem629 = iprot.readString(); + struct.success.add(_elem629); } } struct.setSuccessIsSet(true); @@ -44276,28 +37887,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } - public static class get_table_names_by_filter_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_table_names_by_filter_args"); + public static class alter_table_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_TABLES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_tables", org.apache.thrift.protocol.TType.I16, (short)3); + 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 NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_names_by_filter_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_names_by_filter_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_argsTupleSchemeFactory()); } private String dbname; // required - private String filter; // required - private short max_tables; // required + private String tbl_name; // required + private Table new_tbl; // 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 { DBNAME((short)1, "dbname"), - FILTER((short)2, "filter"), - MAX_TABLES((short)3, "max_tables"); + TBL_NAME((short)2, "tbl_name"), + NEW_TBL((short)3, "new_tbl"); private static final Map byName = new HashMap(); @@ -44314,10 +37925,10 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // DBNAME return DBNAME; - case 2: // FILTER - return FILTER; - case 3: // MAX_TABLES - return MAX_TABLES; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // NEW_TBL + return NEW_TBL; default: return null; } @@ -44358,62 +37969,57 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_TABLES_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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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_TABLES, new org.apache.thrift.meta_data.FieldMetaData("max_tables", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_args.class, metaDataMap); } - public get_table_names_by_filter_args() { - this.max_tables = (short)-1; - + public alter_table_args() { } - public get_table_names_by_filter_args( + public alter_table_args( String dbname, - String filter, - short max_tables) + String tbl_name, + Table new_tbl) { this(); this.dbname = dbname; - this.filter = filter; - this.max_tables = max_tables; - setMax_tablesIsSet(true); + this.tbl_name = tbl_name; + this.new_tbl = new_tbl; } /** * Performs a deep copy on other. */ - public get_table_names_by_filter_args(get_table_names_by_filter_args other) { - __isset_bitfield = other.__isset_bitfield; + public alter_table_args(alter_table_args other) { if (other.isSetDbname()) { this.dbname = other.dbname; } - if (other.isSetFilter()) { - this.filter = other.filter; + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetNew_tbl()) { + this.new_tbl = new Table(other.new_tbl); } - this.max_tables = other.max_tables; } - public get_table_names_by_filter_args deepCopy() { - return new get_table_names_by_filter_args(this); + public alter_table_args deepCopy() { + return new alter_table_args(this); } @Override public void clear() { this.dbname = null; - this.filter = null; - this.max_tables = (short)-1; - + this.tbl_name = null; + this.new_tbl = null; } public String getDbname() { @@ -44439,49 +38045,50 @@ public void setDbnameIsSet(boolean value) { } } - public String getFilter() { - return this.filter; + public String getTbl_name() { + return this.tbl_name; } - public void setFilter(String filter) { - this.filter = filter; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetFilter() { - this.filter = null; + public void unsetTbl_name() { + this.tbl_name = null; } - /** Returns true if field filter is set (has been assigned a value) and false otherwise */ - public boolean isSetFilter() { - return this.filter != 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 setFilterIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.filter = null; + this.tbl_name = null; } } - public short getMax_tables() { - return this.max_tables; + public Table getNew_tbl() { + return this.new_tbl; } - public void setMax_tables(short max_tables) { - this.max_tables = max_tables; - setMax_tablesIsSet(true); + public void setNew_tbl(Table new_tbl) { + this.new_tbl = new_tbl; } - public void unsetMax_tables() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_TABLES_ISSET_ID); + public void unsetNew_tbl() { + this.new_tbl = null; } - /** Returns true if field max_tables is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_tables() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_TABLES_ISSET_ID); + /** Returns true if field new_tbl is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_tbl() { + return this.new_tbl != null; } - public void setMax_tablesIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_TABLES_ISSET_ID, value); + public void setNew_tblIsSet(boolean value) { + if (!value) { + this.new_tbl = null; + } } public void setFieldValue(_Fields field, Object value) { @@ -44494,19 +38101,19 @@ public void setFieldValue(_Fields field, Object value) { } break; - case FILTER: + case TBL_NAME: if (value == null) { - unsetFilter(); + unsetTbl_name(); } else { - setFilter((String)value); + setTbl_name((String)value); } break; - case MAX_TABLES: + case NEW_TBL: if (value == null) { - unsetMax_tables(); + unsetNew_tbl(); } else { - setMax_tables((Short)value); + setNew_tbl((Table)value); } break; @@ -44518,11 +38125,11 @@ public Object getFieldValue(_Fields field) { case DBNAME: return getDbname(); - case FILTER: - return getFilter(); + case TBL_NAME: + return getTbl_name(); - case MAX_TABLES: - return Short.valueOf(getMax_tables()); + case NEW_TBL: + return getNew_tbl(); } throw new IllegalStateException(); @@ -44537,10 +38144,10 @@ public boolean isSet(_Fields field) { switch (field) { case DBNAME: return isSetDbname(); - case FILTER: - return isSetFilter(); - case MAX_TABLES: - return isSetMax_tables(); + case TBL_NAME: + return isSetTbl_name(); + case NEW_TBL: + return isSetNew_tbl(); } throw new IllegalStateException(); } @@ -44549,12 +38156,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_names_by_filter_args) - return this.equals((get_table_names_by_filter_args)that); + if (that instanceof alter_table_args) + return this.equals((alter_table_args)that); return false; } - public boolean equals(get_table_names_by_filter_args that) { + public boolean equals(alter_table_args that) { if (that == null) return false; @@ -44567,21 +38174,21 @@ public boolean equals(get_table_names_by_filter_args that) { return false; } - boolean this_present_filter = true && this.isSetFilter(); - boolean that_present_filter = true && that.isSetFilter(); - if (this_present_filter || that_present_filter) { - if (!(this_present_filter && that_present_filter)) + 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.filter.equals(that.filter)) + if (!this.tbl_name.equals(that.tbl_name)) return false; } - boolean this_present_max_tables = true; - boolean that_present_max_tables = true; - if (this_present_max_tables || that_present_max_tables) { - if (!(this_present_max_tables && that_present_max_tables)) + boolean this_present_new_tbl = true && this.isSetNew_tbl(); + boolean that_present_new_tbl = true && that.isSetNew_tbl(); + if (this_present_new_tbl || that_present_new_tbl) { + if (!(this_present_new_tbl && that_present_new_tbl)) return false; - if (this.max_tables != that.max_tables) + if (!this.new_tbl.equals(that.new_tbl)) return false; } @@ -44590,60 +38197,60 @@ public boolean equals(get_table_names_by_filter_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); - boolean present_filter = true && (isSetFilter()); - list.add(present_filter); - if (present_filter) - list.add(filter); + boolean present_tbl_name = true && (isSetTbl_name()); + builder.append(present_tbl_name); + if (present_tbl_name) + builder.append(tbl_name); - boolean present_max_tables = true; - list.add(present_max_tables); - if (present_max_tables) - list.add(max_tables); + boolean present_new_tbl = true && (isSetNew_tbl()); + builder.append(present_new_tbl); + if (present_new_tbl) + builder.append(new_tbl); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_table_names_by_filter_args other) { + public int compareTo(alter_table_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_table_args typedOther = (alter_table_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetFilter()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_tables()).compareTo(other.isSetMax_tables()); + lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(typedOther.isSetNew_tbl()); if (lastComparison != 0) { return lastComparison; } - if (isSetMax_tables()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_tables, other.max_tables); + if (isSetNew_tbl()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, typedOther.new_tbl); if (lastComparison != 0) { return lastComparison; } @@ -44665,7 +38272,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_names_by_filter_args("); + StringBuilder sb = new StringBuilder("alter_table_args("); boolean first = true; sb.append("dbname:"); @@ -44676,16 +38283,20 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("filter:"); - if (this.filter == null) { + sb.append("tbl_name:"); + if (this.tbl_name == null) { sb.append("null"); } else { - sb.append(this.filter); + sb.append(this.tbl_name); } first = false; if (!first) sb.append(", "); - sb.append("max_tables:"); - sb.append(this.max_tables); + sb.append("new_tbl:"); + if (this.new_tbl == null) { + sb.append("null"); + } else { + sb.append(this.new_tbl); + } first = false; sb.append(")"); return sb.toString(); @@ -44694,6 +38305,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (new_tbl != null) { + new_tbl.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -44706,23 +38320,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_table_names_by_filter_argsStandardSchemeFactory implements SchemeFactory { - public get_table_names_by_filter_argsStandardScheme getScheme() { - return new get_table_names_by_filter_argsStandardScheme(); + private static class alter_table_argsStandardSchemeFactory implements SchemeFactory { + public alter_table_argsStandardScheme getScheme() { + return new alter_table_argsStandardScheme(); } } - private static class get_table_names_by_filter_argsStandardScheme extends StandardScheme { + private static class alter_table_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -44740,18 +38352,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // FILTER + case 2: // TBL_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.filter = iprot.readString(); - struct.setFilterIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // MAX_TABLES - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_tables = iprot.readI16(); - struct.setMax_tablesIsSet(true); + case 3: // NEW_TBL + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.new_tbl = new Table(); + struct.new_tbl.read(iprot); + struct.setNew_tblIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -44765,7 +38378,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -44774,55 +38387,57 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by oprot.writeString(struct.dbname); oprot.writeFieldEnd(); } - if (struct.filter != null) { - oprot.writeFieldBegin(FILTER_FIELD_DESC); - oprot.writeString(struct.filter); + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.new_tbl != null) { + oprot.writeFieldBegin(NEW_TBL_FIELD_DESC); + struct.new_tbl.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_TABLES_FIELD_DESC); - oprot.writeI16(struct.max_tables); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_names_by_filter_argsTupleSchemeFactory implements SchemeFactory { - public get_table_names_by_filter_argsTupleScheme getScheme() { - return new get_table_names_by_filter_argsTupleScheme(); + private static class alter_table_argsTupleSchemeFactory implements SchemeFactory { + public alter_table_argsTupleScheme getScheme() { + return new alter_table_argsTupleScheme(); } } - private static class get_table_names_by_filter_argsTupleScheme extends TupleScheme { + private static class alter_table_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDbname()) { optionals.set(0); } - if (struct.isSetFilter()) { + if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetMax_tables()) { + if (struct.isSetNew_tbl()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetDbname()) { oprot.writeString(struct.dbname); } - if (struct.isSetFilter()) { - oprot.writeString(struct.filter); + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); } - if (struct.isSetMax_tables()) { - oprot.writeI16(struct.max_tables); + if (struct.isSetNew_tbl()) { + struct.new_tbl.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -44830,43 +38445,38 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f struct.setDbnameIsSet(true); } if (incoming.get(1)) { - struct.filter = iprot.readString(); - struct.setFilterIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.max_tables = iprot.readI16(); - struct.setMax_tablesIsSet(true); + struct.new_tbl = new Table(); + struct.new_tbl.read(iprot); + struct.setNew_tblIsSet(true); } } } } - public static class get_table_names_by_filter_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_table_names_by_filter_result"); + public static class alter_table_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_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); 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 O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_names_by_filter_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_names_by_filter_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_resultTupleSchemeFactory()); } - private List success; // required - private MetaException o1; // required - private InvalidOperationException o2; // required - private UnknownDBException o3; // required + private InvalidOperationException 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"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -44881,14 +38491,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 0: // SUCCESS - return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -44932,109 +38538,53 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.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)))); 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))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_names_by_filter_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_result.class, metaDataMap); } - public get_table_names_by_filter_result() { + public alter_table_result() { } - public get_table_names_by_filter_result( - List success, - MetaException o1, - InvalidOperationException o2, - UnknownDBException o3) + public alter_table_result( + InvalidOperationException o1, + MetaException o2) { this(); - this.success = success; this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public get_table_names_by_filter_result(get_table_names_by_filter_result other) { - if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); - this.success = __this__success; - } + public alter_table_result(alter_table_result other) { if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new InvalidOperationException(other.o1); } if (other.isSetO2()) { - this.o2 = new InvalidOperationException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new UnknownDBException(other.o3); + this.o2 = new MetaException(other.o2); } } - public get_table_names_by_filter_result deepCopy() { - return new get_table_names_by_filter_result(this); + public alter_table_result deepCopy() { + return new alter_table_result(this); } @Override public void clear() { - this.success = null; this.o1 = null; this.o2 = null; - this.o3 = null; - } - - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(String elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { - return this.success; - } - - public void setSuccess(List 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() { + public InvalidOperationException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(InvalidOperationException o1) { this.o1 = o1; } @@ -45053,11 +38603,11 @@ public void setO1IsSet(boolean value) { } } - public InvalidOperationException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(InvalidOperationException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -45076,44 +38626,13 @@ public void setO2IsSet(boolean value) { } } - public UnknownDBException getO3() { - return this.o3; - } - - public void setO3(UnknownDBException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case SUCCESS: - if (value == null) { - unsetSuccess(); - } else { - setSuccess((List)value); - } - break; - case O1: if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((InvalidOperationException)value); } break; @@ -45121,15 +38640,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((InvalidOperationException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((UnknownDBException)value); + setO2((MetaException)value); } break; @@ -45138,18 +38649,12 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case SUCCESS: - return getSuccess(); - case O1: return getO1(); case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -45161,14 +38666,10 @@ public boolean isSet(_Fields field) { } switch (field) { - case SUCCESS: - return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -45177,24 +38678,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_names_by_filter_result) - return this.equals((get_table_names_by_filter_result)that); + if (that instanceof alter_table_result) + return this.equals((alter_table_result)that); return false; } - public boolean equals(get_table_names_by_filter_result that) { + public boolean equals(alter_table_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) { @@ -45213,89 +38705,50 @@ public boolean equals(get_table_names_by_filter_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - 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); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); - - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_table_names_by_filter_result other) { + public int compareTo(alter_table_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_table_result typedOther = (alter_table_result)other; - 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()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -45317,17 +38770,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_names_by_filter_result("); + StringBuilder sb = new StringBuilder("alter_table_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"); @@ -45343,14 +38788,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -45376,15 +38813,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_names_by_filter_resultStandardSchemeFactory implements SchemeFactory { - public get_table_names_by_filter_resultStandardScheme getScheme() { - return new get_table_names_by_filter_resultStandardScheme(); + private static class alter_table_resultStandardSchemeFactory implements SchemeFactory { + public alter_table_resultStandardScheme getScheme() { + return new alter_table_resultStandardScheme(); } } - private static class get_table_names_by_filter_resultStandardScheme extends StandardScheme { + private static class alter_table_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -45394,27 +38831,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ break; } switch (schemeField.id) { - case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list622 = iprot.readListBegin(); - struct.success = new ArrayList(_list622.size); - String _elem623; - for (int _i624 = 0; _i624 < _list622.size; ++_i624) - { - _elem623 = iprot.readString(); - struct.success.add(_elem623); - } - 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 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -45423,22 +38842,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new InvalidOperationException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -45448,22 +38858,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_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 _iter625 : struct.success) - { - oprot.writeString(_iter625); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -45474,121 +38872,83 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_table_names_by_filter_resultTupleSchemeFactory implements SchemeFactory { - public get_table_names_by_filter_resultTupleScheme getScheme() { - return new get_table_names_by_filter_resultTupleScheme(); + private static class alter_table_resultTupleSchemeFactory implements SchemeFactory { + public alter_table_resultTupleScheme getScheme() { + return new alter_table_resultTupleScheme(); } } - private static class get_table_names_by_filter_resultTupleScheme extends TupleScheme { + private static class alter_table_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_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); + optionals.set(0); } if (struct.isSetO2()) { - optionals.set(2); - } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (String _iter626 : struct.success) - { - oprot.writeString(_iter626); - } - } + optionals.set(1); } + oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list627.size); - String _elem628; - for (int _i629 = 0; _i629 < _list627.size; ++_i629) - { - _elem628 = iprot.readString(); - struct.success.add(_elem628); - } - } - struct.setSuccessIsSet(true); - } - if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new InvalidOperationException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(2)) { - struct.o2 = new InvalidOperationException(); + if (incoming.get(1)) { + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new UnknownDBException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - public static class alter_table_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("alter_table_args"); + public static class alter_table_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_environment_context_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", 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 NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_with_environment_context_argsTupleSchemeFactory()); } private String dbname; // required private String tbl_name; // required private Table new_tbl; // required + private EnvironmentContext environment_context; // 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 { DBNAME((short)1, "dbname"), TBL_NAME((short)2, "tbl_name"), - NEW_TBL((short)3, "new_tbl"); + NEW_TBL((short)3, "new_tbl"), + ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -45609,6 +38969,8 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // NEW_TBL return NEW_TBL; + case 4: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -45658,28 +39020,32 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); + tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_environment_context_args.class, metaDataMap); } - public alter_table_args() { + public alter_table_with_environment_context_args() { } - public alter_table_args( + public alter_table_with_environment_context_args( String dbname, String tbl_name, - Table new_tbl) + Table new_tbl, + EnvironmentContext environment_context) { this(); this.dbname = dbname; this.tbl_name = tbl_name; this.new_tbl = new_tbl; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public alter_table_args(alter_table_args other) { + public alter_table_with_environment_context_args(alter_table_with_environment_context_args other) { if (other.isSetDbname()) { this.dbname = other.dbname; } @@ -45689,10 +39055,13 @@ public alter_table_args(alter_table_args other) { if (other.isSetNew_tbl()) { this.new_tbl = new Table(other.new_tbl); } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); + } } - public alter_table_args deepCopy() { - return new alter_table_args(this); + public alter_table_with_environment_context_args deepCopy() { + return new alter_table_with_environment_context_args(this); } @Override @@ -45700,6 +39069,7 @@ public void clear() { this.dbname = null; this.tbl_name = null; this.new_tbl = null; + this.environment_context = null; } public String getDbname() { @@ -45771,6 +39141,29 @@ public void setNew_tblIsSet(boolean value) { } } + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DBNAME: @@ -45797,6 +39190,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); + } + break; + } } @@ -45811,6 +39212,9 @@ public Object getFieldValue(_Fields field) { case NEW_TBL: return getNew_tbl(); + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); + } throw new IllegalStateException(); } @@ -45828,6 +39232,8 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case NEW_TBL: return isSetNew_tbl(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -45836,12 +39242,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_args) - return this.equals((alter_table_args)that); + if (that instanceof alter_table_with_environment_context_args) + return this.equals((alter_table_with_environment_context_args)that); return false; } - public boolean equals(alter_table_args that) { + public boolean equals(alter_table_with_environment_context_args that) { if (that == null) return false; @@ -45872,65 +39278,89 @@ public boolean equals(alter_table_args that) { return false; } + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_new_tbl = true && (isSetNew_tbl()); - list.add(present_new_tbl); + builder.append(present_new_tbl); if (present_new_tbl) - list.add(new_tbl); + builder.append(new_tbl); + + boolean present_environment_context = true && (isSetEnvironment_context()); + builder.append(present_environment_context); + if (present_environment_context) + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(alter_table_args other) { + public int compareTo(alter_table_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_table_with_environment_context_args typedOther = (alter_table_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); + lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(typedOther.isSetNew_tbl()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_tbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, typedOther.new_tbl); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -45952,7 +39382,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_args("); + StringBuilder sb = new StringBuilder("alter_table_with_environment_context_args("); boolean first = true; sb.append("dbname:"); @@ -45978,6 +39408,14 @@ public String toString() { sb.append(this.new_tbl); } first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); + } + first = false; sb.append(")"); return sb.toString(); } @@ -45988,6 +39426,9 @@ public void validate() throws org.apache.thrift.TException { if (new_tbl != null) { new_tbl.validate(); } + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -46006,15 +39447,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_table_argsStandardSchemeFactory implements SchemeFactory { - public alter_table_argsStandardScheme getScheme() { - return new alter_table_argsStandardScheme(); + private static class alter_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public alter_table_with_environment_context_argsStandardScheme getScheme() { + return new alter_table_with_environment_context_argsStandardScheme(); } } - private static class alter_table_argsStandardScheme extends StandardScheme { + private static class alter_table_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -46049,6 +39490,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_args st org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -46058,7 +39508,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_args st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -46077,22 +39527,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_args s struct.new_tbl.write(oprot); oprot.writeFieldEnd(); } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class alter_table_argsTupleSchemeFactory implements SchemeFactory { - public alter_table_argsTupleScheme getScheme() { - return new alter_table_argsTupleScheme(); + private static class alter_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public alter_table_with_environment_context_argsTupleScheme getScheme() { + return new alter_table_with_environment_context_argsTupleScheme(); } } - private static class alter_table_argsTupleScheme extends TupleScheme { + private static class alter_table_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDbname()) { @@ -46104,7 +39559,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_args st if (struct.isSetNew_tbl()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetEnvironment_context()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetDbname()) { oprot.writeString(struct.dbname); } @@ -46114,12 +39572,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_args st if (struct.isSetNew_tbl()) { struct.new_tbl.write(oprot); } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_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.dbname = iprot.readString(); struct.setDbnameIsSet(true); @@ -46133,21 +39594,26 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_args str struct.new_tbl.read(iprot); struct.setNew_tblIsSet(true); } + if (incoming.get(3)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } } } } - public static class alter_table_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("alter_table_result"); + public static class alter_table_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_environment_context_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_with_environment_context_resultTupleSchemeFactory()); } private InvalidOperationException o1; // required @@ -46223,13 +39689,13 @@ public String getFieldName() { 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(alter_table_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_environment_context_result.class, metaDataMap); } - public alter_table_result() { + public alter_table_with_environment_context_result() { } - public alter_table_result( + public alter_table_with_environment_context_result( InvalidOperationException o1, MetaException o2) { @@ -46241,7 +39707,7 @@ public alter_table_result( /** * Performs a deep copy on other. */ - public alter_table_result(alter_table_result other) { + public alter_table_with_environment_context_result(alter_table_with_environment_context_result other) { if (other.isSetO1()) { this.o1 = new InvalidOperationException(other.o1); } @@ -46250,8 +39716,8 @@ public alter_table_result(alter_table_result other) { } } - public alter_table_result deepCopy() { - return new alter_table_result(this); + public alter_table_with_environment_context_result deepCopy() { + return new alter_table_with_environment_context_result(this); } @Override @@ -46358,12 +39824,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_result) - return this.equals((alter_table_result)that); + if (that instanceof alter_table_with_environment_context_result) + return this.equals((alter_table_with_environment_context_result)that); return false; } - public boolean equals(alter_table_result that) { + public boolean equals(alter_table_with_environment_context_result that) { if (that == null) return false; @@ -46390,45 +39856,45 @@ public boolean equals(alter_table_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(alter_table_result other) { + public int compareTo(alter_table_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_table_with_environment_context_result typedOther = (alter_table_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -46450,7 +39916,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_result("); + StringBuilder sb = new StringBuilder("alter_table_with_environment_context_result("); boolean first = true; sb.append("o1:"); @@ -46493,15 +39959,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_table_resultStandardSchemeFactory implements SchemeFactory { - public alter_table_resultStandardScheme getScheme() { - return new alter_table_resultStandardScheme(); + private static class alter_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public alter_table_with_environment_context_resultStandardScheme getScheme() { + return new alter_table_with_environment_context_resultStandardScheme(); } } - private static class alter_table_resultStandardScheme extends StandardScheme { + private static class alter_table_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -46538,7 +40004,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -46558,16 +40024,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_result } - private static class alter_table_resultTupleSchemeFactory implements SchemeFactory { - public alter_table_resultTupleScheme getScheme() { - return new alter_table_resultTupleScheme(); + private static class alter_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public alter_table_with_environment_context_resultTupleScheme getScheme() { + return new alter_table_with_environment_context_resultTupleScheme(); } } - private static class alter_table_resultTupleScheme extends TupleScheme { + private static class alter_table_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -46586,7 +40052,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -46604,31 +40070,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_result s } - public static class alter_table_with_environment_context_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("alter_table_with_environment_context_args"); + public static class alter_table_with_cascade_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_cascade_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", 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 NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField CASCADE_FIELD_DESC = new org.apache.thrift.protocol.TField("cascade", org.apache.thrift.protocol.TType.BOOL, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_with_cascade_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_with_cascade_argsTupleSchemeFactory()); } private String dbname; // required private String tbl_name; // required private Table new_tbl; // required - private EnvironmentContext environment_context; // required + private boolean cascade; // 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 { DBNAME((short)1, "dbname"), TBL_NAME((short)2, "tbl_name"), NEW_TBL((short)3, "new_tbl"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + CASCADE((short)4, "cascade"); private static final Map byName = new HashMap(); @@ -46649,8 +40115,8 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // NEW_TBL return NEW_TBL; - case 4: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 4: // CASCADE + return CASCADE; default: return null; } @@ -46691,6 +40157,8 @@ public String getFieldName() { } // isset id assignments + private static final int __CASCADE_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); @@ -46700,32 +40168,34 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); - tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); + tmpMap.put(_Fields.CASCADE, new org.apache.thrift.meta_data.FieldMetaData("cascade", 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(alter_table_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_cascade_args.class, metaDataMap); } - public alter_table_with_environment_context_args() { + public alter_table_with_cascade_args() { } - public alter_table_with_environment_context_args( + public alter_table_with_cascade_args( String dbname, String tbl_name, Table new_tbl, - EnvironmentContext environment_context) + boolean cascade) { this(); this.dbname = dbname; this.tbl_name = tbl_name; this.new_tbl = new_tbl; - this.environment_context = environment_context; + this.cascade = cascade; + setCascadeIsSet(true); } /** * Performs a deep copy on other. */ - public alter_table_with_environment_context_args(alter_table_with_environment_context_args other) { + public alter_table_with_cascade_args(alter_table_with_cascade_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDbname()) { this.dbname = other.dbname; } @@ -46735,13 +40205,11 @@ public alter_table_with_environment_context_args(alter_table_with_environment_co if (other.isSetNew_tbl()) { this.new_tbl = new Table(other.new_tbl); } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); - } + this.cascade = other.cascade; } - public alter_table_with_environment_context_args deepCopy() { - return new alter_table_with_environment_context_args(this); + public alter_table_with_cascade_args deepCopy() { + return new alter_table_with_cascade_args(this); } @Override @@ -46749,7 +40217,8 @@ public void clear() { this.dbname = null; this.tbl_name = null; this.new_tbl = null; - this.environment_context = null; + setCascadeIsSet(false); + this.cascade = false; } public String getDbname() { @@ -46821,27 +40290,26 @@ public void setNew_tblIsSet(boolean value) { } } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public boolean isCascade() { + return this.cascade; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setCascade(boolean cascade) { + this.cascade = cascade; + setCascadeIsSet(true); } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetCascade() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CASCADE_ISSET_ID); } - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; + /** Returns true if field cascade is set (has been assigned a value) and false otherwise */ + public boolean isSetCascade() { + return EncodingUtils.testBit(__isset_bitfield, __CASCADE_ISSET_ID); } - public void setEnvironment_contextIsSet(boolean value) { - if (!value) { - this.environment_context = null; - } + public void setCascadeIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CASCADE_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -46870,11 +40338,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case ENVIRONMENT_CONTEXT: + case CASCADE: if (value == null) { - unsetEnvironment_context(); + unsetCascade(); } else { - setEnvironment_context((EnvironmentContext)value); + setCascade((Boolean)value); } break; @@ -46892,8 +40360,8 @@ public Object getFieldValue(_Fields field) { case NEW_TBL: return getNew_tbl(); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case CASCADE: + return Boolean.valueOf(isCascade()); } throw new IllegalStateException(); @@ -46912,8 +40380,8 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case NEW_TBL: return isSetNew_tbl(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case CASCADE: + return isSetCascade(); } throw new IllegalStateException(); } @@ -46922,12 +40390,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_with_environment_context_args) - return this.equals((alter_table_with_environment_context_args)that); + if (that instanceof alter_table_with_cascade_args) + return this.equals((alter_table_with_cascade_args)that); return false; } - public boolean equals(alter_table_with_environment_context_args that) { + public boolean equals(alter_table_with_cascade_args that) { if (that == null) return false; @@ -46958,12 +40426,12 @@ public boolean equals(alter_table_with_environment_context_args that) { return false; } - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) + boolean this_present_cascade = true; + boolean that_present_cascade = true; + if (this_present_cascade || that_present_cascade) { + if (!(this_present_cascade && that_present_cascade)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (this.cascade != that.cascade) return false; } @@ -46972,75 +40440,75 @@ public boolean equals(alter_table_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_new_tbl = true && (isSetNew_tbl()); - list.add(present_new_tbl); + builder.append(present_new_tbl); if (present_new_tbl) - list.add(new_tbl); + builder.append(new_tbl); - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_cascade = true; + builder.append(present_cascade); + if (present_cascade) + builder.append(cascade); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(alter_table_with_environment_context_args other) { + public int compareTo(alter_table_with_cascade_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_table_with_cascade_args typedOther = (alter_table_with_cascade_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); + lastComparison = Boolean.valueOf(isSetNew_tbl()).compareTo(typedOther.isSetNew_tbl()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_tbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, typedOther.new_tbl); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetCascade()).compareTo(typedOther.isSetCascade()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetCascade()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cascade, typedOther.cascade); if (lastComparison != 0) { return lastComparison; } @@ -47062,7 +40530,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_with_environment_context_args("); + StringBuilder sb = new StringBuilder("alter_table_with_cascade_args("); boolean first = true; sb.append("dbname:"); @@ -47089,12 +40557,8 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { - sb.append("null"); - } else { - sb.append(this.environment_context); - } + sb.append("cascade:"); + sb.append(this.cascade); first = false; sb.append(")"); return sb.toString(); @@ -47106,9 +40570,6 @@ public void validate() throws org.apache.thrift.TException { if (new_tbl != null) { new_tbl.validate(); } - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -47121,21 +40582,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 alter_table_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public alter_table_with_environment_context_argsStandardScheme getScheme() { - return new alter_table_with_environment_context_argsStandardScheme(); + private static class alter_table_with_cascade_argsStandardSchemeFactory implements SchemeFactory { + public alter_table_with_cascade_argsStandardScheme getScheme() { + return new alter_table_with_cascade_argsStandardScheme(); } } - private static class alter_table_with_environment_context_argsStandardScheme extends StandardScheme { + private static class alter_table_with_cascade_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47170,11 +40633,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_en org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // ENVIRONMENT_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + case 4: // CASCADE + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.cascade = iprot.readBool(); + struct.setCascadeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -47188,7 +40650,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_en struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -47207,27 +40669,25 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_e struct.new_tbl.write(oprot); oprot.writeFieldEnd(); } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); - oprot.writeFieldEnd(); - } + oprot.writeFieldBegin(CASCADE_FIELD_DESC); + oprot.writeBool(struct.cascade); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class alter_table_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public alter_table_with_environment_context_argsTupleScheme getScheme() { - return new alter_table_with_environment_context_argsTupleScheme(); + private static class alter_table_with_cascade_argsTupleSchemeFactory implements SchemeFactory { + public alter_table_with_cascade_argsTupleScheme getScheme() { + return new alter_table_with_cascade_argsTupleScheme(); } } - private static class alter_table_with_environment_context_argsTupleScheme extends TupleScheme { + private static class alter_table_with_cascade_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDbname()) { @@ -47239,7 +40699,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_en if (struct.isSetNew_tbl()) { optionals.set(2); } - if (struct.isSetEnvironment_context()) { + if (struct.isSetCascade()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); @@ -47252,13 +40712,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_en if (struct.isSetNew_tbl()) { struct.new_tbl.write(oprot); } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + if (struct.isSetCascade()) { + oprot.writeBool(struct.cascade); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -47275,25 +40735,24 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_env struct.setNew_tblIsSet(true); } if (incoming.get(3)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.cascade = iprot.readBool(); + struct.setCascadeIsSet(true); } } } } - public static class alter_table_with_environment_context_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("alter_table_with_environment_context_result"); + public static class alter_table_with_cascade_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_table_with_cascade_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new alter_table_with_cascade_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new alter_table_with_cascade_resultTupleSchemeFactory()); } private InvalidOperationException o1; // required @@ -47369,13 +40828,13 @@ public String getFieldName() { 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(alter_table_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_cascade_result.class, metaDataMap); } - public alter_table_with_environment_context_result() { + public alter_table_with_cascade_result() { } - public alter_table_with_environment_context_result( + public alter_table_with_cascade_result( InvalidOperationException o1, MetaException o2) { @@ -47387,7 +40846,7 @@ public alter_table_with_environment_context_result( /** * Performs a deep copy on other. */ - public alter_table_with_environment_context_result(alter_table_with_environment_context_result other) { + public alter_table_with_cascade_result(alter_table_with_cascade_result other) { if (other.isSetO1()) { this.o1 = new InvalidOperationException(other.o1); } @@ -47396,8 +40855,8 @@ public alter_table_with_environment_context_result(alter_table_with_environment_ } } - public alter_table_with_environment_context_result deepCopy() { - return new alter_table_with_environment_context_result(this); + public alter_table_with_cascade_result deepCopy() { + return new alter_table_with_cascade_result(this); } @Override @@ -47504,12 +40963,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_with_environment_context_result) - return this.equals((alter_table_with_environment_context_result)that); + if (that instanceof alter_table_with_cascade_result) + return this.equals((alter_table_with_cascade_result)that); return false; } - public boolean equals(alter_table_with_environment_context_result that) { + public boolean equals(alter_table_with_cascade_result that) { if (that == null) return false; @@ -47536,45 +40995,45 @@ public boolean equals(alter_table_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(alter_table_with_environment_context_result other) { + public int compareTo(alter_table_with_cascade_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_table_with_cascade_result typedOther = (alter_table_with_cascade_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -47596,7 +41055,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_with_environment_context_result("); + StringBuilder sb = new StringBuilder("alter_table_with_cascade_result("); boolean first = true; sb.append("o1:"); @@ -47639,15 +41098,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_table_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public alter_table_with_environment_context_resultStandardScheme getScheme() { - return new alter_table_with_environment_context_resultStandardScheme(); + private static class alter_table_with_cascade_resultStandardSchemeFactory implements SchemeFactory { + public alter_table_with_cascade_resultStandardScheme getScheme() { + return new alter_table_with_cascade_resultStandardScheme(); } } - private static class alter_table_with_environment_context_resultStandardScheme extends StandardScheme { + private static class alter_table_with_cascade_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -47684,7 +41143,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_en struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -47704,16 +41163,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_e } - private static class alter_table_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public alter_table_with_environment_context_resultTupleScheme getScheme() { - return new alter_table_with_environment_context_resultTupleScheme(); + private static class alter_table_with_cascade_resultTupleSchemeFactory implements SchemeFactory { + public alter_table_with_cascade_resultTupleScheme getScheme() { + return new alter_table_with_cascade_resultTupleScheme(); } } - private static class alter_table_with_environment_context_resultTupleScheme extends TupleScheme { + private static class alter_table_with_cascade_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { @@ -47732,7 +41191,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_en } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -47750,31 +41209,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_env } - public static class alter_table_with_cascade_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("alter_table_with_cascade_args"); + public static class add_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_args"); - private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", 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 NEW_TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("new_tbl", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField CASCADE_FIELD_DESC = new org.apache.thrift.protocol.TField("cascade", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_with_cascade_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_with_cascade_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partition_argsTupleSchemeFactory()); } - private String dbname; // required - private String tbl_name; // required - private Table new_tbl; // required - private boolean cascade; // required + private Partition new_part; // 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 { - DBNAME((short)1, "dbname"), - TBL_NAME((short)2, "tbl_name"), - NEW_TBL((short)3, "new_tbl"), - CASCADE((short)4, "cascade"); + NEW_PART((short)1, "new_part"); private static final Map byName = new HashMap(); @@ -47789,14 +41239,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_env */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DBNAME - return DBNAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // NEW_TBL - return NEW_TBL; - case 4: // CASCADE - return CASCADE; + case 1: // NEW_PART + return NEW_PART; default: return null; } @@ -47837,192 +41281,73 @@ public String getFieldName() { } // isset id assignments - private static final int __CASCADE_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.DBNAME, new org.apache.thrift.meta_data.FieldMetaData("dbname", 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.NEW_TBL, new org.apache.thrift.meta_data.FieldMetaData("new_tbl", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Table.class))); - tmpMap.put(_Fields.CASCADE, new org.apache.thrift.meta_data.FieldMetaData("cascade", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_cascade_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_args.class, metaDataMap); } - public alter_table_with_cascade_args() { + public add_partition_args() { } - public alter_table_with_cascade_args( - String dbname, - String tbl_name, - Table new_tbl, - boolean cascade) + public add_partition_args( + Partition new_part) { this(); - this.dbname = dbname; - this.tbl_name = tbl_name; - this.new_tbl = new_tbl; - this.cascade = cascade; - setCascadeIsSet(true); + this.new_part = new_part; } /** * Performs a deep copy on other. */ - public alter_table_with_cascade_args(alter_table_with_cascade_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDbname()) { - this.dbname = other.dbname; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetNew_tbl()) { - this.new_tbl = new Table(other.new_tbl); + public add_partition_args(add_partition_args other) { + if (other.isSetNew_part()) { + this.new_part = new Partition(other.new_part); } - this.cascade = other.cascade; } - public alter_table_with_cascade_args deepCopy() { - return new alter_table_with_cascade_args(this); + public add_partition_args deepCopy() { + return new add_partition_args(this); } @Override public void clear() { - this.dbname = null; - this.tbl_name = null; - this.new_tbl = null; - setCascadeIsSet(false); - this.cascade = false; - } - - public String getDbname() { - return this.dbname; - } - - public void setDbname(String dbname) { - this.dbname = dbname; - } - - public void unsetDbname() { - this.dbname = null; - } - - /** Returns true if field dbname is set (has been assigned a value) and false otherwise */ - public boolean isSetDbname() { - return this.dbname != null; - } - - public void setDbnameIsSet(boolean value) { - if (!value) { - this.dbname = 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; - } + this.new_part = null; } - public Table getNew_tbl() { - return this.new_tbl; + public Partition getNew_part() { + return this.new_part; } - public void setNew_tbl(Table new_tbl) { - this.new_tbl = new_tbl; + public void setNew_part(Partition new_part) { + this.new_part = new_part; } - public void unsetNew_tbl() { - this.new_tbl = null; + public void unsetNew_part() { + this.new_part = null; } - /** Returns true if field new_tbl is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_tbl() { - return this.new_tbl != null; + /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_part() { + return this.new_part != null; } - public void setNew_tblIsSet(boolean value) { + public void setNew_partIsSet(boolean value) { if (!value) { - this.new_tbl = null; + this.new_part = null; } } - public boolean isCascade() { - return this.cascade; - } - - public void setCascade(boolean cascade) { - this.cascade = cascade; - setCascadeIsSet(true); - } - - public void unsetCascade() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __CASCADE_ISSET_ID); - } - - /** Returns true if field cascade is set (has been assigned a value) and false otherwise */ - public boolean isSetCascade() { - return EncodingUtils.testBit(__isset_bitfield, __CASCADE_ISSET_ID); - } - - public void setCascadeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __CASCADE_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case DBNAME: - if (value == null) { - unsetDbname(); - } else { - setDbname((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case NEW_TBL: - if (value == null) { - unsetNew_tbl(); - } else { - setNew_tbl((Table)value); - } - break; - - case CASCADE: + case NEW_PART: if (value == null) { - unsetCascade(); + unsetNew_part(); } else { - setCascade((Boolean)value); + setNew_part((Partition)value); } break; @@ -48031,17 +41356,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DBNAME: - return getDbname(); - - case TBL_NAME: - return getTbl_name(); - - case NEW_TBL: - return getNew_tbl(); - - case CASCADE: - return Boolean.valueOf(isCascade()); + case NEW_PART: + return getNew_part(); } throw new IllegalStateException(); @@ -48054,14 +41370,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DBNAME: - return isSetDbname(); - case TBL_NAME: - return isSetTbl_name(); - case NEW_TBL: - return isSetNew_tbl(); - case CASCADE: - return isSetCascade(); + case NEW_PART: + return isSetNew_part(); } throw new IllegalStateException(); } @@ -48070,48 +41380,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_with_cascade_args) - return this.equals((alter_table_with_cascade_args)that); + if (that instanceof add_partition_args) + return this.equals((add_partition_args)that); return false; } - public boolean equals(alter_table_with_cascade_args that) { + public boolean equals(add_partition_args that) { if (that == null) return false; - boolean this_present_dbname = true && this.isSetDbname(); - boolean that_present_dbname = true && that.isSetDbname(); - if (this_present_dbname || that_present_dbname) { - if (!(this_present_dbname && that_present_dbname)) - return false; - if (!this.dbname.equals(that.dbname)) - 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_new_tbl = true && this.isSetNew_tbl(); - boolean that_present_new_tbl = true && that.isSetNew_tbl(); - if (this_present_new_tbl || that_present_new_tbl) { - if (!(this_present_new_tbl && that_present_new_tbl)) - return false; - if (!this.new_tbl.equals(that.new_tbl)) - return false; - } - - boolean this_present_cascade = true; - boolean that_present_cascade = true; - if (this_present_cascade || that_present_cascade) { - if (!(this_present_cascade && that_present_cascade)) + boolean this_present_new_part = true && this.isSetNew_part(); + boolean that_present_new_part = true && that.isSetNew_part(); + if (this_present_new_part || that_present_new_part) { + if (!(this_present_new_part && that_present_new_part)) return false; - if (this.cascade != that.cascade) + if (!this.new_part.equals(that.new_part)) return false; } @@ -48120,75 +41403,30 @@ public boolean equals(alter_table_with_cascade_args that) { @Override public int hashCode() { - List list = new ArrayList(); - - boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); - if (present_dbname) - list.add(dbname); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_new_tbl = true && (isSetNew_tbl()); - list.add(present_new_tbl); - if (present_new_tbl) - list.add(new_tbl); - - boolean present_cascade = true; - list.add(present_cascade); - if (present_cascade) - list.add(cascade); + boolean present_new_part = true && (isSetNew_part()); + builder.append(present_new_part); + if (present_new_part) + builder.append(new_part); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(alter_table_with_cascade_args other) { + public int compareTo(add_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partition_args typedOther = (add_partition_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part()); 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(isSetNew_tbl()).compareTo(other.isSetNew_tbl()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNew_tbl()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_tbl, other.new_tbl); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetCascade()).compareTo(other.isSetCascade()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetCascade()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cascade, other.cascade); + if (isSetNew_part()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part); if (lastComparison != 0) { return lastComparison; } @@ -48210,36 +41448,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_with_cascade_args("); + StringBuilder sb = new StringBuilder("add_partition_args("); boolean first = true; - sb.append("dbname:"); - if (this.dbname == null) { - sb.append("null"); - } else { - sb.append(this.dbname); - } - 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("new_tbl:"); - if (this.new_tbl == null) { + sb.append("new_part:"); + if (this.new_part == null) { sb.append("null"); } else { - sb.append(this.new_tbl); + sb.append(this.new_part); } first = false; - if (!first) sb.append(", "); - sb.append("cascade:"); - sb.append(this.cascade); - first = false; sb.append(")"); return sb.toString(); } @@ -48247,8 +41465,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_tbl != null) { - new_tbl.validate(); + if (new_part != null) { + new_part.validate(); } } @@ -48262,23 +41480,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 alter_table_with_cascade_argsStandardSchemeFactory implements SchemeFactory { - public alter_table_with_cascade_argsStandardScheme getScheme() { - return new alter_table_with_cascade_argsStandardScheme(); + private static class add_partition_argsStandardSchemeFactory implements SchemeFactory { + public add_partition_argsStandardScheme getScheme() { + return new add_partition_argsStandardScheme(); } } - private static class alter_table_with_cascade_argsStandardScheme extends StandardScheme { + private static class add_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -48288,35 +41504,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_ca break; } switch (schemeField.id) { - case 1: // DBNAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(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: // NEW_TBL + case 1: // NEW_PART if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_tbl = new Table(); - struct.new_tbl.read(iprot); - struct.setNew_tblIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // CASCADE - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.cascade = iprot.readBool(); - struct.setCascadeIsSet(true); + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -48330,118 +41522,81 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_ca struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.dbname != null) { - oprot.writeFieldBegin(DBNAME_FIELD_DESC); - oprot.writeString(struct.dbname); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); - oprot.writeFieldEnd(); - } - if (struct.new_tbl != null) { - oprot.writeFieldBegin(NEW_TBL_FIELD_DESC); - struct.new_tbl.write(oprot); + if (struct.new_part != null) { + oprot.writeFieldBegin(NEW_PART_FIELD_DESC); + struct.new_part.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(CASCADE_FIELD_DESC); - oprot.writeBool(struct.cascade); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class alter_table_with_cascade_argsTupleSchemeFactory implements SchemeFactory { - public alter_table_with_cascade_argsTupleScheme getScheme() { - return new alter_table_with_cascade_argsTupleScheme(); + private static class add_partition_argsTupleSchemeFactory implements SchemeFactory { + public add_partition_argsTupleScheme getScheme() { + return new add_partition_argsTupleScheme(); } } - private static class alter_table_with_cascade_argsTupleScheme extends TupleScheme { + private static class add_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDbname()) { + if (struct.isSetNew_part()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetNew_tbl()) { - optionals.set(2); - } - if (struct.isSetCascade()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); - if (struct.isSetDbname()) { - oprot.writeString(struct.dbname); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetNew_tbl()) { - struct.new_tbl.write(oprot); - } - if (struct.isSetCascade()) { - oprot.writeBool(struct.cascade); + oprot.writeBitSet(optionals, 1); + if (struct.isSetNew_part()) { + struct.new_part.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.dbname = iprot.readString(); - struct.setDbnameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - struct.new_tbl = new Table(); - struct.new_tbl.read(iprot); - struct.setNew_tblIsSet(true); - } - if (incoming.get(3)) { - struct.cascade = iprot.readBool(); - struct.setCascadeIsSet(true); + struct.new_part = new Partition(); + struct.new_part.read(iprot); + struct.setNew_partIsSet(true); } } } } - public static class alter_table_with_cascade_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("alter_table_with_cascade_result"); + public static class add_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_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 O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new alter_table_with_cascade_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new alter_table_with_cascade_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partition_resultTupleSchemeFactory()); } - private InvalidOperationException o1; // required - private MetaException o2; // required + private Partition success; // required + private InvalidObjectException o1; // required + private AlreadyExistsException o2; // required + private MetaException o3; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)2, "o2"), + O3((short)3, "o3"); private static final Map byName = new HashMap(); @@ -48456,10 +41611,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cas */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; case 1: // O1 return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; default: return null; } @@ -48503,53 +41662,92 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.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, Partition.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))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_table_with_cascade_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_result.class, metaDataMap); } - public alter_table_with_cascade_result() { + public add_partition_result() { } - public alter_table_with_cascade_result( - InvalidOperationException o1, - MetaException o2) + public add_partition_result( + Partition success, + InvalidObjectException o1, + AlreadyExistsException o2, + MetaException o3) { this(); + this.success = success; this.o1 = o1; this.o2 = o2; + this.o3 = o3; } /** * Performs a deep copy on other. */ - public alter_table_with_cascade_result(alter_table_with_cascade_result other) { + public add_partition_result(add_partition_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } if (other.isSetO1()) { - this.o1 = new InvalidOperationException(other.o1); + this.o1 = new InvalidObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new AlreadyExistsException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); } } - public alter_table_with_cascade_result deepCopy() { - return new alter_table_with_cascade_result(this); + public add_partition_result deepCopy() { + return new add_partition_result(this); } @Override public void clear() { + this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; } - public InvalidOperationException getO1() { + public Partition getSuccess() { + return this.success; + } + + public void setSuccess(Partition 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 InvalidObjectException getO1() { return this.o1; } - public void setO1(InvalidOperationException o1) { + public void setO1(InvalidObjectException o1) { this.o1 = o1; } @@ -48568,11 +41766,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public AlreadyExistsException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(AlreadyExistsException o2) { this.o2 = o2; } @@ -48591,13 +41789,44 @@ public void setO2IsSet(boolean value) { } } + public MetaException getO3() { + return this.o3; + } + + public void setO3(MetaException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Partition)value); + } + break; + case O1: if (value == null) { unsetO1(); } else { - setO1((InvalidOperationException)value); + setO1((InvalidObjectException)value); } break; @@ -48605,7 +41834,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((AlreadyExistsException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((MetaException)value); } break; @@ -48614,12 +41851,18 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { + case SUCCESS: + return getSuccess(); + case O1: return getO1(); case O2: return getO2(); + case O3: + return getO3(); + } throw new IllegalStateException(); } @@ -48631,10 +41874,14 @@ public boolean isSet(_Fields field) { } switch (field) { + case SUCCESS: + return isSetSuccess(); case O1: return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); } throw new IllegalStateException(); } @@ -48643,15 +41890,24 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof alter_table_with_cascade_result) - return this.equals((alter_table_with_cascade_result)that); + if (that instanceof add_partition_result) + return this.equals((add_partition_result)that); return false; } - public boolean equals(alter_table_with_cascade_result that) { + public boolean equals(add_partition_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) { @@ -48670,50 +41926,89 @@ public boolean equals(alter_table_with_cascade_result that) { return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_success = true && (isSetSuccess()); + builder.append(present_success); + if (present_success) + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + boolean present_o3 = true && (isSetO3()); + builder.append(present_o3); + if (present_o3) + builder.append(o3); + + return builder.toHashCode(); } - @Override - public int compareTo(alter_table_with_cascade_result other) { + public int compareTo(add_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partition_result typedOther = (add_partition_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -48735,9 +42030,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("alter_table_with_cascade_result("); + StringBuilder sb = new StringBuilder("add_partition_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"); @@ -48753,6 +42056,14 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; sb.append(")"); return sb.toString(); } @@ -48760,6 +42071,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -48778,15 +42092,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_table_with_cascade_resultStandardSchemeFactory implements SchemeFactory { - public alter_table_with_cascade_resultStandardScheme getScheme() { - return new alter_table_with_cascade_resultStandardScheme(); + private static class add_partition_resultStandardSchemeFactory implements SchemeFactory { + public add_partition_resultStandardScheme getScheme() { + return new add_partition_resultStandardScheme(); } } - private static class alter_table_with_cascade_resultStandardScheme extends StandardScheme { + private static class add_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -48796,9 +42110,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_ca break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Partition(); + 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 InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -48807,13 +42130,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_ca break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -48823,10 +42155,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_table_with_ca struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_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); @@ -48837,74 +42174,104 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_table_with_c struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class alter_table_with_cascade_resultTupleSchemeFactory implements SchemeFactory { - public alter_table_with_cascade_resultTupleScheme getScheme() { - return new alter_table_with_cascade_resultTupleScheme(); + private static class add_partition_resultTupleSchemeFactory implements SchemeFactory { + public add_partition_resultTupleScheme getScheme() { + return new add_partition_resultTupleScheme(); } } - private static class alter_table_with_cascade_resultTupleScheme extends TupleScheme { + private static class add_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_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); + } + if (struct.isSetO3()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } if (struct.isSetO1()) { struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_table_with_cascade_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.o1 = new InvalidOperationException(); + struct.success = new Partition(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new InvalidObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new MetaException(); + if (incoming.get(2)) { + struct.o2 = new AlreadyExistsException(); struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } } } } - public static class add_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_args"); + public static class add_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_with_environment_context_args"); private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partition_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partition_with_environment_context_argsTupleSchemeFactory()); } private Partition new_part; // required + private EnvironmentContext environment_context; // 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 { - NEW_PART((short)1, "new_part"); + NEW_PART((short)1, "new_part"), + ENVIRONMENT_CONTEXT((short)2, "environment_context"); private static final Map byName = new HashMap(); @@ -48921,6 +42288,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // NEW_PART return NEW_PART; + case 2: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -48966,36 +42335,44 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_with_environment_context_args.class, metaDataMap); } - public add_partition_args() { + public add_partition_with_environment_context_args() { } - public add_partition_args( - Partition new_part) + public add_partition_with_environment_context_args( + Partition new_part, + EnvironmentContext environment_context) { this(); this.new_part = new_part; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public add_partition_args(add_partition_args other) { + public add_partition_with_environment_context_args(add_partition_with_environment_context_args other) { if (other.isSetNew_part()) { this.new_part = new Partition(other.new_part); } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); + } } - public add_partition_args deepCopy() { - return new add_partition_args(this); + public add_partition_with_environment_context_args deepCopy() { + return new add_partition_with_environment_context_args(this); } @Override public void clear() { this.new_part = null; + this.environment_context = null; } public Partition getNew_part() { @@ -49021,6 +42398,29 @@ public void setNew_partIsSet(boolean value) { } } + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case NEW_PART: @@ -49031,6 +42431,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); + } + break; + } } @@ -49039,6 +42447,9 @@ public Object getFieldValue(_Fields field) { case NEW_PART: return getNew_part(); + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); + } throw new IllegalStateException(); } @@ -49052,6 +42463,8 @@ public boolean isSet(_Fields field) { switch (field) { case NEW_PART: return isSetNew_part(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -49060,12 +42473,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partition_args) - return this.equals((add_partition_args)that); + if (that instanceof add_partition_with_environment_context_args) + return this.equals((add_partition_with_environment_context_args)that); return false; } - public boolean equals(add_partition_args that) { + public boolean equals(add_partition_with_environment_context_args that) { if (that == null) return false; @@ -49078,35 +42491,59 @@ public boolean equals(add_partition_args that) { return false; } + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); + builder.append(present_new_part); if (present_new_part) - list.add(new_part); + builder.append(new_part); + + boolean present_environment_context = true && (isSetEnvironment_context()); + builder.append(present_environment_context); + if (present_environment_context) + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(add_partition_args other) { + public int compareTo(add_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partition_with_environment_context_args typedOther = (add_partition_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -49128,7 +42565,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partition_args("); + StringBuilder sb = new StringBuilder("add_partition_with_environment_context_args("); boolean first = true; sb.append("new_part:"); @@ -49138,6 +42575,14 @@ public String toString() { sb.append(this.new_part); } first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); + } + first = false; sb.append(")"); return sb.toString(); } @@ -49148,6 +42593,9 @@ public void validate() throws org.apache.thrift.TException { if (new_part != null) { new_part.validate(); } + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -49166,15 +42614,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partition_argsStandardSchemeFactory implements SchemeFactory { - public add_partition_argsStandardScheme getScheme() { - return new add_partition_argsStandardScheme(); + private static class add_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public add_partition_with_environment_context_argsStandardScheme getScheme() { + return new add_partition_with_environment_context_argsStandardScheme(); } } - private static class add_partition_argsStandardScheme extends StandardScheme { + private static class add_partition_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -49193,6 +42641,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_args org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 2: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -49202,7 +42659,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -49211,49 +42668,65 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_args struct.new_part.write(oprot); oprot.writeFieldEnd(); } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class add_partition_argsTupleSchemeFactory implements SchemeFactory { - public add_partition_argsTupleScheme getScheme() { - return new add_partition_argsTupleScheme(); + private static class add_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public add_partition_with_environment_context_argsTupleScheme getScheme() { + return new add_partition_with_environment_context_argsTupleScheme(); } } - private static class add_partition_argsTupleScheme extends TupleScheme { + private static class add_partition_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetNew_part()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); + if (struct.isSetEnvironment_context()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); if (struct.isSetNew_part()) { struct.new_part.write(oprot); } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.new_part = new Partition(); struct.new_part.read(iprot); struct.setNew_partIsSet(true); } + if (incoming.get(1)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } } } } - public static class add_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_result"); + public static class add_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_with_environment_context_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); @@ -49262,8 +42735,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_args s private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partition_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partition_with_environment_context_resultTupleSchemeFactory()); } private Partition success; // required @@ -49351,13 +42824,13 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_with_environment_context_result.class, metaDataMap); } - public add_partition_result() { + public add_partition_with_environment_context_result() { } - public add_partition_result( + public add_partition_with_environment_context_result( Partition success, InvalidObjectException o1, AlreadyExistsException o2, @@ -49373,7 +42846,7 @@ public add_partition_result( /** * Performs a deep copy on other. */ - public add_partition_result(add_partition_result other) { + public add_partition_with_environment_context_result(add_partition_with_environment_context_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -49388,8 +42861,8 @@ public add_partition_result(add_partition_result other) { } } - public add_partition_result deepCopy() { - return new add_partition_result(this); + public add_partition_with_environment_context_result deepCopy() { + return new add_partition_with_environment_context_result(this); } @Override @@ -49570,12 +43043,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partition_result) - return this.equals((add_partition_result)that); + if (that instanceof add_partition_with_environment_context_result) + return this.equals((add_partition_with_environment_context_result)that); return false; } - public boolean equals(add_partition_result that) { + public boolean equals(add_partition_with_environment_context_result that) { if (that == null) return false; @@ -49620,75 +43093,75 @@ public boolean equals(add_partition_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(add_partition_result other) { + public int compareTo(add_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partition_with_environment_context_result typedOther = (add_partition_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -49710,7 +43183,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partition_result("); + StringBuilder sb = new StringBuilder("add_partition_with_environment_context_result("); boolean first = true; sb.append("success:"); @@ -49772,15 +43245,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partition_resultStandardSchemeFactory implements SchemeFactory { - public add_partition_resultStandardScheme getScheme() { - return new add_partition_resultStandardScheme(); + private static class add_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public add_partition_with_environment_context_resultStandardScheme getScheme() { + return new add_partition_with_environment_context_resultStandardScheme(); } } - private static class add_partition_resultStandardScheme extends StandardScheme { + private static class add_partition_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -49835,7 +43308,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_resul struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -49865,16 +43338,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_resu } - private static class add_partition_resultTupleSchemeFactory implements SchemeFactory { - public add_partition_resultTupleScheme getScheme() { - return new add_partition_resultTupleScheme(); + private static class add_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public add_partition_with_environment_context_resultTupleScheme getScheme() { + return new add_partition_with_environment_context_resultTupleScheme(); } } - private static class add_partition_resultTupleScheme extends TupleScheme { + private static class add_partition_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -49905,7 +43378,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_resul } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -49933,25 +43406,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_result } - public static class add_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_with_environment_context_args"); + public static class add_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_args"); - private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC = new org.apache.thrift.protocol.TField("new_part", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partition_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partition_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_argsTupleSchemeFactory()); } - private Partition new_part; // required - private EnvironmentContext environment_context; // required + private List new_parts; // 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 { - NEW_PART((short)1, "new_part"), - ENVIRONMENT_CONTEXT((short)2, "environment_context"); + NEW_PARTS((short)1, "new_parts"); private static final Map byName = new HashMap(); @@ -49966,10 +43436,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NEW_PART - return NEW_PART; - case 2: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 1: // NEW_PARTS + return NEW_PARTS; default: return null; } @@ -50013,109 +43481,90 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NEW_PART, new org.apache.thrift.meta_data.FieldMetaData("new_part", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); - tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); + tmpMap.put(_Fields.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", 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, Partition.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_args.class, metaDataMap); } - public add_partition_with_environment_context_args() { + public add_partitions_args() { } - public add_partition_with_environment_context_args( - Partition new_part, - EnvironmentContext environment_context) + public add_partitions_args( + List new_parts) { this(); - this.new_part = new_part; - this.environment_context = environment_context; + this.new_parts = new_parts; } /** * Performs a deep copy on other. */ - public add_partition_with_environment_context_args(add_partition_with_environment_context_args other) { - if (other.isSetNew_part()) { - this.new_part = new Partition(other.new_part); - } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + public add_partitions_args(add_partitions_args other) { + if (other.isSetNew_parts()) { + List __this__new_parts = new ArrayList(); + for (Partition other_element : other.new_parts) { + __this__new_parts.add(new Partition(other_element)); + } + this.new_parts = __this__new_parts; } } - public add_partition_with_environment_context_args deepCopy() { - return new add_partition_with_environment_context_args(this); + public add_partitions_args deepCopy() { + return new add_partitions_args(this); } @Override public void clear() { - this.new_part = null; - this.environment_context = null; - } - - public Partition getNew_part() { - return this.new_part; - } - - public void setNew_part(Partition new_part) { - this.new_part = new_part; + this.new_parts = null; } - public void unsetNew_part() { - this.new_part = null; + public int getNew_partsSize() { + return (this.new_parts == null) ? 0 : this.new_parts.size(); } - /** Returns true if field new_part is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_part() { - return this.new_part != null; + public java.util.Iterator getNew_partsIterator() { + return (this.new_parts == null) ? null : this.new_parts.iterator(); } - public void setNew_partIsSet(boolean value) { - if (!value) { - this.new_part = null; + public void addToNew_parts(Partition elem) { + if (this.new_parts == null) { + this.new_parts = new ArrayList(); } + this.new_parts.add(elem); } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public List getNew_parts() { + return this.new_parts; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setNew_parts(List new_parts) { + this.new_parts = new_parts; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetNew_parts() { + this.new_parts = null; } - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; + /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetNew_parts() { + return this.new_parts != null; } - public void setEnvironment_contextIsSet(boolean value) { + public void setNew_partsIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.new_parts = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case NEW_PART: - if (value == null) { - unsetNew_part(); - } else { - setNew_part((Partition)value); - } - break; - - case ENVIRONMENT_CONTEXT: + case NEW_PARTS: if (value == null) { - unsetEnvironment_context(); + unsetNew_parts(); } else { - setEnvironment_context((EnvironmentContext)value); + setNew_parts((List)value); } break; @@ -50124,11 +43573,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NEW_PART: - return getNew_part(); - - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case NEW_PARTS: + return getNew_parts(); } throw new IllegalStateException(); @@ -50141,10 +43587,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case NEW_PART: - return isSetNew_part(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case NEW_PARTS: + return isSetNew_parts(); } throw new IllegalStateException(); } @@ -50153,30 +43597,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partition_with_environment_context_args) - return this.equals((add_partition_with_environment_context_args)that); + if (that instanceof add_partitions_args) + return this.equals((add_partitions_args)that); return false; } - public boolean equals(add_partition_with_environment_context_args that) { + public boolean equals(add_partitions_args that) { if (that == null) return false; - boolean this_present_new_part = true && this.isSetNew_part(); - boolean that_present_new_part = true && that.isSetNew_part(); - if (this_present_new_part || that_present_new_part) { - if (!(this_present_new_part && that_present_new_part)) - return false; - if (!this.new_part.equals(that.new_part)) - return false; - } - - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) + boolean this_present_new_parts = true && this.isSetNew_parts(); + boolean that_present_new_parts = true && that.isSetNew_parts(); + if (this_present_new_parts || that_present_new_parts) { + if (!(this_present_new_parts && that_present_new_parts)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (!this.new_parts.equals(that.new_parts)) return false; } @@ -50185,45 +43620,30 @@ public boolean equals(add_partition_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); - if (present_new_part) - list.add(new_part); - - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_new_parts = true && (isSetNew_parts()); + builder.append(present_new_parts); + if (present_new_parts) + builder.append(new_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(add_partition_with_environment_context_args other) { + public int compareTo(add_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partitions_args typedOther = (add_partitions_args)other; - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(typedOther.isSetNew_parts()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetNew_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, typedOther.new_parts); if (lastComparison != 0) { return lastComparison; } @@ -50245,22 +43665,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partition_with_environment_context_args("); + StringBuilder sb = new StringBuilder("add_partitions_args("); boolean first = true; - sb.append("new_part:"); - if (this.new_part == null) { - sb.append("null"); - } else { - sb.append(this.new_part); - } - first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("new_parts:"); + if (this.new_parts == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.new_parts); } first = false; sb.append(")"); @@ -50270,12 +43682,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (new_part != null) { - new_part.validate(); - } - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -50294,15 +43700,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public add_partition_with_environment_context_argsStandardScheme getScheme() { - return new add_partition_with_environment_context_argsStandardScheme(); + private static class add_partitions_argsStandardSchemeFactory implements SchemeFactory { + public add_partitions_argsStandardScheme getScheme() { + return new add_partitions_argsStandardScheme(); } } - private static class add_partition_with_environment_context_argsStandardScheme extends StandardScheme { + private static class add_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -50312,20 +43718,21 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_ break; } switch (schemeField.id) { - case 1: // NEW_PART - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // ENVIRONMENT_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + case 1: // NEW_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list630 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list630.size); + for (int _i631 = 0; _i631 < _list630.size; ++_i631) + { + Partition _elem632; // required + _elem632 = new Partition(); + _elem632.read(iprot); + struct.new_parts.add(_elem632); + } + iprot.readListEnd(); + } + struct.setNew_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -50339,18 +43746,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.new_part != null) { - oprot.writeFieldBegin(NEW_PART_FIELD_DESC); - struct.new_part.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.new_parts != null) { + oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); + for (Partition _iter633 : struct.new_parts) + { + _iter633.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -50359,67 +43768,71 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with } - private static class add_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public add_partition_with_environment_context_argsTupleScheme getScheme() { - return new add_partition_with_environment_context_argsTupleScheme(); + private static class add_partitions_argsTupleSchemeFactory implements SchemeFactory { + public add_partitions_argsTupleScheme getScheme() { + return new add_partitions_argsTupleScheme(); } } - private static class add_partition_with_environment_context_argsTupleScheme extends TupleScheme { + private static class add_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetNew_part()) { + if (struct.isSetNew_parts()) { optionals.set(0); } - if (struct.isSetEnvironment_context()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetNew_part()) { - struct.new_part.write(oprot); - } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + oprot.writeBitSet(optionals, 1); + if (struct.isSetNew_parts()) { + { + oprot.writeI32(struct.new_parts.size()); + for (Partition _iter634 : struct.new_parts) + { + _iter634.write(oprot); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.new_part = new Partition(); - struct.new_part.read(iprot); - struct.setNew_partIsSet(true); - } - if (incoming.get(1)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + { + org.apache.thrift.protocol.TList _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list635.size); + for (int _i636 = 0; _i636 < _list635.size; ++_i636) + { + Partition _elem637; // required + _elem637 = new Partition(); + _elem637.read(iprot); + struct.new_parts.add(_elem637); + } + } + struct.setNew_partsIsSet(true); } } } } - public static class add_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partition_with_environment_context_result"); + public static class add_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_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 SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (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 O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partition_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partition_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_resultTupleSchemeFactory()); } - private Partition success; // required + private int success; // required private InvalidObjectException o1; // required private AlreadyExistsException o2; // required private MetaException o3; // required @@ -50492,11 +43905,13 @@ 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); 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, @@ -50504,20 +43919,21 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partition_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_result.class, metaDataMap); } - public add_partition_with_environment_context_result() { + public add_partitions_result() { } - public add_partition_with_environment_context_result( - Partition success, + public add_partitions_result( + int success, InvalidObjectException o1, AlreadyExistsException o2, MetaException o3) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; this.o3 = o3; @@ -50526,10 +43942,9 @@ public add_partition_with_environment_context_result( /** * Performs a deep copy on other. */ - public add_partition_with_environment_context_result(add_partition_with_environment_context_result other) { - if (other.isSetSuccess()) { - this.success = new Partition(other.success); - } + public add_partitions_result(add_partitions_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { this.o1 = new InvalidObjectException(other.o1); } @@ -50541,39 +43956,39 @@ public add_partition_with_environment_context_result(add_partition_with_environm } } - public add_partition_with_environment_context_result deepCopy() { - return new add_partition_with_environment_context_result(this); + public add_partitions_result deepCopy() { + return new add_partitions_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = 0; this.o1 = null; this.o2 = null; this.o3 = null; } - public Partition getSuccess() { + public int getSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(int success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __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 this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public InvalidObjectException getO1() { @@ -50651,7 +44066,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((Integer)value); } break; @@ -50685,7 +44100,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Integer.valueOf(getSuccess()); case O1: return getO1(); @@ -50723,21 +44138,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partition_with_environment_context_result) - return this.equals((add_partition_with_environment_context_result)that); + if (that instanceof add_partitions_result) + return this.equals((add_partitions_result)that); return false; } - public boolean equals(add_partition_with_environment_context_result that) { + public boolean equals(add_partitions_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + 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.equals(that.success)) + if (this.success != that.success) return false; } @@ -50773,75 +44188,75 @@ public boolean equals(add_partition_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); + boolean present_success = true; + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(add_partition_with_environment_context_result other) { + public int compareTo(add_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partitions_result typedOther = (add_partitions_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -50863,15 +44278,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partition_with_environment_context_result("); + StringBuilder sb = new StringBuilder("add_partitions_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -50904,9 +44315,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 { @@ -50919,21 +44327,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 add_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public add_partition_with_environment_context_resultStandardScheme getScheme() { - return new add_partition_with_environment_context_resultStandardScheme(); + private static class add_partitions_resultStandardSchemeFactory implements SchemeFactory { + public add_partitions_resultStandardScheme getScheme() { + return new add_partitions_resultStandardScheme(); } } - private static class add_partition_with_environment_context_resultStandardScheme extends StandardScheme { + private static class add_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -50944,9 +44354,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_ } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -50988,13 +44397,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeI32(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -51018,16 +44427,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partition_with } - private static class add_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public add_partition_with_environment_context_resultTupleScheme getScheme() { - return new add_partition_with_environment_context_resultTupleScheme(); + private static class add_partitions_resultTupleSchemeFactory implements SchemeFactory { + public add_partitions_resultTupleScheme getScheme() { + return new add_partitions_resultTupleScheme(); } } - private static class add_partition_with_environment_context_resultTupleScheme extends TupleScheme { + private static class add_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -51044,7 +44453,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_ } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeI32(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -51058,12 +44467,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partition_with_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new Partition(); - struct.success.read(iprot); + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -51086,18 +44494,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partition_with_e } - public static class add_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_args"); + public static class add_partitions_pspec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_pspec_args"); private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_pspec_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_pspec_argsTupleSchemeFactory()); } - private List new_parts; // required + private List new_parts; // 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 { @@ -51163,16 +44571,16 @@ 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.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", 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, Partition.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionSpec.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_pspec_args.class, metaDataMap); } - public add_partitions_args() { + public add_partitions_pspec_args() { } - public add_partitions_args( - List new_parts) + public add_partitions_pspec_args( + List new_parts) { this(); this.new_parts = new_parts; @@ -51181,18 +44589,18 @@ public add_partitions_args( /** * Performs a deep copy on other. */ - public add_partitions_args(add_partitions_args other) { + public add_partitions_pspec_args(add_partitions_pspec_args other) { if (other.isSetNew_parts()) { - List __this__new_parts = new ArrayList(other.new_parts.size()); - for (Partition other_element : other.new_parts) { - __this__new_parts.add(new Partition(other_element)); + List __this__new_parts = new ArrayList(); + for (PartitionSpec other_element : other.new_parts) { + __this__new_parts.add(new PartitionSpec(other_element)); } this.new_parts = __this__new_parts; } } - public add_partitions_args deepCopy() { - return new add_partitions_args(this); + public add_partitions_pspec_args deepCopy() { + return new add_partitions_pspec_args(this); } @Override @@ -51204,22 +44612,22 @@ public int getNew_partsSize() { return (this.new_parts == null) ? 0 : this.new_parts.size(); } - public java.util.Iterator getNew_partsIterator() { + public java.util.Iterator getNew_partsIterator() { return (this.new_parts == null) ? null : this.new_parts.iterator(); } - public void addToNew_parts(Partition elem) { + public void addToNew_parts(PartitionSpec elem) { if (this.new_parts == null) { - this.new_parts = new ArrayList(); + this.new_parts = new ArrayList(); } this.new_parts.add(elem); } - public List getNew_parts() { + public List getNew_parts() { return this.new_parts; } - public void setNew_parts(List new_parts) { + public void setNew_parts(List new_parts) { this.new_parts = new_parts; } @@ -51244,7 +44652,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetNew_parts(); } else { - setNew_parts((List)value); + setNew_parts((List)value); } break; @@ -51277,12 +44685,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_args) - return this.equals((add_partitions_args)that); + if (that instanceof add_partitions_pspec_args) + return this.equals((add_partitions_pspec_args)that); return false; } - public boolean equals(add_partitions_args that) { + public boolean equals(add_partitions_pspec_args that) { if (that == null) return false; @@ -51300,30 +44708,30 @@ public boolean equals(add_partitions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_new_parts = true && (isSetNew_parts()); - list.add(present_new_parts); + builder.append(present_new_parts); if (present_new_parts) - list.add(new_parts); + builder.append(new_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(add_partitions_args other) { + public int compareTo(add_partitions_pspec_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partitions_pspec_args typedOther = (add_partitions_pspec_args)other; - lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); + lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(typedOther.isSetNew_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, typedOther.new_parts); if (lastComparison != 0) { return lastComparison; } @@ -51345,7 +44753,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_args("); + StringBuilder sb = new StringBuilder("add_partitions_pspec_args("); boolean first = true; sb.append("new_parts:"); @@ -51380,15 +44788,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partitions_argsStandardSchemeFactory implements SchemeFactory { - public add_partitions_argsStandardScheme getScheme() { - return new add_partitions_argsStandardScheme(); + private static class add_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { + public add_partitions_pspec_argsStandardScheme getScheme() { + return new add_partitions_pspec_argsStandardScheme(); } } - private static class add_partitions_argsStandardScheme extends StandardScheme { + private static class add_partitions_pspec_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -51401,14 +44809,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list630 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list630.size); - Partition _elem631; - for (int _i632 = 0; _i632 < _list630.size; ++_i632) + org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list638.size); + for (int _i639 = 0; _i639 < _list638.size; ++_i639) { - _elem631 = new Partition(); - _elem631.read(iprot); - struct.new_parts.add(_elem631); + PartitionSpec _elem640; // required + _elem640 = new PartitionSpec(); + _elem640.read(iprot); + struct.new_parts.add(_elem640); } iprot.readListEnd(); } @@ -51426,7 +44834,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -51434,9 +44842,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_arg oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter633 : struct.new_parts) + for (PartitionSpec _iter641 : struct.new_parts) { - _iter633.write(oprot); + _iter641.write(oprot); } oprot.writeListEnd(); } @@ -51448,16 +44856,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_arg } - private static class add_partitions_argsTupleSchemeFactory implements SchemeFactory { - public add_partitions_argsTupleScheme getScheme() { - return new add_partitions_argsTupleScheme(); + private static class add_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { + public add_partitions_pspec_argsTupleScheme getScheme() { + return new add_partitions_pspec_argsTupleScheme(); } } - private static class add_partitions_argsTupleScheme extends TupleScheme { + private static class add_partitions_pspec_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetNew_parts()) { @@ -51467,28 +44875,28 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter634 : struct.new_parts) + for (PartitionSpec _iter642 : struct.new_parts) { - _iter634.write(oprot); + _iter642.write(oprot); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list635.size); - Partition _elem636; - for (int _i637 = 0; _i637 < _list635.size; ++_i637) + org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list643.size); + for (int _i644 = 0; _i644 < _list643.size; ++_i644) { - _elem636 = new Partition(); - _elem636.read(iprot); - struct.new_parts.add(_elem636); + PartitionSpec _elem645; // required + _elem645 = new PartitionSpec(); + _elem645.read(iprot); + struct.new_parts.add(_elem645); } } struct.setNew_partsIsSet(true); @@ -51498,8 +44906,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args } - public static class add_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_result"); + public static class add_partitions_pspec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_pspec_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (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); @@ -51508,8 +44916,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_pspec_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_pspec_resultTupleSchemeFactory()); } private int success; // required @@ -51599,13 +45007,13 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_pspec_result.class, metaDataMap); } - public add_partitions_result() { + public add_partitions_pspec_result() { } - public add_partitions_result( + public add_partitions_pspec_result( int success, InvalidObjectException o1, AlreadyExistsException o2, @@ -51622,7 +45030,7 @@ public add_partitions_result( /** * Performs a deep copy on other. */ - public add_partitions_result(add_partitions_result other) { + public add_partitions_pspec_result(add_partitions_pspec_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetO1()) { @@ -51636,8 +45044,8 @@ public add_partitions_result(add_partitions_result other) { } } - public add_partitions_result deepCopy() { - return new add_partitions_result(this); + public add_partitions_pspec_result deepCopy() { + return new add_partitions_pspec_result(this); } @Override @@ -51818,12 +45226,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_result) - return this.equals((add_partitions_result)that); + if (that instanceof add_partitions_pspec_result) + return this.equals((add_partitions_pspec_result)that); return false; } - public boolean equals(add_partitions_result that) { + public boolean equals(add_partitions_pspec_result that) { if (that == null) return false; @@ -51868,75 +45276,75 @@ public boolean equals(add_partitions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(add_partitions_result other) { + public int compareTo(add_partitions_pspec_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partitions_pspec_result typedOther = (add_partitions_pspec_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -51958,7 +45366,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_result("); + StringBuilder sb = new StringBuilder("add_partitions_pspec_result("); boolean first = true; sb.append("success:"); @@ -52015,15 +45423,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partitions_resultStandardSchemeFactory implements SchemeFactory { - public add_partitions_resultStandardScheme getScheme() { - return new add_partitions_resultStandardScheme(); + private static class add_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { + public add_partitions_pspec_resultStandardScheme getScheme() { + return new add_partitions_pspec_resultStandardScheme(); } } - private static class add_partitions_resultStandardScheme extends StandardScheme { + private static class add_partitions_pspec_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -52077,7 +45485,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -52107,16 +45515,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_res } - private static class add_partitions_resultTupleSchemeFactory implements SchemeFactory { - public add_partitions_resultTupleScheme getScheme() { - return new add_partitions_resultTupleScheme(); + private static class add_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { + public add_partitions_pspec_resultTupleScheme getScheme() { + return new add_partitions_pspec_resultTupleScheme(); } } - private static class add_partitions_resultTupleScheme extends TupleScheme { + private static class add_partitions_pspec_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -52147,7 +45555,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -52174,22 +45582,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_resul } - public static class add_partitions_pspec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_pspec_args"); + public static class append_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_args"); - private static final org.apache.thrift.protocol.TField NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", org.apache.thrift.protocol.TType.LIST, (short)1); + 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 PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_pspec_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_pspec_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_argsTupleSchemeFactory()); } - private List new_parts; // required + private String db_name; // required + private String tbl_name; // required + private List part_vals; // 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 { - NEW_PARTS((short)1, "new_parts"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_VALS((short)3, "part_vals"); private static final Map byName = new HashMap(); @@ -52204,8 +45618,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_resul */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // NEW_PARTS - return NEW_PARTS; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; default: return null; } @@ -52249,90 +45667,168 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.NEW_PARTS, new org.apache.thrift.meta_data.FieldMetaData("new_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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, PartitionSpec.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_pspec_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_args.class, metaDataMap); } - public add_partitions_pspec_args() { + public append_partition_args() { } - public add_partitions_pspec_args( - List new_parts) + public append_partition_args( + String db_name, + String tbl_name, + List part_vals) { this(); - this.new_parts = new_parts; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; } /** * Performs a deep copy on other. */ - public add_partitions_pspec_args(add_partitions_pspec_args other) { - if (other.isSetNew_parts()) { - List __this__new_parts = new ArrayList(other.new_parts.size()); - for (PartitionSpec other_element : other.new_parts) { - __this__new_parts.add(new PartitionSpec(other_element)); + public append_partition_args(append_partition_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); } - this.new_parts = __this__new_parts; + this.part_vals = __this__part_vals; } } - public add_partitions_pspec_args deepCopy() { - return new add_partitions_pspec_args(this); + public append_partition_args deepCopy() { + return new append_partition_args(this); } @Override public void clear() { - this.new_parts = null; + this.db_name = null; + this.tbl_name = null; + this.part_vals = null; } - public int getNew_partsSize() { - return (this.new_parts == null) ? 0 : this.new_parts.size(); + public String getDb_name() { + return this.db_name; } - public java.util.Iterator getNew_partsIterator() { - return (this.new_parts == null) ? null : this.new_parts.iterator(); + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void addToNew_parts(PartitionSpec elem) { - if (this.new_parts == null) { - this.new_parts = new ArrayList(); + 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; } - this.new_parts.add(elem); } - public List getNew_parts() { - return this.new_parts; + public String getTbl_name() { + return this.tbl_name; } - public void setNew_parts(List new_parts) { - this.new_parts = new_parts; + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public void unsetNew_parts() { - this.new_parts = null; + public void unsetTbl_name() { + this.tbl_name = null; } - /** Returns true if field new_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetNew_parts() { - return this.new_parts != 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 setNew_partsIsSet(boolean value) { + public void setTbl_nameIsSet(boolean value) { if (!value) { - this.new_parts = null; + this.tbl_name = null; + } + } + + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); + } + + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); + } + + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); + } + + public List getPart_vals() { + return this.part_vals; + } + + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case NEW_PARTS: + case DB_NAME: if (value == null) { - unsetNew_parts(); + unsetDb_name(); } else { - setNew_parts((List)value); + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); } break; @@ -52341,8 +45837,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case NEW_PARTS: - return getNew_parts(); + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_VALS: + return getPart_vals(); } throw new IllegalStateException(); @@ -52355,8 +45857,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case NEW_PARTS: - return isSetNew_parts(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); } throw new IllegalStateException(); } @@ -52365,21 +45871,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_pspec_args) - return this.equals((add_partitions_pspec_args)that); + if (that instanceof append_partition_args) + return this.equals((append_partition_args)that); return false; } - public boolean equals(add_partitions_pspec_args that) { + public boolean equals(append_partition_args that) { if (that == null) return false; - boolean this_present_new_parts = true && this.isSetNew_parts(); - boolean that_present_new_parts = true && that.isSetNew_parts(); - if (this_present_new_parts || that_present_new_parts) { - if (!(this_present_new_parts && that_present_new_parts)) + 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.new_parts.equals(that.new_parts)) + 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_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) return false; } @@ -52388,30 +45912,60 @@ public boolean equals(add_partitions_pspec_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_new_parts = true && (isSetNew_parts()); - list.add(present_new_parts); - if (present_new_parts) - list.add(new_parts); + boolean present_db_name = true && (isSetDb_name()); + builder.append(present_db_name); + if (present_db_name) + builder.append(db_name); - return list.hashCode(); + boolean present_tbl_name = true && (isSetTbl_name()); + builder.append(present_tbl_name); + if (present_tbl_name) + builder.append(tbl_name); + + boolean present_part_vals = true && (isSetPart_vals()); + builder.append(present_part_vals); + if (present_part_vals) + builder.append(part_vals); + + return builder.toHashCode(); } - @Override - public int compareTo(add_partitions_pspec_args other) { + public int compareTo(append_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_args typedOther = (append_partition_args)other; - lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetNew_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -52433,14 +45987,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_pspec_args("); + StringBuilder sb = new StringBuilder("append_partition_args("); boolean first = true; - sb.append("new_parts:"); - if (this.new_parts == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.new_parts); + 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("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); } first = false; sb.append(")"); @@ -52468,15 +46038,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { - public add_partitions_pspec_argsStandardScheme getScheme() { - return new add_partitions_pspec_argsStandardScheme(); + private static class append_partition_argsStandardSchemeFactory implements SchemeFactory { + public append_partition_argsStandardScheme getScheme() { + return new append_partition_argsStandardScheme(); } } - private static class add_partitions_pspec_argsStandardScheme extends StandardScheme { + private static class append_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -52486,21 +46056,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe break; } switch (schemeField.id) { - case 1: // NEW_PARTS + 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: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list638.size); - PartitionSpec _elem639; - for (int _i640 = 0; _i640 < _list638.size; ++_i640) + org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list646.size); + for (int _i647 = 0; _i647 < _list646.size; ++_i647) { - _elem639 = new PartitionSpec(); - _elem639.read(iprot); - struct.new_parts.add(_elem639); + String _elem648; // required + _elem648 = iprot.readString(); + struct.part_vals.add(_elem648); } iprot.readListEnd(); } - struct.setNew_partsIsSet(true); + struct.setPart_valsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -52514,17 +46099,27 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.new_parts != null) { - oprot.writeFieldBegin(NEW_PARTS_FIELD_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.part_vals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (PartitionSpec _iter641 : struct.new_parts) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); + for (String _iter649 : struct.part_vals) { - _iter641.write(oprot); + oprot.writeString(_iter649); } oprot.writeListEnd(); } @@ -52536,71 +46131,90 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp } - private static class add_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { - public add_partitions_pspec_argsTupleScheme getScheme() { - return new add_partitions_pspec_argsTupleScheme(); + private static class append_partition_argsTupleSchemeFactory implements SchemeFactory { + public append_partition_argsTupleScheme getScheme() { + return new append_partition_argsTupleScheme(); } } - private static class add_partitions_pspec_argsTupleScheme extends TupleScheme { + private static class append_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetNew_parts()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetNew_parts()) { + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetPart_vals()) { + 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.isSetPart_vals()) { { - oprot.writeI32(struct.new_parts.size()); - for (PartitionSpec _iter642 : struct.new_parts) + oprot.writeI32(struct.part_vals.size()); + for (String _iter650 : struct.part_vals) { - _iter642.write(oprot); + oprot.writeString(_iter650); } } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + 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)) { { - org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list643.size); - PartitionSpec _elem644; - for (int _i645 = 0; _i645 < _list643.size; ++_i645) + org.apache.thrift.protocol.TList _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list651.size); + for (int _i652 = 0; _i652 < _list651.size; ++_i652) { - _elem644 = new PartitionSpec(); - _elem644.read(iprot); - struct.new_parts.add(_elem644); + String _elem653; // required + _elem653 = iprot.readString(); + struct.part_vals.add(_elem653); } } - struct.setNew_partsIsSet(true); + struct.setPart_valsIsSet(true); } } } } - public static class add_partitions_pspec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_pspec_result"); + public static class append_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final 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 O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_pspec_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_pspec_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_resultTupleSchemeFactory()); } - private int success; // required + private Partition success; // required private InvalidObjectException o1; // required private AlreadyExistsException o2; // required private MetaException o3; // required @@ -52673,13 +46287,11 @@ 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.I32))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.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, @@ -52687,21 +46299,20 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_pspec_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_result.class, metaDataMap); } - public add_partitions_pspec_result() { + public append_partition_result() { } - public add_partitions_pspec_result( - int success, + public append_partition_result( + Partition success, InvalidObjectException o1, AlreadyExistsException o2, MetaException o3) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; this.o3 = o3; @@ -52710,9 +46321,10 @@ public add_partitions_pspec_result( /** * Performs a deep copy on other. */ - public add_partitions_pspec_result(add_partitions_pspec_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public append_partition_result(append_partition_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } if (other.isSetO1()) { this.o1 = new InvalidObjectException(other.o1); } @@ -52724,39 +46336,39 @@ public add_partitions_pspec_result(add_partitions_pspec_result other) { } } - public add_partitions_pspec_result deepCopy() { - return new add_partitions_pspec_result(this); + public append_partition_result deepCopy() { + return new append_partition_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = 0; + this.success = null; this.o1 = null; this.o2 = null; this.o3 = null; } - public int getSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(int success) { + public void setSuccess(Partition 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 InvalidObjectException getO1() { @@ -52834,7 +46446,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Integer)value); + setSuccess((Partition)value); } break; @@ -52868,7 +46480,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Integer.valueOf(getSuccess()); + return getSuccess(); case O1: return getO1(); @@ -52906,21 +46518,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_pspec_result) - return this.equals((add_partitions_pspec_result)that); + if (that instanceof append_partition_result) + return this.equals((append_partition_result)that); return false; } - public boolean equals(add_partitions_pspec_result that) { + public boolean equals(append_partition_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; } @@ -52956,75 +46568,75 @@ public boolean equals(add_partitions_pspec_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_success = true; - list.add(present_success); + boolean present_success = true && (isSetSuccess()); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(add_partitions_pspec_result other) { + public int compareTo(append_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_result typedOther = (append_partition_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -53046,11 +46658,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_pspec_result("); + StringBuilder sb = new StringBuilder("append_partition_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:"); @@ -53083,6 +46699,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -53095,23 +46714,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 add_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { - public add_partitions_pspec_resultStandardScheme getScheme() { - return new add_partitions_pspec_resultStandardScheme(); + private static class append_partition_resultStandardSchemeFactory implements SchemeFactory { + public append_partition_resultStandardScheme getScheme() { + return new append_partition_resultStandardScheme(); } } - private static class add_partitions_pspec_resultStandardScheme extends StandardScheme { + private static class append_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -53122,8 +46739,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.success = iprot.readI32(); + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -53165,13 +46783,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_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.writeI32(struct.success); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -53195,16 +46813,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp } - private static class add_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { - public add_partitions_pspec_resultTupleScheme getScheme() { - return new add_partitions_pspec_resultTupleScheme(); + private static class append_partition_resultTupleSchemeFactory implements SchemeFactory { + public append_partition_resultTupleScheme getScheme() { + return new append_partition_resultTupleScheme(); } } - private static class add_partitions_pspec_resultTupleScheme extends TupleScheme { + private static class append_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -53221,7 +46839,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe } oprot.writeBitSet(optionals, 4); if (struct.isSetSuccess()) { - oprot.writeI32(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -53235,11 +46853,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = iprot.readI32(); + struct.success = new Partition(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -53262,28 +46881,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec } - public static class append_partition_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("append_partition_args"); + public static class add_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_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 PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_req_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private List part_vals; // required + private AddPartitionsRequest request; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - PART_VALS((short)3, "part_vals"); + REQUEST((short)1, "request"); private static final Map byName = new HashMap(); @@ -53298,12 +46911,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; + case 1: // REQUEST + return REQUEST; default: return null; } @@ -53347,165 +46956,70 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.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.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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)))); + tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPartitionsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_req_args.class, metaDataMap); } - public append_partition_args() { + public add_partitions_req_args() { } - public append_partition_args( - String db_name, - String tbl_name, - List part_vals) + public add_partitions_req_args( + AddPartitionsRequest request) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_vals = part_vals; + this.request = request; } /** * Performs a deep copy on other. */ - public append_partition_args(append_partition_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; - } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + public add_partitions_req_args(add_partitions_req_args other) { + if (other.isSetRequest()) { + this.request = new AddPartitionsRequest(other.request); } } - public append_partition_args deepCopy() { - return new append_partition_args(this); + public add_partitions_req_args deepCopy() { + return new add_partitions_req_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_vals = 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 int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); + this.request = null; } - public List getPart_vals() { - return this.part_vals; + public AddPartitionsRequest getRequest() { + return this.request; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setRequest(AddPartitionsRequest request) { + this.request = request; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetRequest() { + this.request = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field request is set (has been assigned a value) and false otherwise */ + public boolean isSetRequest() { + return this.request != null; } - public void setPart_valsIsSet(boolean value) { + public void setRequestIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.request = 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 PART_VALS: + case REQUEST: if (value == null) { - unsetPart_vals(); + unsetRequest(); } else { - setPart_vals((List)value); + setRequest((AddPartitionsRequest)value); } break; @@ -53514,14 +47028,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case PART_VALS: - return getPart_vals(); + case REQUEST: + return getRequest(); } throw new IllegalStateException(); @@ -53534,12 +47042,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); + case REQUEST: + return isSetRequest(); } throw new IllegalStateException(); } @@ -53548,39 +47052,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_args) - return this.equals((append_partition_args)that); + if (that instanceof add_partitions_req_args) + return this.equals((add_partitions_req_args)that); return false; } - public boolean equals(append_partition_args that) { + public boolean equals(add_partitions_req_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_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) + boolean this_present_request = true && this.isSetRequest(); + boolean that_present_request = true && that.isSetRequest(); + if (this_present_request || that_present_request) { + if (!(this_present_request && that_present_request)) return false; - if (!this.part_vals.equals(that.part_vals)) + if (!this.request.equals(that.request)) return false; } @@ -53589,60 +47075,30 @@ public boolean equals(append_partition_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - 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_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); + boolean present_request = true && (isSetRequest()); + builder.append(present_request); + if (present_request) + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(append_partition_args other) { + public int compareTo(add_partitions_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partitions_req_args typedOther = (add_partitions_req_args)other; - 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(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -53664,30 +47120,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_args("); + StringBuilder sb = new StringBuilder("add_partitions_req_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("part_vals:"); - if (this.part_vals == null) { + sb.append("request:"); + if (this.request == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.request); } first = false; sb.append(")"); @@ -53697,6 +47137,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (request != null) { + request.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -53715,15 +47158,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_argsStandardSchemeFactory implements SchemeFactory { - public append_partition_argsStandardScheme getScheme() { - return new append_partition_argsStandardScheme(); + private static class add_partitions_req_argsStandardSchemeFactory implements SchemeFactory { + public add_partitions_req_argsStandardScheme getScheme() { + return new add_partitions_req_argsStandardScheme(); } } - private static class append_partition_argsStandardScheme extends StandardScheme { + private static class add_partitions_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -53733,36 +47176,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar 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: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list646.size); - String _elem647; - for (int _i648 = 0; _i648 < _list646.size; ++_i648) - { - _elem647 = iprot.readString(); - struct.part_vals.add(_elem647); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); + case 1: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new AddPartitionsRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -53776,30 +47194,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req_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.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter649 : struct.part_vals) - { - oprot.writeString(_iter649); - } - oprot.writeListEnd(); - } + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -53808,77 +47209,43 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_a } - private static class append_partition_argsTupleSchemeFactory implements SchemeFactory { - public append_partition_argsTupleScheme getScheme() { - return new append_partition_argsTupleScheme(); + private static class add_partitions_req_argsTupleSchemeFactory implements SchemeFactory { + public add_partitions_req_argsTupleScheme getScheme() { + return new add_partitions_req_argsTupleScheme(); } } - private static class append_partition_argsTupleScheme extends TupleScheme { + private static class add_partitions_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetRequest()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetPart_vals()) { - 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.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter650 : struct.part_vals) - { - oprot.writeString(_iter650); - } - } + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); 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)) { - { - org.apache.thrift.protocol.TList _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list651.size); - String _elem652; - for (int _i653 = 0; _i653 < _list651.size; ++_i653) - { - _elem652 = iprot.readString(); - struct.part_vals.add(_elem652); - } - } - struct.setPart_valsIsSet(true); + struct.request = new AddPartitionsRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } } } } - public static class append_partition_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("append_partition_result"); + public static class add_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -53887,11 +47254,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_partitions_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_partitions_req_resultTupleSchemeFactory()); } - private Partition success; // required + private AddPartitionsResult success; // required private InvalidObjectException o1; // required private AlreadyExistsException o2; // required private MetaException o3; // required @@ -53968,7 +47335,7 @@ 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, Partition.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPartitionsResult.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, @@ -53976,14 +47343,14 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_req_result.class, metaDataMap); } - public append_partition_result() { + public add_partitions_req_result() { } - public append_partition_result( - Partition success, + public add_partitions_req_result( + AddPartitionsResult success, InvalidObjectException o1, AlreadyExistsException o2, MetaException o3) @@ -53998,9 +47365,9 @@ public append_partition_result( /** * Performs a deep copy on other. */ - public append_partition_result(append_partition_result other) { + public add_partitions_req_result(add_partitions_req_result other) { if (other.isSetSuccess()) { - this.success = new Partition(other.success); + this.success = new AddPartitionsResult(other.success); } if (other.isSetO1()) { this.o1 = new InvalidObjectException(other.o1); @@ -54013,8 +47380,8 @@ public append_partition_result(append_partition_result other) { } } - public append_partition_result deepCopy() { - return new append_partition_result(this); + public add_partitions_req_result deepCopy() { + return new add_partitions_req_result(this); } @Override @@ -54025,11 +47392,11 @@ public void clear() { this.o3 = null; } - public Partition getSuccess() { + public AddPartitionsResult getSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(AddPartitionsResult success) { this.success = success; } @@ -54123,7 +47490,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((AddPartitionsResult)value); } break; @@ -54195,12 +47562,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_result) - return this.equals((append_partition_result)that); + if (that instanceof add_partitions_req_result) + return this.equals((add_partitions_req_result)that); return false; } - public boolean equals(append_partition_result that) { + public boolean equals(add_partitions_req_result that) { if (that == null) return false; @@ -54245,75 +47612,75 @@ public boolean equals(append_partition_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(append_partition_result other) { + public int compareTo(add_partitions_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_partitions_req_result typedOther = (add_partitions_req_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -54335,7 +47702,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_result("); + StringBuilder sb = new StringBuilder("add_partitions_req_result("); boolean first = true; sb.append("success:"); @@ -54397,15 +47764,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_resultStandardSchemeFactory implements SchemeFactory { - public append_partition_resultStandardScheme getScheme() { - return new append_partition_resultStandardScheme(); + private static class add_partitions_req_resultStandardSchemeFactory implements SchemeFactory { + public add_partitions_req_resultStandardScheme getScheme() { + return new add_partitions_req_resultStandardScheme(); } } - private static class append_partition_resultStandardScheme extends StandardScheme { + private static class add_partitions_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -54417,7 +47784,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_re switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); + struct.success = new AddPartitionsResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -54460,7 +47827,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_re struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -54490,16 +47857,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_r } - private static class append_partition_resultTupleSchemeFactory implements SchemeFactory { - public append_partition_resultTupleScheme getScheme() { - return new append_partition_resultTupleScheme(); + private static class add_partitions_req_resultTupleSchemeFactory implements SchemeFactory { + public add_partitions_req_resultTupleScheme getScheme() { + return new add_partitions_req_resultTupleScheme(); } } - private static class append_partition_resultTupleScheme extends TupleScheme { + private static class add_partitions_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -54530,11 +47897,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_re } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new Partition(); + struct.success = new AddPartitionsResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -54558,22 +47925,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_res } - public static class add_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_args"); + public static class append_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_with_environment_context_args"); - private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final 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 PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_with_environment_context_argsTupleSchemeFactory()); } - private AddPartitionsRequest request; // required + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required + private EnvironmentContext environment_context; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - REQUEST((short)1, "request"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_VALS((short)3, "part_vals"), + ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -54588,8 +47964,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_res */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQUEST - return REQUEST; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; + case 4: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -54633,70 +48015,207 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPartitionsRequest.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.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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)))); + tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_with_environment_context_args.class, metaDataMap); } - public add_partitions_req_args() { + public append_partition_with_environment_context_args() { } - public add_partitions_req_args( - AddPartitionsRequest request) + public append_partition_with_environment_context_args( + String db_name, + String tbl_name, + List part_vals, + EnvironmentContext environment_context) { this(); - this.request = request; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public add_partitions_req_args(add_partitions_req_args other) { - if (other.isSetRequest()) { - this.request = new AddPartitionsRequest(other.request); + public append_partition_with_environment_context_args(append_partition_with_environment_context_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } + this.part_vals = __this__part_vals; + } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); } } - public add_partitions_req_args deepCopy() { - return new add_partitions_req_args(this); + public append_partition_with_environment_context_args deepCopy() { + return new append_partition_with_environment_context_args(this); } @Override public void clear() { - this.request = null; + this.db_name = null; + this.tbl_name = null; + this.part_vals = null; + this.environment_context = null; } - public AddPartitionsRequest getRequest() { - return this.request; + public String getDb_name() { + return this.db_name; } - public void setRequest(AddPartitionsRequest request) { - this.request = request; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetRequest() { - this.request = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field request is set (has been assigned a value) and false otherwise */ - public boolean isSetRequest() { - return this.request != 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 setRequestIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.request = null; + 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 int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); + } + + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); + } + + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); + } + + public List getPart_vals() { + return this.part_vals; + } + + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; + } + } + + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQUEST: + case DB_NAME: if (value == null) { - unsetRequest(); + unsetDb_name(); } else { - setRequest((AddPartitionsRequest)value); + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); + } + break; + + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); } break; @@ -54705,8 +48224,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQUEST: - return getRequest(); + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_VALS: + return getPart_vals(); + + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); } throw new IllegalStateException(); @@ -54719,8 +48247,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQUEST: - return isSetRequest(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -54729,21 +48263,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_req_args) - return this.equals((add_partitions_req_args)that); + if (that instanceof append_partition_with_environment_context_args) + return this.equals((append_partition_with_environment_context_args)that); return false; } - public boolean equals(add_partitions_req_args that) { + public boolean equals(append_partition_with_environment_context_args that) { if (that == null) return false; - boolean this_present_request = true && this.isSetRequest(); - boolean that_present_request = true && that.isSetRequest(); - if (this_present_request || that_present_request) { - if (!(this_present_request && that_present_request)) + 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.request.equals(that.request)) + 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_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) + return false; + } + + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) return false; } @@ -54752,30 +48313,75 @@ public boolean equals(add_partitions_req_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_request = true && (isSetRequest()); - list.add(present_request); - if (present_request) - list.add(request); + boolean present_db_name = true && (isSetDb_name()); + builder.append(present_db_name); + if (present_db_name) + builder.append(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + builder.append(present_tbl_name); + if (present_tbl_name) + builder.append(tbl_name); + + boolean present_part_vals = true && (isSetPart_vals()); + builder.append(present_part_vals); + if (present_part_vals) + builder.append(part_vals); + + boolean present_environment_context = true && (isSetEnvironment_context()); + builder.append(present_environment_context); + if (present_environment_context) + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(add_partitions_req_args other) { + public int compareTo(append_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_with_environment_context_args typedOther = (append_partition_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -54797,14 +48403,38 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_req_args("); + StringBuilder sb = new StringBuilder("append_partition_with_environment_context_args("); boolean first = true; - sb.append("request:"); - if (this.request == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.request); + 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("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); + } + first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); } first = false; sb.append(")"); @@ -54814,8 +48444,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (request != null) { - request.validate(); + if (environment_context != null) { + environment_context.validate(); } } @@ -54835,15 +48465,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partitions_req_argsStandardSchemeFactory implements SchemeFactory { - public add_partitions_req_argsStandardScheme getScheme() { - return new add_partitions_req_argsStandardScheme(); + private static class append_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public append_partition_with_environment_context_argsStandardScheme getScheme() { + return new append_partition_with_environment_context_argsStandardScheme(); } } - private static class add_partitions_req_argsStandardScheme extends StandardScheme { + private static class append_partition_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -54853,11 +48483,45 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ break; } switch (schemeField.id) { - case 1: // REQUEST + 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: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list654 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list654.size); + for (int _i655 = 0; _i655 < _list654.size; ++_i655) + { + String _elem656; // required + _elem656 = iprot.readString(); + struct.part_vals.add(_elem656); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // ENVIRONMENT_CONTEXT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new AddPartitionsRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -54871,13 +48535,35 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.request != null) { - oprot.writeFieldBegin(REQUEST_FIELD_DESC); - struct.request.write(oprot); + 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.part_vals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); + for (String _iter657 : struct.part_vals) + { + oprot.writeString(_iter657); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -54886,43 +48572,88 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req } - private static class add_partitions_req_argsTupleSchemeFactory implements SchemeFactory { - public add_partitions_req_argsTupleScheme getScheme() { - return new add_partitions_req_argsTupleScheme(); + private static class append_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public append_partition_with_environment_context_argsTupleScheme getScheme() { + return new append_partition_with_environment_context_argsTupleScheme(); } } - private static class add_partitions_req_argsTupleScheme extends TupleScheme { + private static class append_partition_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetRequest()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetRequest()) { - struct.request.write(oprot); + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetPart_vals()) { + optionals.set(2); + } + if (struct.isSetEnvironment_context()) { + 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.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter658 : struct.part_vals) + { + oprot.writeString(_iter658); + } + } + } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.request = new AddPartitionsRequest(); - struct.request.read(iprot); - struct.setRequestIsSet(true); + 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)) { + { + org.apache.thrift.protocol.TList _list659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list659.size); + for (int _i660 = 0; _i660 < _list659.size; ++_i660) + { + String _elem661; // required + _elem661 = iprot.readString(); + struct.part_vals.add(_elem661); + } + } + struct.setPart_valsIsSet(true); + } + if (incoming.get(3)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); } } } } - public static class add_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_partitions_req_result"); + public static class append_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_with_environment_context_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); @@ -54931,11 +48662,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_a private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new add_partitions_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new add_partitions_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_with_environment_context_resultTupleSchemeFactory()); } - private AddPartitionsResult success; // required + private Partition success; // required private InvalidObjectException o1; // required private AlreadyExistsException o2; // required private MetaException o3; // required @@ -55012,7 +48743,7 @@ 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, AddPartitionsResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.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, @@ -55020,14 +48751,14 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_partitions_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_with_environment_context_result.class, metaDataMap); } - public add_partitions_req_result() { + public append_partition_with_environment_context_result() { } - public add_partitions_req_result( - AddPartitionsResult success, + public append_partition_with_environment_context_result( + Partition success, InvalidObjectException o1, AlreadyExistsException o2, MetaException o3) @@ -55042,9 +48773,9 @@ public add_partitions_req_result( /** * Performs a deep copy on other. */ - public add_partitions_req_result(add_partitions_req_result other) { + public append_partition_with_environment_context_result(append_partition_with_environment_context_result other) { if (other.isSetSuccess()) { - this.success = new AddPartitionsResult(other.success); + this.success = new Partition(other.success); } if (other.isSetO1()) { this.o1 = new InvalidObjectException(other.o1); @@ -55057,8 +48788,8 @@ public add_partitions_req_result(add_partitions_req_result other) { } } - public add_partitions_req_result deepCopy() { - return new add_partitions_req_result(this); + public append_partition_with_environment_context_result deepCopy() { + return new append_partition_with_environment_context_result(this); } @Override @@ -55069,11 +48800,11 @@ public void clear() { this.o3 = null; } - public AddPartitionsResult getSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(AddPartitionsResult success) { + public void setSuccess(Partition success) { this.success = success; } @@ -55167,7 +48898,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((AddPartitionsResult)value); + setSuccess((Partition)value); } break; @@ -55239,12 +48970,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof add_partitions_req_result) - return this.equals((add_partitions_req_result)that); + if (that instanceof append_partition_with_environment_context_result) + return this.equals((append_partition_with_environment_context_result)that); return false; } - public boolean equals(add_partitions_req_result that) { + public boolean equals(append_partition_with_environment_context_result that) { if (that == null) return false; @@ -55289,75 +49020,75 @@ public boolean equals(add_partitions_req_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(add_partitions_req_result other) { + public int compareTo(append_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_with_environment_context_result typedOther = (append_partition_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -55379,7 +49110,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("add_partitions_req_result("); + StringBuilder sb = new StringBuilder("append_partition_with_environment_context_result("); boolean first = true; sb.append("success:"); @@ -55441,15 +49172,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class add_partitions_req_resultStandardSchemeFactory implements SchemeFactory { - public add_partitions_req_resultStandardScheme getScheme() { - return new add_partitions_req_resultStandardScheme(); + private static class append_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public append_partition_with_environment_context_resultStandardScheme getScheme() { + return new append_partition_with_environment_context_resultStandardScheme(); } } - private static class add_partitions_req_resultStandardScheme extends StandardScheme { + private static class append_partition_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -55461,7 +49192,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new AddPartitionsResult(); + struct.success = new Partition(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -55504,7 +49235,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_req_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -55534,16 +49265,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_req } - private static class add_partitions_req_resultTupleSchemeFactory implements SchemeFactory { - public add_partitions_req_resultTupleScheme getScheme() { - return new add_partitions_req_resultTupleScheme(); + private static class append_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public append_partition_with_environment_context_resultTupleScheme getScheme() { + return new append_partition_with_environment_context_resultTupleScheme(); } } - private static class add_partitions_req_resultTupleScheme extends TupleScheme { + private static class append_partition_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -55574,11 +49305,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.success = new AddPartitionsResult(); + struct.success = new Partition(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -55602,31 +49333,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_req_r } - public static class append_partition_with_environment_context_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("append_partition_with_environment_context_args"); + public static class append_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_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 PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_by_name_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private List part_vals; // required - private EnvironmentContext environment_context; // required + private String part_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"), - PART_VALS((short)3, "part_vals"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + PART_NAME((short)3, "part_name"); private static final Map byName = new HashMap(); @@ -55645,10 +49373,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 3: // PART_NAME + return PART_NAME; default: return null; } @@ -55696,60 +49422,50 @@ 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.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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)))); - tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_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(append_partition_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_args.class, metaDataMap); } - public append_partition_with_environment_context_args() { + public append_partition_by_name_args() { } - public append_partition_with_environment_context_args( + public append_partition_by_name_args( String db_name, String tbl_name, - List part_vals, - EnvironmentContext environment_context) + String part_name) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_vals = part_vals; - this.environment_context = environment_context; + this.part_name = part_name; } /** * Performs a deep copy on other. */ - public append_partition_with_environment_context_args(append_partition_with_environment_context_args other) { + public append_partition_by_name_args(append_partition_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.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; - } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + if (other.isSetPart_name()) { + this.part_name = other.part_name; } } - public append_partition_with_environment_context_args deepCopy() { - return new append_partition_with_environment_context_args(this); + public append_partition_by_name_args deepCopy() { + return new append_partition_by_name_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_vals = null; - this.environment_context = null; + this.part_name = null; } public String getDb_name() { @@ -55798,64 +49514,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); - } - - public List getPart_vals() { - return this.part_vals; - } - - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; - } - - public void unsetPart_vals() { - this.part_vals = null; - } - - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; - } - - public void setPart_valsIsSet(boolean value) { - if (!value) { - this.part_vals = null; - } - } - - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public String getPart_name() { + return this.part_name; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setPart_name(String part_name) { + this.part_name = part_name; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetPart_name() { + this.part_name = null; } - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; } - public void setEnvironment_contextIsSet(boolean value) { + public void setPart_nameIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.part_name = null; } } @@ -55877,19 +49555,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_VALS: - if (value == null) { - unsetPart_vals(); - } else { - setPart_vals((List)value); - } - break; - - case ENVIRONMENT_CONTEXT: + case PART_NAME: if (value == null) { - unsetEnvironment_context(); + unsetPart_name(); } else { - setEnvironment_context((EnvironmentContext)value); + setPart_name((String)value); } break; @@ -55904,11 +49574,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_VALS: - return getPart_vals(); - - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case PART_NAME: + return getPart_name(); } throw new IllegalStateException(); @@ -55925,10 +49592,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case PART_NAME: + return isSetPart_name(); } throw new IllegalStateException(); } @@ -55937,12 +49602,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_with_environment_context_args) - return this.equals((append_partition_with_environment_context_args)that); + if (that instanceof append_partition_by_name_args) + return this.equals((append_partition_by_name_args)that); return false; } - public boolean equals(append_partition_with_environment_context_args that) { + public boolean equals(append_partition_by_name_args that) { if (that == null) return false; @@ -55964,21 +49629,12 @@ public boolean equals(append_partition_with_environment_context_args that) { return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) - return false; - if (!this.part_vals.equals(that.part_vals)) - return false; - } - - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) + boolean this_present_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (!this.part_name.equals(that.part_name)) return false; } @@ -55987,75 +49643,60 @@ public boolean equals(append_partition_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); - - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_part_name = true && (isSetPart_name()); + builder.append(present_part_name); + if (present_part_name) + builder.append(part_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(append_partition_with_environment_context_args other) { + public int compareTo(append_partition_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_by_name_args typedOther = (append_partition_by_name_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } @@ -56077,7 +49718,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_with_environment_context_args("); + StringBuilder sb = new StringBuilder("append_partition_by_name_args("); boolean first = true; sb.append("db_name:"); @@ -56096,19 +49737,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { - sb.append("null"); - } else { - sb.append(this.part_vals); - } - first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("part_name:"); + if (this.part_name == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.part_name); } first = false; sb.append(")"); @@ -56118,9 +49751,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -56139,15 +49769,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public append_partition_with_environment_context_argsStandardScheme getScheme() { - return new append_partition_with_environment_context_argsStandardScheme(); + private static class append_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { + public append_partition_by_name_argsStandardScheme getScheme() { + return new append_partition_by_name_argsStandardScheme(); } } - private static class append_partition_with_environment_context_argsStandardScheme extends StandardScheme { + private static class append_partition_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -56173,29 +49803,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list654 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list654.size); - String _elem655; - for (int _i656 = 0; _i656 < _list654.size; ++_i656) - { - _elem655 = iprot.readString(); - struct.part_vals.add(_elem655); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // ENVIRONMENT_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + case 3: // PART_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -56209,7 +49820,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -56223,21 +49834,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter657 : struct.part_vals) - { - oprot.writeString(_iter657); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -56246,16 +49845,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w } - private static class append_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public append_partition_with_environment_context_argsTupleScheme getScheme() { - return new append_partition_with_environment_context_argsTupleScheme(); + private static class append_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { + public append_partition_by_name_argsTupleScheme getScheme() { + return new append_partition_by_name_argsTupleScheme(); } } - private static class append_partition_with_environment_context_argsTupleScheme extends TupleScheme { + private static class append_partition_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -56264,37 +49863,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetPart_name()) { optionals.set(2); } - if (struct.isSetEnvironment_context()) { - 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.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter658 : struct.part_vals) - { - oprot.writeString(_iter658); - } - } - } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_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); @@ -56304,30 +49891,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list659.size); - String _elem660; - for (int _i661 = 0; _i661 < _list659.size; ++_i661) - { - _elem660 = iprot.readString(); - struct.part_vals.add(_elem660); - } - } - struct.setPart_valsIsSet(true); - } - if (incoming.get(3)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } } } } - public static class append_partition_with_environment_context_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("append_partition_with_environment_context_result"); + public static class append_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_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); @@ -56336,8 +49909,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_by_name_resultTupleSchemeFactory()); } private Partition success; // required @@ -56425,13 +49998,13 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_result.class, metaDataMap); } - public append_partition_with_environment_context_result() { + public append_partition_by_name_result() { } - public append_partition_with_environment_context_result( + public append_partition_by_name_result( Partition success, InvalidObjectException o1, AlreadyExistsException o2, @@ -56447,7 +50020,7 @@ public append_partition_with_environment_context_result( /** * Performs a deep copy on other. */ - public append_partition_with_environment_context_result(append_partition_with_environment_context_result other) { + public append_partition_by_name_result(append_partition_by_name_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -56462,8 +50035,8 @@ public append_partition_with_environment_context_result(append_partition_with_en } } - public append_partition_with_environment_context_result deepCopy() { - return new append_partition_with_environment_context_result(this); + public append_partition_by_name_result deepCopy() { + return new append_partition_by_name_result(this); } @Override @@ -56644,12 +50217,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_with_environment_context_result) - return this.equals((append_partition_with_environment_context_result)that); + if (that instanceof append_partition_by_name_result) + return this.equals((append_partition_by_name_result)that); return false; } - public boolean equals(append_partition_with_environment_context_result that) { + public boolean equals(append_partition_by_name_result that) { if (that == null) return false; @@ -56694,75 +50267,75 @@ public boolean equals(append_partition_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(append_partition_with_environment_context_result other) { + public int compareTo(append_partition_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_by_name_result typedOther = (append_partition_by_name_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -56784,7 +50357,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_with_environment_context_result("); + StringBuilder sb = new StringBuilder("append_partition_by_name_result("); boolean first = true; sb.append("success:"); @@ -56846,15 +50419,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public append_partition_with_environment_context_resultStandardScheme getScheme() { - return new append_partition_with_environment_context_resultStandardScheme(); + private static class append_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { + public append_partition_by_name_resultStandardScheme getScheme() { + return new append_partition_by_name_resultStandardScheme(); } } - private static class append_partition_with_environment_context_resultStandardScheme extends StandardScheme { + private static class append_partition_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -56909,7 +50482,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -56939,16 +50512,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w } - private static class append_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public append_partition_with_environment_context_resultTupleScheme getScheme() { - return new append_partition_with_environment_context_resultTupleScheme(); + private static class append_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { + public append_partition_by_name_resultTupleScheme getScheme() { + return new append_partition_by_name_resultTupleScheme(); } } - private static class append_partition_with_environment_context_resultTupleScheme extends TupleScheme { + private static class append_partition_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -56979,7 +50552,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -57007,28 +50580,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } - public static class append_partition_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("append_partition_by_name_args"); + public static class append_partition_by_name_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_with_environment_context_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 PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_by_name_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_by_name_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private String part_name; // required + private EnvironmentContext environment_context; // 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"), - PART_NAME((short)3, "part_name"); + PART_NAME((short)3, "part_name"), + ENVIRONMENT_CONTEXT((short)4, "environment_context"); private static final Map byName = new HashMap(); @@ -57049,6 +50625,8 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // PART_NAME return PART_NAME; + case 4: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -57098,28 +50676,32 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_with_environment_context_args.class, metaDataMap); } - public append_partition_by_name_args() { + public append_partition_by_name_with_environment_context_args() { } - public append_partition_by_name_args( + public append_partition_by_name_with_environment_context_args( String db_name, String tbl_name, - String part_name) + String part_name, + EnvironmentContext environment_context) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.part_name = part_name; + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public append_partition_by_name_args(append_partition_by_name_args other) { + public append_partition_by_name_with_environment_context_args(append_partition_by_name_with_environment_context_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } @@ -57129,10 +50711,13 @@ public append_partition_by_name_args(append_partition_by_name_args other) { if (other.isSetPart_name()) { this.part_name = other.part_name; } + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); + } } - public append_partition_by_name_args deepCopy() { - return new append_partition_by_name_args(this); + public append_partition_by_name_with_environment_context_args deepCopy() { + return new append_partition_by_name_with_environment_context_args(this); } @Override @@ -57140,6 +50725,7 @@ public void clear() { this.db_name = null; this.tbl_name = null; this.part_name = null; + this.environment_context = null; } public String getDb_name() { @@ -57211,6 +50797,29 @@ public void setPart_nameIsSet(boolean value) { } } + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -57237,6 +50846,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); + } + break; + } } @@ -57251,6 +50868,9 @@ public Object getFieldValue(_Fields field) { case PART_NAME: return getPart_name(); + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); + } throw new IllegalStateException(); } @@ -57268,6 +50888,8 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case PART_NAME: return isSetPart_name(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -57276,12 +50898,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_by_name_args) - return this.equals((append_partition_by_name_args)that); + if (that instanceof append_partition_by_name_with_environment_context_args) + return this.equals((append_partition_by_name_with_environment_context_args)that); return false; } - public boolean equals(append_partition_by_name_args that) { + public boolean equals(append_partition_by_name_with_environment_context_args that) { if (that == null) return false; @@ -57312,65 +50934,89 @@ public boolean equals(append_partition_by_name_args that) { return false; } + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); + + boolean present_environment_context = true && (isSetEnvironment_context()); + builder.append(present_environment_context); + if (present_environment_context) + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(append_partition_by_name_args other) { + public int compareTo(append_partition_by_name_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_by_name_with_environment_context_args typedOther = (append_partition_by_name_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -57392,7 +51038,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_by_name_args("); + StringBuilder sb = new StringBuilder("append_partition_by_name_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -57418,6 +51064,14 @@ public String toString() { sb.append(this.part_name); } first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); + } + first = false; sb.append(")"); return sb.toString(); } @@ -57425,6 +51079,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -57443,15 +51100,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { - public append_partition_by_name_argsStandardScheme getScheme() { - return new append_partition_by_name_argsStandardScheme(); + private static class append_partition_by_name_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public append_partition_by_name_with_environment_context_argsStandardScheme getScheme() { + return new append_partition_by_name_with_environment_context_argsStandardScheme(); } } - private static class append_partition_by_name_argsStandardScheme extends StandardScheme { + private static class append_partition_by_name_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -57485,6 +51142,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -57494,7 +51160,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -57513,22 +51179,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b oprot.writeString(struct.part_name); oprot.writeFieldEnd(); } + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class append_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { - public append_partition_by_name_argsTupleScheme getScheme() { - return new append_partition_by_name_argsTupleScheme(); + private static class append_partition_by_name_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public append_partition_by_name_with_environment_context_argsTupleScheme getScheme() { + return new append_partition_by_name_with_environment_context_argsTupleScheme(); } } - private static class append_partition_by_name_argsTupleScheme extends TupleScheme { + private static class append_partition_by_name_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -57540,7 +51211,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetPart_name()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetEnvironment_context()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -57550,12 +51224,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetPart_name()) { oprot.writeString(struct.part_name); } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_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); @@ -57568,13 +51245,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ struct.part_name = iprot.readString(); struct.setPart_nameIsSet(true); } + if (incoming.get(3)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } } } } - public static class append_partition_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("append_partition_by_name_result"); + public static class append_partition_by_name_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("append_partition_by_name_with_environment_context_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); @@ -57583,8 +51265,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new append_partition_by_name_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new append_partition_by_name_with_environment_context_resultTupleSchemeFactory()); } private Partition success; // required @@ -57672,13 +51354,13 @@ public String getFieldName() { tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_with_environment_context_result.class, metaDataMap); } - public append_partition_by_name_result() { + public append_partition_by_name_with_environment_context_result() { } - public append_partition_by_name_result( + public append_partition_by_name_with_environment_context_result( Partition success, InvalidObjectException o1, AlreadyExistsException o2, @@ -57694,7 +51376,7 @@ public append_partition_by_name_result( /** * Performs a deep copy on other. */ - public append_partition_by_name_result(append_partition_by_name_result other) { + public append_partition_by_name_with_environment_context_result(append_partition_by_name_with_environment_context_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -57709,8 +51391,8 @@ public append_partition_by_name_result(append_partition_by_name_result other) { } } - public append_partition_by_name_result deepCopy() { - return new append_partition_by_name_result(this); + public append_partition_by_name_with_environment_context_result deepCopy() { + return new append_partition_by_name_with_environment_context_result(this); } @Override @@ -57891,12 +51573,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_by_name_result) - return this.equals((append_partition_by_name_result)that); + if (that instanceof append_partition_by_name_with_environment_context_result) + return this.equals((append_partition_by_name_with_environment_context_result)that); return false; } - public boolean equals(append_partition_by_name_result that) { + public boolean equals(append_partition_by_name_with_environment_context_result that) { if (that == null) return false; @@ -57941,75 +51623,75 @@ public boolean equals(append_partition_by_name_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(append_partition_by_name_result other) { + public int compareTo(append_partition_by_name_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + append_partition_by_name_with_environment_context_result typedOther = (append_partition_by_name_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -58031,7 +51713,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_by_name_result("); + StringBuilder sb = new StringBuilder("append_partition_by_name_with_environment_context_result("); boolean first = true; sb.append("success:"); @@ -58093,15 +51775,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class append_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { - public append_partition_by_name_resultStandardScheme getScheme() { - return new append_partition_by_name_resultStandardScheme(); + private static class append_partition_by_name_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public append_partition_by_name_with_environment_context_resultStandardScheme getScheme() { + return new append_partition_by_name_with_environment_context_resultStandardScheme(); } } - private static class append_partition_by_name_resultStandardScheme extends StandardScheme { + private static class append_partition_by_name_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -58156,7 +51838,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -58186,16 +51868,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b } - private static class append_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { - public append_partition_by_name_resultTupleScheme getScheme() { - return new append_partition_by_name_resultTupleScheme(); + private static class append_partition_by_name_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public append_partition_by_name_with_environment_context_resultTupleScheme getScheme() { + return new append_partition_by_name_with_environment_context_resultTupleScheme(); } } - private static class append_partition_by_name_resultTupleScheme extends TupleScheme { + private static class append_partition_by_name_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -58226,7 +51908,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -58254,31 +51936,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ } - public static class append_partition_by_name_with_environment_context_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("append_partition_by_name_with_environment_context_args"); + public static class drop_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_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 PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)4); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (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 append_partition_by_name_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_by_name_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String part_name; // required - private EnvironmentContext environment_context; // required + private List part_vals; // 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"), - PART_NAME((short)3, "part_name"), - ENVIRONMENT_CONTEXT((short)4, "environment_context"); + PART_VALS((short)3, "part_vals"), + DELETE_DATA((short)4, "deleteData"); private static final Map byName = new HashMap(); @@ -58297,10 +51979,10 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_NAME - return PART_NAME; - case 4: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 3: // PART_VALS + return PART_VALS; + case 4: // DELETE_DATA + return DELETE_DATA; default: return null; } @@ -58341,6 +52023,8 @@ public String getFieldName() { } // 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); @@ -58348,58 +52032,64 @@ 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.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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)))); + 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(append_partition_by_name_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_args.class, metaDataMap); } - public append_partition_by_name_with_environment_context_args() { + public drop_partition_args() { } - public append_partition_by_name_with_environment_context_args( + public drop_partition_args( String db_name, String tbl_name, - String part_name, - EnvironmentContext environment_context) + List part_vals, + boolean deleteData) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_name = part_name; - this.environment_context = environment_context; + this.part_vals = part_vals; + this.deleteData = deleteData; + setDeleteDataIsSet(true); } /** * Performs a deep copy on other. */ - public append_partition_by_name_with_environment_context_args(append_partition_by_name_with_environment_context_args other) { + public drop_partition_args(drop_partition_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.isSetPart_name()) { - this.part_name = other.part_name; - } - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } + this.part_vals = __this__part_vals; } + this.deleteData = other.deleteData; } - public append_partition_by_name_with_environment_context_args deepCopy() { - return new append_partition_by_name_with_environment_context_args(this); + public drop_partition_args deepCopy() { + return new drop_partition_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_name = null; - this.environment_context = null; + this.part_vals = null; + setDeleteDataIsSet(false); + this.deleteData = false; } public String getDb_name() { @@ -58448,50 +52138,64 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getPart_name() { - return this.part_name; + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); } - public void setPart_name(String part_name) { - this.part_name = part_name; + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); } - public void unsetPart_name() { - this.part_name = null; + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); } - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != null; + public List getPart_vals() { + return this.part_vals; } - public void setPart_nameIsSet(boolean value) { + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { if (!value) { - this.part_name = null; + this.part_vals = null; } } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public boolean isDeleteData() { + return this.deleteData; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); } - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; + /** 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 setEnvironment_contextIsSet(boolean value) { - if (!value) { - this.environment_context = null; - } + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -58512,19 +52216,19 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_NAME: + case PART_VALS: if (value == null) { - unsetPart_name(); + unsetPart_vals(); } else { - setPart_name((String)value); + setPart_vals((List)value); } break; - case ENVIRONMENT_CONTEXT: + case DELETE_DATA: if (value == null) { - unsetEnvironment_context(); + unsetDeleteData(); } else { - setEnvironment_context((EnvironmentContext)value); + setDeleteData((Boolean)value); } break; @@ -58539,11 +52243,11 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_NAME: - return getPart_name(); + case PART_VALS: + return getPart_vals(); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case DELETE_DATA: + return Boolean.valueOf(isDeleteData()); } throw new IllegalStateException(); @@ -58560,10 +52264,10 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_NAME: - return isSetPart_name(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case PART_VALS: + return isSetPart_vals(); + case DELETE_DATA: + return isSetDeleteData(); } throw new IllegalStateException(); } @@ -58572,12 +52276,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_by_name_with_environment_context_args) - return this.equals((append_partition_by_name_with_environment_context_args)that); + if (that instanceof drop_partition_args) + return this.equals((drop_partition_args)that); return false; } - public boolean equals(append_partition_by_name_with_environment_context_args that) { + public boolean equals(drop_partition_args that) { if (that == null) return false; @@ -58599,21 +52303,21 @@ public boolean equals(append_partition_by_name_with_environment_context_args tha return false; } - boolean this_present_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) return false; - if (!this.part_name.equals(that.part_name)) + if (!this.part_vals.equals(that.part_vals)) return false; } - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) + 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.environment_context.equals(that.environment_context)) + if (this.deleteData != that.deleteData) return false; } @@ -58622,75 +52326,75 @@ public boolean equals(append_partition_by_name_with_environment_context_args tha @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); + boolean present_part_vals = true && (isSetPart_vals()); + builder.append(present_part_vals); + if (present_part_vals) + builder.append(part_vals); - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_deleteData = true; + builder.append(present_deleteData); + if (present_deleteData) + builder.append(deleteData); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(append_partition_by_name_with_environment_context_args other) { + public int compareTo(drop_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_args typedOther = (drop_partition_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -58712,7 +52416,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_by_name_with_environment_context_args("); + StringBuilder sb = new StringBuilder("drop_partition_args("); boolean first = true; sb.append("db_name:"); @@ -58731,20 +52435,16 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_name:"); - if (this.part_name == null) { + sb.append("part_vals:"); + if (this.part_vals == null) { sb.append("null"); } else { - sb.append(this.part_name); + sb.append(this.part_vals); } first = false; if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { - sb.append("null"); - } else { - sb.append(this.environment_context); - } + sb.append("deleteData:"); + sb.append(this.deleteData); first = false; sb.append(")"); return sb.toString(); @@ -58753,9 +52453,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -58768,21 +52465,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 append_partition_by_name_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public append_partition_by_name_with_environment_context_argsStandardScheme getScheme() { - return new append_partition_by_name_with_environment_context_argsStandardScheme(); + private static class drop_partition_argsStandardSchemeFactory implements SchemeFactory { + public drop_partition_argsStandardScheme getScheme() { + return new drop_partition_argsStandardScheme(); } } - private static class append_partition_by_name_with_environment_context_argsStandardScheme extends StandardScheme { + private static class drop_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -58808,19 +52507,28 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list662 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list662.size); + for (int _i663 = 0; _i663 < _list662.size; ++_i663) + { + String _elem664; // required + _elem664 = iprot.readString(); + struct.part_vals.add(_elem664); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // ENVIRONMENT_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + 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); } @@ -58834,7 +52542,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -58848,32 +52556,37 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); - oprot.writeFieldEnd(); - } - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.part_vals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); + for (String _iter665 : struct.part_vals) + { + oprot.writeString(_iter665); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class append_partition_by_name_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public append_partition_by_name_with_environment_context_argsTupleScheme getScheme() { - return new append_partition_by_name_with_environment_context_argsTupleScheme(); + private static class drop_partition_argsTupleSchemeFactory implements SchemeFactory { + public drop_partition_argsTupleScheme getScheme() { + return new drop_partition_argsTupleScheme(); } } - private static class append_partition_by_name_with_environment_context_argsTupleScheme extends TupleScheme { + private static class drop_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -58882,10 +52595,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_name()) { + if (struct.isSetPart_vals()) { optionals.set(2); } - if (struct.isSetEnvironment_context()) { + if (struct.isSetDeleteData()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); @@ -58895,16 +52608,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter666 : struct.part_vals) + { + oprot.writeString(_iter666); + } + } } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -58916,44 +52635,49 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_ struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + { + org.apache.thrift.protocol.TList _list667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list667.size); + for (int _i668 = 0; _i668 < _list667.size; ++_i668) + { + String _elem669; // required + _elem669 = iprot.readString(); + struct.part_vals.add(_elem669); + } + } + struct.setPart_valsIsSet(true); } if (incoming.get(3)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); } } } } - public static class append_partition_by_name_with_environment_context_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("append_partition_by_name_with_environment_context_result"); + public static class drop_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_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 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 org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new append_partition_by_name_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new append_partition_by_name_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_resultTupleSchemeFactory()); } - private Partition success; // required - private InvalidObjectException o1; // required - private AlreadyExistsException o2; // required - private MetaException o3; // required + 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"), - O3((short)3, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -58974,8 +52698,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; default: return null; } @@ -59016,95 +52738,89 @@ 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + 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))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(append_partition_by_name_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_result.class, metaDataMap); } - public append_partition_by_name_with_environment_context_result() { + public drop_partition_result() { } - public append_partition_by_name_with_environment_context_result( - Partition success, - InvalidObjectException o1, - AlreadyExistsException o2, - MetaException o3) + public drop_partition_result( + boolean success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; - this.o3 = o3; } /** * Performs a deep copy on other. */ - public append_partition_by_name_with_environment_context_result(append_partition_by_name_with_environment_context_result other) { - if (other.isSetSuccess()) { - this.success = new Partition(other.success); - } + public drop_partition_result(drop_partition_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { - this.o1 = new InvalidObjectException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new AlreadyExistsException(other.o2); - } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + this.o2 = new MetaException(other.o2); } } - public append_partition_by_name_with_environment_context_result deepCopy() { - return new append_partition_by_name_with_environment_context_result(this); + public drop_partition_result deepCopy() { + return new drop_partition_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = false; this.o1 = null; this.o2 = null; - this.o3 = null; } - public Partition getSuccess() { + public boolean isSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(boolean success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __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 this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } - public InvalidObjectException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(InvalidObjectException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -59123,11 +52839,11 @@ public void setO1IsSet(boolean value) { } } - public AlreadyExistsException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(AlreadyExistsException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -59146,36 +52862,13 @@ public void setO2IsSet(boolean value) { } } - public MetaException getO3() { - return this.o3; - } - - public void setO3(MetaException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((Boolean)value); } break; @@ -59183,7 +52876,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((InvalidObjectException)value); + setO1((NoSuchObjectException)value); } break; @@ -59191,15 +52884,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((AlreadyExistsException)value); - } - break; - - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((MetaException)value); + setO2((MetaException)value); } break; @@ -59209,7 +52894,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Boolean.valueOf(isSuccess()); case O1: return getO1(); @@ -59217,9 +52902,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - } throw new IllegalStateException(); } @@ -59237,8 +52919,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); } throw new IllegalStateException(); } @@ -59247,21 +52927,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof append_partition_by_name_with_environment_context_result) - return this.equals((append_partition_by_name_with_environment_context_result)that); + if (that instanceof drop_partition_result) + return this.equals((drop_partition_result)that); return false; } - public boolean equals(append_partition_by_name_with_environment_context_result that) { + public boolean equals(drop_partition_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + 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.equals(that.success)) + if (this.success != that.success) return false; } @@ -59283,89 +52963,65 @@ public boolean equals(append_partition_by_name_with_environment_context_result t return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); + boolean present_success = true; + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); - - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(append_partition_by_name_with_environment_context_result other) { + public int compareTo(drop_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_result typedOther = (drop_partition_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -59387,15 +53043,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("append_partition_by_name_with_environment_context_result("); + StringBuilder sb = new StringBuilder("drop_partition_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -59413,14 +53065,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; sb.append(")"); return sb.toString(); } @@ -59428,9 +53072,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 { @@ -59443,21 +53084,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 append_partition_by_name_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public append_partition_by_name_with_environment_context_resultStandardScheme getScheme() { - return new append_partition_by_name_with_environment_context_resultStandardScheme(); + private static class drop_partition_resultStandardSchemeFactory implements SchemeFactory { + public drop_partition_resultStandardScheme getScheme() { + return new drop_partition_resultStandardScheme(); } } - private static class append_partition_by_name_with_environment_context_resultStandardScheme extends StandardScheme { + private static class drop_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -59468,9 +53111,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); + 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); @@ -59478,7 +53120,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -59487,22 +53129,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -59512,13 +53145,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_by struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeBool(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -59531,27 +53164,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_b struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class append_partition_by_name_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public append_partition_by_name_with_environment_context_resultTupleScheme getScheme() { - return new append_partition_by_name_with_environment_context_resultTupleScheme(); + private static class drop_partition_resultTupleSchemeFactory implements SchemeFactory { + public drop_partition_resultTupleScheme getScheme() { + return new drop_partition_resultTupleScheme(); } } - private static class append_partition_by_name_with_environment_context_resultTupleScheme extends TupleScheme { + private static class drop_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -59563,12 +53191,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeBool(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -59576,65 +53201,59 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_by if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_result 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.success = new Partition(); - struct.success.read(iprot); + struct.success = iprot.readBool(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new InvalidObjectException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new AlreadyExistsException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } } } } - public static class drop_partition_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_partition_args"); + public static class drop_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_with_environment_context_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 PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (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 ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private List part_vals; // required private boolean deleteData; // required + private EnvironmentContext environment_context; // 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"), PART_VALS((short)3, "part_vals"), - DELETE_DATA((short)4, "deleteData"); + DELETE_DATA((short)4, "deleteData"), + ENVIRONMENT_CONTEXT((short)5, "environment_context"); private static final Map byName = new HashMap(); @@ -59657,6 +53276,8 @@ public static _Fields findByThriftId(int fieldId) { return PART_VALS; case 4: // DELETE_DATA return DELETE_DATA; + case 5: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -59711,18 +53332,21 @@ public String getFieldName() { 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.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_with_environment_context_args.class, metaDataMap); } - public drop_partition_args() { + public drop_partition_with_environment_context_args() { } - public drop_partition_args( + public drop_partition_with_environment_context_args( String db_name, String tbl_name, List part_vals, - boolean deleteData) + boolean deleteData, + EnvironmentContext environment_context) { this(); this.db_name = db_name; @@ -59730,12 +53354,13 @@ public drop_partition_args( this.part_vals = part_vals; this.deleteData = deleteData; setDeleteDataIsSet(true); + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public drop_partition_args(drop_partition_args other) { + public drop_partition_with_environment_context_args(drop_partition_with_environment_context_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -59744,14 +53369,20 @@ public drop_partition_args(drop_partition_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } this.deleteData = other.deleteData; + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); + } } - public drop_partition_args deepCopy() { - return new drop_partition_args(this); + public drop_partition_with_environment_context_args deepCopy() { + return new drop_partition_with_environment_context_args(this); } @Override @@ -59761,6 +53392,7 @@ public void clear() { this.part_vals = null; setDeleteDataIsSet(false); this.deleteData = false; + this.environment_context = null; } public String getDb_name() { @@ -59869,6 +53501,29 @@ public void setDeleteDataIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); } + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -59903,6 +53558,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); + } + break; + } } @@ -59920,6 +53583,9 @@ public Object getFieldValue(_Fields field) { case DELETE_DATA: return Boolean.valueOf(isDeleteData()); + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); + } throw new IllegalStateException(); } @@ -59939,6 +53605,8 @@ public boolean isSet(_Fields field) { return isSetPart_vals(); case DELETE_DATA: return isSetDeleteData(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -59947,12 +53615,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_args) - return this.equals((drop_partition_args)that); + if (that instanceof drop_partition_with_environment_context_args) + return this.equals((drop_partition_with_environment_context_args)that); return false; } - public boolean equals(drop_partition_args that) { + public boolean equals(drop_partition_with_environment_context_args that) { if (that == null) return false; @@ -59992,80 +53660,104 @@ public boolean equals(drop_partition_args that) { return false; } + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); + + boolean present_environment_context = true && (isSetEnvironment_context()); + builder.append(present_environment_context); + if (present_environment_context) + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_partition_args other) { + public int compareTo(drop_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_with_environment_context_args typedOther = (drop_partition_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -60087,7 +53779,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_args("); + StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -60117,6 +53809,14 @@ public String toString() { sb.append("deleteData:"); sb.append(this.deleteData); first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); + } + first = false; sb.append(")"); return sb.toString(); } @@ -60124,6 +53824,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -60144,15 +53847,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partition_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_argsStandardScheme getScheme() { - return new drop_partition_argsStandardScheme(); + private static class drop_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public drop_partition_with_environment_context_argsStandardScheme getScheme() { + return new drop_partition_with_environment_context_argsStandardScheme(); } } - private static class drop_partition_argsStandardScheme extends StandardScheme { + private static class drop_partition_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -60181,13 +53884,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list662 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list662.size); - String _elem663; - for (int _i664 = 0; _i664 < _list662.size; ++_i664) + org.apache.thrift.protocol.TList _list670 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list670.size); + for (int _i671 = 0; _i671 < _list670.size; ++_i671) { - _elem663 = iprot.readString(); - struct.part_vals.add(_elem663); + String _elem672; // required + _elem672 = iprot.readString(); + struct.part_vals.add(_elem672); } iprot.readListEnd(); } @@ -60204,6 +53907,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -60213,7 +53925,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -60231,9 +53943,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_arg oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter665 : struct.part_vals) + for (String _iter673 : struct.part_vals) { - oprot.writeString(_iter665); + oprot.writeString(_iter673); } oprot.writeListEnd(); } @@ -60242,22 +53954,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_arg oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); oprot.writeBool(struct.deleteData); oprot.writeFieldEnd(); + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_partition_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_argsTupleScheme getScheme() { - return new drop_partition_argsTupleScheme(); + private static class drop_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public drop_partition_with_environment_context_argsTupleScheme getScheme() { + return new drop_partition_with_environment_context_argsTupleScheme(); } } - private static class drop_partition_argsTupleScheme extends TupleScheme { + private static class drop_partition_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -60272,7 +53989,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args if (struct.isSetDeleteData()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetEnvironment_context()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -60282,21 +54002,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter666 : struct.part_vals) + for (String _iter674 : struct.part_vals) { - oprot.writeString(_iter666); + oprot.writeString(_iter674); } } } if (struct.isSetDeleteData()) { oprot.writeBool(struct.deleteData); } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -60307,13 +54030,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list667.size); - String _elem668; - for (int _i669 = 0; _i669 < _list667.size; ++_i669) + org.apache.thrift.protocol.TList _list675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list675.size); + for (int _i676 = 0; _i676 < _list675.size; ++_i676) { - _elem668 = iprot.readString(); - struct.part_vals.add(_elem668); + String _elem677; // required + _elem677 = iprot.readString(); + struct.part_vals.add(_elem677); } } struct.setPart_valsIsSet(true); @@ -60322,13 +54045,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args struct.deleteData = iprot.readBool(); struct.setDeleteDataIsSet(true); } + if (incoming.get(4)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } } } } - public static class drop_partition_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_partition_result"); + public static class drop_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_with_environment_context_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); @@ -60336,8 +54064,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_with_environment_context_resultTupleSchemeFactory()); } private boolean success; // required @@ -60421,13 +54149,13 @@ public String getFieldName() { 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_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_with_environment_context_result.class, metaDataMap); } - public drop_partition_result() { + public drop_partition_with_environment_context_result() { } - public drop_partition_result( + public drop_partition_with_environment_context_result( boolean success, NoSuchObjectException o1, MetaException o2) @@ -60442,7 +54170,7 @@ public drop_partition_result( /** * Performs a deep copy on other. */ - public drop_partition_result(drop_partition_result other) { + public drop_partition_with_environment_context_result(drop_partition_with_environment_context_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetO1()) { @@ -60453,8 +54181,8 @@ public drop_partition_result(drop_partition_result other) { } } - public drop_partition_result deepCopy() { - return new drop_partition_result(this); + public drop_partition_with_environment_context_result deepCopy() { + return new drop_partition_with_environment_context_result(this); } @Override @@ -60598,12 +54326,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_result) - return this.equals((drop_partition_result)that); + if (that instanceof drop_partition_with_environment_context_result) + return this.equals((drop_partition_with_environment_context_result)that); return false; } - public boolean equals(drop_partition_result that) { + public boolean equals(drop_partition_with_environment_context_result that) { if (that == null) return false; @@ -60639,60 +54367,60 @@ public boolean equals(drop_partition_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_partition_result other) { + public int compareTo(drop_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_with_environment_context_result typedOther = (drop_partition_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -60714,7 +54442,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_result("); + StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_result("); boolean first = true; sb.append("success:"); @@ -60763,15 +54491,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partition_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_resultStandardScheme getScheme() { - return new drop_partition_resultStandardScheme(); + private static class drop_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public drop_partition_with_environment_context_resultStandardScheme getScheme() { + return new drop_partition_with_environment_context_resultStandardScheme(); } } - private static class drop_partition_resultStandardScheme extends StandardScheme { + private static class drop_partition_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -60816,7 +54544,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -60841,16 +54569,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_res } - private static class drop_partition_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_resultTupleScheme getScheme() { - return new drop_partition_resultTupleScheme(); + private static class drop_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public drop_partition_with_environment_context_resultTupleScheme getScheme() { + return new drop_partition_with_environment_context_resultTupleScheme(); } } - private static class drop_partition_resultTupleScheme extends TupleScheme { + private static class drop_partition_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -60875,7 +54603,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -60897,34 +54625,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_resul } - public static class drop_partition_with_environment_context_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_partition_with_environment_context_args"); + public static class drop_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_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 PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_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 ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_by_name_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private List part_vals; // required + private String part_name; // required private boolean deleteData; // required - private EnvironmentContext environment_context; // 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"), - PART_VALS((short)3, "part_vals"), - DELETE_DATA((short)4, "deleteData"), - ENVIRONMENT_CONTEXT((short)5, "environment_context"); + PART_NAME((short)3, "part_name"), + DELETE_DATA((short)4, "deleteData"); private static final Map byName = new HashMap(); @@ -60943,12 +54668,10 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; + case 3: // PART_NAME + return PART_NAME; case 4: // DELETE_DATA return DELETE_DATA; - case 5: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; default: return null; } @@ -60998,40 +54721,35 @@ 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.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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)))); + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_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.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_args.class, metaDataMap); } - public drop_partition_with_environment_context_args() { + public drop_partition_by_name_args() { } - public drop_partition_with_environment_context_args( + public drop_partition_by_name_args( String db_name, String tbl_name, - List part_vals, - boolean deleteData, - EnvironmentContext environment_context) + String part_name, + boolean deleteData) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_vals = part_vals; + this.part_name = part_name; this.deleteData = deleteData; setDeleteDataIsSet(true); - this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public drop_partition_with_environment_context_args(drop_partition_with_environment_context_args other) { + public drop_partition_by_name_args(drop_partition_by_name_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -61039,28 +54757,23 @@ public drop_partition_with_environment_context_args(drop_partition_with_environm if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + if (other.isSetPart_name()) { + this.part_name = other.part_name; } this.deleteData = other.deleteData; - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); - } } - public drop_partition_with_environment_context_args deepCopy() { - return new drop_partition_with_environment_context_args(this); + public drop_partition_by_name_args deepCopy() { + return new drop_partition_by_name_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_vals = null; + this.part_name = null; setDeleteDataIsSet(false); this.deleteData = false; - this.environment_context = null; } public String getDb_name() { @@ -61109,41 +54822,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); - } - - public List getPart_vals() { - return this.part_vals; + public String getPart_name() { + return this.part_name; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setPart_name(String part_name) { + this.part_name = part_name; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetPart_name() { + this.part_name = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; } - public void setPart_valsIsSet(boolean value) { + public void setPart_nameIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.part_name = null; } } @@ -61169,29 +54867,6 @@ public void setDeleteDataIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; - } - - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; - } - - public void unsetEnvironment_context() { - this.environment_context = null; - } - - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; - } - - public void setEnvironment_contextIsSet(boolean value) { - if (!value) { - this.environment_context = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -61210,11 +54885,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_VALS: + case PART_NAME: if (value == null) { - unsetPart_vals(); + unsetPart_name(); } else { - setPart_vals((List)value); + setPart_name((String)value); } break; @@ -61226,14 +54901,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case ENVIRONMENT_CONTEXT: - if (value == null) { - unsetEnvironment_context(); - } else { - setEnvironment_context((EnvironmentContext)value); - } - break; - } } @@ -61245,15 +54912,12 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_VALS: - return getPart_vals(); + case PART_NAME: + return getPart_name(); case DELETE_DATA: return Boolean.valueOf(isDeleteData()); - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); - } throw new IllegalStateException(); } @@ -61269,12 +54933,10 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); + case PART_NAME: + return isSetPart_name(); case DELETE_DATA: return isSetDeleteData(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -61283,12 +54945,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_with_environment_context_args) - return this.equals((drop_partition_with_environment_context_args)that); + if (that instanceof drop_partition_by_name_args) + return this.equals((drop_partition_by_name_args)that); return false; } - public boolean equals(drop_partition_with_environment_context_args that) { + public boolean equals(drop_partition_by_name_args that) { if (that == null) return false; @@ -61310,12 +54972,12 @@ public boolean equals(drop_partition_with_environment_context_args that) { return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) + boolean this_present_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) return false; - if (!this.part_vals.equals(that.part_vals)) + if (!this.part_name.equals(that.part_name)) return false; } @@ -61328,104 +54990,80 @@ public boolean equals(drop_partition_with_environment_context_args that) { return false; } - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) - return false; - if (!this.environment_context.equals(that.environment_context)) - return false; - } - return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); + boolean present_part_name = true && (isSetPart_name()); + builder.append(present_part_name); + if (present_part_name) + builder.append(part_name); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); - - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + builder.append(deleteData); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_partition_with_environment_context_args other) { + public int compareTo(drop_partition_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_by_name_args typedOther = (drop_partition_by_name_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -61447,7 +55085,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_args("); + StringBuilder sb = new StringBuilder("drop_partition_by_name_args("); boolean first = true; sb.append("db_name:"); @@ -61466,25 +55104,17 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("part_name:"); + if (this.part_name == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.part_name); } first = false; if (!first) sb.append(", "); sb.append("deleteData:"); sb.append(this.deleteData); first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { - sb.append("null"); - } else { - sb.append(this.environment_context); - } - first = false; sb.append(")"); return sb.toString(); } @@ -61492,9 +55122,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (environment_context != null) { - environment_context.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -61515,15 +55142,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partition_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_argsStandardScheme getScheme() { - return new drop_partition_with_environment_context_argsStandardScheme(); + private static class drop_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { + public drop_partition_by_name_argsStandardScheme getScheme() { + return new drop_partition_by_name_argsStandardScheme(); } } - private static class drop_partition_with_environment_context_argsStandardScheme extends StandardScheme { + private static class drop_partition_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -61549,20 +55176,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list670 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list670.size); - String _elem671; - for (int _i672 = 0; _i672 < _list670.size; ++_i672) - { - _elem671 = iprot.readString(); - struct.part_vals.add(_elem671); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); + case 3: // PART_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -61575,15 +55192,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // ENVIRONMENT_CONTEXT - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -61593,7 +55201,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -61607,42 +55215,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter673 : struct.part_vals) - { - oprot.writeString(_iter673); - } - oprot.writeListEnd(); - } + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); oprot.writeFieldEnd(); } oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); oprot.writeBool(struct.deleteData); oprot.writeFieldEnd(); - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_partition_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_argsTupleScheme getScheme() { - return new drop_partition_with_environment_context_argsTupleScheme(); + private static class drop_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { + public drop_partition_by_name_argsTupleScheme getScheme() { + return new drop_partition_by_name_argsTupleScheme(); } } - private static class drop_partition_with_environment_context_argsTupleScheme extends TupleScheme { + private static class drop_partition_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -61651,43 +55247,31 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetPart_name()) { optionals.set(2); } if (struct.isSetDeleteData()) { optionals.set(3); } - if (struct.isSetEnvironment_context()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 4); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter674 : struct.part_vals) - { - oprot.writeString(_iter674); - } - } + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_name); } if (struct.isSetDeleteData()) { oprot.writeBool(struct.deleteData); } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -61697,34 +55281,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list675.size); - String _elem676; - for (int _i677 = 0; _i677 < _list675.size; ++_i677) - { - _elem676 = iprot.readString(); - struct.part_vals.add(_elem676); - } - } - struct.setPart_valsIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } if (incoming.get(3)) { struct.deleteData = iprot.readBool(); struct.setDeleteDataIsSet(true); } - if (incoming.get(4)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); - } } } } - public static class drop_partition_with_environment_context_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_partition_with_environment_context_result"); + public static class drop_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_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); @@ -61732,8 +55302,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_by_name_resultTupleSchemeFactory()); } private boolean success; // required @@ -61817,13 +55387,13 @@ public String getFieldName() { 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_partition_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_result.class, metaDataMap); } - public drop_partition_with_environment_context_result() { + public drop_partition_by_name_result() { } - public drop_partition_with_environment_context_result( + public drop_partition_by_name_result( boolean success, NoSuchObjectException o1, MetaException o2) @@ -61838,7 +55408,7 @@ public drop_partition_with_environment_context_result( /** * Performs a deep copy on other. */ - public drop_partition_with_environment_context_result(drop_partition_with_environment_context_result other) { + public drop_partition_by_name_result(drop_partition_by_name_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetO1()) { @@ -61849,8 +55419,8 @@ public drop_partition_with_environment_context_result(drop_partition_with_enviro } } - public drop_partition_with_environment_context_result deepCopy() { - return new drop_partition_with_environment_context_result(this); + public drop_partition_by_name_result deepCopy() { + return new drop_partition_by_name_result(this); } @Override @@ -61994,12 +55564,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_with_environment_context_result) - return this.equals((drop_partition_with_environment_context_result)that); + if (that instanceof drop_partition_by_name_result) + return this.equals((drop_partition_by_name_result)that); return false; } - public boolean equals(drop_partition_with_environment_context_result that) { + public boolean equals(drop_partition_by_name_result that) { if (that == null) return false; @@ -62035,60 +55605,60 @@ public boolean equals(drop_partition_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_partition_with_environment_context_result other) { + public int compareTo(drop_partition_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_by_name_result typedOther = (drop_partition_by_name_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -62110,7 +55680,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_with_environment_context_result("); + StringBuilder sb = new StringBuilder("drop_partition_by_name_result("); boolean first = true; sb.append("success:"); @@ -62159,15 +55729,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partition_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_resultStandardScheme getScheme() { - return new drop_partition_with_environment_context_resultStandardScheme(); + private static class drop_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { + public drop_partition_by_name_resultStandardScheme getScheme() { + return new drop_partition_by_name_resultStandardScheme(); } } - private static class drop_partition_with_environment_context_resultStandardScheme extends StandardScheme { + private static class drop_partition_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -62212,7 +55782,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -62237,16 +55807,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit } - private static class drop_partition_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_with_environment_context_resultTupleScheme getScheme() { - return new drop_partition_with_environment_context_resultTupleScheme(); + private static class drop_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { + public drop_partition_by_name_resultTupleScheme getScheme() { + return new drop_partition_by_name_resultTupleScheme(); } } - private static class drop_partition_with_environment_context_resultTupleScheme extends TupleScheme { + private static class drop_partition_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -62271,7 +55841,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -62293,31 +55863,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } - public static class drop_partition_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_partition_by_name_args"); + public static class drop_partition_by_name_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_with_environment_context_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 PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_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 ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_by_name_with_environment_context_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_by_name_with_environment_context_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private String part_name; // required private boolean deleteData; // required + private EnvironmentContext environment_context; // 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"), PART_NAME((short)3, "part_name"), - DELETE_DATA((short)4, "deleteData"); + DELETE_DATA((short)4, "deleteData"), + ENVIRONMENT_CONTEXT((short)5, "environment_context"); private static final Map byName = new HashMap(); @@ -62340,6 +55913,8 @@ public static _Fields findByThriftId(int fieldId) { return PART_NAME; case 4: // DELETE_DATA return DELETE_DATA; + case 5: // ENVIRONMENT_CONTEXT + return ENVIRONMENT_CONTEXT; default: return null; } @@ -62393,18 +55968,21 @@ public String getFieldName() { 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.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_with_environment_context_args.class, metaDataMap); } - public drop_partition_by_name_args() { + public drop_partition_by_name_with_environment_context_args() { } - public drop_partition_by_name_args( + public drop_partition_by_name_with_environment_context_args( String db_name, String tbl_name, String part_name, - boolean deleteData) + boolean deleteData, + EnvironmentContext environment_context) { this(); this.db_name = db_name; @@ -62412,12 +55990,13 @@ public drop_partition_by_name_args( this.part_name = part_name; this.deleteData = deleteData; setDeleteDataIsSet(true); + this.environment_context = environment_context; } /** * Performs a deep copy on other. */ - public drop_partition_by_name_args(drop_partition_by_name_args other) { + public drop_partition_by_name_with_environment_context_args(drop_partition_by_name_with_environment_context_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -62429,10 +56008,13 @@ public drop_partition_by_name_args(drop_partition_by_name_args other) { this.part_name = other.part_name; } this.deleteData = other.deleteData; + if (other.isSetEnvironment_context()) { + this.environment_context = new EnvironmentContext(other.environment_context); + } } - public drop_partition_by_name_args deepCopy() { - return new drop_partition_by_name_args(this); + public drop_partition_by_name_with_environment_context_args deepCopy() { + return new drop_partition_by_name_with_environment_context_args(this); } @Override @@ -62442,6 +56024,7 @@ public void clear() { this.part_name = null; setDeleteDataIsSet(false); this.deleteData = false; + this.environment_context = null; } public String getDb_name() { @@ -62535,6 +56118,29 @@ public void setDeleteDataIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); } + public EnvironmentContext getEnvironment_context() { + return this.environment_context; + } + + public void setEnvironment_context(EnvironmentContext environment_context) { + this.environment_context = environment_context; + } + + public void unsetEnvironment_context() { + this.environment_context = null; + } + + /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ + public boolean isSetEnvironment_context() { + return this.environment_context != null; + } + + public void setEnvironment_contextIsSet(boolean value) { + if (!value) { + this.environment_context = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -62569,6 +56175,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case ENVIRONMENT_CONTEXT: + if (value == null) { + unsetEnvironment_context(); + } else { + setEnvironment_context((EnvironmentContext)value); + } + break; + } } @@ -62586,6 +56200,9 @@ public Object getFieldValue(_Fields field) { case DELETE_DATA: return Boolean.valueOf(isDeleteData()); + case ENVIRONMENT_CONTEXT: + return getEnvironment_context(); + } throw new IllegalStateException(); } @@ -62605,6 +56222,8 @@ public boolean isSet(_Fields field) { return isSetPart_name(); case DELETE_DATA: return isSetDeleteData(); + case ENVIRONMENT_CONTEXT: + return isSetEnvironment_context(); } throw new IllegalStateException(); } @@ -62613,12 +56232,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_by_name_args) - return this.equals((drop_partition_by_name_args)that); + if (that instanceof drop_partition_by_name_with_environment_context_args) + return this.equals((drop_partition_by_name_with_environment_context_args)that); return false; } - public boolean equals(drop_partition_by_name_args that) { + public boolean equals(drop_partition_by_name_with_environment_context_args that) { if (that == null) return false; @@ -62658,80 +56277,104 @@ public boolean equals(drop_partition_by_name_args that) { return false; } + boolean this_present_environment_context = true && this.isSetEnvironment_context(); + boolean that_present_environment_context = true && that.isSetEnvironment_context(); + if (this_present_environment_context || that_present_environment_context) { + if (!(this_present_environment_context && that_present_environment_context)) + return false; + if (!this.environment_context.equals(that.environment_context)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); - return list.hashCode(); + boolean present_environment_context = true && (isSetEnvironment_context()); + builder.append(present_environment_context); + if (present_environment_context) + builder.append(environment_context); + + return builder.toHashCode(); } - @Override - public int compareTo(drop_partition_by_name_args other) { + public int compareTo(drop_partition_by_name_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_by_name_with_environment_context_args typedOther = (drop_partition_by_name_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetEnvironment_context()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -62753,7 +56396,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_by_name_args("); + StringBuilder sb = new StringBuilder("drop_partition_by_name_with_environment_context_args("); boolean first = true; sb.append("db_name:"); @@ -62783,6 +56426,14 @@ public String toString() { sb.append("deleteData:"); sb.append(this.deleteData); first = false; + if (!first) sb.append(", "); + sb.append("environment_context:"); + if (this.environment_context == null) { + sb.append("null"); + } else { + sb.append(this.environment_context); + } + first = false; sb.append(")"); return sb.toString(); } @@ -62790,6 +56441,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (environment_context != null) { + environment_context.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -62810,15 +56464,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_by_name_argsStandardScheme getScheme() { - return new drop_partition_by_name_argsStandardScheme(); + private static class drop_partition_by_name_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { + public drop_partition_by_name_with_environment_context_argsStandardScheme getScheme() { + return new drop_partition_by_name_with_environment_context_argsStandardScheme(); } } - private static class drop_partition_by_name_argsStandardScheme extends StandardScheme { + private static class drop_partition_by_name_with_environment_context_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -62860,6 +56514,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // ENVIRONMENT_CONTEXT + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -62869,7 +56532,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -62891,22 +56554,27 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_ oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); oprot.writeBool(struct.deleteData); oprot.writeFieldEnd(); + if (struct.environment_context != null) { + oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); + struct.environment_context.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class drop_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_by_name_argsTupleScheme getScheme() { - return new drop_partition_by_name_argsTupleScheme(); + private static class drop_partition_by_name_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { + public drop_partition_by_name_with_environment_context_argsTupleScheme getScheme() { + return new drop_partition_by_name_with_environment_context_argsTupleScheme(); } } - private static class drop_partition_by_name_argsTupleScheme extends TupleScheme { + private static class drop_partition_by_name_with_environment_context_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -62921,7 +56589,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n if (struct.isSetDeleteData()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetEnvironment_context()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -62934,12 +56605,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n if (struct.isSetDeleteData()) { oprot.writeBool(struct.deleteData); } + if (struct.isSetEnvironment_context()) { + struct.environment_context.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -62956,13 +56630,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na struct.deleteData = iprot.readBool(); struct.setDeleteDataIsSet(true); } + if (incoming.get(4)) { + struct.environment_context = new EnvironmentContext(); + struct.environment_context.read(iprot); + struct.setEnvironment_contextIsSet(true); + } } } } - public static class drop_partition_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_partition_by_name_result"); + public static class drop_partition_by_name_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partition_by_name_with_environment_context_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); @@ -62970,8 +56649,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partition_by_name_with_environment_context_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partition_by_name_with_environment_context_resultTupleSchemeFactory()); } private boolean success; // required @@ -63055,13 +56734,13 @@ public String getFieldName() { 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_partition_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_with_environment_context_result.class, metaDataMap); } - public drop_partition_by_name_result() { + public drop_partition_by_name_with_environment_context_result() { } - public drop_partition_by_name_result( + public drop_partition_by_name_with_environment_context_result( boolean success, NoSuchObjectException o1, MetaException o2) @@ -63076,7 +56755,7 @@ public drop_partition_by_name_result( /** * Performs a deep copy on other. */ - public drop_partition_by_name_result(drop_partition_by_name_result other) { + public drop_partition_by_name_with_environment_context_result(drop_partition_by_name_with_environment_context_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetO1()) { @@ -63087,8 +56766,8 @@ public drop_partition_by_name_result(drop_partition_by_name_result other) { } } - public drop_partition_by_name_result deepCopy() { - return new drop_partition_by_name_result(this); + public drop_partition_by_name_with_environment_context_result deepCopy() { + return new drop_partition_by_name_with_environment_context_result(this); } @Override @@ -63232,12 +56911,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_by_name_result) - return this.equals((drop_partition_by_name_result)that); + if (that instanceof drop_partition_by_name_with_environment_context_result) + return this.equals((drop_partition_by_name_with_environment_context_result)that); return false; } - public boolean equals(drop_partition_by_name_result that) { + public boolean equals(drop_partition_by_name_with_environment_context_result that) { if (that == null) return false; @@ -63273,60 +56952,60 @@ public boolean equals(drop_partition_by_name_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_partition_by_name_result other) { + public int compareTo(drop_partition_by_name_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partition_by_name_with_environment_context_result typedOther = (drop_partition_by_name_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -63348,7 +57027,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_by_name_result("); + StringBuilder sb = new StringBuilder("drop_partition_by_name_with_environment_context_result("); boolean first = true; sb.append("success:"); @@ -63397,15 +57076,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_by_name_resultStandardScheme getScheme() { - return new drop_partition_by_name_resultStandardScheme(); + private static class drop_partition_by_name_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { + public drop_partition_by_name_with_environment_context_resultStandardScheme getScheme() { + return new drop_partition_by_name_with_environment_context_resultStandardScheme(); } } - private static class drop_partition_by_name_resultStandardScheme extends StandardScheme { + private static class drop_partition_by_name_with_environment_context_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -63450,7 +57129,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -63475,16 +57154,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_ } - private static class drop_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_by_name_resultTupleScheme getScheme() { - return new drop_partition_by_name_resultTupleScheme(); + private static class drop_partition_by_name_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { + public drop_partition_by_name_with_environment_context_resultTupleScheme getScheme() { + return new drop_partition_by_name_with_environment_context_resultTupleScheme(); } } - private static class drop_partition_by_name_resultTupleScheme extends TupleScheme { + private static class drop_partition_by_name_with_environment_context_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -63509,7 +57188,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -63531,34 +57210,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na } - public static class drop_partition_by_name_with_environment_context_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_partition_by_name_with_environment_context_args"); + public static class drop_partitions_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partitions_req_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 PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_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 ENVIRONMENT_CONTEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("environment_context", org.apache.thrift.protocol.TType.STRUCT, (short)5); + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partition_by_name_with_environment_context_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_by_name_with_environment_context_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partitions_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partitions_req_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private String part_name; // required - private boolean deleteData; // required - private EnvironmentContext environment_context; // required + private DropPartitionsRequest req; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - PART_NAME((short)3, "part_name"), - DELETE_DATA((short)4, "deleteData"), - ENVIRONMENT_CONTEXT((short)5, "environment_context"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -63573,16 +57240,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_NAME - return PART_NAME; - case 4: // DELETE_DATA - return DELETE_DATA; - case 5: // ENVIRONMENT_CONTEXT - return ENVIRONMENT_CONTEXT; + case 1: // REQ + return REQ; default: return null; } @@ -63623,231 +57282,73 @@ public String getFieldName() { } // 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.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_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.ENVIRONMENT_CONTEXT, new org.apache.thrift.meta_data.FieldMetaData("environment_context", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, EnvironmentContext.class))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DropPartitionsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partition_by_name_with_environment_context_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_req_args.class, metaDataMap); } - public drop_partition_by_name_with_environment_context_args() { + public drop_partitions_req_args() { } - public drop_partition_by_name_with_environment_context_args( - String db_name, - String tbl_name, - String part_name, - boolean deleteData, - EnvironmentContext environment_context) + public drop_partitions_req_args( + DropPartitionsRequest req) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_name = part_name; - this.deleteData = deleteData; - setDeleteDataIsSet(true); - this.environment_context = environment_context; + this.req = req; } /** * Performs a deep copy on other. */ - public drop_partition_by_name_with_environment_context_args(drop_partition_by_name_with_environment_context_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.isSetPart_name()) { - this.part_name = other.part_name; - } - this.deleteData = other.deleteData; - if (other.isSetEnvironment_context()) { - this.environment_context = new EnvironmentContext(other.environment_context); + public drop_partitions_req_args(drop_partitions_req_args other) { + if (other.isSetReq()) { + this.req = new DropPartitionsRequest(other.req); } } - public drop_partition_by_name_with_environment_context_args deepCopy() { - return new drop_partition_by_name_with_environment_context_args(this); + public drop_partitions_req_args deepCopy() { + return new drop_partitions_req_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_name = null; - setDeleteDataIsSet(false); - this.deleteData = false; - this.environment_context = 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 getPart_name() { - return this.part_name; - } - - public void setPart_name(String part_name) { - this.part_name = part_name; - } - - public void unsetPart_name() { - this.part_name = null; - } - - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != null; - } - - public void setPart_nameIsSet(boolean value) { - if (!value) { - this.part_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); + this.req = null; } - public EnvironmentContext getEnvironment_context() { - return this.environment_context; + public DropPartitionsRequest getReq() { + return this.req; } - public void setEnvironment_context(EnvironmentContext environment_context) { - this.environment_context = environment_context; + public void setReq(DropPartitionsRequest req) { + this.req = req; } - public void unsetEnvironment_context() { - this.environment_context = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field environment_context is set (has been assigned a value) and false otherwise */ - public boolean isSetEnvironment_context() { - return this.environment_context != null; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setEnvironment_contextIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.environment_context = null; + this.req = 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 PART_NAME: - if (value == null) { - unsetPart_name(); - } else { - setPart_name((String)value); - } - break; - - case DELETE_DATA: - if (value == null) { - unsetDeleteData(); - } else { - setDeleteData((Boolean)value); - } - break; - - case ENVIRONMENT_CONTEXT: + case REQ: if (value == null) { - unsetEnvironment_context(); + unsetReq(); } else { - setEnvironment_context((EnvironmentContext)value); + setReq((DropPartitionsRequest)value); } break; @@ -63856,20 +57357,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case PART_NAME: - return getPart_name(); - - case DELETE_DATA: - return Boolean.valueOf(isDeleteData()); - - case ENVIRONMENT_CONTEXT: - return getEnvironment_context(); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -63882,16 +57371,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_NAME: - return isSetPart_name(); - case DELETE_DATA: - return isSetDeleteData(); - case ENVIRONMENT_CONTEXT: - return isSetEnvironment_context(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -63900,57 +57381,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_by_name_with_environment_context_args) - return this.equals((drop_partition_by_name_with_environment_context_args)that); + if (that instanceof drop_partitions_req_args) + return this.equals((drop_partitions_req_args)that); return false; } - public boolean equals(drop_partition_by_name_with_environment_context_args that) { + public boolean equals(drop_partitions_req_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_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) - return false; - if (!this.part_name.equals(that.part_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; - } - - boolean this_present_environment_context = true && this.isSetEnvironment_context(); - boolean that_present_environment_context = true && that.isSetEnvironment_context(); - if (this_present_environment_context || that_present_environment_context) { - if (!(this_present_environment_context && that_present_environment_context)) + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) return false; - if (!this.environment_context.equals(that.environment_context)) + if (!this.req.equals(that.req)) return false; } @@ -63959,90 +57404,30 @@ public boolean equals(drop_partition_by_name_with_environment_context_args that) @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); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); - - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); - - boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); - if (present_environment_context) - list.add(environment_context); + boolean present_req = true && (isSetReq()); + builder.append(present_req); + if (present_req) + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_partition_by_name_with_environment_context_args other) { + public int compareTo(drop_partitions_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partitions_req_args typedOther = (drop_partitions_req_args)other; - 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(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_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; - } - } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -64064,42 +57449,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_by_name_with_environment_context_args("); + StringBuilder sb = new StringBuilder("drop_partitions_req_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("part_name:"); - if (this.part_name == null) { - sb.append("null"); - } else { - sb.append(this.part_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); - first = false; - if (!first) sb.append(", "); - sb.append("environment_context:"); - if (this.environment_context == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.environment_context); + sb.append(this.req); } first = false; sb.append(")"); @@ -64109,8 +57466,8 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (environment_context != null) { - environment_context.validate(); + if (req != null) { + req.validate(); } } @@ -64124,23 +57481,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_partition_by_name_with_environment_context_argsStandardSchemeFactory implements SchemeFactory { - public drop_partition_by_name_with_environment_context_argsStandardScheme getScheme() { - return new drop_partition_by_name_with_environment_context_argsStandardScheme(); + private static class drop_partitions_req_argsStandardSchemeFactory implements SchemeFactory { + public drop_partitions_req_argsStandardScheme getScheme() { + return new drop_partitions_req_argsStandardScheme(); } } - private static class drop_partition_by_name_with_environment_context_argsStandardScheme extends StandardScheme { + private static class drop_partitions_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -64150,43 +57505,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n 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: // PART_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_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; - case 5: // ENVIRONMENT_CONTEXT + case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.req = new DropPartitionsRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -64200,31 +57523,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_req_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.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); - oprot.writeBool(struct.deleteData); - oprot.writeFieldEnd(); - if (struct.environment_context != null) { - oprot.writeFieldBegin(ENVIRONMENT_CONTEXT_FIELD_DESC); - struct.environment_context.write(oprot); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -64233,95 +57538,55 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_ } - private static class drop_partition_by_name_with_environment_context_argsTupleSchemeFactory implements SchemeFactory { - public drop_partition_by_name_with_environment_context_argsTupleScheme getScheme() { - return new drop_partition_by_name_with_environment_context_argsTupleScheme(); + private static class drop_partitions_req_argsTupleSchemeFactory implements SchemeFactory { + public drop_partitions_req_argsTupleScheme getScheme() { + return new drop_partitions_req_argsTupleScheme(); } } - private static class drop_partition_by_name_with_environment_context_argsTupleScheme extends TupleScheme { + private static class drop_partitions_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetPart_name()) { - optionals.set(2); - } - if (struct.isSetDeleteData()) { - optionals.set(3); - } - if (struct.isSetEnvironment_context()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); - } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); - } - if (struct.isSetEnvironment_context()) { - struct.environment_context.write(oprot); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(1); 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.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); - } - if (incoming.get(3)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); - } - if (incoming.get(4)) { - struct.environment_context = new EnvironmentContext(); - struct.environment_context.read(iprot); - struct.setEnvironment_contextIsSet(true); + struct.req = new DropPartitionsRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - public static class drop_partition_by_name_with_environment_context_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_partition_by_name_with_environment_context_result"); + public static class drop_partitions_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_partitions_req_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.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.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 drop_partition_by_name_with_environment_context_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partition_by_name_with_environment_context_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new drop_partitions_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_partitions_req_resultTupleSchemeFactory()); } - private boolean success; // required + private DropPartitionsResult success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -64390,32 +57655,29 @@ 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DropPartitionsResult.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_partition_by_name_with_environment_context_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_req_result.class, metaDataMap); } - public drop_partition_by_name_with_environment_context_result() { + public drop_partitions_req_result() { } - public drop_partition_by_name_with_environment_context_result( - boolean success, + public drop_partitions_req_result( + DropPartitionsResult success, NoSuchObjectException o1, MetaException o2) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -64423,9 +57685,10 @@ public drop_partition_by_name_with_environment_context_result( /** * Performs a deep copy on other. */ - public drop_partition_by_name_with_environment_context_result(drop_partition_by_name_with_environment_context_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public drop_partitions_req_result(drop_partitions_req_result other) { + if (other.isSetSuccess()) { + this.success = new DropPartitionsResult(other.success); + } if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -64434,38 +57697,38 @@ public drop_partition_by_name_with_environment_context_result(drop_partition_by_ } } - public drop_partition_by_name_with_environment_context_result deepCopy() { - return new drop_partition_by_name_with_environment_context_result(this); + public drop_partitions_req_result deepCopy() { + return new drop_partitions_req_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.o1 = null; this.o2 = null; } - public boolean isSuccess() { + public DropPartitionsResult getSuccess() { return this.success; } - public void setSuccess(boolean success) { + public void setSuccess(DropPartitionsResult 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() { @@ -64520,7 +57783,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((DropPartitionsResult)value); } break; @@ -64546,7 +57809,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); case O1: return getO1(); @@ -64579,21 +57842,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partition_by_name_with_environment_context_result) - return this.equals((drop_partition_by_name_with_environment_context_result)that); + if (that instanceof drop_partitions_req_result) + return this.equals((drop_partitions_req_result)that); return false; } - public boolean equals(drop_partition_by_name_with_environment_context_result that) { + public boolean equals(drop_partitions_req_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; } @@ -64620,60 +57883,60 @@ public boolean equals(drop_partition_by_name_with_environment_context_result tha @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_success = true; - list.add(present_success); + boolean present_success = true && (isSetSuccess()); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_partition_by_name_with_environment_context_result other) { + public int compareTo(drop_partitions_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_partitions_req_result typedOther = (drop_partitions_req_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -64695,11 +57958,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partition_by_name_with_environment_context_result("); + StringBuilder sb = new StringBuilder("drop_partitions_req_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:"); @@ -64724,6 +57991,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -64736,23 +58006,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_partition_by_name_with_environment_context_resultStandardSchemeFactory implements SchemeFactory { - public drop_partition_by_name_with_environment_context_resultStandardScheme getScheme() { - return new drop_partition_by_name_with_environment_context_resultStandardScheme(); + private static class drop_partitions_req_resultStandardSchemeFactory implements SchemeFactory { + public drop_partitions_req_resultStandardScheme getScheme() { + return new drop_partitions_req_resultStandardScheme(); } } - private static class drop_partition_by_name_with_environment_context_resultStandardScheme extends StandardScheme { + private static class drop_partitions_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -64763,8 +58031,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n } 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.STRUCT) { + struct.success = new DropPartitionsResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -64797,13 +58066,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_by_n struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_req_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); + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -64822,16 +58091,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_by_ } - private static class drop_partition_by_name_with_environment_context_resultTupleSchemeFactory implements SchemeFactory { - public drop_partition_by_name_with_environment_context_resultTupleScheme getScheme() { - return new drop_partition_by_name_with_environment_context_resultTupleScheme(); + private static class drop_partitions_req_resultTupleSchemeFactory implements SchemeFactory { + public drop_partitions_req_resultTupleScheme getScheme() { + return new drop_partitions_req_resultTupleScheme(); } } - private static class drop_partition_by_name_with_environment_context_resultTupleScheme extends TupleScheme { + private static class drop_partitions_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -64845,7 +58114,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -64856,11 +58125,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_n } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_name_with_environment_context_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_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.success = new DropPartitionsResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -64878,22 +58148,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na } - public static class drop_partitions_req_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_partitions_req_args"); + public static class get_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final 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 PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partitions_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partitions_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_argsTupleSchemeFactory()); } - private DropPartitionsRequest req; // required + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - REQ((short)1, "req"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_VALS((short)3, "part_vals"); private static final Map byName = new HashMap(); @@ -64908,8 +58184,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_by_na */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; default: return null; } @@ -64935,88 +58215,186 @@ public static _Fields findByName(String name) { private final short _thriftId; private final String _fieldName; - _Fields(short thriftId, String fieldName) { - _thriftId = thriftId; - _fieldName = 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.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_args.class, metaDataMap); + } + + public get_partition_args() { + } + + public get_partition_args( + String db_name, + String tbl_name, + List part_vals) + { + this(); + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; + } + + /** + * Performs a deep copy on other. + */ + public get_partition_args(get_partition_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } + this.part_vals = __this__part_vals; + } + } + + public get_partition_args deepCopy() { + return new get_partition_args(this); + } + + @Override + public void clear() { + this.db_name = null; + this.tbl_name = null; + this.part_vals = 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 short getThriftFieldId() { - return _thriftId; + public void setDb_nameIsSet(boolean value) { + if (!value) { + this.db_name = null; } + } - public String getFieldName() { - return _fieldName; - } + public String getTbl_name() { + return this.tbl_name; } - // isset id assignments - public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; - static { - Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DropPartitionsRequest.class))); - metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_partitions_req_args.class, metaDataMap); + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public drop_partitions_req_args() { + public void unsetTbl_name() { + this.tbl_name = null; } - public drop_partitions_req_args( - DropPartitionsRequest req) - { - this(); - this.req = req; + /** 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; } - /** - * Performs a deep copy on other. - */ - public drop_partitions_req_args(drop_partitions_req_args other) { - if (other.isSetReq()) { - this.req = new DropPartitionsRequest(other.req); + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; } } - public drop_partitions_req_args deepCopy() { - return new drop_partitions_req_args(this); + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); } - @Override - public void clear() { - this.req = null; + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); } - public DropPartitionsRequest getReq() { - return this.req; + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); } - public void setReq(DropPartitionsRequest req) { - this.req = req; + public List getPart_vals() { + return this.part_vals; } - public void unsetReq() { - this.req = null; + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != null; + public void unsetPart_vals() { + this.part_vals = null; } - public void setReqIsSet(boolean value) { + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { if (!value) { - this.req = null; + this.part_vals = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case DB_NAME: if (value == null) { - unsetReq(); + unsetDb_name(); } else { - setReq((DropPartitionsRequest)value); + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); } break; @@ -65025,8 +58403,14 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_VALS: + return getPart_vals(); } throw new IllegalStateException(); @@ -65039,8 +58423,12 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); } throw new IllegalStateException(); } @@ -65049,21 +58437,39 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partitions_req_args) - return this.equals((drop_partitions_req_args)that); + if (that instanceof get_partition_args) + return this.equals((get_partition_args)that); return false; } - public boolean equals(drop_partitions_req_args that) { + public boolean equals(get_partition_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + 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.req.equals(that.req)) + 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_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) return false; } @@ -65072,30 +58478,60 @@ public boolean equals(drop_partitions_req_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_db_name = true && (isSetDb_name()); + builder.append(present_db_name); + if (present_db_name) + builder.append(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + builder.append(present_tbl_name); + if (present_tbl_name) + builder.append(tbl_name); + + boolean present_part_vals = true && (isSetPart_vals()); + builder.append(present_part_vals); + if (present_part_vals) + builder.append(part_vals); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_partitions_req_args other) { + public int compareTo(get_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_args typedOther = (get_partition_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } @@ -65117,14 +58553,30 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partitions_req_args("); + StringBuilder sb = new StringBuilder("get_partition_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.req); + 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("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); } first = false; sb.append(")"); @@ -65134,9 +58586,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -65155,15 +58604,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partitions_req_argsStandardSchemeFactory implements SchemeFactory { - public drop_partitions_req_argsStandardScheme getScheme() { - return new drop_partitions_req_argsStandardScheme(); + private static class get_partition_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_argsStandardScheme getScheme() { + return new get_partition_argsStandardScheme(); } } - private static class drop_partitions_req_argsStandardScheme extends StandardScheme { + private static class get_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -65173,11 +58622,36 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new DropPartitionsRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + 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: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list678 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list678.size); + for (int _i679 = 0; _i679 < _list678.size; ++_i679) + { + String _elem680; // required + _elem680 = iprot.readString(); + struct.part_vals.add(_elem680); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -65191,13 +58665,30 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + 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.part_vals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); + for (String _iter681 : struct.part_vals) + { + oprot.writeString(_iter681); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -65206,43 +58697,77 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_re } - private static class drop_partitions_req_argsTupleSchemeFactory implements SchemeFactory { - public drop_partitions_req_argsTupleScheme getScheme() { - return new drop_partitions_req_argsTupleScheme(); + private static class get_partition_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_argsTupleScheme getScheme() { + return new get_partition_argsTupleScheme(); } } - private static class drop_partitions_req_argsTupleScheme extends TupleScheme { + private static class get_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetPart_vals()) { + 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.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter682 : struct.part_vals) + { + oprot.writeString(_iter682); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.req = new DropPartitionsRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + 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)) { + { + org.apache.thrift.protocol.TList _list683 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list683.size); + for (int _i684 = 0; _i684 < _list683.size; ++_i684) + { + String _elem685; // required + _elem685 = iprot.readString(); + struct.part_vals.add(_elem685); + } + } + struct.setPart_valsIsSet(true); } } } } - public static class drop_partitions_req_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_partitions_req_result"); + public static class get_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_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); @@ -65250,13 +58775,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_partitions_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_partitions_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_resultTupleSchemeFactory()); } - private DropPartitionsResult success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private Partition 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 { @@ -65327,22 +58852,22 @@ 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, DropPartitionsResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.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_partitions_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_result.class, metaDataMap); } - public drop_partitions_req_result() { + public get_partition_result() { } - public drop_partitions_req_result( - DropPartitionsResult success, - NoSuchObjectException o1, - MetaException o2) + public get_partition_result( + Partition success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; @@ -65353,20 +58878,20 @@ public drop_partitions_req_result( /** * Performs a deep copy on other. */ - public drop_partitions_req_result(drop_partitions_req_result other) { + public get_partition_result(get_partition_result other) { if (other.isSetSuccess()) { - this.success = new DropPartitionsResult(other.success); + this.success = new Partition(other.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 drop_partitions_req_result deepCopy() { - return new drop_partitions_req_result(this); + public get_partition_result deepCopy() { + return new get_partition_result(this); } @Override @@ -65376,11 +58901,11 @@ public void clear() { this.o2 = null; } - public DropPartitionsResult getSuccess() { + public Partition getSuccess() { return this.success; } - public void setSuccess(DropPartitionsResult success) { + public void setSuccess(Partition success) { this.success = success; } @@ -65399,11 +58924,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; } @@ -65422,11 +58947,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; } @@ -65451,7 +58976,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((DropPartitionsResult)value); + setSuccess((Partition)value); } break; @@ -65459,7 +58984,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -65467,7 +58992,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -65510,12 +59035,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_partitions_req_result) - return this.equals((drop_partitions_req_result)that); + if (that instanceof get_partition_result) + return this.equals((get_partition_result)that); return false; } - public boolean equals(drop_partitions_req_result that) { + public boolean equals(get_partition_result that) { if (that == null) return false; @@ -65551,60 +59076,60 @@ public boolean equals(drop_partitions_req_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(drop_partitions_req_result other) { + public int compareTo(get_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_result typedOther = (get_partition_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -65626,7 +59151,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_partitions_req_result("); + StringBuilder sb = new StringBuilder("get_partition_result("); boolean first = true; sb.append("success:"); @@ -65680,15 +59205,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_partitions_req_resultStandardSchemeFactory implements SchemeFactory { - public drop_partitions_req_resultStandardScheme getScheme() { - return new drop_partitions_req_resultStandardScheme(); + private static class get_partition_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_resultStandardScheme getScheme() { + return new get_partition_resultStandardScheme(); } } - private static class drop_partitions_req_resultStandardScheme extends StandardScheme { + private static class get_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -65700,7 +59225,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new DropPartitionsResult(); + struct.success = new Partition(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -65709,7 +59234,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req 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 { @@ -65718,7 +59243,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req 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 { @@ -65734,7 +59259,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partitions_req struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -65759,16 +59284,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partitions_re } - private static class drop_partitions_req_resultTupleSchemeFactory implements SchemeFactory { - public drop_partitions_req_resultTupleScheme getScheme() { - return new drop_partitions_req_resultTupleScheme(); + private static class get_partition_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_resultTupleScheme getScheme() { + return new get_partition_resultTupleScheme(); } } - private static class drop_partitions_req_resultTupleScheme extends TupleScheme { + private static class get_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -65793,21 +59318,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new DropPartitionsResult(); + struct.success = new Partition(); struct.success.read(iprot); 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); } @@ -65816,28 +59341,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_ } - public static class get_partition_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_partition_args"); + public static class exchange_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partition_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 PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); + private static final org.apache.thrift.protocol.TField SOURCE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("source_db", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField SOURCE_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_table_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DEST_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_db", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField DEST_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_table_name", org.apache.thrift.protocol.TType.STRING, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partition_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private List part_vals; // required + private Map partitionSpecs; // required + private String source_db; // required + private String source_table_name; // required + private String dest_db; // required + private String dest_table_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"), - PART_VALS((short)3, "part_vals"); + PARTITION_SPECS((short)1, "partitionSpecs"), + SOURCE_DB((short)2, "source_db"), + SOURCE_TABLE_NAME((short)3, "source_table_name"), + DEST_DB((short)4, "dest_db"), + DEST_TABLE_NAME((short)5, "dest_table_name"); private static final Map byName = new HashMap(); @@ -65852,12 +59383,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partitions_req_ */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; + case 1: // PARTITION_SPECS + return PARTITION_SPECS; + case 2: // SOURCE_DB + return SOURCE_DB; + case 3: // SOURCE_TABLE_NAME + return SOURCE_TABLE_NAME; + case 4: // DEST_DB + return DEST_DB; + case 5: // DEST_TABLE_NAME + return DEST_TABLE_NAME; default: return null; } @@ -65901,165 +59436,251 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PARTITION_SPECS, new org.apache.thrift.meta_data.FieldMetaData("partitionSpecs", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.SOURCE_DB, new org.apache.thrift.meta_data.FieldMetaData("source_db", 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.SOURCE_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DEST_DB, new org.apache.thrift.meta_data.FieldMetaData("dest_db", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DEST_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("dest_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_args.class, metaDataMap); } - public get_partition_args() { + public exchange_partition_args() { } - public get_partition_args( - String db_name, - String tbl_name, - List part_vals) + public exchange_partition_args( + Map partitionSpecs, + String source_db, + String source_table_name, + String dest_db, + String dest_table_name) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.part_vals = part_vals; + this.partitionSpecs = partitionSpecs; + this.source_db = source_db; + this.source_table_name = source_table_name; + this.dest_db = dest_db; + this.dest_table_name = dest_table_name; } /** * Performs a deep copy on other. */ - public get_partition_args(get_partition_args other) { - if (other.isSetDb_name()) { - this.db_name = other.db_name; + public exchange_partition_args(exchange_partition_args other) { + if (other.isSetPartitionSpecs()) { + Map __this__partitionSpecs = new HashMap(); + for (Map.Entry other_element : other.partitionSpecs.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__partitionSpecs_copy_key = other_element_key; + + String __this__partitionSpecs_copy_value = other_element_value; + + __this__partitionSpecs.put(__this__partitionSpecs_copy_key, __this__partitionSpecs_copy_value); + } + this.partitionSpecs = __this__partitionSpecs; } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + if (other.isSetSource_db()) { + this.source_db = other.source_db; } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + if (other.isSetSource_table_name()) { + this.source_table_name = other.source_table_name; + } + if (other.isSetDest_db()) { + this.dest_db = other.dest_db; + } + if (other.isSetDest_table_name()) { + this.dest_table_name = other.dest_table_name; } } - public get_partition_args deepCopy() { - return new get_partition_args(this); + public exchange_partition_args deepCopy() { + return new exchange_partition_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.part_vals = null; + this.partitionSpecs = null; + this.source_db = null; + this.source_table_name = null; + this.dest_db = null; + this.dest_table_name = null; } - public String getDb_name() { - return this.db_name; + public int getPartitionSpecsSize() { + return (this.partitionSpecs == null) ? 0 : this.partitionSpecs.size(); } - public void setDb_name(String db_name) { - this.db_name = db_name; + public void putToPartitionSpecs(String key, String val) { + if (this.partitionSpecs == null) { + this.partitionSpecs = new HashMap(); + } + this.partitionSpecs.put(key, val); } - public void unsetDb_name() { - this.db_name = null; + public Map getPartitionSpecs() { + return this.partitionSpecs; } - /** 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 setPartitionSpecs(Map partitionSpecs) { + this.partitionSpecs = partitionSpecs; } - public void setDb_nameIsSet(boolean value) { + public void unsetPartitionSpecs() { + this.partitionSpecs = null; + } + + /** Returns true if field partitionSpecs is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionSpecs() { + return this.partitionSpecs != null; + } + + public void setPartitionSpecsIsSet(boolean value) { if (!value) { - this.db_name = null; + this.partitionSpecs = null; } } - public String getTbl_name() { - return this.tbl_name; + public String getSource_db() { + return this.source_db; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public void setSource_db(String source_db) { + this.source_db = source_db; } - public void unsetTbl_name() { - this.tbl_name = null; + public void unsetSource_db() { + this.source_db = 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 source_db is set (has been assigned a value) and false otherwise */ + public boolean isSetSource_db() { + return this.source_db != null; } - public void setTbl_nameIsSet(boolean value) { + public void setSource_dbIsSet(boolean value) { if (!value) { - this.tbl_name = null; + this.source_db = null; } } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); + public String getSource_table_name() { + return this.source_table_name; } - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); + public void setSource_table_name(String source_table_name) { + this.source_table_name = source_table_name; } - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); + public void unsetSource_table_name() { + this.source_table_name = null; + } + + /** Returns true if field source_table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetSource_table_name() { + return this.source_table_name != null; + } + + public void setSource_table_nameIsSet(boolean value) { + if (!value) { + this.source_table_name = null; } - this.part_vals.add(elem); } - public List getPart_vals() { - return this.part_vals; + public String getDest_db() { + return this.dest_db; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setDest_db(String dest_db) { + this.dest_db = dest_db; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetDest_db() { + this.dest_db = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field dest_db is set (has been assigned a value) and false otherwise */ + public boolean isSetDest_db() { + return this.dest_db != null; } - public void setPart_valsIsSet(boolean value) { + public void setDest_dbIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.dest_db = null; + } + } + + public String getDest_table_name() { + return this.dest_table_name; + } + + public void setDest_table_name(String dest_table_name) { + this.dest_table_name = dest_table_name; + } + + public void unsetDest_table_name() { + this.dest_table_name = null; + } + + /** Returns true if field dest_table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDest_table_name() { + return this.dest_table_name != null; + } + + public void setDest_table_nameIsSet(boolean value) { + if (!value) { + this.dest_table_name = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + case PARTITION_SPECS: if (value == null) { - unsetDb_name(); + unsetPartitionSpecs(); } else { - setDb_name((String)value); + setPartitionSpecs((Map)value); } break; - case TBL_NAME: + case SOURCE_DB: if (value == null) { - unsetTbl_name(); + unsetSource_db(); } else { - setTbl_name((String)value); + setSource_db((String)value); } break; - case PART_VALS: + case SOURCE_TABLE_NAME: if (value == null) { - unsetPart_vals(); + unsetSource_table_name(); } else { - setPart_vals((List)value); + setSource_table_name((String)value); + } + break; + + case DEST_DB: + if (value == null) { + unsetDest_db(); + } else { + setDest_db((String)value); + } + break; + + case DEST_TABLE_NAME: + if (value == null) { + unsetDest_table_name(); + } else { + setDest_table_name((String)value); } break; @@ -66068,14 +59689,20 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); + case PARTITION_SPECS: + return getPartitionSpecs(); - case TBL_NAME: - return getTbl_name(); + case SOURCE_DB: + return getSource_db(); - case PART_VALS: - return getPart_vals(); + case SOURCE_TABLE_NAME: + return getSource_table_name(); + + case DEST_DB: + return getDest_db(); + + case DEST_TABLE_NAME: + return getDest_table_name(); } throw new IllegalStateException(); @@ -66088,12 +59715,16 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); + case PARTITION_SPECS: + return isSetPartitionSpecs(); + case SOURCE_DB: + return isSetSource_db(); + case SOURCE_TABLE_NAME: + return isSetSource_table_name(); + case DEST_DB: + return isSetDest_db(); + case DEST_TABLE_NAME: + return isSetDest_table_name(); } throw new IllegalStateException(); } @@ -66102,39 +59733,57 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_args) - return this.equals((get_partition_args)that); + if (that instanceof exchange_partition_args) + return this.equals((exchange_partition_args)that); return false; } - public boolean equals(get_partition_args that) { + public boolean equals(exchange_partition_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_partitionSpecs = true && this.isSetPartitionSpecs(); + boolean that_present_partitionSpecs = true && that.isSetPartitionSpecs(); + if (this_present_partitionSpecs || that_present_partitionSpecs) { + if (!(this_present_partitionSpecs && that_present_partitionSpecs)) return false; - if (!this.db_name.equals(that.db_name)) + if (!this.partitionSpecs.equals(that.partitionSpecs)) 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_source_db = true && this.isSetSource_db(); + boolean that_present_source_db = true && that.isSetSource_db(); + if (this_present_source_db || that_present_source_db) { + if (!(this_present_source_db && that_present_source_db)) return false; - if (!this.tbl_name.equals(that.tbl_name)) + if (!this.source_db.equals(that.source_db)) return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) + boolean this_present_source_table_name = true && this.isSetSource_table_name(); + boolean that_present_source_table_name = true && that.isSetSource_table_name(); + if (this_present_source_table_name || that_present_source_table_name) { + if (!(this_present_source_table_name && that_present_source_table_name)) return false; - if (!this.part_vals.equals(that.part_vals)) + if (!this.source_table_name.equals(that.source_table_name)) + return false; + } + + boolean this_present_dest_db = true && this.isSetDest_db(); + boolean that_present_dest_db = true && that.isSetDest_db(); + if (this_present_dest_db || that_present_dest_db) { + if (!(this_present_dest_db && that_present_dest_db)) + return false; + if (!this.dest_db.equals(that.dest_db)) + return false; + } + + boolean this_present_dest_table_name = true && this.isSetDest_table_name(); + boolean that_present_dest_table_name = true && that.isSetDest_table_name(); + if (this_present_dest_table_name || that_present_dest_table_name) { + if (!(this_present_dest_table_name && that_present_dest_table_name)) + return false; + if (!this.dest_table_name.equals(that.dest_table_name)) return false; } @@ -66143,60 +59792,90 @@ public boolean equals(get_partition_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); + boolean present_partitionSpecs = true && (isSetPartitionSpecs()); + builder.append(present_partitionSpecs); + if (present_partitionSpecs) + builder.append(partitionSpecs); - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); + boolean present_source_db = true && (isSetSource_db()); + builder.append(present_source_db); + if (present_source_db) + builder.append(source_db); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); + boolean present_source_table_name = true && (isSetSource_table_name()); + builder.append(present_source_table_name); + if (present_source_table_name) + builder.append(source_table_name); + + boolean present_dest_db = true && (isSetDest_db()); + builder.append(present_dest_db); + if (present_dest_db) + builder.append(dest_db); + + boolean present_dest_table_name = true && (isSetDest_table_name()); + builder.append(present_dest_table_name); + if (present_dest_table_name) + builder.append(dest_table_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partition_args other) { + public int compareTo(exchange_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + exchange_partition_args typedOther = (exchange_partition_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetPartitionSpecs()).compareTo(typedOther.isSetPartitionSpecs()); if (lastComparison != 0) { return lastComparison; } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (isSetPartitionSpecs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, typedOther.partitionSpecs); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(typedOther.isSetSource_db()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (isSetSource_db()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, typedOther.source_db); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(typedOther.isSetSource_table_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (isSetSource_table_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, typedOther.source_table_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(typedOther.isSetDest_db()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDest_db()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, typedOther.dest_db); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(typedOther.isSetDest_table_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDest_table_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, typedOther.dest_table_name); if (lastComparison != 0) { return lastComparison; } @@ -66218,30 +59897,46 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_args("); + StringBuilder sb = new StringBuilder("exchange_partition_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { + sb.append("partitionSpecs:"); + if (this.partitionSpecs == null) { sb.append("null"); } else { - sb.append(this.db_name); + sb.append(this.partitionSpecs); } first = false; if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("source_db:"); + if (this.source_db == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.source_db); } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("source_table_name:"); + if (this.source_table_name == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.source_table_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("dest_db:"); + if (this.dest_db == null) { + sb.append("null"); + } else { + sb.append(this.dest_db); + } + first = false; + if (!first) sb.append(", "); + sb.append("dest_table_name:"); + if (this.dest_table_name == null) { + sb.append("null"); + } else { + sb.append(this.dest_table_name); } first = false; sb.append(")"); @@ -66269,15 +59964,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_argsStandardScheme getScheme() { - return new get_partition_argsStandardScheme(); + private static class exchange_partition_argsStandardSchemeFactory implements SchemeFactory { + public exchange_partition_argsStandardScheme getScheme() { + return new exchange_partition_argsStandardScheme(); } } - private static class get_partition_argsStandardScheme extends StandardScheme { + private static class exchange_partition_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -66287,36 +59982,54 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args break; } switch (schemeField.id) { - case 1: // DB_NAME + case 1: // PARTITION_SPECS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map686 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map686.size); + for (int _i687 = 0; _i687 < _map686.size; ++_i687) + { + String _key688; // required + String _val689; // required + _key688 = iprot.readString(); + _val689 = iprot.readString(); + struct.partitionSpecs.put(_key688, _val689); + } + iprot.readMapEnd(); + } + struct.setPartitionSpecsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SOURCE_DB if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.source_db = iprot.readString(); + struct.setSource_dbIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TBL_NAME + case 3: // SOURCE_TABLE_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.source_table_name = iprot.readString(); + struct.setSource_table_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list678 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list678.size); - String _elem679; - for (int _i680 = 0; _i680 < _list678.size; ++_i680) - { - _elem679 = iprot.readString(); - struct.part_vals.add(_elem679); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); + case 4: // DEST_DB + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dest_db = iprot.readString(); + struct.setDest_dbIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // DEST_TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dest_table_name = iprot.readString(); + struct.setDest_table_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -66330,129 +60043,169 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_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.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + if (struct.partitionSpecs != null) { + oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter681 : struct.part_vals) + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); + for (Map.Entry _iter690 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter681); + oprot.writeString(_iter690.getKey()); + oprot.writeString(_iter690.getValue()); } - oprot.writeListEnd(); + oprot.writeMapEnd(); } oprot.writeFieldEnd(); } + if (struct.source_db != null) { + oprot.writeFieldBegin(SOURCE_DB_FIELD_DESC); + oprot.writeString(struct.source_db); + oprot.writeFieldEnd(); + } + if (struct.source_table_name != null) { + oprot.writeFieldBegin(SOURCE_TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.source_table_name); + oprot.writeFieldEnd(); + } + if (struct.dest_db != null) { + oprot.writeFieldBegin(DEST_DB_FIELD_DESC); + oprot.writeString(struct.dest_db); + oprot.writeFieldEnd(); + } + if (struct.dest_table_name != null) { + oprot.writeFieldBegin(DEST_TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.dest_table_name); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partition_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_argsTupleScheme getScheme() { - return new get_partition_argsTupleScheme(); + private static class exchange_partition_argsTupleSchemeFactory implements SchemeFactory { + public exchange_partition_argsTupleScheme getScheme() { + return new exchange_partition_argsTupleScheme(); } } - private static class get_partition_argsTupleScheme extends TupleScheme { + private static class exchange_partition_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetPartitionSpecs()) { optionals.set(0); } - if (struct.isSetTbl_name()) { + if (struct.isSetSource_db()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetSource_table_name()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetDest_db()) { + optionals.set(3); } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); + if (struct.isSetDest_table_name()) { + optionals.set(4); } - if (struct.isSetPart_vals()) { + oprot.writeBitSet(optionals, 5); + if (struct.isSetPartitionSpecs()) { { - oprot.writeI32(struct.part_vals.size()); - for (String _iter682 : struct.part_vals) + oprot.writeI32(struct.partitionSpecs.size()); + for (Map.Entry _iter691 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter682); + oprot.writeString(_iter691.getKey()); + oprot.writeString(_iter691.getValue()); } } } + if (struct.isSetSource_db()) { + oprot.writeString(struct.source_db); + } + if (struct.isSetSource_table_name()) { + oprot.writeString(struct.source_table_name); + } + if (struct.isSetDest_db()) { + oprot.writeString(struct.dest_db); + } + if (struct.isSetDest_table_name()) { + oprot.writeString(struct.dest_table_name); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); 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)) { { - org.apache.thrift.protocol.TList _list683 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list683.size); - String _elem684; - for (int _i685 = 0; _i685 < _list683.size; ++_i685) + org.apache.thrift.protocol.TMap _map692 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map692.size); + for (int _i693 = 0; _i693 < _map692.size; ++_i693) { - _elem684 = iprot.readString(); - struct.part_vals.add(_elem684); + String _key694; // required + String _val695; // required + _key694 = iprot.readString(); + _val695 = iprot.readString(); + struct.partitionSpecs.put(_key694, _val695); } } - struct.setPart_valsIsSet(true); + struct.setPartitionSpecsIsSet(true); + } + if (incoming.get(1)) { + struct.source_db = iprot.readString(); + struct.setSource_dbIsSet(true); + } + if (incoming.get(2)) { + struct.source_table_name = iprot.readString(); + struct.setSource_table_nameIsSet(true); + } + if (incoming.get(3)) { + struct.dest_db = iprot.readString(); + struct.setDest_dbIsSet(true); + } + if (incoming.get(4)) { + struct.dest_table_name = iprot.readString(); + struct.setDest_table_nameIsSet(true); } } } } - public static class get_partition_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_partition_result"); + public static class exchange_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partition_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 O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partition_resultTupleSchemeFactory()); } private Partition success; // required private MetaException o1; // required private NoSuchObjectException o2; // required + private InvalidObjectException o3; // required + private InvalidInputException o4; // 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)2, "o2"), + O3((short)3, "o3"), + O4((short)4, "o4"); private static final Map byName = new HashMap(); @@ -66473,6 +60226,10 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; + case 3: // O3 + return O3; + case 4: // O4 + return O4; default: return null; } @@ -66522,28 +60279,36 @@ public String getFieldName() { 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))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", 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_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_result.class, metaDataMap); } - public get_partition_result() { + public exchange_partition_result() { } - public get_partition_result( + public exchange_partition_result( Partition success, MetaException o1, - NoSuchObjectException o2) + NoSuchObjectException o2, + InvalidObjectException o3, + InvalidInputException o4) { this(); this.success = success; this.o1 = o1; this.o2 = o2; + this.o3 = o3; + this.o4 = o4; } /** * Performs a deep copy on other. */ - public get_partition_result(get_partition_result other) { + public exchange_partition_result(exchange_partition_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -66553,10 +60318,16 @@ public get_partition_result(get_partition_result other) { if (other.isSetO2()) { this.o2 = new NoSuchObjectException(other.o2); } + if (other.isSetO3()) { + this.o3 = new InvalidObjectException(other.o3); + } + if (other.isSetO4()) { + this.o4 = new InvalidInputException(other.o4); + } } - public get_partition_result deepCopy() { - return new get_partition_result(this); + public exchange_partition_result deepCopy() { + return new exchange_partition_result(this); } @Override @@ -66564,6 +60335,8 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; + this.o3 = null; + this.o4 = null; } public Partition getSuccess() { @@ -66635,6 +60408,52 @@ public void setO2IsSet(boolean value) { } } + public InvalidObjectException getO3() { + return this.o3; + } + + public void setO3(InvalidObjectException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + + public InvalidInputException getO4() { + return this.o4; + } + + public void setO4(InvalidInputException o4) { + this.o4 = o4; + } + + public void unsetO4() { + this.o4 = null; + } + + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ + public boolean isSetO4() { + return this.o4 != null; + } + + public void setO4IsSet(boolean value) { + if (!value) { + this.o4 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -66661,6 +60480,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((InvalidObjectException)value); + } + break; + + case O4: + if (value == null) { + unsetO4(); + } else { + setO4((InvalidInputException)value); + } + break; + } } @@ -66675,6 +60510,12 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); + case O3: + return getO3(); + + case O4: + return getO4(); + } throw new IllegalStateException(); } @@ -66692,6 +60533,10 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); + case O3: + return isSetO3(); + case O4: + return isSetO4(); } throw new IllegalStateException(); } @@ -66700,12 +60545,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_result) - return this.equals((get_partition_result)that); + if (that instanceof exchange_partition_result) + return this.equals((exchange_partition_result)that); return false; } - public boolean equals(get_partition_result that) { + public boolean equals(exchange_partition_result that) { if (that == null) return false; @@ -66736,65 +60581,113 @@ public boolean equals(get_partition_result that) { return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + + boolean this_present_o4 = true && this.isSetO4(); + boolean that_present_o4 = true && that.isSetO4(); + if (this_present_o4 || that_present_o4) { + if (!(this_present_o4 && that_present_o4)) + return false; + if (!this.o4.equals(that.o4)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); + + boolean present_o3 = true && (isSetO3()); + builder.append(present_o3); + if (present_o3) + builder.append(o3); - return list.hashCode(); + boolean present_o4 = true && (isSetO4()); + builder.append(present_o4); + if (present_o4) + builder.append(o4); + + return builder.toHashCode(); } - @Override - public int compareTo(get_partition_result other) { + public int compareTo(exchange_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + exchange_partition_result typedOther = (exchange_partition_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO4()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -66816,7 +60709,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_result("); + StringBuilder sb = new StringBuilder("exchange_partition_result("); boolean first = true; sb.append("success:"); @@ -66842,6 +60735,22 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; + if (!first) sb.append(", "); + sb.append("o4:"); + if (this.o4 == null) { + sb.append("null"); + } else { + sb.append(this.o4); + } + first = false; sb.append(")"); return sb.toString(); } @@ -66870,15 +60779,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_resultStandardScheme getScheme() { - return new get_partition_resultStandardScheme(); + private static class exchange_partition_resultStandardSchemeFactory implements SchemeFactory { + public exchange_partition_resultStandardScheme getScheme() { + return new exchange_partition_resultStandardScheme(); } } - private static class get_partition_resultStandardScheme extends StandardScheme { + private static class exchange_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -66915,6 +60824,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_resul org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new InvalidObjectException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // O4 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o4 = new InvalidInputException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -66924,7 +60851,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_resul struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -66943,22 +60870,32 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_resu struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o4 != null) { + oprot.writeFieldBegin(O4_FIELD_DESC); + struct.o4.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partition_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_resultTupleScheme getScheme() { - return new get_partition_resultTupleScheme(); + private static class exchange_partition_resultTupleSchemeFactory implements SchemeFactory { + public exchange_partition_resultTupleScheme getScheme() { + return new exchange_partition_resultTupleScheme(); } } - private static class get_partition_resultTupleScheme extends TupleScheme { + private static class exchange_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -66970,7 +60907,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_resul if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + if (struct.isSetO4()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { struct.success.write(oprot); } @@ -66980,12 +60923,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_resul if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + if (struct.isSetO4()) { + struct.o4.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.success = new Partition(); struct.success.read(iprot); @@ -67001,39 +60950,49 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new InvalidObjectException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + if (incoming.get(4)) { + struct.o4 = new InvalidInputException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } } } } - public static class exchange_partition_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("exchange_partition_args"); + public static class get_partition_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_with_auth_args"); - private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); - private static final org.apache.thrift.protocol.TField SOURCE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("source_db", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField SOURCE_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_table_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField DEST_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_db", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField DEST_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_table_name", org.apache.thrift.protocol.TType.STRING, (short)5); + 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 PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new exchange_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_with_auth_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_with_auth_argsTupleSchemeFactory()); } - private Map partitionSpecs; // required - private String source_db; // required - private String source_table_name; // required - private String dest_db; // required - private String dest_table_name; // required + private String db_name; // required + private String tbl_name; // required + private List part_vals; // required + private String user_name; // required + private List group_names; // 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 { - PARTITION_SPECS((short)1, "partitionSpecs"), - SOURCE_DB((short)2, "source_db"), - SOURCE_TABLE_NAME((short)3, "source_table_name"), - DEST_DB((short)4, "dest_db"), - DEST_TABLE_NAME((short)5, "dest_table_name"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_VALS((short)3, "part_vals"), + USER_NAME((short)4, "user_name"), + GROUP_NAMES((short)5, "group_names"); private static final Map byName = new HashMap(); @@ -67048,16 +61007,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // PARTITION_SPECS - return PARTITION_SPECS; - case 2: // SOURCE_DB - return SOURCE_DB; - case 3: // SOURCE_TABLE_NAME - return SOURCE_TABLE_NAME; - case 4: // DEST_DB - return DEST_DB; - case 5: // DEST_TABLE_NAME - return DEST_TABLE_NAME; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; + case 4: // USER_NAME + return USER_NAME; + case 5: // GROUP_NAMES + return GROUP_NAMES; default: return null; } @@ -67101,240 +61060,266 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PARTITION_SPECS, new org.apache.thrift.meta_data.FieldMetaData("partitionSpecs", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); - tmpMap.put(_Fields.SOURCE_DB, new org.apache.thrift.meta_data.FieldMetaData("source_db", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.SOURCE_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.DEST_DB, new org.apache.thrift.meta_data.FieldMetaData("dest_db", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.DEST_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("dest_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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)))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", 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)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_args.class, metaDataMap); } - public exchange_partition_args() { + public get_partition_with_auth_args() { } - public exchange_partition_args( - Map partitionSpecs, - String source_db, - String source_table_name, - String dest_db, - String dest_table_name) + public get_partition_with_auth_args( + String db_name, + String tbl_name, + List part_vals, + String user_name, + List group_names) { this(); - this.partitionSpecs = partitionSpecs; - this.source_db = source_db; - this.source_table_name = source_table_name; - this.dest_db = dest_db; - this.dest_table_name = dest_table_name; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_vals = part_vals; + this.user_name = user_name; + this.group_names = group_names; } /** * Performs a deep copy on other. */ - public exchange_partition_args(exchange_partition_args other) { - if (other.isSetPartitionSpecs()) { - Map __this__partitionSpecs = new HashMap(other.partitionSpecs); - this.partitionSpecs = __this__partitionSpecs; + public get_partition_with_auth_args(get_partition_with_auth_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; } - if (other.isSetSource_db()) { - this.source_db = other.source_db; + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; } - if (other.isSetSource_table_name()) { - this.source_table_name = other.source_table_name; + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } + this.part_vals = __this__part_vals; } - if (other.isSetDest_db()) { - this.dest_db = other.dest_db; + if (other.isSetUser_name()) { + this.user_name = other.user_name; } - if (other.isSetDest_table_name()) { - this.dest_table_name = other.dest_table_name; + if (other.isSetGroup_names()) { + List __this__group_names = new ArrayList(); + for (String other_element : other.group_names) { + __this__group_names.add(other_element); + } + this.group_names = __this__group_names; } } - public exchange_partition_args deepCopy() { - return new exchange_partition_args(this); + public get_partition_with_auth_args deepCopy() { + return new get_partition_with_auth_args(this); } @Override public void clear() { - this.partitionSpecs = null; - this.source_db = null; - this.source_table_name = null; - this.dest_db = null; - this.dest_table_name = null; + this.db_name = null; + this.tbl_name = null; + this.part_vals = null; + this.user_name = null; + this.group_names = null; } - public int getPartitionSpecsSize() { - return (this.partitionSpecs == null) ? 0 : this.partitionSpecs.size(); + public String getDb_name() { + return this.db_name; } - public void putToPartitionSpecs(String key, String val) { - if (this.partitionSpecs == null) { - this.partitionSpecs = new HashMap(); - } - this.partitionSpecs.put(key, val); + public void setDb_name(String db_name) { + this.db_name = db_name; } - public Map getPartitionSpecs() { - return this.partitionSpecs; + public void unsetDb_name() { + this.db_name = null; } - public void setPartitionSpecs(Map partitionSpecs) { - this.partitionSpecs = partitionSpecs; + /** 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 unsetPartitionSpecs() { - this.partitionSpecs = null; + public void setDb_nameIsSet(boolean value) { + if (!value) { + this.db_name = null; + } } - /** Returns true if field partitionSpecs is set (has been assigned a value) and false otherwise */ - public boolean isSetPartitionSpecs() { - return this.partitionSpecs != null; + public String getTbl_name() { + return this.tbl_name; } - public void setPartitionSpecsIsSet(boolean value) { - if (!value) { - this.partitionSpecs = null; - } + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; } - public String getSource_db() { - return this.source_db; + public void unsetTbl_name() { + this.tbl_name = null; } - public void setSource_db(String source_db) { - this.source_db = source_db; + /** 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 unsetSource_db() { - this.source_db = null; + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } } - /** Returns true if field source_db is set (has been assigned a value) and false otherwise */ - public boolean isSetSource_db() { - return this.source_db != null; + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); } - public void setSource_dbIsSet(boolean value) { - if (!value) { - this.source_db = null; + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); + } + + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); } + this.part_vals.add(elem); } - public String getSource_table_name() { - return this.source_table_name; + public List getPart_vals() { + return this.part_vals; } - public void setSource_table_name(String source_table_name) { - this.source_table_name = source_table_name; + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; } - public void unsetSource_table_name() { - this.source_table_name = null; + public void unsetPart_vals() { + this.part_vals = null; } - /** Returns true if field source_table_name is set (has been assigned a value) and false otherwise */ - public boolean isSetSource_table_name() { - return this.source_table_name != null; + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; } - public void setSource_table_nameIsSet(boolean value) { + public void setPart_valsIsSet(boolean value) { if (!value) { - this.source_table_name = null; + this.part_vals = null; } } - public String getDest_db() { - return this.dest_db; + public String getUser_name() { + return this.user_name; } - public void setDest_db(String dest_db) { - this.dest_db = dest_db; + public void setUser_name(String user_name) { + this.user_name = user_name; } - public void unsetDest_db() { - this.dest_db = null; + public void unsetUser_name() { + this.user_name = null; } - /** Returns true if field dest_db is set (has been assigned a value) and false otherwise */ - public boolean isSetDest_db() { - return this.dest_db != null; + /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ + public boolean isSetUser_name() { + return this.user_name != null; } - public void setDest_dbIsSet(boolean value) { + public void setUser_nameIsSet(boolean value) { if (!value) { - this.dest_db = null; + this.user_name = null; } } - public String getDest_table_name() { - return this.dest_table_name; + public int getGroup_namesSize() { + return (this.group_names == null) ? 0 : this.group_names.size(); } - public void setDest_table_name(String dest_table_name) { - this.dest_table_name = dest_table_name; + public java.util.Iterator getGroup_namesIterator() { + return (this.group_names == null) ? null : this.group_names.iterator(); } - public void unsetDest_table_name() { - this.dest_table_name = null; + public void addToGroup_names(String elem) { + if (this.group_names == null) { + this.group_names = new ArrayList(); + } + this.group_names.add(elem); } - /** Returns true if field dest_table_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDest_table_name() { - return this.dest_table_name != null; + public List getGroup_names() { + return this.group_names; } - public void setDest_table_nameIsSet(boolean value) { + public void setGroup_names(List group_names) { + this.group_names = group_names; + } + + public void unsetGroup_names() { + this.group_names = null; + } + + /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ + public boolean isSetGroup_names() { + return this.group_names != null; + } + + public void setGroup_namesIsSet(boolean value) { if (!value) { - this.dest_table_name = null; + this.group_names = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case PARTITION_SPECS: + case DB_NAME: if (value == null) { - unsetPartitionSpecs(); + unsetDb_name(); } else { - setPartitionSpecs((Map)value); + setDb_name((String)value); } break; - case SOURCE_DB: + case TBL_NAME: if (value == null) { - unsetSource_db(); + unsetTbl_name(); } else { - setSource_db((String)value); + setTbl_name((String)value); } break; - case SOURCE_TABLE_NAME: + case PART_VALS: if (value == null) { - unsetSource_table_name(); + unsetPart_vals(); } else { - setSource_table_name((String)value); + setPart_vals((List)value); } break; - case DEST_DB: + case USER_NAME: if (value == null) { - unsetDest_db(); + unsetUser_name(); } else { - setDest_db((String)value); + setUser_name((String)value); } break; - case DEST_TABLE_NAME: + case GROUP_NAMES: if (value == null) { - unsetDest_table_name(); + unsetGroup_names(); } else { - setDest_table_name((String)value); + setGroup_names((List)value); } break; @@ -67343,20 +61328,20 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case PARTITION_SPECS: - return getPartitionSpecs(); + case DB_NAME: + return getDb_name(); - case SOURCE_DB: - return getSource_db(); + case TBL_NAME: + return getTbl_name(); - case SOURCE_TABLE_NAME: - return getSource_table_name(); + case PART_VALS: + return getPart_vals(); - case DEST_DB: - return getDest_db(); + case USER_NAME: + return getUser_name(); - case DEST_TABLE_NAME: - return getDest_table_name(); + case GROUP_NAMES: + return getGroup_names(); } throw new IllegalStateException(); @@ -67369,16 +61354,16 @@ public boolean isSet(_Fields field) { } switch (field) { - case PARTITION_SPECS: - return isSetPartitionSpecs(); - case SOURCE_DB: - return isSetSource_db(); - case SOURCE_TABLE_NAME: - return isSetSource_table_name(); - case DEST_DB: - return isSetDest_db(); - case DEST_TABLE_NAME: - return isSetDest_table_name(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); + case USER_NAME: + return isSetUser_name(); + case GROUP_NAMES: + return isSetGroup_names(); } throw new IllegalStateException(); } @@ -67387,57 +61372,57 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partition_args) - return this.equals((exchange_partition_args)that); + if (that instanceof get_partition_with_auth_args) + return this.equals((get_partition_with_auth_args)that); return false; } - public boolean equals(exchange_partition_args that) { + public boolean equals(get_partition_with_auth_args that) { if (that == null) return false; - boolean this_present_partitionSpecs = true && this.isSetPartitionSpecs(); - boolean that_present_partitionSpecs = true && that.isSetPartitionSpecs(); - if (this_present_partitionSpecs || that_present_partitionSpecs) { - if (!(this_present_partitionSpecs && that_present_partitionSpecs)) + 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.partitionSpecs.equals(that.partitionSpecs)) + if (!this.db_name.equals(that.db_name)) return false; } - boolean this_present_source_db = true && this.isSetSource_db(); - boolean that_present_source_db = true && that.isSetSource_db(); - if (this_present_source_db || that_present_source_db) { - if (!(this_present_source_db && that_present_source_db)) + 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.source_db.equals(that.source_db)) + if (!this.tbl_name.equals(that.tbl_name)) return false; } - boolean this_present_source_table_name = true && this.isSetSource_table_name(); - boolean that_present_source_table_name = true && that.isSetSource_table_name(); - if (this_present_source_table_name || that_present_source_table_name) { - if (!(this_present_source_table_name && that_present_source_table_name)) + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) return false; - if (!this.source_table_name.equals(that.source_table_name)) + if (!this.part_vals.equals(that.part_vals)) return false; } - boolean this_present_dest_db = true && this.isSetDest_db(); - boolean that_present_dest_db = true && that.isSetDest_db(); - if (this_present_dest_db || that_present_dest_db) { - if (!(this_present_dest_db && that_present_dest_db)) + boolean this_present_user_name = true && this.isSetUser_name(); + boolean that_present_user_name = true && that.isSetUser_name(); + if (this_present_user_name || that_present_user_name) { + if (!(this_present_user_name && that_present_user_name)) return false; - if (!this.dest_db.equals(that.dest_db)) + if (!this.user_name.equals(that.user_name)) return false; } - boolean this_present_dest_table_name = true && this.isSetDest_table_name(); - boolean that_present_dest_table_name = true && that.isSetDest_table_name(); - if (this_present_dest_table_name || that_present_dest_table_name) { - if (!(this_present_dest_table_name && that_present_dest_table_name)) + boolean this_present_group_names = true && this.isSetGroup_names(); + boolean that_present_group_names = true && that.isSetGroup_names(); + if (this_present_group_names || that_present_group_names) { + if (!(this_present_group_names && that_present_group_names)) return false; - if (!this.dest_table_name.equals(that.dest_table_name)) + if (!this.group_names.equals(that.group_names)) return false; } @@ -67446,90 +61431,90 @@ public boolean equals(exchange_partition_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_partitionSpecs = true && (isSetPartitionSpecs()); - list.add(present_partitionSpecs); - if (present_partitionSpecs) - list.add(partitionSpecs); + boolean present_db_name = true && (isSetDb_name()); + builder.append(present_db_name); + if (present_db_name) + builder.append(db_name); - boolean present_source_db = true && (isSetSource_db()); - list.add(present_source_db); - if (present_source_db) - list.add(source_db); + boolean present_tbl_name = true && (isSetTbl_name()); + builder.append(present_tbl_name); + if (present_tbl_name) + builder.append(tbl_name); - boolean present_source_table_name = true && (isSetSource_table_name()); - list.add(present_source_table_name); - if (present_source_table_name) - list.add(source_table_name); + boolean present_part_vals = true && (isSetPart_vals()); + builder.append(present_part_vals); + if (present_part_vals) + builder.append(part_vals); - boolean present_dest_db = true && (isSetDest_db()); - list.add(present_dest_db); - if (present_dest_db) - list.add(dest_db); + boolean present_user_name = true && (isSetUser_name()); + builder.append(present_user_name); + if (present_user_name) + builder.append(user_name); - boolean present_dest_table_name = true && (isSetDest_table_name()); - list.add(present_dest_table_name); - if (present_dest_table_name) - list.add(dest_table_name); + boolean present_group_names = true && (isSetGroup_names()); + builder.append(present_group_names); + if (present_group_names) + builder.append(group_names); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(exchange_partition_args other) { + public int compareTo(get_partition_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_with_auth_args typedOther = (get_partition_with_auth_args)other; - lastComparison = Boolean.valueOf(isSetPartitionSpecs()).compareTo(other.isSetPartitionSpecs()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetPartitionSpecs()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, other.partitionSpecs); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(other.isSetSource_db()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetSource_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, other.source_db); + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(other.isSetSource_table_name()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } - if (isSetSource_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, other.source_table_name); + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(other.isSetDest_db()); + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(typedOther.isSetUser_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetDest_db()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, other.dest_db); + if (isSetUser_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(other.isSetDest_table_name()); + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(typedOther.isSetGroup_names()); if (lastComparison != 0) { return lastComparison; } - if (isSetDest_table_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, other.dest_table_name); + if (isSetGroup_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -67551,46 +61536,46 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partition_args("); + StringBuilder sb = new StringBuilder("get_partition_with_auth_args("); boolean first = true; - sb.append("partitionSpecs:"); - if (this.partitionSpecs == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.partitionSpecs); + sb.append(this.db_name); } first = false; if (!first) sb.append(", "); - sb.append("source_db:"); - if (this.source_db == null) { + sb.append("tbl_name:"); + if (this.tbl_name == null) { sb.append("null"); } else { - sb.append(this.source_db); + sb.append(this.tbl_name); } first = false; if (!first) sb.append(", "); - sb.append("source_table_name:"); - if (this.source_table_name == null) { + sb.append("part_vals:"); + if (this.part_vals == null) { sb.append("null"); } else { - sb.append(this.source_table_name); + sb.append(this.part_vals); } first = false; if (!first) sb.append(", "); - sb.append("dest_db:"); - if (this.dest_db == null) { + sb.append("user_name:"); + if (this.user_name == null) { sb.append("null"); } else { - sb.append(this.dest_db); + sb.append(this.user_name); } first = false; if (!first) sb.append(", "); - sb.append("dest_table_name:"); - if (this.dest_table_name == null) { + sb.append("group_names:"); + if (this.group_names == null) { sb.append("null"); } else { - sb.append(this.dest_table_name); + sb.append(this.group_names); } first = false; sb.append(")"); @@ -67618,15 +61603,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class exchange_partition_argsStandardSchemeFactory implements SchemeFactory { - public exchange_partition_argsStandardScheme getScheme() { - return new exchange_partition_argsStandardScheme(); + private static class get_partition_with_auth_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_with_auth_argsStandardScheme getScheme() { + return new get_partition_with_auth_argsStandardScheme(); } } - private static class exchange_partition_argsStandardScheme extends StandardScheme { + private static class get_partition_with_auth_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -67636,54 +61621,62 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ break; } switch (schemeField.id) { - case 1: // PARTITION_SPECS - if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { - { - org.apache.thrift.protocol.TMap _map686 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map686.size); - String _key687; - String _val688; - for (int _i689 = 0; _i689 < _map686.size; ++_i689) - { - _key687 = iprot.readString(); - _val688 = iprot.readString(); - struct.partitionSpecs.put(_key687, _val688); - } - iprot.readMapEnd(); - } - struct.setPartitionSpecsIsSet(true); + 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: // SOURCE_DB + case 2: // TBL_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.source_db = iprot.readString(); - struct.setSource_dbIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // SOURCE_TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.source_table_name = iprot.readString(); - struct.setSource_table_nameIsSet(true); + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list696 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list696.size); + for (int _i697 = 0; _i697 < _list696.size; ++_i697) + { + String _elem698; // required + _elem698 = iprot.readString(); + struct.part_vals.add(_elem698); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // DEST_DB + case 4: // USER_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dest_db = iprot.readString(); - struct.setDest_dbIsSet(true); + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // DEST_TABLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.dest_table_name = iprot.readString(); - struct.setDest_table_nameIsSet(true); + case 5: // GROUP_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list699 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list699.size); + for (int _i700 = 0; _i700 < _list699.size; ++_i700) + { + String _elem701; // required + _elem701 = iprot.readString(); + struct.group_names.add(_elem701); + } + iprot.readListEnd(); + } + struct.setGroup_namesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -67697,41 +61690,47 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.partitionSpecs != null) { - oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); - { - oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter690 : struct.partitionSpecs.entrySet()) - { - oprot.writeString(_iter690.getKey()); - oprot.writeString(_iter690.getValue()); - } - oprot.writeMapEnd(); - } + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); oprot.writeFieldEnd(); } - if (struct.source_db != null) { - oprot.writeFieldBegin(SOURCE_DB_FIELD_DESC); - oprot.writeString(struct.source_db); + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.source_table_name != null) { - oprot.writeFieldBegin(SOURCE_TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.source_table_name); + if (struct.part_vals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); + for (String _iter702 : struct.part_vals) + { + oprot.writeString(_iter702); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } - if (struct.dest_db != null) { - oprot.writeFieldBegin(DEST_DB_FIELD_DESC); - oprot.writeString(struct.dest_db); + if (struct.user_name != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.user_name); oprot.writeFieldEnd(); } - if (struct.dest_table_name != null) { - oprot.writeFieldBegin(DEST_TABLE_NAME_FIELD_DESC); - oprot.writeString(struct.dest_table_name); + if (struct.group_names != null) { + 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 _iter703 : struct.group_names) + { + oprot.writeString(_iter703); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -67740,126 +61739,132 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition } - private static class exchange_partition_argsTupleSchemeFactory implements SchemeFactory { - public exchange_partition_argsTupleScheme getScheme() { - return new exchange_partition_argsTupleScheme(); + private static class get_partition_with_auth_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_with_auth_argsTupleScheme getScheme() { + return new get_partition_with_auth_argsTupleScheme(); } } - private static class exchange_partition_argsTupleScheme extends TupleScheme { + private static class get_partition_with_auth_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetPartitionSpecs()) { + if (struct.isSetDb_name()) { optionals.set(0); } - if (struct.isSetSource_db()) { + if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetSource_table_name()) { + if (struct.isSetPart_vals()) { optionals.set(2); } - if (struct.isSetDest_db()) { + if (struct.isSetUser_name()) { optionals.set(3); } - if (struct.isSetDest_table_name()) { + if (struct.isSetGroup_names()) { optionals.set(4); } oprot.writeBitSet(optionals, 5); - if (struct.isSetPartitionSpecs()) { + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetPart_vals()) { { - oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter691 : struct.partitionSpecs.entrySet()) + oprot.writeI32(struct.part_vals.size()); + for (String _iter704 : struct.part_vals) { - oprot.writeString(_iter691.getKey()); - oprot.writeString(_iter691.getValue()); + oprot.writeString(_iter704); } } } - if (struct.isSetSource_db()) { - oprot.writeString(struct.source_db); - } - if (struct.isSetSource_table_name()) { - oprot.writeString(struct.source_table_name); - } - if (struct.isSetDest_db()) { - oprot.writeString(struct.dest_db); + if (struct.isSetUser_name()) { + oprot.writeString(struct.user_name); } - if (struct.isSetDest_table_name()) { - oprot.writeString(struct.dest_table_name); + if (struct.isSetGroup_names()) { + { + oprot.writeI32(struct.group_names.size()); + for (String _iter705 : struct.group_names) + { + oprot.writeString(_iter705); + } + } } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TMap _map692 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map692.size); - String _key693; - String _val694; - for (int _i695 = 0; _i695 < _map692.size; ++_i695) - { - _key693 = iprot.readString(); - _val694 = iprot.readString(); - struct.partitionSpecs.put(_key693, _val694); - } - } - struct.setPartitionSpecsIsSet(true); + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); } if (incoming.get(1)) { - struct.source_db = iprot.readString(); - struct.setSource_dbIsSet(true); + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.source_table_name = iprot.readString(); - struct.setSource_table_nameIsSet(true); + { + org.apache.thrift.protocol.TList _list706 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list706.size); + for (int _i707 = 0; _i707 < _list706.size; ++_i707) + { + String _elem708; // required + _elem708 = iprot.readString(); + struct.part_vals.add(_elem708); + } + } + struct.setPart_valsIsSet(true); } if (incoming.get(3)) { - struct.dest_db = iprot.readString(); - struct.setDest_dbIsSet(true); + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); } if (incoming.get(4)) { - struct.dest_table_name = iprot.readString(); - struct.setDest_table_nameIsSet(true); + { + org.apache.thrift.protocol.TList _list709 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list709.size); + for (int _i710 = 0; _i710 < _list709.size; ++_i710) + { + String _elem711; // required + _elem711 = iprot.readString(); + struct.group_names.add(_elem711); + } + } + struct.setGroup_namesIsSet(true); } } } } - public static class exchange_partition_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("exchange_partition_result"); + public static class get_partition_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_with_auth_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 O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); - private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new exchange_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_with_auth_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_with_auth_resultTupleSchemeFactory()); } private Partition success; // required private MetaException o1; // required private NoSuchObjectException o2; // required - private InvalidObjectException o3; // required - private InvalidInputException o4; // 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"), - O3((short)3, "o3"), - O4((short)4, "o4"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -67880,10 +61885,6 @@ public static _Fields findByThriftId(int fieldId) { return O1; case 2: // O2 return O2; - case 3: // O3 - return O3; - case 4: // O4 - return O4; default: return null; } @@ -67933,36 +61934,28 @@ public String getFieldName() { 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))); - tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); - tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", 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(exchange_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_result.class, metaDataMap); } - public exchange_partition_result() { + public get_partition_with_auth_result() { } - public exchange_partition_result( + public get_partition_with_auth_result( Partition success, MetaException o1, - NoSuchObjectException o2, - InvalidObjectException o3, - InvalidInputException o4) + NoSuchObjectException o2) { this(); this.success = success; this.o1 = o1; this.o2 = o2; - this.o3 = o3; - this.o4 = o4; } /** * Performs a deep copy on other. */ - public exchange_partition_result(exchange_partition_result other) { + public get_partition_with_auth_result(get_partition_with_auth_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -67972,16 +61965,10 @@ public exchange_partition_result(exchange_partition_result other) { if (other.isSetO2()) { this.o2 = new NoSuchObjectException(other.o2); } - if (other.isSetO3()) { - this.o3 = new InvalidObjectException(other.o3); - } - if (other.isSetO4()) { - this.o4 = new InvalidInputException(other.o4); - } } - public exchange_partition_result deepCopy() { - return new exchange_partition_result(this); + public get_partition_with_auth_result deepCopy() { + return new get_partition_with_auth_result(this); } @Override @@ -67989,8 +61976,6 @@ public void clear() { this.success = null; this.o1 = null; this.o2 = null; - this.o3 = null; - this.o4 = null; } public Partition getSuccess() { @@ -68062,52 +62047,6 @@ public void setO2IsSet(boolean value) { } } - public InvalidObjectException getO3() { - return this.o3; - } - - public void setO3(InvalidObjectException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - - public InvalidInputException getO4() { - return this.o4; - } - - public void setO4(InvalidInputException o4) { - this.o4 = o4; - } - - public void unsetO4() { - this.o4 = null; - } - - /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ - public boolean isSetO4() { - return this.o4 != null; - } - - public void setO4IsSet(boolean value) { - if (!value) { - this.o4 = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: @@ -68134,22 +62073,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((InvalidObjectException)value); - } - break; - - case O4: - if (value == null) { - unsetO4(); - } else { - setO4((InvalidInputException)value); - } - break; - } } @@ -68164,12 +62087,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - - case O4: - return getO4(); - } throw new IllegalStateException(); } @@ -68187,10 +62104,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); - case O4: - return isSetO4(); } throw new IllegalStateException(); } @@ -68199,12 +62112,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partition_result) - return this.equals((exchange_partition_result)that); + if (that instanceof get_partition_with_auth_result) + return this.equals((get_partition_with_auth_result)that); return false; } - public boolean equals(exchange_partition_result that) { + public boolean equals(get_partition_with_auth_result that) { if (that == null) return false; @@ -68235,113 +62148,65 @@ public boolean equals(exchange_partition_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - - boolean this_present_o4 = true && this.isSetO4(); - boolean that_present_o4 = true && that.isSetO4(); - if (this_present_o4 || that_present_o4) { - if (!(this_present_o4 && that_present_o4)) - return false; - if (!this.o4.equals(that.o4)) - return false; - } - return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); - - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); + builder.append(o2); - boolean present_o4 = true && (isSetO4()); - list.add(present_o4); - if (present_o4) - list.add(o4); - - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(exchange_partition_result other) { + public int compareTo(get_partition_with_auth_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_with_auth_result typedOther = (get_partition_with_auth_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -68363,7 +62228,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partition_result("); + StringBuilder sb = new StringBuilder("get_partition_with_auth_result("); boolean first = true; sb.append("success:"); @@ -68389,22 +62254,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; - if (!first) sb.append(", "); - sb.append("o4:"); - if (this.o4 == null) { - sb.append("null"); - } else { - sb.append(this.o4); - } - first = false; sb.append(")"); return sb.toString(); } @@ -68433,15 +62282,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class exchange_partition_resultStandardSchemeFactory implements SchemeFactory { - public exchange_partition_resultStandardScheme getScheme() { - return new exchange_partition_resultStandardScheme(); + private static class get_partition_with_auth_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_with_auth_resultStandardScheme getScheme() { + return new get_partition_with_auth_resultStandardScheme(); } } - private static class exchange_partition_resultStandardScheme extends StandardScheme { + private static class get_partition_with_auth_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -68478,24 +62327,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new InvalidObjectException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // O4 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o4 = new InvalidInputException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -68505,7 +62336,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -68524,32 +62355,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o4 != null) { - oprot.writeFieldBegin(O4_FIELD_DESC); - struct.o4.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class exchange_partition_resultTupleSchemeFactory implements SchemeFactory { - public exchange_partition_resultTupleScheme getScheme() { - return new exchange_partition_resultTupleScheme(); + private static class get_partition_with_auth_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_with_auth_resultTupleScheme getScheme() { + return new get_partition_with_auth_resultTupleScheme(); } } - private static class exchange_partition_resultTupleScheme extends TupleScheme { + private static class get_partition_with_auth_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -68561,13 +62382,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - if (struct.isSetO4()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } @@ -68577,18 +62392,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } - if (struct.isSetO4()) { - struct.o4.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.success = new Partition(); struct.success.read(iprot); @@ -68604,49 +62413,33 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_r struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new InvalidObjectException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } - if (incoming.get(4)) { - struct.o4 = new InvalidInputException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } } } } - public static class get_partition_with_auth_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_partition_with_auth_args"); + public static class get_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_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 PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); - private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_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_partition_with_auth_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_with_auth_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_by_name_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private List part_vals; // required - private String user_name; // required - private List group_names; // required + private String part_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"), - PART_VALS((short)3, "part_vals"), - USER_NAME((short)4, "user_name"), - GROUP_NAMES((short)5, "group_names"); + PART_NAME((short)3, "part_name"); private static final Map byName = new HashMap(); @@ -68665,12 +62458,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; - case 4: // USER_NAME - return USER_NAME; - case 5: // GROUP_NAMES - return GROUP_NAMES; + case 3: // PART_NAME + return PART_NAME; default: return null; } @@ -68718,70 +62507,50 @@ 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.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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)))); - tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", 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)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_args.class, metaDataMap); } - public get_partition_with_auth_args() { + public get_partition_by_name_args() { } - public get_partition_with_auth_args( + public get_partition_by_name_args( String db_name, String tbl_name, - List part_vals, - String user_name, - List group_names) + String part_name) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_vals = part_vals; - this.user_name = user_name; - this.group_names = group_names; + this.part_name = part_name; } /** * Performs a deep copy on other. */ - public get_partition_with_auth_args(get_partition_with_auth_args other) { + public get_partition_by_name_args(get_partition_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.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; - } - if (other.isSetUser_name()) { - this.user_name = other.user_name; - } - if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); - this.group_names = __this__group_names; + if (other.isSetPart_name()) { + this.part_name = other.part_name; } } - public get_partition_with_auth_args deepCopy() { - return new get_partition_with_auth_args(this); + public get_partition_by_name_args deepCopy() { + return new get_partition_by_name_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_vals = null; - this.user_name = null; - this.group_names = null; + this.part_name = null; } public String getDb_name() { @@ -68830,102 +62599,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); - } - - public List getPart_vals() { - return this.part_vals; - } - - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; - } - - public void unsetPart_vals() { - this.part_vals = null; - } - - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; - } - - public void setPart_valsIsSet(boolean value) { - if (!value) { - this.part_vals = null; - } - } - - public String getUser_name() { - return this.user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public void unsetUser_name() { - this.user_name = null; - } - - /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ - public boolean isSetUser_name() { - return this.user_name != null; - } - - public void setUser_nameIsSet(boolean value) { - if (!value) { - this.user_name = null; - } - } - - public int getGroup_namesSize() { - return (this.group_names == null) ? 0 : this.group_names.size(); - } - - public java.util.Iterator getGroup_namesIterator() { - return (this.group_names == null) ? null : this.group_names.iterator(); - } - - public void addToGroup_names(String elem) { - if (this.group_names == null) { - this.group_names = new ArrayList(); - } - this.group_names.add(elem); - } - - public List getGroup_names() { - return this.group_names; + public String getPart_name() { + return this.part_name; } - public void setGroup_names(List group_names) { - this.group_names = group_names; + public void setPart_name(String part_name) { + this.part_name = part_name; } - public void unsetGroup_names() { - this.group_names = null; + public void unsetPart_name() { + this.part_name = null; } - /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ - public boolean isSetGroup_names() { - return this.group_names != null; + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; } - public void setGroup_namesIsSet(boolean value) { + public void setPart_nameIsSet(boolean value) { if (!value) { - this.group_names = null; + this.part_name = null; } } @@ -68947,27 +62640,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_VALS: - if (value == null) { - unsetPart_vals(); - } else { - setPart_vals((List)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUser_name(); - } else { - setUser_name((String)value); - } - break; - - case GROUP_NAMES: + case PART_NAME: if (value == null) { - unsetGroup_names(); + unsetPart_name(); } else { - setGroup_names((List)value); + setPart_name((String)value); } break; @@ -68982,14 +62659,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_VALS: - return getPart_vals(); - - case USER_NAME: - return getUser_name(); - - case GROUP_NAMES: - return getGroup_names(); + case PART_NAME: + return getPart_name(); } throw new IllegalStateException(); @@ -69006,12 +62677,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); - case USER_NAME: - return isSetUser_name(); - case GROUP_NAMES: - return isSetGroup_names(); + case PART_NAME: + return isSetPart_name(); } throw new IllegalStateException(); } @@ -69020,12 +62687,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_with_auth_args) - return this.equals((get_partition_with_auth_args)that); + if (that instanceof get_partition_by_name_args) + return this.equals((get_partition_by_name_args)that); return false; } - public boolean equals(get_partition_with_auth_args that) { + public boolean equals(get_partition_by_name_args that) { if (that == null) return false; @@ -69047,30 +62714,12 @@ public boolean equals(get_partition_with_auth_args that) { return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) - return false; - if (!this.part_vals.equals(that.part_vals)) - return false; - } - - boolean this_present_user_name = true && this.isSetUser_name(); - boolean that_present_user_name = true && that.isSetUser_name(); - if (this_present_user_name || that_present_user_name) { - if (!(this_present_user_name && that_present_user_name)) - return false; - if (!this.user_name.equals(that.user_name)) - return false; - } - - boolean this_present_group_names = true && this.isSetGroup_names(); - boolean that_present_group_names = true && that.isSetGroup_names(); - if (this_present_group_names || that_present_group_names) { - if (!(this_present_group_names && that_present_group_names)) + boolean this_present_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) return false; - if (!this.group_names.equals(that.group_names)) + if (!this.part_name.equals(that.part_name)) return false; } @@ -69079,90 +62728,60 @@ public boolean equals(get_partition_with_auth_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); - - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); + builder.append(tbl_name); - boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); - if (present_user_name) - list.add(user_name); - - boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); - if (present_group_names) - list.add(group_names); + boolean present_part_name = true && (isSetPart_name()); + builder.append(present_part_name); + if (present_part_name) + builder.append(part_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partition_with_auth_args other) { + public int compareTo(get_partition_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_by_name_args typedOther = (get_partition_by_name_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } @@ -69184,7 +62803,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_with_auth_args("); + StringBuilder sb = new StringBuilder("get_partition_by_name_args("); boolean first = true; sb.append("db_name:"); @@ -69203,27 +62822,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { - sb.append("null"); - } else { - sb.append(this.part_vals); - } - first = false; - if (!first) sb.append(", "); - sb.append("user_name:"); - if (this.user_name == null) { - sb.append("null"); - } else { - sb.append(this.user_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("group_names:"); - if (this.group_names == null) { + sb.append("part_name:"); + if (this.part_name == null) { sb.append("null"); } else { - sb.append(this.group_names); + sb.append(this.part_name); } first = false; sb.append(")"); @@ -69251,15 +62854,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_with_auth_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_with_auth_argsStandardScheme getScheme() { - return new get_partition_with_auth_argsStandardScheme(); + private static class get_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_by_name_argsStandardScheme getScheme() { + return new get_partition_by_name_argsStandardScheme(); } } - private static class get_partition_with_auth_argsStandardScheme extends StandardScheme { + private static class get_partition_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -69285,46 +62888,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list696 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list696.size); - String _elem697; - for (int _i698 = 0; _i698 < _list696.size; ++_i698) - { - _elem697 = iprot.readString(); - struct.part_vals.add(_elem697); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // USER_NAME + case 3: // PART_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // GROUP_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list699 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list699.size); - String _elem700; - for (int _i701 = 0; _i701 < _list699.size; ++_i701) - { - _elem700 = iprot.readString(); - struct.group_names.add(_elem700); - } - iprot.readListEnd(); - } - struct.setGroup_namesIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -69338,7 +62905,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -69352,33 +62919,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter702 : struct.part_vals) - { - oprot.writeString(_iter702); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.user_name); - oprot.writeFieldEnd(); - } - if (struct.group_names != null) { - 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 _iter703 : struct.group_names) - { - oprot.writeString(_iter703); - } - oprot.writeListEnd(); - } + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -69387,16 +62930,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with } - private static class get_partition_with_auth_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_with_auth_argsTupleScheme getScheme() { - return new get_partition_with_auth_argsTupleScheme(); + private static class get_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_by_name_argsTupleScheme getScheme() { + return new get_partition_by_name_argsTupleScheme(); } } - private static class get_partition_with_auth_argsTupleScheme extends TupleScheme { + private static class get_partition_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -69405,49 +62948,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetPart_name()) { optionals.set(2); } - if (struct.isSetUser_name()) { - optionals.set(3); - } - if (struct.isSetGroup_names()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter704 : struct.part_vals) - { - oprot.writeString(_iter704); - } - } - } - if (struct.isSetUser_name()) { - oprot.writeString(struct.user_name); - } - if (struct.isSetGroup_names()) { - { - oprot.writeI32(struct.group_names.size()); - for (String _iter705 : struct.group_names) - { - oprot.writeString(_iter705); - } - } + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -69457,42 +62976,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list706 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list706.size); - String _elem707; - for (int _i708 = 0; _i708 < _list706.size; ++_i708) - { - _elem707 = iprot.readString(); - struct.part_vals.add(_elem707); - } - } - struct.setPart_valsIsSet(true); - } - if (incoming.get(3)) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _list709 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list709.size); - String _elem710; - for (int _i711 = 0; _i711 < _list709.size; ++_i711) - { - _elem710 = iprot.readString(); - struct.group_names.add(_elem710); - } - } - struct.setGroup_namesIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } } } } - public static class get_partition_with_auth_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_partition_with_auth_result"); + public static class get_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_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); @@ -69500,8 +62993,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_with_auth_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_with_auth_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_by_name_resultTupleSchemeFactory()); } private Partition success; // required @@ -69583,13 +63076,13 @@ public String getFieldName() { 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_partition_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_result.class, metaDataMap); } - public get_partition_with_auth_result() { + public get_partition_by_name_result() { } - public get_partition_with_auth_result( + public get_partition_by_name_result( Partition success, MetaException o1, NoSuchObjectException o2) @@ -69603,7 +63096,7 @@ public get_partition_with_auth_result( /** * Performs a deep copy on other. */ - public get_partition_with_auth_result(get_partition_with_auth_result other) { + public get_partition_by_name_result(get_partition_by_name_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -69615,8 +63108,8 @@ public get_partition_with_auth_result(get_partition_with_auth_result other) { } } - public get_partition_with_auth_result deepCopy() { - return new get_partition_with_auth_result(this); + public get_partition_by_name_result deepCopy() { + return new get_partition_by_name_result(this); } @Override @@ -69760,12 +63253,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_with_auth_result) - return this.equals((get_partition_with_auth_result)that); + if (that instanceof get_partition_by_name_result) + return this.equals((get_partition_by_name_result)that); return false; } - public boolean equals(get_partition_with_auth_result that) { + public boolean equals(get_partition_by_name_result that) { if (that == null) return false; @@ -69801,60 +63294,60 @@ public boolean equals(get_partition_with_auth_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partition_with_auth_result other) { + public int compareTo(get_partition_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_by_name_result typedOther = (get_partition_by_name_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -69876,7 +63369,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_with_auth_result("); + StringBuilder sb = new StringBuilder("get_partition_by_name_result("); boolean first = true; sb.append("success:"); @@ -69930,15 +63423,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_with_auth_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_with_auth_resultStandardScheme getScheme() { - return new get_partition_with_auth_resultStandardScheme(); + private static class get_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_by_name_resultStandardScheme getScheme() { + return new get_partition_by_name_resultStandardScheme(); } } - private static class get_partition_with_auth_resultStandardScheme extends StandardScheme { + private static class get_partition_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -69984,7 +63477,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -70009,16 +63502,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with } - private static class get_partition_with_auth_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_with_auth_resultTupleScheme getScheme() { - return new get_partition_with_auth_resultTupleScheme(); + private static class get_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_by_name_resultTupleScheme getScheme() { + return new get_partition_by_name_resultTupleScheme(); } } - private static class get_partition_with_auth_resultTupleScheme extends TupleScheme { + private static class get_partition_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -70043,7 +63536,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -70066,28 +63559,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } - public static class get_partition_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_partition_by_name_args"); + public static class get_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_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 PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String part_name; // required + private short max_parts; // 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"), - PART_NAME((short)3, "part_name"); + MAX_PARTS((short)3, "max_parts"); private static final Map byName = new HashMap(); @@ -70106,8 +63599,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_NAME - return PART_NAME; + case 3: // MAX_PARTS + return MAX_PARTS; default: return null; } @@ -70148,6 +63641,8 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_PARTS_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); @@ -70155,50 +63650,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.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", 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_partition_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_args.class, metaDataMap); } - public get_partition_by_name_args() { + public get_partitions_args() { + this.max_parts = (short)-1; + } - public get_partition_by_name_args( + public get_partitions_args( String db_name, String tbl_name, - String part_name) + short max_parts) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_name = part_name; + this.max_parts = max_parts; + setMax_partsIsSet(true); } /** * Performs a deep copy on other. */ - public get_partition_by_name_args(get_partition_by_name_args other) { + public get_partitions_args(get_partitions_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.isSetPart_name()) { - this.part_name = other.part_name; - } + this.max_parts = other.max_parts; } - public get_partition_by_name_args deepCopy() { - return new get_partition_by_name_args(this); + public get_partitions_args deepCopy() { + return new get_partitions_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_name = null; + this.max_parts = (short)-1; + } public String getDb_name() { @@ -70247,27 +63745,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getPart_name() { - return this.part_name; + public short getMax_parts() { + return this.max_parts; } - public void setPart_name(String part_name) { - this.part_name = part_name; + public void setMax_parts(short max_parts) { + this.max_parts = max_parts; + setMax_partsIsSet(true); } - public void unsetPart_name() { - this.part_name = null; + public void unsetMax_parts() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); } - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != null; + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_parts() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); } - public void setPart_nameIsSet(boolean value) { - if (!value) { - this.part_name = null; - } + public void setMax_partsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -70288,11 +63785,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_NAME: + case MAX_PARTS: if (value == null) { - unsetPart_name(); + unsetMax_parts(); } else { - setPart_name((String)value); + setMax_parts((Short)value); } break; @@ -70307,8 +63804,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_NAME: - return getPart_name(); + case MAX_PARTS: + return Short.valueOf(getMax_parts()); } throw new IllegalStateException(); @@ -70325,8 +63822,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_NAME: - return isSetPart_name(); + case MAX_PARTS: + return isSetMax_parts(); } throw new IllegalStateException(); } @@ -70335,12 +63832,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_by_name_args) - return this.equals((get_partition_by_name_args)that); + if (that instanceof get_partitions_args) + return this.equals((get_partitions_args)that); return false; } - public boolean equals(get_partition_by_name_args that) { + public boolean equals(get_partitions_args that) { if (that == null) return false; @@ -70362,12 +63859,12 @@ public boolean equals(get_partition_by_name_args that) { return false; } - boolean this_present_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) + boolean this_present_max_parts = true; + boolean that_present_max_parts = true; + if (this_present_max_parts || that_present_max_parts) { + if (!(this_present_max_parts && that_present_max_parts)) return false; - if (!this.part_name.equals(that.part_name)) + if (this.max_parts != that.max_parts) return false; } @@ -70376,60 +63873,60 @@ public boolean equals(get_partition_by_name_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); + boolean present_max_parts = true; + builder.append(present_max_parts); + if (present_max_parts) + builder.append(max_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partition_by_name_args other) { + public int compareTo(get_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_args typedOther = (get_partitions_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (isSetMax_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -70451,7 +63948,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_by_name_args("); + StringBuilder sb = new StringBuilder("get_partitions_args("); boolean first = true; sb.append("db_name:"); @@ -70470,12 +63967,8 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_name:"); - if (this.part_name == null) { - sb.append("null"); - } else { - sb.append(this.part_name); - } + sb.append("max_parts:"); + sb.append(this.max_parts); first = false; sb.append(")"); return sb.toString(); @@ -70496,21 +63989,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_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_by_name_argsStandardScheme getScheme() { - return new get_partition_by_name_argsStandardScheme(); + private static class get_partitions_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_argsStandardScheme getScheme() { + return new get_partitions_argsStandardScheme(); } } - private static class get_partition_by_name_argsStandardScheme extends StandardScheme { + private static class get_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -70536,10 +64031,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + case 3: // MAX_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -70553,7 +64048,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -70567,27 +64062,25 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_n oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); - oprot.writeFieldEnd(); - } + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI16(struct.max_parts); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_by_name_argsTupleScheme getScheme() { - return new get_partition_by_name_argsTupleScheme(); + private static class get_partitions_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_argsTupleScheme getScheme() { + return new get_partitions_argsTupleScheme(); } } - private static class get_partition_by_name_argsTupleScheme extends TupleScheme { + private static class get_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -70596,7 +64089,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_na if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_name()) { + if (struct.isSetMax_parts()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -70606,13 +64099,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_na if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); + if (struct.isSetMax_parts()) { + oprot.writeI16(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -70624,30 +64117,30 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_nam struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); } } } } - public static class get_partition_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_partition_by_name_result"); + public static class get_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_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 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 get_partition_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_resultTupleSchemeFactory()); } - private Partition success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private List 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 { @@ -70718,22 +64211,23 @@ 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, Partition.class))); + 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, Partition.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_partition_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_result.class, metaDataMap); } - public get_partition_by_name_result() { + public get_partitions_result() { } - public get_partition_by_name_result( - Partition success, - MetaException o1, - NoSuchObjectException o2) + public get_partitions_result( + List success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; @@ -70744,20 +64238,24 @@ public get_partition_by_name_result( /** * Performs a deep copy on other. */ - public get_partition_by_name_result(get_partition_by_name_result other) { + public get_partitions_result(get_partitions_result other) { if (other.isSetSuccess()) { - this.success = new Partition(other.success); + List __this__success = new ArrayList(); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } + this.success = __this__success; } if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public get_partition_by_name_result deepCopy() { - return new get_partition_by_name_result(this); + public get_partitions_result deepCopy() { + return new get_partitions_result(this); } @Override @@ -70767,11 +64265,26 @@ public void clear() { this.o2 = null; } - public Partition 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(Partition elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(List success) { this.success = success; } @@ -70790,11 +64303,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -70813,11 +64326,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -70842,7 +64355,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((List)value); } break; @@ -70850,7 +64363,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((NoSuchObjectException)value); } break; @@ -70858,7 +64371,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -70901,12 +64414,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_by_name_result) - return this.equals((get_partition_by_name_result)that); + if (that instanceof get_partitions_result) + return this.equals((get_partitions_result)that); return false; } - public boolean equals(get_partition_by_name_result that) { + public boolean equals(get_partitions_result that) { if (that == null) return false; @@ -70942,60 +64455,60 @@ public boolean equals(get_partition_by_name_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partition_by_name_result other) { + public int compareTo(get_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_result typedOther = (get_partitions_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -71017,7 +64530,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_by_name_result("); + StringBuilder sb = new StringBuilder("get_partitions_result("); boolean first = true; sb.append("success:"); @@ -71050,9 +64563,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 { @@ -71071,15 +64581,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_by_name_resultStandardScheme getScheme() { - return new get_partition_by_name_resultStandardScheme(); + private static class get_partitions_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_resultStandardScheme getScheme() { + return new get_partitions_resultStandardScheme(); } } - private static class get_partition_by_name_resultStandardScheme extends StandardScheme { + private static class get_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -71090,9 +64600,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list712 = iprot.readListBegin(); + struct.success = new ArrayList(_list712.size); + for (int _i713 = 0; _i713 < _list712.size; ++_i713) + { + Partition _elem714; // required + _elem714 = new Partition(); + _elem714.read(iprot); + struct.success.add(_elem714); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -71100,7 +64620,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -71109,7 +64629,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na break; case 2: // 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 { @@ -71125,13 +64645,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_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.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter715 : struct.success) + { + _iter715.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -71150,16 +64677,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_n } - private static class get_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_by_name_resultTupleScheme getScheme() { - return new get_partition_by_name_resultTupleScheme(); + private static class get_partitions_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_resultTupleScheme getScheme() { + return new get_partitions_resultTupleScheme(); } } - private static class get_partition_by_name_resultTupleScheme extends TupleScheme { + private static class get_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -71173,7 +64700,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_na } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (Partition _iter716 : struct.success) + { + _iter716.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -71184,21 +64717,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_na } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new Partition(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list717 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list717.size); + for (int _i718 = 0; _i718 < _list717.size; ++_i718) + { + Partition _elem719; // required + _elem719 = new Partition(); + _elem719.read(iprot); + struct.success.add(_elem719); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); 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); } @@ -71207,28 +64749,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_nam } - public static class get_partitions_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_partitions_args"); + public static class get_partitions_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_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_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_with_auth_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_with_auth_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private short max_parts; // required + private String user_name; // required + private List group_names; // 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_PARTS((short)3, "max_parts"); + MAX_PARTS((short)3, "max_parts"), + USER_NAME((short)4, "user_name"), + GROUP_NAMES((short)5, "group_names"); private static final Map byName = new HashMap(); @@ -71249,6 +64797,10 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // MAX_PARTS return MAX_PARTS; + case 4: // USER_NAME + return USER_NAME; + case 5: // GROUP_NAMES + return GROUP_NAMES; default: return null; } @@ -71300,31 +64852,40 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", 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)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_args.class, metaDataMap); } - public get_partitions_args() { + public get_partitions_with_auth_args() { this.max_parts = (short)-1; } - public get_partitions_args( + public get_partitions_with_auth_args( String db_name, String tbl_name, - short max_parts) + short max_parts, + String user_name, + List group_names) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.max_parts = max_parts; setMax_partsIsSet(true); + this.user_name = user_name; + this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partitions_args(get_partitions_args other) { + public get_partitions_with_auth_args(get_partitions_with_auth_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -71333,10 +64894,20 @@ public get_partitions_args(get_partitions_args other) { this.tbl_name = other.tbl_name; } this.max_parts = other.max_parts; + if (other.isSetUser_name()) { + this.user_name = other.user_name; + } + if (other.isSetGroup_names()) { + List __this__group_names = new ArrayList(); + for (String other_element : other.group_names) { + __this__group_names.add(other_element); + } + this.group_names = __this__group_names; + } } - public get_partitions_args deepCopy() { - return new get_partitions_args(this); + public get_partitions_with_auth_args deepCopy() { + return new get_partitions_with_auth_args(this); } @Override @@ -71345,6 +64916,8 @@ public void clear() { this.tbl_name = null; this.max_parts = (short)-1; + this.user_name = null; + this.group_names = null; } public String getDb_name() { @@ -71415,6 +64988,67 @@ public void setMax_partsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } + public String getUser_name() { + return this.user_name; + } + + public void setUser_name(String user_name) { + this.user_name = user_name; + } + + public void unsetUser_name() { + this.user_name = null; + } + + /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ + public boolean isSetUser_name() { + return this.user_name != null; + } + + public void setUser_nameIsSet(boolean value) { + if (!value) { + this.user_name = null; + } + } + + public int getGroup_namesSize() { + return (this.group_names == null) ? 0 : this.group_names.size(); + } + + public java.util.Iterator getGroup_namesIterator() { + return (this.group_names == null) ? null : this.group_names.iterator(); + } + + public void addToGroup_names(String elem) { + if (this.group_names == null) { + this.group_names = new ArrayList(); + } + this.group_names.add(elem); + } + + public List getGroup_names() { + return this.group_names; + } + + public void setGroup_names(List group_names) { + this.group_names = group_names; + } + + public void unsetGroup_names() { + this.group_names = null; + } + + /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ + public boolean isSetGroup_names() { + return this.group_names != null; + } + + public void setGroup_namesIsSet(boolean value) { + if (!value) { + this.group_names = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -71441,6 +65075,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case USER_NAME: + if (value == null) { + unsetUser_name(); + } else { + setUser_name((String)value); + } + break; + + case GROUP_NAMES: + if (value == null) { + unsetGroup_names(); + } else { + setGroup_names((List)value); + } + break; + } } @@ -71455,6 +65105,12 @@ public Object getFieldValue(_Fields field) { case MAX_PARTS: return Short.valueOf(getMax_parts()); + case USER_NAME: + return getUser_name(); + + case GROUP_NAMES: + return getGroup_names(); + } throw new IllegalStateException(); } @@ -71472,6 +65128,10 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case MAX_PARTS: return isSetMax_parts(); + case USER_NAME: + return isSetUser_name(); + case GROUP_NAMES: + return isSetGroup_names(); } throw new IllegalStateException(); } @@ -71480,12 +65140,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_args) - return this.equals((get_partitions_args)that); + if (that instanceof get_partitions_with_auth_args) + return this.equals((get_partitions_with_auth_args)that); return false; } - public boolean equals(get_partitions_args that) { + public boolean equals(get_partitions_with_auth_args that) { if (that == null) return false; @@ -71516,65 +65176,113 @@ public boolean equals(get_partitions_args that) { return false; } + boolean this_present_user_name = true && this.isSetUser_name(); + boolean that_present_user_name = true && that.isSetUser_name(); + if (this_present_user_name || that_present_user_name) { + if (!(this_present_user_name && that_present_user_name)) + return false; + if (!this.user_name.equals(that.user_name)) + return false; + } + + boolean this_present_group_names = true && this.isSetGroup_names(); + boolean that_present_group_names = true && that.isSetGroup_names(); + if (this_present_group_names || that_present_group_names) { + if (!(this_present_group_names && that_present_group_names)) + return false; + if (!this.group_names.equals(that.group_names)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); + + boolean present_user_name = true && (isSetUser_name()); + builder.append(present_user_name); + if (present_user_name) + builder.append(user_name); + + boolean present_group_names = true && (isSetGroup_names()); + builder.append(present_group_names); + if (present_group_names) + builder.append(group_names); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_args other) { + public int compareTo(get_partitions_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_with_auth_args typedOther = (get_partitions_with_auth_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(typedOther.isSetUser_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(typedOther.isSetGroup_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGroup_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -71596,7 +65304,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_args("); + StringBuilder sb = new StringBuilder("get_partitions_with_auth_args("); boolean first = true; sb.append("db_name:"); @@ -71618,6 +65326,22 @@ public String toString() { sb.append("max_parts:"); sb.append(this.max_parts); first = false; + if (!first) sb.append(", "); + sb.append("user_name:"); + if (this.user_name == null) { + sb.append("null"); + } else { + sb.append(this.user_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("group_names:"); + if (this.group_names == null) { + sb.append("null"); + } else { + sb.append(this.group_names); + } + first = false; sb.append(")"); return sb.toString(); } @@ -71645,15 +65369,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_argsStandardScheme getScheme() { - return new get_partitions_argsStandardScheme(); + private static class get_partitions_with_auth_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_argsStandardScheme getScheme() { + return new get_partitions_with_auth_argsStandardScheme(); } } - private static class get_partitions_argsStandardScheme extends StandardScheme { + private static class get_partitions_with_auth_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -71687,6 +65411,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // GROUP_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list720 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list720.size); + for (int _i721 = 0; _i721 < _list720.size; ++_i721) + { + String _elem722; // required + _elem722 = iprot.readString(); + struct.group_names.add(_elem722); + } + iprot.readListEnd(); + } + struct.setGroup_namesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -71696,7 +65446,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -71713,22 +65463,39 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_arg oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); + if (struct.user_name != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.user_name); + oprot.writeFieldEnd(); + } + if (struct.group_names != null) { + 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 _iter723 : struct.group_names) + { + oprot.writeString(_iter723); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_argsTupleScheme getScheme() { - return new get_partitions_argsTupleScheme(); + private static class get_partitions_with_auth_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_argsTupleScheme getScheme() { + return new get_partitions_with_auth_argsTupleScheme(); } } - private static class get_partitions_argsTupleScheme extends TupleScheme { + private static class get_partitions_with_auth_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -71740,7 +65507,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args if (struct.isSetMax_parts()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetUser_name()) { + optionals.set(3); + } + if (struct.isSetGroup_names()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -71750,12 +65523,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); } + if (struct.isSetUser_name()) { + oprot.writeString(struct.user_name); + } + if (struct.isSetGroup_names()) { + { + oprot.writeI32(struct.group_names.size()); + for (String _iter724 : struct.group_names) + { + oprot.writeString(_iter724); + } + } + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -71768,13 +65553,30 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } + if (incoming.get(3)) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } + if (incoming.get(4)) { + { + org.apache.thrift.protocol.TList _list725 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list725.size); + for (int _i726 = 0; _i726 < _list725.size; ++_i726) + { + String _elem727; // required + _elem727 = iprot.readString(); + struct.group_names.add(_elem727); + } + } + struct.setGroup_namesIsSet(true); + } } } } - public static class get_partitions_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_partitions_result"); + public static class get_partitions_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_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); @@ -71782,8 +65584,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_with_auth_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_with_auth_resultTupleSchemeFactory()); } private List success; // required @@ -71866,13 +65668,13 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_result.class, metaDataMap); } - public get_partitions_result() { + public get_partitions_with_auth_result() { } - public get_partitions_result( + public get_partitions_with_auth_result( List success, NoSuchObjectException o1, MetaException o2) @@ -71886,9 +65688,9 @@ public get_partitions_result( /** * Performs a deep copy on other. */ - public get_partitions_result(get_partitions_result other) { + public get_partitions_with_auth_result(get_partitions_with_auth_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Partition other_element : other.success) { __this__success.add(new Partition(other_element)); } @@ -71902,8 +65704,8 @@ public get_partitions_result(get_partitions_result other) { } } - public get_partitions_result deepCopy() { - return new get_partitions_result(this); + public get_partitions_with_auth_result deepCopy() { + return new get_partitions_with_auth_result(this); } @Override @@ -72062,12 +65864,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_result) - return this.equals((get_partitions_result)that); + if (that instanceof get_partitions_with_auth_result) + return this.equals((get_partitions_with_auth_result)that); return false; } - public boolean equals(get_partitions_result that) { + public boolean equals(get_partitions_with_auth_result that) { if (that == null) return false; @@ -72103,60 +65905,60 @@ public boolean equals(get_partitions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_result other) { + public int compareTo(get_partitions_with_auth_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_with_auth_result typedOther = (get_partitions_with_auth_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -72178,7 +65980,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_result("); + StringBuilder sb = new StringBuilder("get_partitions_with_auth_result("); boolean first = true; sb.append("success:"); @@ -72229,15 +66031,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_resultStandardScheme getScheme() { - return new get_partitions_resultStandardScheme(); + private static class get_partitions_with_auth_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_resultStandardScheme getScheme() { + return new get_partitions_with_auth_resultStandardScheme(); } } - private static class get_partitions_resultStandardScheme extends StandardScheme { + private static class get_partitions_with_auth_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -72250,14 +66052,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list712 = iprot.readListBegin(); - struct.success = new ArrayList(_list712.size); - Partition _elem713; - for (int _i714 = 0; _i714 < _list712.size; ++_i714) + org.apache.thrift.protocol.TList _list728 = iprot.readListBegin(); + struct.success = new ArrayList(_list728.size); + for (int _i729 = 0; _i729 < _list728.size; ++_i729) { - _elem713 = new Partition(); - _elem713.read(iprot); - struct.success.add(_elem713); + Partition _elem730; // required + _elem730 = new Partition(); + _elem730.read(iprot); + struct.success.add(_elem730); } iprot.readListEnd(); } @@ -72293,7 +66095,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -72301,9 +66103,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter715 : struct.success) + for (Partition _iter731 : struct.success) { - _iter715.write(oprot); + _iter731.write(oprot); } oprot.writeListEnd(); } @@ -72325,16 +66127,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_res } - private static class get_partitions_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_resultTupleScheme getScheme() { - return new get_partitions_resultTupleScheme(); + private static class get_partitions_with_auth_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_resultTupleScheme getScheme() { + return new get_partitions_with_auth_resultTupleScheme(); } } - private static class get_partitions_resultTupleScheme extends TupleScheme { + private static class get_partitions_with_auth_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -72350,9 +66152,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter716 : struct.success) + for (Partition _iter732 : struct.success) { - _iter716.write(oprot); + _iter732.write(oprot); } } } @@ -72365,19 +66167,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_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 _list717 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list717.size); - Partition _elem718; - for (int _i719 = 0; _i719 < _list717.size; ++_i719) + org.apache.thrift.protocol.TList _list733 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list733.size); + for (int _i734 = 0; _i734 < _list733.size; ++_i734) { - _elem718 = new Partition(); - _elem718.read(iprot); - struct.success.add(_elem718); + Partition _elem735; // required + _elem735 = new Partition(); + _elem735.read(iprot); + struct.success.add(_elem735); } } struct.setSuccessIsSet(true); @@ -72397,34 +66199,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_resul } - public static class get_partitions_with_auth_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_partitions_with_auth_args"); + public static class get_partitions_pspec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_pspec_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_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); - private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I32, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_with_auth_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_with_auth_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_pspec_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_pspec_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private short max_parts; // required - private String user_name; // required - private List group_names; // required + private int max_parts; // 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_PARTS((short)3, "max_parts"), - USER_NAME((short)4, "user_name"), - GROUP_NAMES((short)5, "group_names"); + MAX_PARTS((short)3, "max_parts"); private static final Map byName = new HashMap(); @@ -72445,10 +66241,6 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // MAX_PARTS return MAX_PARTS; - case 4: // USER_NAME - return USER_NAME; - case 5: // GROUP_NAMES - return GROUP_NAMES; default: return null; } @@ -72499,41 +66291,32 @@ public String getFieldName() { 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_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); - tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", 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.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_pspec_args.class, metaDataMap); } - public get_partitions_with_auth_args() { - this.max_parts = (short)-1; + public get_partitions_pspec_args() { + this.max_parts = -1; } - public get_partitions_with_auth_args( + public get_partitions_pspec_args( String db_name, String tbl_name, - short max_parts, - String user_name, - List group_names) + int max_parts) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.max_parts = max_parts; setMax_partsIsSet(true); - this.user_name = user_name; - this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partitions_with_auth_args(get_partitions_with_auth_args other) { + public get_partitions_pspec_args(get_partitions_pspec_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -72542,27 +66325,18 @@ public get_partitions_with_auth_args(get_partitions_with_auth_args other) { this.tbl_name = other.tbl_name; } this.max_parts = other.max_parts; - if (other.isSetUser_name()) { - this.user_name = other.user_name; - } - if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); - this.group_names = __this__group_names; - } } - public get_partitions_with_auth_args deepCopy() { - return new get_partitions_with_auth_args(this); + public get_partitions_pspec_args deepCopy() { + return new get_partitions_pspec_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.max_parts = (short)-1; + this.max_parts = -1; - this.user_name = null; - this.group_names = null; } public String getDb_name() { @@ -72611,11 +66385,11 @@ public void setTbl_nameIsSet(boolean value) { } } - public short getMax_parts() { + public int getMax_parts() { return this.max_parts; } - public void setMax_parts(short max_parts) { + public void setMax_parts(int max_parts) { this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -72633,67 +66407,6 @@ public void setMax_partsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } - public String getUser_name() { - return this.user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public void unsetUser_name() { - this.user_name = null; - } - - /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ - public boolean isSetUser_name() { - return this.user_name != null; - } - - public void setUser_nameIsSet(boolean value) { - if (!value) { - this.user_name = null; - } - } - - public int getGroup_namesSize() { - return (this.group_names == null) ? 0 : this.group_names.size(); - } - - public java.util.Iterator getGroup_namesIterator() { - return (this.group_names == null) ? null : this.group_names.iterator(); - } - - public void addToGroup_names(String elem) { - if (this.group_names == null) { - this.group_names = new ArrayList(); - } - this.group_names.add(elem); - } - - public List getGroup_names() { - return this.group_names; - } - - public void setGroup_names(List group_names) { - this.group_names = group_names; - } - - public void unsetGroup_names() { - this.group_names = null; - } - - /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ - public boolean isSetGroup_names() { - return this.group_names != null; - } - - public void setGroup_namesIsSet(boolean value) { - if (!value) { - this.group_names = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -72716,23 +66429,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetMax_parts(); } else { - setMax_parts((Short)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUser_name(); - } else { - setUser_name((String)value); - } - break; - - case GROUP_NAMES: - if (value == null) { - unsetGroup_names(); - } else { - setGroup_names((List)value); + setMax_parts((Integer)value); } break; @@ -72748,13 +66445,7 @@ public Object getFieldValue(_Fields field) { return getTbl_name(); case MAX_PARTS: - return Short.valueOf(getMax_parts()); - - case USER_NAME: - return getUser_name(); - - case GROUP_NAMES: - return getGroup_names(); + return Integer.valueOf(getMax_parts()); } throw new IllegalStateException(); @@ -72773,10 +66464,6 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case MAX_PARTS: return isSetMax_parts(); - case USER_NAME: - return isSetUser_name(); - case GROUP_NAMES: - return isSetGroup_names(); } throw new IllegalStateException(); } @@ -72785,12 +66472,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_with_auth_args) - return this.equals((get_partitions_with_auth_args)that); + if (that instanceof get_partitions_pspec_args) + return this.equals((get_partitions_pspec_args)that); return false; } - public boolean equals(get_partitions_with_auth_args that) { + public boolean equals(get_partitions_pspec_args that) { if (that == null) return false; @@ -72821,113 +66508,65 @@ public boolean equals(get_partitions_with_auth_args that) { return false; } - boolean this_present_user_name = true && this.isSetUser_name(); - boolean that_present_user_name = true && that.isSetUser_name(); - if (this_present_user_name || that_present_user_name) { - if (!(this_present_user_name && that_present_user_name)) - return false; - if (!this.user_name.equals(that.user_name)) - return false; - } - - boolean this_present_group_names = true && this.isSetGroup_names(); - boolean that_present_group_names = true && that.isSetGroup_names(); - if (this_present_group_names || that_present_group_names) { - if (!(this_present_group_names && that_present_group_names)) - return false; - if (!this.group_names.equals(that.group_names)) - return false; - } - return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); - - boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); - if (present_user_name) - list.add(user_name); - - boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); - if (present_group_names) - list.add(group_names); + builder.append(max_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_with_auth_args other) { + public int compareTo(get_partitions_pspec_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_pspec_args typedOther = (get_partitions_pspec_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -72949,7 +66588,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_with_auth_args("); + StringBuilder sb = new StringBuilder("get_partitions_pspec_args("); boolean first = true; sb.append("db_name:"); @@ -72971,22 +66610,6 @@ public String toString() { sb.append("max_parts:"); sb.append(this.max_parts); first = false; - if (!first) sb.append(", "); - sb.append("user_name:"); - if (this.user_name == null) { - sb.append("null"); - } else { - sb.append(this.user_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("group_names:"); - if (this.group_names == null) { - sb.append("null"); - } else { - sb.append(this.group_names); - } - first = false; sb.append(")"); return sb.toString(); } @@ -73014,15 +66637,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_with_auth_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_argsStandardScheme getScheme() { - return new get_partitions_with_auth_argsStandardScheme(); + private static class get_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_pspec_argsStandardScheme getScheme() { + return new get_partitions_pspec_argsStandardScheme(); } } - private static class get_partitions_with_auth_argsStandardScheme extends StandardScheme { + private static class get_partitions_pspec_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -73049,39 +66672,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with } break; case 3: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_parts = iprot.readI16(); + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.max_parts = iprot.readI32(); struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // USER_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // GROUP_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list720 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list720.size); - String _elem721; - for (int _i722 = 0; _i722 < _list720.size; ++_i722) - { - _elem721 = iprot.readString(); - struct.group_names.add(_elem721); - } - iprot.readListEnd(); - } - struct.setGroup_namesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -73091,7 +66688,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -73106,41 +66703,24 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI16(struct.max_parts); + oprot.writeI32(struct.max_parts); oprot.writeFieldEnd(); - if (struct.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.user_name); - oprot.writeFieldEnd(); - } - if (struct.group_names != null) { - 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 _iter723 : struct.group_names) - { - oprot.writeString(_iter723); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_with_auth_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_argsTupleScheme getScheme() { - return new get_partitions_with_auth_argsTupleScheme(); + private static class get_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_pspec_argsTupleScheme getScheme() { + return new get_partitions_pspec_argsTupleScheme(); } } - private static class get_partitions_with_auth_argsTupleScheme extends TupleScheme { + private static class get_partitions_pspec_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -73152,13 +66732,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetMax_parts()) { optionals.set(2); } - if (struct.isSetUser_name()) { - optionals.set(3); - } - if (struct.isSetGroup_names()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -73166,26 +66740,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with oprot.writeString(struct.tbl_name); } if (struct.isSetMax_parts()) { - oprot.writeI16(struct.max_parts); - } - if (struct.isSetUser_name()) { - oprot.writeString(struct.user_name); - } - if (struct.isSetGroup_names()) { - { - oprot.writeI32(struct.group_names.size()); - for (String _iter724 : struct.group_names) - { - oprot.writeString(_iter724); - } - } + oprot.writeI32(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -73195,33 +66757,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.max_parts = iprot.readI16(); + struct.max_parts = iprot.readI32(); struct.setMax_partsIsSet(true); } - if (incoming.get(3)) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _list725 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list725.size); - String _elem726; - for (int _i727 = 0; _i727 < _list725.size; ++_i727) - { - _elem726 = iprot.readString(); - struct.group_names.add(_elem726); - } - } - struct.setGroup_namesIsSet(true); - } } } } - public static class get_partitions_with_auth_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_partitions_with_auth_result"); + public static class get_partitions_pspec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_pspec_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); @@ -73229,11 +66774,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_with_auth_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_with_auth_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_pspec_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_pspec_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -73307,20 +66852,20 @@ 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, Partition.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionSpec.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_pspec_result.class, metaDataMap); } - public get_partitions_with_auth_result() { + public get_partitions_pspec_result() { } - public get_partitions_with_auth_result( - List success, + public get_partitions_pspec_result( + List success, NoSuchObjectException o1, MetaException o2) { @@ -73333,11 +66878,11 @@ public get_partitions_with_auth_result( /** * Performs a deep copy on other. */ - public get_partitions_with_auth_result(get_partitions_with_auth_result other) { + public get_partitions_pspec_result(get_partitions_pspec_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); + List __this__success = new ArrayList(); + for (PartitionSpec other_element : other.success) { + __this__success.add(new PartitionSpec(other_element)); } this.success = __this__success; } @@ -73349,8 +66894,8 @@ public get_partitions_with_auth_result(get_partitions_with_auth_result other) { } } - public get_partitions_with_auth_result deepCopy() { - return new get_partitions_with_auth_result(this); + public get_partitions_pspec_result deepCopy() { + return new get_partitions_pspec_result(this); } @Override @@ -73364,22 +66909,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(Partition elem) { + public void addToSuccess(PartitionSpec 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; } @@ -73450,7 +66995,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -73509,12 +67054,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_with_auth_result) - return this.equals((get_partitions_with_auth_result)that); + if (that instanceof get_partitions_pspec_result) + return this.equals((get_partitions_pspec_result)that); return false; } - public boolean equals(get_partitions_with_auth_result that) { + public boolean equals(get_partitions_pspec_result that) { if (that == null) return false; @@ -73550,60 +67095,60 @@ public boolean equals(get_partitions_with_auth_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_with_auth_result other) { + public int compareTo(get_partitions_pspec_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_pspec_result typedOther = (get_partitions_pspec_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -73625,7 +67170,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_with_auth_result("); + StringBuilder sb = new StringBuilder("get_partitions_pspec_result("); boolean first = true; sb.append("success:"); @@ -73676,15 +67221,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_with_auth_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_resultStandardScheme getScheme() { - return new get_partitions_with_auth_resultStandardScheme(); + private static class get_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_pspec_resultStandardScheme getScheme() { + return new get_partitions_pspec_resultStandardScheme(); } } - private static class get_partitions_with_auth_resultStandardScheme extends StandardScheme { + private static class get_partitions_pspec_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -73697,14 +67242,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list728 = iprot.readListBegin(); - struct.success = new ArrayList(_list728.size); - Partition _elem729; - for (int _i730 = 0; _i730 < _list728.size; ++_i730) + org.apache.thrift.protocol.TList _list736 = iprot.readListBegin(); + struct.success = new ArrayList(_list736.size); + for (int _i737 = 0; _i737 < _list736.size; ++_i737) { - _elem729 = new Partition(); - _elem729.read(iprot); - struct.success.add(_elem729); + PartitionSpec _elem738; // required + _elem738 = new PartitionSpec(); + _elem738.read(iprot); + struct.success.add(_elem738); } iprot.readListEnd(); } @@ -73740,7 +67285,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -73748,9 +67293,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter731 : struct.success) + for (PartitionSpec _iter739 : struct.success) { - _iter731.write(oprot); + _iter739.write(oprot); } oprot.writeListEnd(); } @@ -73772,16 +67317,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit } - private static class get_partitions_with_auth_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_resultTupleScheme getScheme() { - return new get_partitions_with_auth_resultTupleScheme(); + private static class get_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_pspec_resultTupleScheme getScheme() { + return new get_partitions_pspec_resultTupleScheme(); } } - private static class get_partitions_with_auth_resultTupleScheme extends TupleScheme { + private static class get_partitions_pspec_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -73797,9 +67342,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter732 : struct.success) + for (PartitionSpec _iter740 : struct.success) { - _iter732.write(oprot); + _iter740.write(oprot); } } } @@ -73812,19 +67357,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_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 _list733 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list733.size); - Partition _elem734; - for (int _i735 = 0; _i735 < _list733.size; ++_i735) + org.apache.thrift.protocol.TList _list741 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list741.size); + for (int _i742 = 0; _i742 < _list741.size; ++_i742) { - _elem734 = new Partition(); - _elem734.read(iprot); - struct.success.add(_elem734); + PartitionSpec _elem743; // required + _elem743 = new PartitionSpec(); + _elem743.read(iprot); + struct.success.add(_elem743); } } struct.setSuccessIsSet(true); @@ -73844,22 +67389,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } - public static class get_partitions_pspec_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_partitions_pspec_args"); + public static class get_partition_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_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 MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_pspec_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_pspec_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private int max_parts; // required + private short max_parts; // 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 { @@ -73936,20 +67481,20 @@ public String getFieldName() { 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_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + 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_partitions_pspec_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_args.class, metaDataMap); } - public get_partitions_pspec_args() { - this.max_parts = -1; + public get_partition_names_args() { + this.max_parts = (short)-1; } - public get_partitions_pspec_args( + public get_partition_names_args( String db_name, String tbl_name, - int max_parts) + short max_parts) { this(); this.db_name = db_name; @@ -73961,7 +67506,7 @@ public get_partitions_pspec_args( /** * Performs a deep copy on other. */ - public get_partitions_pspec_args(get_partitions_pspec_args other) { + public get_partition_names_args(get_partition_names_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -73972,15 +67517,15 @@ public get_partitions_pspec_args(get_partitions_pspec_args other) { this.max_parts = other.max_parts; } - public get_partitions_pspec_args deepCopy() { - return new get_partitions_pspec_args(this); + public get_partition_names_args deepCopy() { + return new get_partition_names_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.max_parts = -1; + this.max_parts = (short)-1; } @@ -74030,11 +67575,11 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getMax_parts() { + public short getMax_parts() { return this.max_parts; } - public void setMax_parts(int max_parts) { + public void setMax_parts(short max_parts) { this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -74074,7 +67619,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetMax_parts(); } else { - setMax_parts((Integer)value); + setMax_parts((Short)value); } break; @@ -74090,7 +67635,7 @@ public Object getFieldValue(_Fields field) { return getTbl_name(); case MAX_PARTS: - return Integer.valueOf(getMax_parts()); + return Short.valueOf(getMax_parts()); } throw new IllegalStateException(); @@ -74117,12 +67662,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_pspec_args) - return this.equals((get_partitions_pspec_args)that); + if (that instanceof get_partition_names_args) + return this.equals((get_partition_names_args)that); return false; } - public boolean equals(get_partitions_pspec_args that) { + public boolean equals(get_partition_names_args that) { if (that == null) return false; @@ -74158,60 +67703,60 @@ public boolean equals(get_partitions_pspec_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_pspec_args other) { + public int compareTo(get_partition_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_names_args typedOther = (get_partition_names_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -74233,7 +67778,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_pspec_args("); + StringBuilder sb = new StringBuilder("get_partition_names_args("); boolean first = true; sb.append("db_name:"); @@ -74282,15 +67827,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_pspec_argsStandardScheme getScheme() { - return new get_partitions_pspec_argsStandardScheme(); + private static class get_partition_names_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_names_argsStandardScheme getScheme() { + return new get_partition_names_argsStandardScheme(); } } - private static class get_partitions_pspec_argsStandardScheme extends StandardScheme { + private static class get_partition_names_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -74317,8 +67862,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe } break; case 3: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.max_parts = iprot.readI32(); + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -74333,7 +67878,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -74348,7 +67893,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI32(struct.max_parts); + oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); @@ -74356,16 +67901,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp } - private static class get_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_pspec_argsTupleScheme getScheme() { - return new get_partitions_pspec_argsTupleScheme(); + private static class get_partition_names_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_names_argsTupleScheme getScheme() { + return new get_partition_names_argsTupleScheme(); } } - private static class get_partitions_pspec_argsTupleScheme extends TupleScheme { + private static class get_partition_names_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -74385,12 +67930,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe oprot.writeString(struct.tbl_name); } if (struct.isSetMax_parts()) { - oprot.writeI32(struct.max_parts); + oprot.writeI16(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -74402,7 +67947,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.max_parts = iprot.readI32(); + struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } } @@ -74410,28 +67955,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec } - public static class get_partitions_pspec_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_partitions_pspec_result"); + public static class get_partition_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_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.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 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_partitions_pspec_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_pspec_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_resultTupleSchemeFactory()); } - private List success; // required - private NoSuchObjectException o1; // 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(); @@ -74448,9 +67990,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; @@ -74497,56 +68037,48 @@ 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, PartitionSpec.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.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_partitions_pspec_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_result.class, metaDataMap); } - public get_partitions_pspec_result() { + public get_partition_names_result() { } - public get_partitions_pspec_result( - List success, - NoSuchObjectException o1, + public get_partition_names_result( + List success, MetaException o2) { this(); this.success = success; - this.o1 = o1; this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_partitions_pspec_result(get_partitions_pspec_result other) { + public get_partition_names_result(get_partition_names_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (PartitionSpec other_element : other.success) { - __this__success.add(new PartitionSpec(other_element)); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); } this.success = __this__success; } - if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); - } if (other.isSetO2()) { this.o2 = new MetaException(other.o2); } } - public get_partitions_pspec_result deepCopy() { - return new get_partitions_pspec_result(this); + public get_partition_names_result deepCopy() { + return new get_partition_names_result(this); } @Override public void clear() { this.success = null; - this.o1 = null; this.o2 = null; } @@ -74554,22 +68086,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(PartitionSpec elem) { + public void addToSuccess(String 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; } @@ -74588,29 +68120,6 @@ public void setSuccessIsSet(boolean 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; } @@ -74640,15 +68149,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); - } - break; - - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((NoSuchObjectException)value); + setSuccess((List)value); } break; @@ -74668,9 +68169,6 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); - case O1: - return getO1(); - case O2: return getO2(); @@ -74687,8 +68185,6 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); - case O1: - return isSetO1(); case O2: return isSetO2(); } @@ -74699,12 +68195,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_pspec_result) - return this.equals((get_partitions_pspec_result)that); + if (that instanceof get_partition_names_result) + return this.equals((get_partition_names_result)that); return false; } - public boolean equals(get_partitions_pspec_result that) { + public boolean equals(get_partition_names_result that) { if (that == null) return false; @@ -74717,15 +68213,6 @@ public boolean equals(get_partitions_pspec_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) { @@ -74740,60 +68227,45 @@ public boolean equals(get_partitions_pspec_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); - - boolean present_o1 = true && (isSetO1()); - list.add(present_o1); - if (present_o1) - list.add(o1); + builder.append(success); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_pspec_result other) { + public int compareTo(get_partition_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_names_result typedOther = (get_partition_names_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.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); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -74815,7 +68287,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_pspec_result("); + StringBuilder sb = new StringBuilder("get_partition_names_result("); boolean first = true; sb.append("success:"); @@ -74826,14 +68298,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"); @@ -74866,15 +68330,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_pspec_resultStandardScheme getScheme() { - return new get_partitions_pspec_resultStandardScheme(); + private static class get_partition_names_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_names_resultStandardScheme getScheme() { + return new get_partition_names_resultStandardScheme(); } } - private static class get_partitions_pspec_resultStandardScheme extends StandardScheme { + private static class get_partition_names_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -74887,14 +68351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list736 = iprot.readListBegin(); - struct.success = new ArrayList(_list736.size); - PartitionSpec _elem737; - for (int _i738 = 0; _i738 < _list736.size; ++_i738) + org.apache.thrift.protocol.TList _list744 = iprot.readListBegin(); + struct.success = new ArrayList(_list744.size); + for (int _i745 = 0; _i745 < _list744.size; ++_i745) { - _elem737 = new PartitionSpec(); - _elem737.read(iprot); - struct.success.add(_elem737); + String _elem746; // required + _elem746 = iprot.readString(); + struct.success.add(_elem746); } iprot.readListEnd(); } @@ -74903,16 +68366,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe 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 + case 1: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o2 = new MetaException(); struct.o2.read(iprot); @@ -74930,27 +68384,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter739 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter747 : struct.success) { - _iter739.write(oprot); + oprot.writeString(_iter747); } 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); @@ -74962,69 +68411,57 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp } - private static class get_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_pspec_resultTupleScheme getScheme() { - return new get_partitions_pspec_resultTupleScheme(); + private static class get_partition_names_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_names_resultTupleScheme getScheme() { + return new get_partition_names_resultTupleScheme(); } } - private static class get_partitions_pspec_resultTupleScheme extends TupleScheme { + private static class get_partition_names_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_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()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter740 : struct.success) + for (String _iter748 : struct.success) { - _iter740.write(oprot); + oprot.writeString(_iter748); } } } - 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_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_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)) { { - org.apache.thrift.protocol.TList _list741 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list741.size); - PartitionSpec _elem742; - for (int _i743 = 0; _i743 < _list741.size; ++_i743) + org.apache.thrift.protocol.TList _list749 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list749.size); + for (int _i750 = 0; _i750 < _list749.size; ++_i750) { - _elem742 = new PartitionSpec(); - _elem742.read(iprot); - struct.success.add(_elem742); + String _elem751; // required + _elem751 = iprot.readString(); + struct.success.add(_elem751); } } 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); @@ -75034,28 +68471,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec } - public static class get_partition_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_partition_names_args"); + public static class get_partitions_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_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_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_names_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required + private List part_vals; // required private short max_parts; // 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_PARTS((short)3, "max_parts"); + PART_VALS((short)3, "part_vals"), + MAX_PARTS((short)4, "max_parts"); private static final Map byName = new HashMap(); @@ -75074,7 +68514,9 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // MAX_PARTS + case 3: // PART_VALS + return PART_VALS; + case 4: // MAX_PARTS return MAX_PARTS; default: return null; @@ -75125,25 +68567,30 @@ 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.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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)))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", 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_partition_names_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_args.class, metaDataMap); } - public get_partition_names_args() { + public get_partitions_ps_args() { this.max_parts = (short)-1; } - public get_partition_names_args( + public get_partitions_ps_args( String db_name, String tbl_name, + List part_vals, short max_parts) { this(); this.db_name = db_name; this.tbl_name = tbl_name; + this.part_vals = part_vals; this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -75151,7 +68598,7 @@ public get_partition_names_args( /** * Performs a deep copy on other. */ - public get_partition_names_args(get_partition_names_args other) { + public get_partitions_ps_args(get_partitions_ps_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -75159,17 +68606,25 @@ public get_partition_names_args(get_partition_names_args other) { if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } + this.part_vals = __this__part_vals; + } this.max_parts = other.max_parts; } - public get_partition_names_args deepCopy() { - return new get_partition_names_args(this); + public get_partitions_ps_args deepCopy() { + return new get_partitions_ps_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; + this.part_vals = null; this.max_parts = (short)-1; } @@ -75220,6 +68675,44 @@ public void setTbl_nameIsSet(boolean value) { } } + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); + } + + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); + } + + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); + } + + public List getPart_vals() { + return this.part_vals; + } + + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; + } + } + public short getMax_parts() { return this.max_parts; } @@ -75260,6 +68753,14 @@ public void setFieldValue(_Fields field, Object value) { } break; + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); + } + break; + case MAX_PARTS: if (value == null) { unsetMax_parts(); @@ -75279,6 +68780,9 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); + case PART_VALS: + return getPart_vals(); + case MAX_PARTS: return Short.valueOf(getMax_parts()); @@ -75297,6 +68801,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); case MAX_PARTS: return isSetMax_parts(); } @@ -75307,12 +68813,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_args) - return this.equals((get_partition_names_args)that); + if (that instanceof get_partitions_ps_args) + return this.equals((get_partitions_ps_args)that); return false; } - public boolean equals(get_partition_names_args that) { + public boolean equals(get_partitions_ps_args that) { if (that == null) return false; @@ -75334,6 +68840,15 @@ public boolean equals(get_partition_names_args that) { return false; } + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) + return false; + } + boolean this_present_max_parts = true; boolean that_present_max_parts = true; if (this_present_max_parts || that_present_max_parts) { @@ -75348,60 +68863,75 @@ public boolean equals(get_partition_names_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); + + boolean present_part_vals = true && (isSetPart_vals()); + builder.append(present_part_vals); + if (present_part_vals) + builder.append(part_vals); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partition_names_args other) { + public int compareTo(get_partitions_ps_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_ps_args typedOther = (get_partitions_ps_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -75423,7 +68953,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_args("); + StringBuilder sb = new StringBuilder("get_partitions_ps_args("); boolean first = true; sb.append("db_name:"); @@ -75442,6 +68972,14 @@ public String toString() { } first = false; if (!first) sb.append(", "); + sb.append("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); + } + first = false; + if (!first) sb.append(", "); sb.append("max_parts:"); sb.append(this.max_parts); first = false; @@ -75472,15 +69010,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_names_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_names_argsStandardScheme getScheme() { - return new get_partition_names_argsStandardScheme(); + private static class get_partitions_ps_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_argsStandardScheme getScheme() { + return new get_partitions_ps_argsStandardScheme(); } } - private static class get_partition_names_argsStandardScheme extends StandardScheme { + private static class get_partitions_ps_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -75506,7 +69044,25 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // MAX_PARTS + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list752 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list752.size); + for (int _i753 = 0; _i753 < _list752.size; ++_i753) + { + String _elem754; // required + _elem754 = iprot.readString(); + struct.part_vals.add(_elem754); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // MAX_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.I16) { struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); @@ -75523,7 +69079,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -75537,6 +69093,18 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } + if (struct.part_vals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); + for (String _iter755 : struct.part_vals) + { + oprot.writeString(_iter755); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); @@ -75546,16 +69114,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name } - private static class get_partition_names_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_names_argsTupleScheme getScheme() { - return new get_partition_names_argsTupleScheme(); + private static class get_partitions_ps_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_argsTupleScheme getScheme() { + return new get_partitions_ps_argsTupleScheme(); } } - private static class get_partition_names_argsTupleScheme extends TupleScheme { + private static class get_partitions_ps_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -75564,25 +69132,37 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetMax_parts()) { + if (struct.isSetPart_vals()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetMax_parts()) { + 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.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter756 : struct.part_vals) + { + oprot.writeString(_iter756); + } + } + } if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_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); @@ -75592,6 +69172,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list757 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list757.size); + for (int _i758 = 0; _i758 < _list757.size; ++_i758) + { + String _elem759; // required + _elem759 = iprot.readString(); + struct.part_vals.add(_elem759); + } + } + struct.setPart_valsIsSet(true); + } + if (incoming.get(3)) { struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } @@ -75600,25 +69193,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } - public static class get_partition_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_partition_names_result"); + public static class get_partitions_ps_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_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_partition_names_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_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(); @@ -75635,7 +69231,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; @@ -75682,45 +69280,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, Partition.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_partition_names_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_result.class, metaDataMap); } - public get_partition_names_result() { + public get_partitions_ps_result() { } - public get_partition_names_result( - List success, - MetaException o2) + public get_partitions_ps_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_partition_names_result(get_partition_names_result other) { + public get_partitions_ps_result(get_partitions_ps_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (Partition other_element : other.success) { + __this__success.add(new Partition(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_partition_names_result deepCopy() { - return new get_partition_names_result(this); + public get_partitions_ps_result deepCopy() { + return new get_partitions_ps_result(this); } @Override public void clear() { this.success = null; + this.o1 = null; this.o2 = null; } @@ -75728,22 +69337,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(Partition 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; } @@ -75762,11 +69371,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; } @@ -75791,7 +69423,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; @@ -75799,7 +69439,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -75811,6 +69451,9 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); + case O1: + return getO1(); + case O2: return getO2(); @@ -75827,6 +69470,8 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); + case O1: + return isSetO1(); case O2: return isSetO2(); } @@ -75837,12 +69482,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_result) - return this.equals((get_partition_names_result)that); + if (that instanceof get_partitions_ps_result) + return this.equals((get_partitions_ps_result)that); return false; } - public boolean equals(get_partition_names_result that) { + public boolean equals(get_partitions_ps_result that) { if (that == null) return false; @@ -75855,6 +69500,15 @@ public boolean equals(get_partition_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) { @@ -75869,45 +69523,60 @@ public boolean equals(get_partition_names_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); + + boolean present_o1 = true && (isSetO1()); + builder.append(present_o1); + if (present_o1) + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partition_names_result other) { + public int compareTo(get_partitions_ps_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_ps_result typedOther = (get_partitions_ps_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -75929,7 +69598,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_result("); + StringBuilder sb = new StringBuilder("get_partitions_ps_result("); boolean first = true; sb.append("success:"); @@ -75940,6 +69609,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"); @@ -75972,15 +69649,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_names_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_names_resultStandardScheme getScheme() { - return new get_partition_names_resultStandardScheme(); + private static class get_partitions_ps_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_resultStandardScheme getScheme() { + return new get_partitions_ps_resultStandardScheme(); } } - private static class get_partition_names_resultStandardScheme extends StandardScheme { + private static class get_partitions_ps_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -75993,13 +69670,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list744 = iprot.readListBegin(); - struct.success = new ArrayList(_list744.size); - String _elem745; - for (int _i746 = 0; _i746 < _list744.size; ++_i746) + org.apache.thrift.protocol.TList _list760 = iprot.readListBegin(); + struct.success = new ArrayList(_list760.size); + for (int _i761 = 0; _i761 < _list760.size; ++_i761) { - _elem745 = iprot.readString(); - struct.success.add(_elem745); + Partition _elem762; // required + _elem762 = new Partition(); + _elem762.read(iprot); + struct.success.add(_elem762); } iprot.readListEnd(); } @@ -76008,9 +69686,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names 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 { @@ -76026,22 +69713,27 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_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 _iter747 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter763 : struct.success) { - oprot.writeString(_iter747); + _iter763.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); @@ -76053,58 +69745,70 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name } - private static class get_partition_names_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_names_resultTupleScheme getScheme() { - return new get_partition_names_resultTupleScheme(); + private static class get_partitions_ps_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_resultTupleScheme getScheme() { + return new get_partitions_ps_resultTupleScheme(); } } - private static class get_partition_names_resultTupleScheme extends TupleScheme { + private static class get_partitions_ps_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_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 _iter748 : struct.success) + for (Partition _iter764 : struct.success) { - oprot.writeString(_iter748); + _iter764.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_partition_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_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 _list749 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list749.size); - String _elem750; - for (int _i751 = 0; _i751 < _list749.size; ++_i751) + org.apache.thrift.protocol.TList _list765 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list765.size); + for (int _i766 = 0; _i766 < _list765.size; ++_i766) { - _elem750 = iprot.readString(); - struct.success.add(_elem750); + Partition _elem767; // required + _elem767 = new Partition(); + _elem767.read(iprot); + struct.success.add(_elem767); } } 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); } @@ -76113,31 +69817,37 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } - public static class get_partitions_ps_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_partitions_ps_args"); + public static class get_partitions_ps_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_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 PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private List part_vals; // required private short max_parts; // required + private String user_name; // required + private List group_names; // 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"), PART_VALS((short)3, "part_vals"), - MAX_PARTS((short)4, "max_parts"); + MAX_PARTS((short)4, "max_parts"), + USER_NAME((short)5, "user_name"), + GROUP_NAMES((short)6, "group_names"); private static final Map byName = new HashMap(); @@ -76160,6 +69870,10 @@ public static _Fields findByThriftId(int fieldId) { return PART_VALS; case 4: // MAX_PARTS return MAX_PARTS; + case 5: // USER_NAME + return USER_NAME; + case 6: // GROUP_NAMES + return GROUP_NAMES; default: return null; } @@ -76214,20 +69928,27 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", 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)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_args.class, metaDataMap); } - public get_partitions_ps_args() { + public get_partitions_ps_with_auth_args() { this.max_parts = (short)-1; } - public get_partitions_ps_args( + public get_partitions_ps_with_auth_args( String db_name, String tbl_name, List part_vals, - short max_parts) + short max_parts, + String user_name, + List group_names) { this(); this.db_name = db_name; @@ -76235,12 +69956,14 @@ public get_partitions_ps_args( this.part_vals = part_vals; this.max_parts = max_parts; setMax_partsIsSet(true); + this.user_name = user_name; + this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partitions_ps_args(get_partitions_ps_args other) { + public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -76249,14 +69972,27 @@ public get_partitions_ps_args(get_partitions_ps_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } this.max_parts = other.max_parts; + if (other.isSetUser_name()) { + this.user_name = other.user_name; + } + if (other.isSetGroup_names()) { + List __this__group_names = new ArrayList(); + for (String other_element : other.group_names) { + __this__group_names.add(other_element); + } + this.group_names = __this__group_names; + } } - public get_partitions_ps_args deepCopy() { - return new get_partitions_ps_args(this); + public get_partitions_ps_with_auth_args deepCopy() { + return new get_partitions_ps_with_auth_args(this); } @Override @@ -76266,6 +70002,8 @@ public void clear() { this.part_vals = null; this.max_parts = (short)-1; + this.user_name = null; + this.group_names = null; } public String getDb_name() { @@ -76374,6 +70112,67 @@ public void setMax_partsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } + public String getUser_name() { + return this.user_name; + } + + public void setUser_name(String user_name) { + this.user_name = user_name; + } + + public void unsetUser_name() { + this.user_name = null; + } + + /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ + public boolean isSetUser_name() { + return this.user_name != null; + } + + public void setUser_nameIsSet(boolean value) { + if (!value) { + this.user_name = null; + } + } + + public int getGroup_namesSize() { + return (this.group_names == null) ? 0 : this.group_names.size(); + } + + public java.util.Iterator getGroup_namesIterator() { + return (this.group_names == null) ? null : this.group_names.iterator(); + } + + public void addToGroup_names(String elem) { + if (this.group_names == null) { + this.group_names = new ArrayList(); + } + this.group_names.add(elem); + } + + public List getGroup_names() { + return this.group_names; + } + + public void setGroup_names(List group_names) { + this.group_names = group_names; + } + + public void unsetGroup_names() { + this.group_names = null; + } + + /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ + public boolean isSetGroup_names() { + return this.group_names != null; + } + + public void setGroup_namesIsSet(boolean value) { + if (!value) { + this.group_names = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -76408,6 +70207,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case USER_NAME: + if (value == null) { + unsetUser_name(); + } else { + setUser_name((String)value); + } + break; + + case GROUP_NAMES: + if (value == null) { + unsetGroup_names(); + } else { + setGroup_names((List)value); + } + break; + } } @@ -76425,6 +70240,12 @@ public Object getFieldValue(_Fields field) { case MAX_PARTS: return Short.valueOf(getMax_parts()); + case USER_NAME: + return getUser_name(); + + case GROUP_NAMES: + return getGroup_names(); + } throw new IllegalStateException(); } @@ -76444,6 +70265,10 @@ public boolean isSet(_Fields field) { return isSetPart_vals(); case MAX_PARTS: return isSetMax_parts(); + case USER_NAME: + return isSetUser_name(); + case GROUP_NAMES: + return isSetGroup_names(); } throw new IllegalStateException(); } @@ -76452,12 +70277,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_args) - return this.equals((get_partitions_ps_args)that); + if (that instanceof get_partitions_ps_with_auth_args) + return this.equals((get_partitions_ps_with_auth_args)that); return false; } - public boolean equals(get_partitions_ps_args that) { + public boolean equals(get_partitions_ps_with_auth_args that) { if (that == null) return false; @@ -76497,80 +70322,128 @@ public boolean equals(get_partitions_ps_args that) { return false; } + boolean this_present_user_name = true && this.isSetUser_name(); + boolean that_present_user_name = true && that.isSetUser_name(); + if (this_present_user_name || that_present_user_name) { + if (!(this_present_user_name && that_present_user_name)) + return false; + if (!this.user_name.equals(that.user_name)) + return false; + } + + boolean this_present_group_names = true && this.isSetGroup_names(); + boolean that_present_group_names = true && that.isSetGroup_names(); + if (this_present_group_names || that_present_group_names) { + if (!(this_present_group_names && that_present_group_names)) + return false; + if (!this.group_names.equals(that.group_names)) + return false; + } + return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); + + boolean present_user_name = true && (isSetUser_name()); + builder.append(present_user_name); + if (present_user_name) + builder.append(user_name); - return list.hashCode(); + boolean present_group_names = true && (isSetGroup_names()); + builder.append(present_group_names); + if (present_group_names) + builder.append(group_names); + + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_ps_args other) { + public int compareTo(get_partitions_ps_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_ps_with_auth_args typedOther = (get_partitions_ps_with_auth_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(typedOther.isSetUser_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(typedOther.isSetGroup_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGroup_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -76592,7 +70465,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_args("); + StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_args("); boolean first = true; sb.append("db_name:"); @@ -76622,6 +70495,22 @@ public String toString() { sb.append("max_parts:"); sb.append(this.max_parts); first = false; + if (!first) sb.append(", "); + sb.append("user_name:"); + if (this.user_name == null) { + sb.append("null"); + } else { + sb.append(this.user_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("group_names:"); + if (this.group_names == null) { + sb.append("null"); + } else { + sb.append(this.group_names); + } + first = false; sb.append(")"); return sb.toString(); } @@ -76649,15 +70538,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_argsStandardScheme getScheme() { - return new get_partitions_ps_argsStandardScheme(); + private static class get_partitions_ps_with_auth_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_argsStandardScheme getScheme() { + return new get_partitions_ps_with_auth_argsStandardScheme(); } } - private static class get_partitions_ps_argsStandardScheme extends StandardScheme { + private static class get_partitions_ps_with_auth_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -76686,13 +70575,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list752 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list752.size); - String _elem753; - for (int _i754 = 0; _i754 < _list752.size; ++_i754) + org.apache.thrift.protocol.TList _list768 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list768.size); + for (int _i769 = 0; _i769 < _list768.size; ++_i769) { - _elem753 = iprot.readString(); - struct.part_vals.add(_elem753); + String _elem770; // required + _elem770 = iprot.readString(); + struct.part_vals.add(_elem770); } iprot.readListEnd(); } @@ -76709,6 +70598,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // GROUP_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list771 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list771.size); + for (int _i772 = 0; _i772 < _list771.size; ++_i772) + { + String _elem773; // required + _elem773 = iprot.readString(); + struct.group_names.add(_elem773); + } + iprot.readListEnd(); + } + struct.setGroup_namesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -76718,7 +70633,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -76736,9 +70651,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter755 : struct.part_vals) + for (String _iter774 : struct.part_vals) { - oprot.writeString(_iter755); + oprot.writeString(_iter774); } oprot.writeListEnd(); } @@ -76747,22 +70662,39 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); + if (struct.user_name != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.user_name); + oprot.writeFieldEnd(); + } + if (struct.group_names != null) { + 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 _iter775 : struct.group_names) + { + oprot.writeString(_iter775); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_ps_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_argsTupleScheme getScheme() { - return new get_partitions_ps_argsTupleScheme(); + private static class get_partitions_ps_with_auth_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_argsTupleScheme getScheme() { + return new get_partitions_ps_with_auth_argsTupleScheme(); } } - private static class get_partitions_ps_argsTupleScheme extends TupleScheme { + private static class get_partitions_ps_with_auth_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -76777,7 +70709,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_a if (struct.isSetMax_parts()) { optionals.set(3); } - oprot.writeBitSet(optionals, 4); + if (struct.isSetUser_name()) { + optionals.set(4); + } + if (struct.isSetGroup_names()) { + optionals.set(5); + } + oprot.writeBitSet(optionals, 6); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -76787,21 +70725,33 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_a if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter756 : struct.part_vals) + for (String _iter776 : struct.part_vals) { - oprot.writeString(_iter756); + oprot.writeString(_iter776); } } } if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); } + if (struct.isSetUser_name()) { + oprot.writeString(struct.user_name); + } + if (struct.isSetGroup_names()) { + { + oprot.writeI32(struct.group_names.size()); + for (String _iter777 : struct.group_names) + { + oprot.writeString(_iter777); + } + } + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(6); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -76812,13 +70762,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list757 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list757.size); - String _elem758; - for (int _i759 = 0; _i759 < _list757.size; ++_i759) + org.apache.thrift.protocol.TList _list778 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list778.size); + for (int _i779 = 0; _i779 < _list778.size; ++_i779) { - _elem758 = iprot.readString(); - struct.part_vals.add(_elem758); + String _elem780; // required + _elem780 = iprot.readString(); + struct.part_vals.add(_elem780); } } struct.setPart_valsIsSet(true); @@ -76827,13 +70777,30 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } + if (incoming.get(4)) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } + if (incoming.get(5)) { + { + org.apache.thrift.protocol.TList _list781 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list781.size); + for (int _i782 = 0; _i782 < _list781.size; ++_i782) + { + String _elem783; // required + _elem783 = iprot.readString(); + struct.group_names.add(_elem783); + } + } + struct.setGroup_namesIsSet(true); + } } } } - public static class get_partitions_ps_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_partitions_ps_result"); + public static class get_partitions_ps_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_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); @@ -76841,13 +70808,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_resultTupleSchemeFactory()); } private List success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // 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 { @@ -76925,16 +70892,16 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_result.class, metaDataMap); } - public get_partitions_ps_result() { + public get_partitions_ps_with_auth_result() { } - public get_partitions_ps_result( + public get_partitions_ps_with_auth_result( List success, - MetaException o1, - NoSuchObjectException o2) + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; @@ -76945,24 +70912,24 @@ public get_partitions_ps_result( /** * Performs a deep copy on other. */ - public get_partitions_ps_result(get_partitions_ps_result other) { + public get_partitions_ps_with_auth_result(get_partitions_ps_with_auth_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Partition other_element : other.success) { __this__success.add(new Partition(other_element)); } this.success = __this__success; } if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public get_partitions_ps_result deepCopy() { - return new get_partitions_ps_result(this); + public get_partitions_ps_with_auth_result deepCopy() { + return new get_partitions_ps_with_auth_result(this); } @Override @@ -77010,11 +70977,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -77033,11 +71000,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -77070,7 +71037,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((NoSuchObjectException)value); } break; @@ -77078,7 +71045,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -77121,12 +71088,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_result) - return this.equals((get_partitions_ps_result)that); + if (that instanceof get_partitions_ps_with_auth_result) + return this.equals((get_partitions_ps_with_auth_result)that); return false; } - public boolean equals(get_partitions_ps_result that) { + public boolean equals(get_partitions_ps_with_auth_result that) { if (that == null) return false; @@ -77162,60 +71129,60 @@ public boolean equals(get_partitions_ps_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_ps_result other) { + public int compareTo(get_partitions_ps_with_auth_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_ps_with_auth_result typedOther = (get_partitions_ps_with_auth_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -77237,7 +71204,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_result("); + StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_result("); boolean first = true; sb.append("success:"); @@ -77288,15 +71255,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_resultStandardScheme getScheme() { - return new get_partitions_ps_resultStandardScheme(); + private static class get_partitions_ps_with_auth_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_resultStandardScheme getScheme() { + return new get_partitions_ps_with_auth_resultStandardScheme(); } } - private static class get_partitions_ps_resultStandardScheme extends StandardScheme { + private static class get_partitions_ps_with_auth_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -77309,14 +71276,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list760 = iprot.readListBegin(); - struct.success = new ArrayList(_list760.size); - Partition _elem761; - for (int _i762 = 0; _i762 < _list760.size; ++_i762) + org.apache.thrift.protocol.TList _list784 = iprot.readListBegin(); + struct.success = new ArrayList(_list784.size); + for (int _i785 = 0; _i785 < _list784.size; ++_i785) { - _elem761 = new Partition(); - _elem761.read(iprot); - struct.success.add(_elem761); + Partition _elem786; // required + _elem786 = new Partition(); + _elem786.read(iprot); + struct.success.add(_elem786); } iprot.readListEnd(); } @@ -77327,7 +71294,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -77336,7 +71303,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r break; case 2: // 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 { @@ -77352,7 +71319,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -77360,9 +71327,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter763 : struct.success) + for (Partition _iter787 : struct.success) { - _iter763.write(oprot); + _iter787.write(oprot); } oprot.writeListEnd(); } @@ -77384,16 +71351,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ } - private static class get_partitions_ps_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_resultTupleScheme getScheme() { - return new get_partitions_ps_resultTupleScheme(); + private static class get_partitions_ps_with_auth_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_resultTupleScheme getScheme() { + return new get_partitions_ps_with_auth_resultTupleScheme(); } } - private static class get_partitions_ps_resultTupleScheme extends TupleScheme { + private static class get_partitions_ps_with_auth_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -77409,9 +71376,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter764 : struct.success) + for (Partition _iter788 : struct.success) { - _iter764.write(oprot); + _iter788.write(oprot); } } } @@ -77424,30 +71391,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_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 _list765 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list765.size); - Partition _elem766; - for (int _i767 = 0; _i767 < _list765.size; ++_i767) + org.apache.thrift.protocol.TList _list789 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list789.size); + for (int _i790 = 0; _i790 < _list789.size; ++_i790) { - _elem766 = new Partition(); - _elem766.read(iprot); - struct.success.add(_elem766); + Partition _elem791; // required + _elem791 = new Partition(); + _elem791.read(iprot); + struct.success.add(_elem791); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); 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); } @@ -77456,37 +71423,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re } - public static class get_partitions_ps_with_auth_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_partitions_ps_with_auth_args"); + public static class get_partition_names_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_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 PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); - private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_ps_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_ps_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private List part_vals; // required private short max_parts; // required - private String user_name; // required - private List group_names; // 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"), PART_VALS((short)3, "part_vals"), - MAX_PARTS((short)4, "max_parts"), - USER_NAME((short)5, "user_name"), - GROUP_NAMES((short)6, "group_names"); + MAX_PARTS((short)4, "max_parts"); private static final Map byName = new HashMap(); @@ -77509,10 +71470,6 @@ public static _Fields findByThriftId(int fieldId) { return PART_VALS; case 4: // MAX_PARTS return MAX_PARTS; - case 5: // USER_NAME - return USER_NAME; - case 6: // GROUP_NAMES - return GROUP_NAMES; default: return null; } @@ -77567,27 +71524,20 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); - tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", 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)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_args.class, metaDataMap); } - public get_partitions_ps_with_auth_args() { + public get_partition_names_ps_args() { this.max_parts = (short)-1; } - public get_partitions_ps_with_auth_args( + public get_partition_names_ps_args( String db_name, String tbl_name, List part_vals, - short max_parts, - String user_name, - List group_names) + short max_parts) { this(); this.db_name = db_name; @@ -77595,14 +71545,12 @@ public get_partitions_ps_with_auth_args( this.part_vals = part_vals; this.max_parts = max_parts; setMax_partsIsSet(true); - this.user_name = user_name; - this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) { + public get_partition_names_ps_args(get_partition_names_ps_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -77611,21 +71559,17 @@ public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } this.max_parts = other.max_parts; - if (other.isSetUser_name()) { - this.user_name = other.user_name; - } - if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); - this.group_names = __this__group_names; - } } - public get_partitions_ps_with_auth_args deepCopy() { - return new get_partitions_ps_with_auth_args(this); + public get_partition_names_ps_args deepCopy() { + return new get_partition_names_ps_args(this); } @Override @@ -77635,8 +71579,6 @@ public void clear() { this.part_vals = null; this.max_parts = (short)-1; - this.user_name = null; - this.group_names = null; } public String getDb_name() { @@ -77745,67 +71687,6 @@ public void setMax_partsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } - public String getUser_name() { - return this.user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public void unsetUser_name() { - this.user_name = null; - } - - /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ - public boolean isSetUser_name() { - return this.user_name != null; - } - - public void setUser_nameIsSet(boolean value) { - if (!value) { - this.user_name = null; - } - } - - public int getGroup_namesSize() { - return (this.group_names == null) ? 0 : this.group_names.size(); - } - - public java.util.Iterator getGroup_namesIterator() { - return (this.group_names == null) ? null : this.group_names.iterator(); - } - - public void addToGroup_names(String elem) { - if (this.group_names == null) { - this.group_names = new ArrayList(); - } - this.group_names.add(elem); - } - - public List getGroup_names() { - return this.group_names; - } - - public void setGroup_names(List group_names) { - this.group_names = group_names; - } - - public void unsetGroup_names() { - this.group_names = null; - } - - /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ - public boolean isSetGroup_names() { - return this.group_names != null; - } - - public void setGroup_namesIsSet(boolean value) { - if (!value) { - this.group_names = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -77840,22 +71721,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case USER_NAME: - if (value == null) { - unsetUser_name(); - } else { - setUser_name((String)value); - } - break; - - case GROUP_NAMES: - if (value == null) { - unsetGroup_names(); - } else { - setGroup_names((List)value); - } - break; - } } @@ -77873,12 +71738,6 @@ public Object getFieldValue(_Fields field) { case MAX_PARTS: return Short.valueOf(getMax_parts()); - case USER_NAME: - return getUser_name(); - - case GROUP_NAMES: - return getGroup_names(); - } throw new IllegalStateException(); } @@ -77898,10 +71757,6 @@ public boolean isSet(_Fields field) { return isSetPart_vals(); case MAX_PARTS: return isSetMax_parts(); - case USER_NAME: - return isSetUser_name(); - case GROUP_NAMES: - return isSetGroup_names(); } throw new IllegalStateException(); } @@ -77910,12 +71765,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_with_auth_args) - return this.equals((get_partitions_ps_with_auth_args)that); + if (that instanceof get_partition_names_ps_args) + return this.equals((get_partition_names_ps_args)that); return false; } - public boolean equals(get_partitions_ps_with_auth_args that) { + public boolean equals(get_partition_names_ps_args that) { if (that == null) return false; @@ -77955,128 +71810,80 @@ public boolean equals(get_partitions_ps_with_auth_args that) { return false; } - boolean this_present_user_name = true && this.isSetUser_name(); - boolean that_present_user_name = true && that.isSetUser_name(); - if (this_present_user_name || that_present_user_name) { - if (!(this_present_user_name && that_present_user_name)) - return false; - if (!this.user_name.equals(that.user_name)) - return false; - } - - boolean this_present_group_names = true && this.isSetGroup_names(); - boolean that_present_group_names = true && that.isSetGroup_names(); - if (this_present_group_names || that_present_group_names) { - if (!(this_present_group_names && that_present_group_names)) - return false; - if (!this.group_names.equals(that.group_names)) - return false; - } - return true; } @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); - - boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); - if (present_user_name) - list.add(user_name); + builder.append(max_parts); - boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); - if (present_group_names) - list.add(group_names); - - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_ps_with_auth_args other) { + public int compareTo(get_partition_names_ps_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_names_ps_args typedOther = (get_partition_names_ps_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -78098,7 +71905,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_args("); + StringBuilder sb = new StringBuilder("get_partition_names_ps_args("); boolean first = true; sb.append("db_name:"); @@ -78128,22 +71935,6 @@ public String toString() { sb.append("max_parts:"); sb.append(this.max_parts); first = false; - if (!first) sb.append(", "); - sb.append("user_name:"); - if (this.user_name == null) { - sb.append("null"); - } else { - sb.append(this.user_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("group_names:"); - if (this.group_names == null) { - sb.append("null"); - } else { - sb.append(this.group_names); - } - first = false; sb.append(")"); return sb.toString(); } @@ -78171,15 +71962,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_with_auth_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_argsStandardScheme getScheme() { - return new get_partitions_ps_with_auth_argsStandardScheme(); + private static class get_partition_names_ps_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_names_ps_argsStandardScheme getScheme() { + return new get_partition_names_ps_argsStandardScheme(); } } - private static class get_partitions_ps_with_auth_argsStandardScheme extends StandardScheme { + private static class get_partition_names_ps_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -78208,13 +71999,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list768 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list768.size); - String _elem769; - for (int _i770 = 0; _i770 < _list768.size; ++_i770) + org.apache.thrift.protocol.TList _list792 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list792.size); + for (int _i793 = 0; _i793 < _list792.size; ++_i793) { - _elem769 = iprot.readString(); - struct.part_vals.add(_elem769); + String _elem794; // required + _elem794 = iprot.readString(); + struct.part_vals.add(_elem794); } iprot.readListEnd(); } @@ -78231,32 +72022,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // USER_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // GROUP_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list771 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list771.size); - String _elem772; - for (int _i773 = 0; _i773 < _list771.size; ++_i773) - { - _elem772 = iprot.readString(); - struct.group_names.add(_elem772); - } - iprot.readListEnd(); - } - struct.setGroup_namesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -78266,7 +72031,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -78284,9 +72049,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter774 : struct.part_vals) + for (String _iter795 : struct.part_vals) { - oprot.writeString(_iter774); + oprot.writeString(_iter795); } oprot.writeListEnd(); } @@ -78295,39 +72060,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); - if (struct.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.user_name); - oprot.writeFieldEnd(); - } - if (struct.group_names != null) { - 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 _iter775 : struct.group_names) - { - oprot.writeString(_iter775); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_ps_with_auth_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_argsTupleScheme getScheme() { - return new get_partitions_ps_with_auth_argsTupleScheme(); + private static class get_partition_names_ps_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_names_ps_argsTupleScheme getScheme() { + return new get_partition_names_ps_argsTupleScheme(); } } - private static class get_partitions_ps_with_auth_argsTupleScheme extends TupleScheme { + private static class get_partition_names_ps_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -78342,13 +72090,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetMax_parts()) { optionals.set(3); } - if (struct.isSetUser_name()) { - optionals.set(4); - } - if (struct.isSetGroup_names()) { - optionals.set(5); - } - oprot.writeBitSet(optionals, 6); + oprot.writeBitSet(optionals, 4); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -78358,33 +72100,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter776 : struct.part_vals) + for (String _iter796 : struct.part_vals) { - oprot.writeString(_iter776); + oprot.writeString(_iter796); } } } if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); } - if (struct.isSetUser_name()) { - oprot.writeString(struct.user_name); - } - if (struct.isSetGroup_names()) { - { - oprot.writeI32(struct.group_names.size()); - for (String _iter777 : struct.group_names) - { - oprot.writeString(_iter777); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(6); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -78395,13 +72125,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list778 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list778.size); - String _elem779; - for (int _i780 = 0; _i780 < _list778.size; ++_i780) + org.apache.thrift.protocol.TList _list797 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list797.size); + for (int _i798 = 0; _i798 < _list797.size; ++_i798) { - _elem779 = iprot.readString(); - struct.part_vals.add(_elem779); + String _elem799; // required + _elem799 = iprot.readString(); + struct.part_vals.add(_elem799); } } struct.setPart_valsIsSet(true); @@ -78410,30 +72140,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } - if (incoming.get(4)) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } - if (incoming.get(5)) { - { - org.apache.thrift.protocol.TList _list781 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list781.size); - String _elem782; - for (int _i783 = 0; _i783 < _list781.size; ++_i783) - { - _elem782 = iprot.readString(); - struct.group_names.add(_elem782); - } - } - struct.setGroup_namesIsSet(true); - } } } } - public static class get_partitions_ps_with_auth_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_partitions_ps_with_auth_result"); + public static class get_partition_names_ps_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_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); @@ -78441,13 +72154,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_ps_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_ps_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 { @@ -78519,22 +72232,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, Partition.class)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_result.class, metaDataMap); } - public get_partitions_ps_with_auth_result() { + public get_partition_names_ps_result() { } - public get_partitions_ps_with_auth_result( - List success, - NoSuchObjectException o1, - MetaException o2) + public get_partition_names_ps_result( + List success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; @@ -78545,24 +72258,24 @@ public get_partitions_ps_with_auth_result( /** * Performs a deep copy on other. */ - public get_partitions_ps_with_auth_result(get_partitions_ps_with_auth_result other) { + public get_partition_names_ps_result(get_partition_names_ps_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(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_partitions_ps_with_auth_result deepCopy() { - return new get_partitions_ps_with_auth_result(this); + public get_partition_names_ps_result deepCopy() { + return new get_partition_names_ps_result(this); } @Override @@ -78576,22 +72289,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(Partition elem) { + public void addToSuccess(String 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; } @@ -78610,11 +72323,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; } @@ -78633,11 +72346,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; } @@ -78662,7 +72375,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -78670,7 +72383,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -78678,7 +72391,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -78721,12 +72434,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_with_auth_result) - return this.equals((get_partitions_ps_with_auth_result)that); + if (that instanceof get_partition_names_ps_result) + return this.equals((get_partition_names_ps_result)that); return false; } - public boolean equals(get_partitions_ps_with_auth_result that) { + public boolean equals(get_partition_names_ps_result that) { if (that == null) return false; @@ -78762,60 +72475,60 @@ public boolean equals(get_partitions_ps_with_auth_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_ps_with_auth_result other) { + public int compareTo(get_partition_names_ps_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_names_ps_result typedOther = (get_partition_names_ps_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -78837,7 +72550,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_result("); + StringBuilder sb = new StringBuilder("get_partition_names_ps_result("); boolean first = true; sb.append("success:"); @@ -78888,15 +72601,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_with_auth_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_resultStandardScheme getScheme() { - return new get_partitions_ps_with_auth_resultStandardScheme(); + private static class get_partition_names_ps_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_names_ps_resultStandardScheme getScheme() { + return new get_partition_names_ps_resultStandardScheme(); } } - private static class get_partitions_ps_with_auth_resultStandardScheme extends StandardScheme { + private static class get_partition_names_ps_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -78909,14 +72622,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list784 = iprot.readListBegin(); - struct.success = new ArrayList(_list784.size); - Partition _elem785; - for (int _i786 = 0; _i786 < _list784.size; ++_i786) + org.apache.thrift.protocol.TList _list800 = iprot.readListBegin(); + struct.success = new ArrayList(_list800.size); + for (int _i801 = 0; _i801 < _list800.size; ++_i801) { - _elem785 = new Partition(); - _elem785.read(iprot); - struct.success.add(_elem785); + String _elem802; // required + _elem802 = iprot.readString(); + struct.success.add(_elem802); } iprot.readListEnd(); } @@ -78927,7 +72639,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w 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 { @@ -78936,7 +72648,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w 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 { @@ -78952,17 +72664,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter787 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter803 : struct.success) { - _iter787.write(oprot); + oprot.writeString(_iter803); } oprot.writeListEnd(); } @@ -78984,16 +72696,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ } - private static class get_partitions_ps_with_auth_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_resultTupleScheme getScheme() { - return new get_partitions_ps_with_auth_resultTupleScheme(); + private static class get_partition_names_ps_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_names_ps_resultTupleScheme getScheme() { + return new get_partition_names_ps_resultTupleScheme(); } } - private static class get_partitions_ps_with_auth_resultTupleScheme extends TupleScheme { + private static class get_partition_names_ps_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -79009,9 +72721,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter788 : struct.success) + for (String _iter804 : struct.success) { - _iter788.write(oprot); + oprot.writeString(_iter804); } } } @@ -79024,30 +72736,29 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_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 _list789 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list789.size); - Partition _elem790; - for (int _i791 = 0; _i791 < _list789.size; ++_i791) + org.apache.thrift.protocol.TList _list805 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list805.size); + for (int _i806 = 0; _i806 < _list805.size; ++_i806) { - _elem790 = new Partition(); - _elem790.read(iprot); - struct.success.add(_elem790); + String _elem807; // required + _elem807 = iprot.readString(); + struct.success.add(_elem807); } } 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); } @@ -79056,30 +72767,30 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } - public static class get_partition_names_ps_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_partition_names_ps_args"); + public static class get_partitions_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_filter_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 PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)3); private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_names_ps_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_ps_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_by_filter_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_by_filter_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private List part_vals; // required + private String filter; // required private short max_parts; // 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"), - PART_VALS((short)3, "part_vals"), + FILTER((short)3, "filter"), MAX_PARTS((short)4, "max_parts"); private static final Map byName = new HashMap(); @@ -79099,8 +72810,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_VALS - return PART_VALS; + case 3: // FILTER + return FILTER; case 4: // MAX_PARTS return MAX_PARTS; default: @@ -79152,30 +72863,29 @@ 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.PART_VALS, new org.apache.thrift.meta_data.FieldMetaData("part_vals", 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)))); + tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", 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_partition_names_ps_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_filter_args.class, metaDataMap); } - public get_partition_names_ps_args() { + public get_partitions_by_filter_args() { this.max_parts = (short)-1; } - public get_partition_names_ps_args( + public get_partitions_by_filter_args( String db_name, String tbl_name, - List part_vals, + String filter, short max_parts) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_vals = part_vals; + this.filter = filter; this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -79183,7 +72893,7 @@ public get_partition_names_ps_args( /** * Performs a deep copy on other. */ - public get_partition_names_ps_args(get_partition_names_ps_args other) { + public get_partitions_by_filter_args(get_partitions_by_filter_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -79191,22 +72901,21 @@ public get_partition_names_ps_args(get_partition_names_ps_args other) { if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); - this.part_vals = __this__part_vals; + if (other.isSetFilter()) { + this.filter = other.filter; } this.max_parts = other.max_parts; } - public get_partition_names_ps_args deepCopy() { - return new get_partition_names_ps_args(this); + public get_partitions_by_filter_args deepCopy() { + return new get_partitions_by_filter_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_vals = null; + this.filter = null; this.max_parts = (short)-1; } @@ -79257,41 +72966,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); - } - - public List getPart_vals() { - return this.part_vals; + public String getFilter() { + return this.filter; } - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; + public void setFilter(String filter) { + this.filter = filter; } - public void unsetPart_vals() { - this.part_vals = null; + public void unsetFilter() { + this.filter = null; } - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; + /** Returns true if field filter is set (has been assigned a value) and false otherwise */ + public boolean isSetFilter() { + return this.filter != null; } - public void setPart_valsIsSet(boolean value) { + public void setFilterIsSet(boolean value) { if (!value) { - this.part_vals = null; + this.filter = null; } } @@ -79335,11 +73029,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_VALS: + case FILTER: if (value == null) { - unsetPart_vals(); + unsetFilter(); } else { - setPart_vals((List)value); + setFilter((String)value); } break; @@ -79362,8 +73056,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_VALS: - return getPart_vals(); + case FILTER: + return getFilter(); case MAX_PARTS: return Short.valueOf(getMax_parts()); @@ -79383,8 +73077,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); + case FILTER: + return isSetFilter(); case MAX_PARTS: return isSetMax_parts(); } @@ -79395,12 +73089,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_ps_args) - return this.equals((get_partition_names_ps_args)that); + if (that instanceof get_partitions_by_filter_args) + return this.equals((get_partitions_by_filter_args)that); return false; } - public boolean equals(get_partition_names_ps_args that) { + public boolean equals(get_partitions_by_filter_args that) { if (that == null) return false; @@ -79422,12 +73116,12 @@ public boolean equals(get_partition_names_ps_args that) { return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) + boolean this_present_filter = true && this.isSetFilter(); + boolean that_present_filter = true && that.isSetFilter(); + if (this_present_filter || that_present_filter) { + if (!(this_present_filter && that_present_filter)) return false; - if (!this.part_vals.equals(that.part_vals)) + if (!this.filter.equals(that.filter)) return false; } @@ -79445,75 +73139,75 @@ public boolean equals(get_partition_names_ps_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); + boolean present_filter = true && (isSetFilter()); + builder.append(present_filter); + if (present_filter) + builder.append(filter); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partition_names_ps_args other) { + public int compareTo(get_partitions_by_filter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_by_filter_args typedOther = (get_partitions_by_filter_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (isSetFilter()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, typedOther.filter); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -79535,7 +73229,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_ps_args("); + StringBuilder sb = new StringBuilder("get_partitions_by_filter_args("); boolean first = true; sb.append("db_name:"); @@ -79554,11 +73248,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { + sb.append("filter:"); + if (this.filter == null) { sb.append("null"); } else { - sb.append(this.part_vals); + sb.append(this.filter); } first = false; if (!first) sb.append(", "); @@ -79592,15 +73286,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_names_ps_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_names_ps_argsStandardScheme getScheme() { - return new get_partition_names_ps_argsStandardScheme(); + private static class get_partitions_by_filter_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_by_filter_argsStandardScheme getScheme() { + return new get_partitions_by_filter_argsStandardScheme(); } } - private static class get_partition_names_ps_argsStandardScheme extends StandardScheme { + private static class get_partitions_by_filter_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -79626,20 +73320,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list792 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list792.size); - String _elem793; - for (int _i794 = 0; _i794 < _list792.size; ++_i794) - { - _elem793 = iprot.readString(); - struct.part_vals.add(_elem793); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); + case 3: // FILTER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -79661,7 +73345,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -79675,16 +73359,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter795 : struct.part_vals) - { - oprot.writeString(_iter795); - } - oprot.writeListEnd(); - } + if (struct.filter != null) { + oprot.writeFieldBegin(FILTER_FIELD_DESC); + oprot.writeString(struct.filter); oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); @@ -79696,16 +73373,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name } - private static class get_partition_names_ps_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_names_ps_argsTupleScheme getScheme() { - return new get_partition_names_ps_argsTupleScheme(); + private static class get_partitions_by_filter_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_by_filter_argsTupleScheme getScheme() { + return new get_partitions_by_filter_argsTupleScheme(); } } - private static class get_partition_names_ps_argsTupleScheme extends TupleScheme { + private static class get_partitions_by_filter_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -79714,7 +73391,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetFilter()) { optionals.set(2); } if (struct.isSetMax_parts()) { @@ -79727,14 +73404,8 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter796 : struct.part_vals) - { - oprot.writeString(_iter796); - } - } + if (struct.isSetFilter()) { + oprot.writeString(struct.filter); } if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); @@ -79742,7 +73413,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -79754,17 +73425,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list797 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list797.size); - String _elem798; - for (int _i799 = 0; _i799 < _list797.size; ++_i799) - { - _elem798 = iprot.readString(); - struct.part_vals.add(_elem798); - } - } - struct.setPart_valsIsSet(true); + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); } if (incoming.get(3)) { struct.max_parts = iprot.readI16(); @@ -79775,8 +73437,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } - public static class get_partition_names_ps_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_partition_names_ps_result"); + public static class get_partitions_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_filter_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); @@ -79784,11 +73446,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_names_ps_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_ps_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_by_filter_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_by_filter_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -79862,20 +73524,20 @@ 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, Partition.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_partition_names_ps_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_filter_result.class, metaDataMap); } - public get_partition_names_ps_result() { + public get_partitions_by_filter_result() { } - public get_partition_names_ps_result( - List success, + public get_partitions_by_filter_result( + List success, MetaException o1, NoSuchObjectException o2) { @@ -79888,9 +73550,12 @@ public get_partition_names_ps_result( /** * Performs a deep copy on other. */ - public get_partition_names_ps_result(get_partition_names_ps_result other) { + public get_partitions_by_filter_result(get_partitions_by_filter_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } this.success = __this__success; } if (other.isSetO1()) { @@ -79901,8 +73566,8 @@ public get_partition_names_ps_result(get_partition_names_ps_result other) { } } - public get_partition_names_ps_result deepCopy() { - return new get_partition_names_ps_result(this); + public get_partitions_by_filter_result deepCopy() { + return new get_partitions_by_filter_result(this); } @Override @@ -79916,22 +73581,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(Partition 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; } @@ -80002,7 +73667,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -80061,12 +73726,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_ps_result) - return this.equals((get_partition_names_ps_result)that); + if (that instanceof get_partitions_by_filter_result) + return this.equals((get_partitions_by_filter_result)that); return false; } - public boolean equals(get_partition_names_ps_result that) { + public boolean equals(get_partitions_by_filter_result that) { if (that == null) return false; @@ -80102,60 +73767,60 @@ public boolean equals(get_partition_names_ps_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partition_names_ps_result other) { + public int compareTo(get_partitions_by_filter_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_by_filter_result typedOther = (get_partitions_by_filter_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -80177,7 +73842,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_ps_result("); + StringBuilder sb = new StringBuilder("get_partitions_by_filter_result("); boolean first = true; sb.append("success:"); @@ -80228,15 +73893,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_names_ps_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_names_ps_resultStandardScheme getScheme() { - return new get_partition_names_ps_resultStandardScheme(); + private static class get_partitions_by_filter_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_by_filter_resultStandardScheme getScheme() { + return new get_partitions_by_filter_resultStandardScheme(); } } - private static class get_partition_names_ps_resultStandardScheme extends StandardScheme { + private static class get_partitions_by_filter_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -80249,13 +73914,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list800 = iprot.readListBegin(); - struct.success = new ArrayList(_list800.size); - String _elem801; - for (int _i802 = 0; _i802 < _list800.size; ++_i802) + org.apache.thrift.protocol.TList _list808 = iprot.readListBegin(); + struct.success = new ArrayList(_list808.size); + for (int _i809 = 0; _i809 < _list808.size; ++_i809) { - _elem801 = iprot.readString(); - struct.success.add(_elem801); + Partition _elem810; // required + _elem810 = new Partition(); + _elem810.read(iprot); + struct.success.add(_elem810); } iprot.readListEnd(); } @@ -80291,17 +73957,17 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_filter_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 _iter803 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter811 : struct.success) { - oprot.writeString(_iter803); + _iter811.write(oprot); } oprot.writeListEnd(); } @@ -80323,16 +73989,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name } - private static class get_partition_names_ps_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_names_ps_resultTupleScheme getScheme() { - return new get_partition_names_ps_resultTupleScheme(); + private static class get_partitions_by_filter_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_by_filter_resultTupleScheme getScheme() { + return new get_partitions_by_filter_resultTupleScheme(); } } - private static class get_partition_names_ps_resultTupleScheme extends TupleScheme { + private static class get_partitions_by_filter_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -80348,9 +74014,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter804 : struct.success) + for (Partition _iter812 : struct.success) { - oprot.writeString(_iter804); + _iter812.write(oprot); } } } @@ -80363,18 +74029,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ps_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_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 _list805 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list805.size); - String _elem806; - for (int _i807 = 0; _i807 < _list805.size; ++_i807) + org.apache.thrift.protocol.TList _list813 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list813.size); + for (int _i814 = 0; _i814 < _list813.size; ++_i814) { - _elem806 = iprot.readString(); - struct.success.add(_elem806); + Partition _elem815; // required + _elem815 = new Partition(); + _elem815.read(iprot); + struct.success.add(_elem815); } } struct.setSuccessIsSet(true); @@ -80394,24 +74061,24 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } - public static class get_partitions_by_filter_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_partitions_by_filter_args"); + public static class get_part_specs_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_part_specs_by_filter_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 FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I32, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_by_filter_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_by_filter_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_part_specs_by_filter_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_part_specs_by_filter_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private String filter; // required - private short max_parts; // required + private int max_parts; // 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 { @@ -80493,21 +74160,21 @@ public String getFieldName() { tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_filter_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_part_specs_by_filter_args.class, metaDataMap); } - public get_partitions_by_filter_args() { - this.max_parts = (short)-1; + public get_part_specs_by_filter_args() { + this.max_parts = -1; } - public get_partitions_by_filter_args( + public get_part_specs_by_filter_args( String db_name, String tbl_name, String filter, - short max_parts) + int max_parts) { this(); this.db_name = db_name; @@ -80520,7 +74187,7 @@ public get_partitions_by_filter_args( /** * Performs a deep copy on other. */ - public get_partitions_by_filter_args(get_partitions_by_filter_args other) { + public get_part_specs_by_filter_args(get_part_specs_by_filter_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -80534,8 +74201,8 @@ public get_partitions_by_filter_args(get_partitions_by_filter_args other) { this.max_parts = other.max_parts; } - public get_partitions_by_filter_args deepCopy() { - return new get_partitions_by_filter_args(this); + public get_part_specs_by_filter_args deepCopy() { + return new get_part_specs_by_filter_args(this); } @Override @@ -80543,7 +74210,7 @@ public void clear() { this.db_name = null; this.tbl_name = null; this.filter = null; - this.max_parts = (short)-1; + this.max_parts = -1; } @@ -80616,11 +74283,11 @@ public void setFilterIsSet(boolean value) { } } - public short getMax_parts() { + public int getMax_parts() { return this.max_parts; } - public void setMax_parts(short max_parts) { + public void setMax_parts(int max_parts) { this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -80668,7 +74335,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetMax_parts(); } else { - setMax_parts((Short)value); + setMax_parts((Integer)value); } break; @@ -80687,7 +74354,7 @@ public Object getFieldValue(_Fields field) { return getFilter(); case MAX_PARTS: - return Short.valueOf(getMax_parts()); + return Integer.valueOf(getMax_parts()); } throw new IllegalStateException(); @@ -80716,12 +74383,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_by_filter_args) - return this.equals((get_partitions_by_filter_args)that); + if (that instanceof get_part_specs_by_filter_args) + return this.equals((get_part_specs_by_filter_args)that); return false; } - public boolean equals(get_partitions_by_filter_args that) { + public boolean equals(get_part_specs_by_filter_args that) { if (that == null) return false; @@ -80766,75 +74433,75 @@ public boolean equals(get_partitions_by_filter_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_filter = true && (isSetFilter()); - list.add(present_filter); + builder.append(present_filter); if (present_filter) - list.add(filter); + builder.append(filter); boolean present_max_parts = true; - list.add(present_max_parts); + builder.append(present_max_parts); if (present_max_parts) - list.add(max_parts); + builder.append(max_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_by_filter_args other) { + public int compareTo(get_part_specs_by_filter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_part_specs_by_filter_args typedOther = (get_part_specs_by_filter_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); + lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter()); if (lastComparison != 0) { return lastComparison; } if (isSetFilter()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, typedOther.filter); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -80856,7 +74523,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_by_filter_args("); + StringBuilder sb = new StringBuilder("get_part_specs_by_filter_args("); boolean first = true; sb.append("db_name:"); @@ -80913,15 +74580,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_by_filter_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_by_filter_argsStandardScheme getScheme() { - return new get_partitions_by_filter_argsStandardScheme(); + private static class get_part_specs_by_filter_argsStandardSchemeFactory implements SchemeFactory { + public get_part_specs_by_filter_argsStandardScheme getScheme() { + return new get_part_specs_by_filter_argsStandardScheme(); } } - private static class get_partitions_by_filter_argsStandardScheme extends StandardScheme { + private static class get_part_specs_by_filter_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -80956,8 +74623,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f } break; case 4: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_parts = iprot.readI16(); + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.max_parts = iprot.readI32(); struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -80972,7 +74639,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -80992,7 +74659,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI16(struct.max_parts); + oprot.writeI32(struct.max_parts); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); @@ -81000,16 +74667,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ } - private static class get_partitions_by_filter_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_by_filter_argsTupleScheme getScheme() { - return new get_partitions_by_filter_argsTupleScheme(); + private static class get_part_specs_by_filter_argsTupleSchemeFactory implements SchemeFactory { + public get_part_specs_by_filter_argsTupleScheme getScheme() { + return new get_part_specs_by_filter_argsTupleScheme(); } } - private static class get_partitions_by_filter_argsTupleScheme extends TupleScheme { + private static class get_part_specs_by_filter_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -81035,12 +74702,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f oprot.writeString(struct.filter); } if (struct.isSetMax_parts()) { - oprot.writeI16(struct.max_parts); + oprot.writeI32(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -81056,7 +74723,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi struct.setFilterIsSet(true); } if (incoming.get(3)) { - struct.max_parts = iprot.readI16(); + struct.max_parts = iprot.readI32(); struct.setMax_partsIsSet(true); } } @@ -81064,8 +74731,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi } - public static class get_partitions_by_filter_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_partitions_by_filter_result"); + public static class get_part_specs_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_part_specs_by_filter_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); @@ -81073,11 +74740,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_by_filter_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_by_filter_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_part_specs_by_filter_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_part_specs_by_filter_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -81151,20 +74818,20 @@ 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, Partition.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionSpec.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_filter_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_part_specs_by_filter_result.class, metaDataMap); } - public get_partitions_by_filter_result() { + public get_part_specs_by_filter_result() { } - public get_partitions_by_filter_result( - List success, + public get_part_specs_by_filter_result( + List success, MetaException o1, NoSuchObjectException o2) { @@ -81177,11 +74844,11 @@ public get_partitions_by_filter_result( /** * Performs a deep copy on other. */ - public get_partitions_by_filter_result(get_partitions_by_filter_result other) { + public get_part_specs_by_filter_result(get_part_specs_by_filter_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); + List __this__success = new ArrayList(); + for (PartitionSpec other_element : other.success) { + __this__success.add(new PartitionSpec(other_element)); } this.success = __this__success; } @@ -81193,8 +74860,8 @@ public get_partitions_by_filter_result(get_partitions_by_filter_result other) { } } - public get_partitions_by_filter_result deepCopy() { - return new get_partitions_by_filter_result(this); + public get_part_specs_by_filter_result deepCopy() { + return new get_part_specs_by_filter_result(this); } @Override @@ -81208,22 +74875,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(Partition elem) { + public void addToSuccess(PartitionSpec 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; } @@ -81294,7 +74961,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -81353,12 +75020,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_by_filter_result) - return this.equals((get_partitions_by_filter_result)that); + if (that instanceof get_part_specs_by_filter_result) + return this.equals((get_part_specs_by_filter_result)that); return false; } - public boolean equals(get_partitions_by_filter_result that) { + public boolean equals(get_part_specs_by_filter_result that) { if (that == null) return false; @@ -81394,60 +75061,60 @@ public boolean equals(get_partitions_by_filter_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_by_filter_result other) { + public int compareTo(get_part_specs_by_filter_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_part_specs_by_filter_result typedOther = (get_part_specs_by_filter_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -81469,7 +75136,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_by_filter_result("); + StringBuilder sb = new StringBuilder("get_part_specs_by_filter_result("); boolean first = true; sb.append("success:"); @@ -81520,15 +75187,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_by_filter_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_by_filter_resultStandardScheme getScheme() { - return new get_partitions_by_filter_resultStandardScheme(); + private static class get_part_specs_by_filter_resultStandardSchemeFactory implements SchemeFactory { + public get_part_specs_by_filter_resultStandardScheme getScheme() { + return new get_part_specs_by_filter_resultStandardScheme(); } } - private static class get_partitions_by_filter_resultStandardScheme extends StandardScheme { + private static class get_part_specs_by_filter_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -81541,14 +75208,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list808 = iprot.readListBegin(); - struct.success = new ArrayList(_list808.size); - Partition _elem809; - for (int _i810 = 0; _i810 < _list808.size; ++_i810) + org.apache.thrift.protocol.TList _list816 = iprot.readListBegin(); + struct.success = new ArrayList(_list816.size); + for (int _i817 = 0; _i817 < _list816.size; ++_i817) { - _elem809 = new Partition(); - _elem809.read(iprot); - struct.success.add(_elem809); + PartitionSpec _elem818; // required + _elem818 = new PartitionSpec(); + _elem818.read(iprot); + struct.success.add(_elem818); } iprot.readListEnd(); } @@ -81584,7 +75251,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -81592,9 +75259,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter811 : struct.success) + for (PartitionSpec _iter819 : struct.success) { - _iter811.write(oprot); + _iter819.write(oprot); } oprot.writeListEnd(); } @@ -81616,16 +75283,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ } - private static class get_partitions_by_filter_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_by_filter_resultTupleScheme getScheme() { - return new get_partitions_by_filter_resultTupleScheme(); + private static class get_part_specs_by_filter_resultTupleSchemeFactory implements SchemeFactory { + public get_part_specs_by_filter_resultTupleScheme getScheme() { + return new get_part_specs_by_filter_resultTupleScheme(); } } - private static class get_partitions_by_filter_resultTupleScheme extends TupleScheme { + private static class get_part_specs_by_filter_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -81641,9 +75308,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter812 : struct.success) + for (PartitionSpec _iter820 : struct.success) { - _iter812.write(oprot); + _iter820.write(oprot); } } } @@ -81656,19 +75323,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_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 _list813 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list813.size); - Partition _elem814; - for (int _i815 = 0; _i815 < _list813.size; ++_i815) + org.apache.thrift.protocol.TList _list821 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list821.size); + for (int _i822 = 0; _i822 < _list821.size; ++_i822) { - _elem814 = new Partition(); - _elem814.read(iprot); - struct.success.add(_elem814); + PartitionSpec _elem823; // required + _elem823 = new PartitionSpec(); + _elem823.read(iprot); + struct.success.add(_elem823); } } struct.setSuccessIsSet(true); @@ -81688,31 +75355,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi } - public static class get_part_specs_by_filter_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_part_specs_by_filter_args"); + public static class get_partitions_by_expr_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_expr_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 FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_part_specs_by_filter_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_part_specs_by_filter_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_by_expr_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_by_expr_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private String filter; // required - private int max_parts; // required + private PartitionsByExprRequest req; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - FILTER((short)3, "filter"), - MAX_PARTS((short)4, "max_parts"); + REQ((short)1, "req"); private static final Map byName = new HashMap(); @@ -81727,14 +75385,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // FILTER - return FILTER; - case 4: // MAX_PARTS - return MAX_PARTS; + case 1: // REQ + return REQ; default: return null; } @@ -81775,194 +75427,73 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_PARTS_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.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionsByExprRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_part_specs_by_filter_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_expr_args.class, metaDataMap); } - public get_part_specs_by_filter_args() { - this.max_parts = -1; - + public get_partitions_by_expr_args() { } - public get_part_specs_by_filter_args( - String db_name, - String tbl_name, - String filter, - int max_parts) + public get_partitions_by_expr_args( + PartitionsByExprRequest req) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.filter = filter; - this.max_parts = max_parts; - setMax_partsIsSet(true); + this.req = req; } /** * Performs a deep copy on other. */ - public get_part_specs_by_filter_args(get_part_specs_by_filter_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.isSetFilter()) { - this.filter = other.filter; + public get_partitions_by_expr_args(get_partitions_by_expr_args other) { + if (other.isSetReq()) { + this.req = new PartitionsByExprRequest(other.req); } - this.max_parts = other.max_parts; } - public get_part_specs_by_filter_args deepCopy() { - return new get_part_specs_by_filter_args(this); + public get_partitions_by_expr_args deepCopy() { + return new get_partitions_by_expr_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.filter = null; - this.max_parts = -1; - - } - - 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; - } + this.req = null; } - public String getFilter() { - return this.filter; + public PartitionsByExprRequest getReq() { + return this.req; } - public void setFilter(String filter) { - this.filter = filter; + public void setReq(PartitionsByExprRequest req) { + this.req = req; } - public void unsetFilter() { - this.filter = null; + public void unsetReq() { + this.req = null; } - /** Returns true if field filter is set (has been assigned a value) and false otherwise */ - public boolean isSetFilter() { - return this.filter != null; + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; } - public void setFilterIsSet(boolean value) { + public void setReqIsSet(boolean value) { if (!value) { - this.filter = null; + this.req = null; } } - public int getMax_parts() { - return this.max_parts; - } - - public void setMax_parts(int max_parts) { - this.max_parts = max_parts; - setMax_partsIsSet(true); - } - - public void unsetMax_parts() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); - } - - /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_parts() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); - } - - public void setMax_partsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_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 FILTER: - if (value == null) { - unsetFilter(); - } else { - setFilter((String)value); - } - break; - - case MAX_PARTS: + case REQ: if (value == null) { - unsetMax_parts(); + unsetReq(); } else { - setMax_parts((Integer)value); + setReq((PartitionsByExprRequest)value); } break; @@ -81971,17 +75502,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case FILTER: - return getFilter(); - - case MAX_PARTS: - return Integer.valueOf(getMax_parts()); + case REQ: + return getReq(); } throw new IllegalStateException(); @@ -81994,14 +75516,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case FILTER: - return isSetFilter(); - case MAX_PARTS: - return isSetMax_parts(); + case REQ: + return isSetReq(); } throw new IllegalStateException(); } @@ -82010,48 +75526,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_part_specs_by_filter_args) - return this.equals((get_part_specs_by_filter_args)that); + if (that instanceof get_partitions_by_expr_args) + return this.equals((get_partitions_by_expr_args)that); return false; } - public boolean equals(get_part_specs_by_filter_args that) { + public boolean equals(get_partitions_by_expr_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_filter = true && this.isSetFilter(); - boolean that_present_filter = true && that.isSetFilter(); - if (this_present_filter || that_present_filter) { - if (!(this_present_filter && that_present_filter)) - return false; - if (!this.filter.equals(that.filter)) - return false; - } - - boolean this_present_max_parts = true; - boolean that_present_max_parts = true; - if (this_present_max_parts || that_present_max_parts) { - if (!(this_present_max_parts && that_present_max_parts)) + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) return false; - if (this.max_parts != that.max_parts) + if (!this.req.equals(that.req)) return false; } @@ -82060,75 +75549,30 @@ public boolean equals(get_part_specs_by_filter_args that) { @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_filter = true && (isSetFilter()); - list.add(present_filter); - if (present_filter) - list.add(filter); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_max_parts = true; - list.add(present_max_parts); - if (present_max_parts) - list.add(max_parts); + boolean present_req = true && (isSetReq()); + builder.append(present_req); + if (present_req) + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_part_specs_by_filter_args other) { + public int compareTo(get_partitions_by_expr_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_by_expr_args typedOther = (get_partitions_by_expr_args)other; - 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()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); 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(isSetFilter()).compareTo(other.isSetFilter()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetFilter()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -82150,36 +75594,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_part_specs_by_filter_args("); + StringBuilder sb = new StringBuilder("get_partitions_by_expr_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("filter:"); - if (this.filter == null) { + sb.append("req:"); + if (this.req == null) { sb.append("null"); } else { - sb.append(this.filter); + sb.append(this.req); } first = false; - if (!first) sb.append(", "); - sb.append("max_parts:"); - sb.append(this.max_parts); - first = false; sb.append(")"); return sb.toString(); } @@ -82187,6 +75611,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (req != null) { + req.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -82199,23 +75626,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_part_specs_by_filter_argsStandardSchemeFactory implements SchemeFactory { - public get_part_specs_by_filter_argsStandardScheme getScheme() { - return new get_part_specs_by_filter_argsStandardScheme(); + private static class get_partitions_by_expr_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_by_expr_argsStandardScheme getScheme() { + return new get_partitions_by_expr_argsStandardScheme(); } } - private static class get_part_specs_by_filter_argsStandardScheme extends StandardScheme { + private static class get_partitions_by_expr_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -82225,34 +75650,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f 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: // FILTER - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.filter = iprot.readString(); - struct.setFilterIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.max_parts = iprot.readI32(); - struct.setMax_partsIsSet(true); + case 1: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new PartitionsByExprRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -82266,112 +75668,70 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_expr_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.filter != null) { - oprot.writeFieldBegin(FILTER_FIELD_DESC); - oprot.writeString(struct.filter); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI32(struct.max_parts); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_part_specs_by_filter_argsTupleSchemeFactory implements SchemeFactory { - public get_part_specs_by_filter_argsTupleScheme getScheme() { - return new get_part_specs_by_filter_argsTupleScheme(); + private static class get_partitions_by_expr_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_by_expr_argsTupleScheme getScheme() { + return new get_partitions_by_expr_argsTupleScheme(); } } - private static class get_part_specs_by_filter_argsTupleScheme extends TupleScheme { + private static class get_partitions_by_expr_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetReq()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetFilter()) { - optionals.set(2); - } - if (struct.isSetMax_parts()) { - 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.isSetFilter()) { - oprot.writeString(struct.filter); - } - if (struct.isSetMax_parts()) { - oprot.writeI32(struct.max_parts); + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(1); 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.filter = iprot.readString(); - struct.setFilterIsSet(true); - } - if (incoming.get(3)) { - struct.max_parts = iprot.readI32(); - struct.setMax_partsIsSet(true); + struct.req = new PartitionsByExprRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); } } } } - public static class get_part_specs_by_filter_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_part_specs_by_filter_result"); + public static class get_partitions_by_expr_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_expr_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final 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_part_specs_by_filter_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_part_specs_by_filter_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_by_expr_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_by_expr_resultTupleSchemeFactory()); } - private List success; // required + private PartitionsByExprResult success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -82444,21 +75804,20 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionSpec.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionsByExprResult.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_part_specs_by_filter_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_expr_result.class, metaDataMap); } - public get_part_specs_by_filter_result() { + public get_partitions_by_expr_result() { } - public get_part_specs_by_filter_result( - List success, + public get_partitions_by_expr_result( + PartitionsByExprResult success, MetaException o1, NoSuchObjectException o2) { @@ -82471,13 +75830,9 @@ public get_part_specs_by_filter_result( /** * Performs a deep copy on other. */ - public get_part_specs_by_filter_result(get_part_specs_by_filter_result other) { + public get_partitions_by_expr_result(get_partitions_by_expr_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (PartitionSpec other_element : other.success) { - __this__success.add(new PartitionSpec(other_element)); - } - this.success = __this__success; + this.success = new PartitionsByExprResult(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -82487,8 +75842,8 @@ public get_part_specs_by_filter_result(get_part_specs_by_filter_result other) { } } - public get_part_specs_by_filter_result deepCopy() { - return new get_part_specs_by_filter_result(this); + public get_partitions_by_expr_result deepCopy() { + return new get_partitions_by_expr_result(this); } @Override @@ -82498,26 +75853,11 @@ public void clear() { this.o2 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(PartitionSpec elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public PartitionsByExprResult getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(PartitionsByExprResult success) { this.success = success; } @@ -82588,7 +75928,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((PartitionsByExprResult)value); } break; @@ -82647,12 +75987,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_part_specs_by_filter_result) - return this.equals((get_part_specs_by_filter_result)that); + if (that instanceof get_partitions_by_expr_result) + return this.equals((get_partitions_by_expr_result)that); return false; } - public boolean equals(get_part_specs_by_filter_result that) { + public boolean equals(get_partitions_by_expr_result that) { if (that == null) return false; @@ -82688,60 +76028,60 @@ public boolean equals(get_part_specs_by_filter_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_part_specs_by_filter_result other) { + public int compareTo(get_partitions_by_expr_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_by_expr_result typedOther = (get_partitions_by_expr_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -82763,7 +76103,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_part_specs_by_filter_result("); + StringBuilder sb = new StringBuilder("get_partitions_by_expr_result("); boolean first = true; sb.append("success:"); @@ -82796,6 +76136,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -82814,15 +76157,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_part_specs_by_filter_resultStandardSchemeFactory implements SchemeFactory { - public get_part_specs_by_filter_resultStandardScheme getScheme() { - return new get_part_specs_by_filter_resultStandardScheme(); + private static class get_partitions_by_expr_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_by_expr_resultStandardScheme getScheme() { + return new get_partitions_by_expr_resultStandardScheme(); } } - private static class get_part_specs_by_filter_resultStandardScheme extends StandardScheme { + private static class get_partitions_by_expr_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -82833,19 +76176,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list816 = iprot.readListBegin(); - struct.success = new ArrayList(_list816.size); - PartitionSpec _elem817; - for (int _i818 = 0; _i818 < _list816.size; ++_i818) - { - _elem817 = new PartitionSpec(); - _elem817.read(iprot); - struct.success.add(_elem817); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new PartitionsByExprResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -82878,20 +76211,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter819 : struct.success) - { - _iter819.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -82910,16 +76236,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_ } - private static class get_part_specs_by_filter_resultTupleSchemeFactory implements SchemeFactory { - public get_part_specs_by_filter_resultTupleScheme getScheme() { - return new get_part_specs_by_filter_resultTupleScheme(); + private static class get_partitions_by_expr_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_by_expr_resultTupleScheme getScheme() { + return new get_partitions_by_expr_resultTupleScheme(); } } - private static class get_part_specs_by_filter_resultTupleScheme extends TupleScheme { + private static class get_partitions_by_expr_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -82933,13 +76259,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_f } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter820 : struct.success) - { - _iter820.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -82950,21 +76270,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_f } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_filter_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_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 _list821 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list821.size); - PartitionSpec _elem822; - for (int _i823 = 0; _i823 < _list821.size; ++_i823) - { - _elem822 = new PartitionSpec(); - _elem822.read(iprot); - struct.success.add(_elem822); - } - } + struct.success = new PartitionsByExprResult(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -82982,22 +76293,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi } - public static class get_partitions_by_expr_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_partitions_by_expr_args"); + public static class get_num_partitions_by_filter_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_num_partitions_by_filter_args"); - private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final 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 FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_by_expr_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_by_expr_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_num_partitions_by_filter_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_num_partitions_by_filter_argsTupleSchemeFactory()); } - private PartitionsByExprRequest req; // required + private String db_name; // required + private String tbl_name; // required + private String filter; // required + private short max_parts; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - REQ((short)1, "req"); + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + FILTER((short)3, "filter"), + MAX_PARTS((short)4, "max_parts"); private static final Map byName = new HashMap(); @@ -83012,8 +76332,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // REQ - return REQ; + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // FILTER + return FILTER; + case 4: // MAX_PARTS + return MAX_PARTS; default: return null; } @@ -83054,73 +76380,194 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_PARTS_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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionsByExprRequest.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.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", 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_partitions_by_expr_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_num_partitions_by_filter_args.class, metaDataMap); } - public get_partitions_by_expr_args() { + public get_num_partitions_by_filter_args() { + this.max_parts = (short)-1; + } - public get_partitions_by_expr_args( - PartitionsByExprRequest req) + public get_num_partitions_by_filter_args( + String db_name, + String tbl_name, + String filter, + short max_parts) { this(); - this.req = req; + this.db_name = db_name; + this.tbl_name = tbl_name; + this.filter = filter; + this.max_parts = max_parts; + setMax_partsIsSet(true); } /** * Performs a deep copy on other. */ - public get_partitions_by_expr_args(get_partitions_by_expr_args other) { - if (other.isSetReq()) { - this.req = new PartitionsByExprRequest(other.req); + public get_num_partitions_by_filter_args(get_num_partitions_by_filter_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.isSetFilter()) { + this.filter = other.filter; + } + this.max_parts = other.max_parts; } - public get_partitions_by_expr_args deepCopy() { - return new get_partitions_by_expr_args(this); + public get_num_partitions_by_filter_args deepCopy() { + return new get_num_partitions_by_filter_args(this); } @Override public void clear() { - this.req = null; + this.db_name = null; + this.tbl_name = null; + this.filter = null; + this.max_parts = (short)-1; + } - public PartitionsByExprRequest getReq() { - return this.req; + public String getDb_name() { + return this.db_name; } - public void setReq(PartitionsByExprRequest req) { - this.req = req; + public void setDb_name(String db_name) { + this.db_name = db_name; } - public void unsetReq() { - this.req = null; + public void unsetDb_name() { + this.db_name = null; } - /** Returns true if field req is set (has been assigned a value) and false otherwise */ - public boolean isSetReq() { - return this.req != 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 setReqIsSet(boolean value) { + public void setDb_nameIsSet(boolean value) { if (!value) { - this.req = null; + 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 getFilter() { + return this.filter; + } + + public void setFilter(String filter) { + this.filter = filter; + } + + public void unsetFilter() { + this.filter = null; + } + + /** Returns true if field filter is set (has been assigned a value) and false otherwise */ + public boolean isSetFilter() { + return this.filter != null; + } + + public void setFilterIsSet(boolean value) { + if (!value) { + this.filter = null; + } + } + + public short getMax_parts() { + return this.max_parts; + } + + public void setMax_parts(short max_parts) { + this.max_parts = max_parts; + setMax_partsIsSet(true); + } + + public void unsetMax_parts() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); + } + + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_parts() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); + } + + public void setMax_partsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); + } + public void setFieldValue(_Fields field, Object value) { switch (field) { - case REQ: + case DB_NAME: if (value == null) { - unsetReq(); + unsetDb_name(); } else { - setReq((PartitionsByExprRequest)value); + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case FILTER: + if (value == null) { + unsetFilter(); + } else { + setFilter((String)value); + } + break; + + case MAX_PARTS: + if (value == null) { + unsetMax_parts(); + } else { + setMax_parts((Short)value); } break; @@ -83129,8 +76576,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case REQ: - return getReq(); + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case FILTER: + return getFilter(); + + case MAX_PARTS: + return Short.valueOf(getMax_parts()); } throw new IllegalStateException(); @@ -83143,8 +76599,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case REQ: - return isSetReq(); + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case FILTER: + return isSetFilter(); + case MAX_PARTS: + return isSetMax_parts(); } throw new IllegalStateException(); } @@ -83153,21 +76615,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_by_expr_args) - return this.equals((get_partitions_by_expr_args)that); + if (that instanceof get_num_partitions_by_filter_args) + return this.equals((get_num_partitions_by_filter_args)that); return false; } - public boolean equals(get_partitions_by_expr_args that) { + public boolean equals(get_num_partitions_by_filter_args that) { if (that == null) return false; - boolean this_present_req = true && this.isSetReq(); - boolean that_present_req = true && that.isSetReq(); - if (this_present_req || that_present_req) { - if (!(this_present_req && that_present_req)) + 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.req.equals(that.req)) + 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_filter = true && this.isSetFilter(); + boolean that_present_filter = true && that.isSetFilter(); + if (this_present_filter || that_present_filter) { + if (!(this_present_filter && that_present_filter)) + return false; + if (!this.filter.equals(that.filter)) + return false; + } + + boolean this_present_max_parts = true; + boolean that_present_max_parts = true; + if (this_present_max_parts || that_present_max_parts) { + if (!(this_present_max_parts && that_present_max_parts)) + return false; + if (this.max_parts != that.max_parts) return false; } @@ -83176,30 +76665,75 @@ public boolean equals(get_partitions_by_expr_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_req = true && (isSetReq()); - list.add(present_req); - if (present_req) - list.add(req); + boolean present_db_name = true && (isSetDb_name()); + builder.append(present_db_name); + if (present_db_name) + builder.append(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + builder.append(present_tbl_name); + if (present_tbl_name) + builder.append(tbl_name); + + boolean present_filter = true && (isSetFilter()); + builder.append(present_filter); + if (present_filter) + builder.append(filter); - return list.hashCode(); + boolean present_max_parts = true; + builder.append(present_max_parts); + if (present_max_parts) + builder.append(max_parts); + + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_by_expr_args other) { + public int compareTo(get_num_partitions_by_filter_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_num_partitions_by_filter_args typedOther = (get_num_partitions_by_filter_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFilter()).compareTo(typedOther.isSetFilter()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFilter()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, typedOther.filter); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(typedOther.isSetMax_parts()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMax_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, typedOther.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -83221,16 +76755,36 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_by_expr_args("); + StringBuilder sb = new StringBuilder("get_num_partitions_by_filter_args("); boolean first = true; - sb.append("req:"); - if (this.req == null) { + sb.append("db_name:"); + if (this.db_name == null) { sb.append("null"); } else { - sb.append(this.req); + 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("filter:"); + if (this.filter == null) { + sb.append("null"); + } else { + sb.append(this.filter); + } + first = false; + if (!first) sb.append(", "); + sb.append("max_parts:"); + sb.append(this.max_parts); + first = false; sb.append(")"); return sb.toString(); } @@ -83238,9 +76792,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (req != null) { - req.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -83253,21 +76804,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_partitions_by_expr_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_by_expr_argsStandardScheme getScheme() { - return new get_partitions_by_expr_argsStandardScheme(); + private static class get_num_partitions_by_filter_argsStandardSchemeFactory implements SchemeFactory { + public get_num_partitions_by_filter_argsStandardScheme getScheme() { + return new get_num_partitions_by_filter_argsStandardScheme(); } } - private static class get_partitions_by_expr_argsStandardScheme extends StandardScheme { + private static class get_num_partitions_by_filter_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -83277,11 +76830,34 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_e break; } switch (schemeField.id) { - case 1: // REQ - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new PartitionsByExprRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + 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: // FILTER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // MAX_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -83295,70 +76871,112 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_e struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.req != null) { - oprot.writeFieldBegin(REQ_FIELD_DESC); - struct.req.write(oprot); + 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.filter != null) { + oprot.writeFieldBegin(FILTER_FIELD_DESC); + oprot.writeString(struct.filter); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI16(struct.max_parts); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_by_expr_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_by_expr_argsTupleScheme getScheme() { - return new get_partitions_by_expr_argsTupleScheme(); + private static class get_num_partitions_by_filter_argsTupleSchemeFactory implements SchemeFactory { + public get_num_partitions_by_filter_argsTupleScheme getScheme() { + return new get_num_partitions_by_filter_argsTupleScheme(); } } - private static class get_partitions_by_expr_argsTupleScheme extends TupleScheme { + private static class get_num_partitions_by_filter_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetReq()) { + if (struct.isSetDb_name()) { optionals.set(0); } - oprot.writeBitSet(optionals, 1); - if (struct.isSetReq()) { - struct.req.write(oprot); + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetFilter()) { + optionals.set(2); + } + if (struct.isSetMax_parts()) { + 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.isSetFilter()) { + oprot.writeString(struct.filter); + } + if (struct.isSetMax_parts()) { + oprot.writeI16(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.req = new PartitionsByExprRequest(); - struct.req.read(iprot); - struct.setReqIsSet(true); + 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.filter = iprot.readString(); + struct.setFilterIsSet(true); + } + if (incoming.get(3)) { + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); } } } } - public static class get_partitions_by_expr_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_partitions_by_expr_result"); + public static class get_num_partitions_by_filter_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_num_partitions_by_filter_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 SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (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_partitions_by_expr_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_by_expr_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_num_partitions_by_filter_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_num_partitions_by_filter_resultTupleSchemeFactory()); } - private PartitionsByExprResult success; // required + private int success; // required private MetaException o1; // required private NoSuchObjectException o2; // required @@ -83427,29 +77045,32 @@ 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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionsByExprResult.class))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_expr_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_num_partitions_by_filter_result.class, metaDataMap); } - public get_partitions_by_expr_result() { + public get_num_partitions_by_filter_result() { } - public get_partitions_by_expr_result( - PartitionsByExprResult success, + public get_num_partitions_by_filter_result( + int success, MetaException o1, NoSuchObjectException o2) { this(); this.success = success; + setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -83457,10 +77078,9 @@ public get_partitions_by_expr_result( /** * Performs a deep copy on other. */ - public get_partitions_by_expr_result(get_partitions_by_expr_result other) { - if (other.isSetSuccess()) { - this.success = new PartitionsByExprResult(other.success); - } + public get_num_partitions_by_filter_result(get_num_partitions_by_filter_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } @@ -83469,38 +77089,38 @@ public get_partitions_by_expr_result(get_partitions_by_expr_result other) { } } - public get_partitions_by_expr_result deepCopy() { - return new get_partitions_by_expr_result(this); + public get_num_partitions_by_filter_result deepCopy() { + return new get_num_partitions_by_filter_result(this); } @Override public void clear() { - this.success = null; + setSuccessIsSet(false); + this.success = 0; this.o1 = null; this.o2 = null; } - public PartitionsByExprResult getSuccess() { + public int getSuccess() { return this.success; } - public void setSuccess(PartitionsByExprResult success) { + public void setSuccess(int success) { this.success = success; + setSuccessIsSet(true); } public void unsetSuccess() { - this.success = null; + __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 this.success != null; + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); } public void setSuccessIsSet(boolean value) { - if (!value) { - this.success = null; - } + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); } public MetaException getO1() { @@ -83555,7 +77175,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((PartitionsByExprResult)value); + setSuccess((Integer)value); } break; @@ -83581,7 +77201,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return getSuccess(); + return Integer.valueOf(getSuccess()); case O1: return getO1(); @@ -83614,21 +77234,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_by_expr_result) - return this.equals((get_partitions_by_expr_result)that); + if (that instanceof get_num_partitions_by_filter_result) + return this.equals((get_num_partitions_by_filter_result)that); return false; } - public boolean equals(get_partitions_by_expr_result that) { + public boolean equals(get_num_partitions_by_filter_result that) { if (that == null) return false; - boolean this_present_success = true && this.isSetSuccess(); - boolean that_present_success = true && that.isSetSuccess(); + 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.equals(that.success)) + if (this.success != that.success) return false; } @@ -83655,60 +77275,60 @@ public boolean equals(get_partitions_by_expr_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_success = true && (isSetSuccess()); - list.add(present_success); + boolean present_success = true; + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override - public int compareTo(get_partitions_by_expr_result other) { + public int compareTo(get_num_partitions_by_filter_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_num_partitions_by_filter_result typedOther = (get_num_partitions_by_filter_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -83730,15 +77350,11 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_by_expr_result("); + StringBuilder sb = new StringBuilder("get_num_partitions_by_filter_result("); boolean first = true; sb.append("success:"); - if (this.success == null) { - sb.append("null"); - } else { - sb.append(this.success); - } + sb.append(this.success); first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -83763,9 +77379,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 { @@ -83778,21 +77391,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_partitions_by_expr_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_by_expr_resultStandardScheme getScheme() { - return new get_partitions_by_expr_resultStandardScheme(); + private static class get_num_partitions_by_filter_resultStandardSchemeFactory implements SchemeFactory { + public get_num_partitions_by_filter_resultStandardScheme getScheme() { + return new get_num_partitions_by_filter_resultStandardScheme(); } } - private static class get_partitions_by_expr_resultStandardScheme extends StandardScheme { + private static class get_num_partitions_by_filter_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -83803,9 +77418,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_e } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new PartitionsByExprResult(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -83838,13 +77452,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_e struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.success != null) { + if (struct.isSetSuccess()) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + oprot.writeI32(struct.success); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -83863,16 +77477,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ } - private static class get_partitions_by_expr_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_by_expr_resultTupleScheme getScheme() { - return new get_partitions_by_expr_resultTupleScheme(); + private static class get_num_partitions_by_filter_resultTupleSchemeFactory implements SchemeFactory { + public get_num_partitions_by_filter_resultTupleScheme getScheme() { + return new get_num_partitions_by_filter_resultTupleScheme(); } } - private static class get_partitions_by_expr_resultTupleScheme extends TupleScheme { + private static class get_num_partitions_by_filter_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -83886,7 +77500,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_e } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + oprot.writeI32(struct.success); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -83897,12 +77511,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_e } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_expr_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new PartitionsByExprResult(); - struct.success.read(iprot); + struct.success = iprot.readI32(); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -83920,7 +77533,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_ex } - public static class get_partitions_by_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_by_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_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); @@ -84041,7 +77654,10 @@ public get_partitions_by_names_args(get_partitions_by_names_args other) { this.tbl_name = other.tbl_name; } if (other.isSetNames()) { - List __this__names = new ArrayList(other.names); + List __this__names = new ArrayList(); + for (String other_element : other.names) { + __this__names.add(other_element); + } this.names = __this__names; } } @@ -84247,60 +77863,60 @@ public boolean equals(get_partitions_by_names_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_names = true && (isSetNames()); - list.add(present_names); + builder.append(present_names); if (present_names) - list.add(names); + builder.append(names); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_by_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_by_names_args typedOther = (get_partitions_by_names_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNames()).compareTo(other.isSetNames()); + lastComparison = Boolean.valueOf(isSetNames()).compareTo(typedOther.isSetNames()); if (lastComparison != 0) { return lastComparison; } if (isSetNames()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.names, other.names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.names, typedOther.names); if (lastComparison != 0) { return lastComparison; } @@ -84412,11 +78028,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n { org.apache.thrift.protocol.TList _list824 = iprot.readListBegin(); struct.names = new ArrayList(_list824.size); - String _elem825; - for (int _i826 = 0; _i826 < _list824.size; ++_i826) + for (int _i825 = 0; _i825 < _list824.size; ++_i825) { - _elem825 = iprot.readString(); - struct.names.add(_elem825); + String _elem826; // required + _elem826 = iprot.readString(); + struct.names.add(_elem826); } iprot.readListEnd(); } @@ -84521,11 +78137,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na { org.apache.thrift.protocol.TList _list829 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.names = new ArrayList(_list829.size); - String _elem830; - for (int _i831 = 0; _i831 < _list829.size; ++_i831) + for (int _i830 = 0; _i830 < _list829.size; ++_i830) { - _elem830 = iprot.readString(); - struct.names.add(_elem830); + String _elem831; // required + _elem831 = iprot.readString(); + struct.names.add(_elem831); } } struct.setNamesIsSet(true); @@ -84535,7 +78151,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } - public static class get_partitions_by_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_by_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_by_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.LIST, (short)0); @@ -84650,7 +78266,7 @@ public get_partitions_by_names_result( */ public get_partitions_by_names_result(get_partitions_by_names_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Partition other_element : other.success) { __this__success.add(new Partition(other_element)); } @@ -84865,60 +78481,60 @@ public boolean equals(get_partitions_by_names_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_by_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_by_names_result typedOther = (get_partitions_by_names_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -85014,12 +78630,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n { org.apache.thrift.protocol.TList _list832 = iprot.readListBegin(); struct.success = new ArrayList(_list832.size); - Partition _elem833; - for (int _i834 = 0; _i834 < _list832.size; ++_i834) + for (int _i833 = 0; _i833 < _list832.size; ++_i833) { - _elem833 = new Partition(); - _elem833.read(iprot); - struct.success.add(_elem833); + Partition _elem834; // required + _elem834 = new Partition(); + _elem834.read(iprot); + struct.success.add(_elem834); } iprot.readListEnd(); } @@ -85134,12 +78750,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na { org.apache.thrift.protocol.TList _list837 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list837.size); - Partition _elem838; - for (int _i839 = 0; _i839 < _list837.size; ++_i839) + for (int _i838 = 0; _i838 < _list837.size; ++_i838) { - _elem838 = new Partition(); - _elem838.read(iprot); - struct.success.add(_elem838); + Partition _elem839; // required + _elem839 = new Partition(); + _elem839.read(iprot); + struct.success.add(_elem839); } } struct.setSuccessIsSet(true); @@ -85159,7 +78775,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } - public static class alter_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_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); @@ -85469,60 +79085,60 @@ public boolean equals(alter_partition_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); + builder.append(present_new_part); if (present_new_part) - list.add(new_part); + builder.append(new_part); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_partition_args typedOther = (alter_partition_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part); if (lastComparison != 0) { return lastComparison; } @@ -85730,7 +79346,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_args } - public static class alter_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -85982,45 +79598,45 @@ public boolean equals(alter_partition_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_partition_result typedOther = (alter_partition_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -86196,7 +79812,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_resu } - public static class alter_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partitions_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); @@ -86317,7 +79933,7 @@ public alter_partitions_args(alter_partitions_args other) { this.tbl_name = other.tbl_name; } if (other.isSetNew_parts()) { - List __this__new_parts = new ArrayList(other.new_parts.size()); + List __this__new_parts = new ArrayList(); for (Partition other_element : other.new_parts) { __this__new_parts.add(new Partition(other_element)); } @@ -86526,60 +80142,60 @@ public boolean equals(alter_partitions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_new_parts = true && (isSetNew_parts()); - list.add(present_new_parts); + builder.append(present_new_parts); if (present_new_parts) - list.add(new_parts); + builder.append(new_parts); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_partitions_args typedOther = (alter_partitions_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(other.isSetNew_parts()); + lastComparison = Boolean.valueOf(isSetNew_parts()).compareTo(typedOther.isSetNew_parts()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, other.new_parts); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_parts, typedOther.new_parts); if (lastComparison != 0) { return lastComparison; } @@ -86691,12 +80307,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_ar { org.apache.thrift.protocol.TList _list840 = iprot.readListBegin(); struct.new_parts = new ArrayList(_list840.size); - Partition _elem841; - for (int _i842 = 0; _i842 < _list840.size; ++_i842) + for (int _i841 = 0; _i841 < _list840.size; ++_i841) { - _elem841 = new Partition(); - _elem841.read(iprot); - struct.new_parts.add(_elem841); + Partition _elem842; // required + _elem842 = new Partition(); + _elem842.read(iprot); + struct.new_parts.add(_elem842); } iprot.readListEnd(); } @@ -86801,12 +80417,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg { org.apache.thrift.protocol.TList _list845 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.new_parts = new ArrayList(_list845.size); - Partition _elem846; - for (int _i847 = 0; _i847 < _list845.size; ++_i847) + for (int _i846 = 0; _i846 < _list845.size; ++_i846) { - _elem846 = new Partition(); - _elem846.read(iprot); - struct.new_parts.add(_elem846); + Partition _elem847; // required + _elem847 = new Partition(); + _elem847.read(iprot); + struct.new_parts.add(_elem847); } } struct.setNew_partsIsSet(true); @@ -86816,7 +80432,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } - public static class alter_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partitions_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -87068,45 +80684,45 @@ public boolean equals(alter_partitions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_partitions_result typedOther = (alter_partitions_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -87282,7 +80898,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_res } - public static class alter_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_partition_with_environment_context_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_with_environment_context_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); @@ -87650,75 +81266,75 @@ public boolean equals(alter_partition_with_environment_context_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); + builder.append(present_new_part); if (present_new_part) - list.add(new_part); + builder.append(new_part); boolean present_environment_context = true && (isSetEnvironment_context()); - list.add(present_environment_context); + builder.append(present_environment_context); if (present_environment_context) - list.add(environment_context); + builder.append(environment_context); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_partition_with_environment_context_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_partition_with_environment_context_args typedOther = (alter_partition_with_environment_context_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(other.isSetEnvironment_context()); + lastComparison = Boolean.valueOf(isSetEnvironment_context()).compareTo(typedOther.isSetEnvironment_context()); if (lastComparison != 0) { return lastComparison; } if (isSetEnvironment_context()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, other.environment_context); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.environment_context, typedOther.environment_context); if (lastComparison != 0) { return lastComparison; } @@ -87962,7 +81578,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with } - public static class alter_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_partition_with_environment_context_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_partition_with_environment_context_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -88214,45 +81830,45 @@ public boolean equals(alter_partition_with_environment_context_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_partition_with_environment_context_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_partition_with_environment_context_result typedOther = (alter_partition_with_environment_context_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -88428,7 +82044,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partition_with } - public static class rename_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class rename_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("rename_partition_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); @@ -88558,7 +82174,10 @@ public rename_partition_args(rename_partition_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } if (other.isSetNew_part()) { @@ -88813,75 +82432,75 @@ public boolean equals(rename_partition_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_new_part = true && (isSetNew_part()); - list.add(present_new_part); + builder.append(present_new_part); if (present_new_part) - list.add(new_part); + builder.append(new_part); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(rename_partition_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + rename_partition_args typedOther = (rename_partition_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part()); + lastComparison = Boolean.valueOf(isSetNew_part()).compareTo(typedOther.isSetNew_part()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_part()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_part, typedOther.new_part); if (lastComparison != 0) { return lastComparison; } @@ -89004,11 +82623,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_ar { org.apache.thrift.protocol.TList _list848 = iprot.readListBegin(); struct.part_vals = new ArrayList(_list848.size); - String _elem849; - for (int _i850 = 0; _i850 < _list848.size; ++_i850) + for (int _i849 = 0; _i849 < _list848.size; ++_i849) { - _elem849 = iprot.readString(); - struct.part_vals.add(_elem849); + String _elem850; // required + _elem850 = iprot.readString(); + struct.part_vals.add(_elem850); } iprot.readListEnd(); } @@ -89133,11 +82752,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg { org.apache.thrift.protocol.TList _list853 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new ArrayList(_list853.size); - String _elem854; - for (int _i855 = 0; _i855 < _list853.size; ++_i855) + for (int _i854 = 0; _i854 < _list853.size; ++_i854) { - _elem854 = iprot.readString(); - struct.part_vals.add(_elem854); + String _elem855; // required + _elem855 = iprot.readString(); + struct.part_vals.add(_elem855); } } struct.setPart_valsIsSet(true); @@ -89152,7 +82771,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } - public static class rename_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class rename_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("rename_partition_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -89404,45 +83023,45 @@ public boolean equals(rename_partition_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(rename_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + rename_partition_result typedOther = (rename_partition_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -89618,7 +83237,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_res } - public static class partition_name_has_valid_characters_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class partition_name_has_valid_characters_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_has_valid_characters_args"); private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -89728,7 +83347,10 @@ public partition_name_has_valid_characters_args( public partition_name_has_valid_characters_args(partition_name_has_valid_characters_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetPart_vals()) { - List __this__part_vals = new ArrayList(other.part_vals); + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } this.part_vals = __this__part_vals; } this.throw_exception = other.throw_exception; @@ -89889,45 +83511,45 @@ public boolean equals(partition_name_has_valid_characters_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_throw_exception = true; - list.add(present_throw_exception); + builder.append(present_throw_exception); if (present_throw_exception) - list.add(throw_exception); + builder.append(throw_exception); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(partition_name_has_valid_characters_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + partition_name_has_valid_characters_args typedOther = (partition_name_has_valid_characters_args)other; - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetThrow_exception()).compareTo(other.isSetThrow_exception()); + lastComparison = Boolean.valueOf(isSetThrow_exception()).compareTo(typedOther.isSetThrow_exception()); if (lastComparison != 0) { return lastComparison; } if (isSetThrow_exception()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.throw_exception, other.throw_exception); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.throw_exception, typedOther.throw_exception); if (lastComparison != 0) { return lastComparison; } @@ -90013,11 +83635,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ { org.apache.thrift.protocol.TList _list856 = iprot.readListBegin(); struct.part_vals = new ArrayList(_list856.size); - String _elem857; - for (int _i858 = 0; _i858 < _list856.size; ++_i858) + for (int _i857 = 0; _i857 < _list856.size; ++_i857) { - _elem857 = iprot.readString(); - struct.part_vals.add(_elem857); + String _elem858; // required + _elem858 = iprot.readString(); + struct.part_vals.add(_elem858); } iprot.readListEnd(); } @@ -90109,11 +83731,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v { org.apache.thrift.protocol.TList _list861 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new ArrayList(_list861.size); - String _elem862; - for (int _i863 = 0; _i863 < _list861.size; ++_i863) + for (int _i862 = 0; _i862 < _list861.size; ++_i862) { - _elem862 = iprot.readString(); - struct.part_vals.add(_elem862); + String _elem863; // required + _elem863 = iprot.readString(); + struct.part_vals.add(_elem863); } } struct.setPart_valsIsSet(true); @@ -90127,7 +83749,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v } - public static class partition_name_has_valid_characters_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class partition_name_has_valid_characters_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_has_valid_characters_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); @@ -90381,45 +84003,45 @@ public boolean equals(partition_name_has_valid_characters_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(partition_name_has_valid_characters_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + partition_name_has_valid_characters_result typedOther = (partition_name_has_valid_characters_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -90591,7 +84213,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v } - public static class get_config_value_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_config_value_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_config_value_args"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -90843,45 +84465,45 @@ public boolean equals(get_config_value_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_defaultValue = true && (isSetDefaultValue()); - list.add(present_defaultValue); + builder.append(present_defaultValue); if (present_defaultValue) - list.add(defaultValue); + builder.append(defaultValue); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_config_value_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_config_value_args typedOther = (get_config_value_args)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDefaultValue()).compareTo(other.isSetDefaultValue()); + lastComparison = Boolean.valueOf(isSetDefaultValue()).compareTo(typedOther.isSetDefaultValue()); if (lastComparison != 0) { return lastComparison; } if (isSetDefaultValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultValue, other.defaultValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultValue, typedOther.defaultValue); if (lastComparison != 0) { return lastComparison; } @@ -91053,7 +84675,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_config_value_arg } - public static class get_config_value_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_config_value_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_config_value_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -91305,45 +84927,45 @@ public boolean equals(get_config_value_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_config_value_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_config_value_result typedOther = (get_config_value_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -91517,7 +85139,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_config_value_res } - public static class partition_name_to_vals_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class partition_name_to_vals_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_to_vals_args"); private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -91711,30 +85333,30 @@ public boolean equals(partition_name_to_vals_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(partition_name_to_vals_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + partition_name_to_vals_args typedOther = (partition_name_to_vals_args)other; - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } @@ -91875,7 +85497,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va } - public static class partition_name_to_vals_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class partition_name_to_vals_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_to_vals_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); @@ -91981,7 +85603,10 @@ public partition_name_to_vals_result( */ public partition_name_to_vals_result(partition_name_to_vals_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -92144,45 +85769,45 @@ public boolean equals(partition_name_to_vals_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(partition_name_to_vals_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + partition_name_to_vals_result typedOther = (partition_name_to_vals_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -92270,11 +85895,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v { org.apache.thrift.protocol.TList _list864 = iprot.readListBegin(); struct.success = new ArrayList(_list864.size); - String _elem865; - for (int _i866 = 0; _i866 < _list864.size; ++_i866) + for (int _i865 = 0; _i865 < _list864.size; ++_i865) { - _elem865 = iprot.readString(); - struct.success.add(_elem865); + String _elem866; // required + _elem866 = iprot.readString(); + struct.success.add(_elem866); } iprot.readListEnd(); } @@ -92369,11 +85994,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va { org.apache.thrift.protocol.TList _list869 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list869.size); - String _elem870; - for (int _i871 = 0; _i871 < _list869.size; ++_i871) + for (int _i870 = 0; _i870 < _list869.size; ++_i870) { - _elem870 = iprot.readString(); - struct.success.add(_elem870); + String _elem871; // required + _elem871 = iprot.readString(); + struct.success.add(_elem871); } } struct.setSuccessIsSet(true); @@ -92388,7 +86013,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va } - public static class partition_name_to_spec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class partition_name_to_spec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_to_spec_args"); private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -92582,30 +86207,30 @@ public boolean equals(partition_name_to_spec_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(partition_name_to_spec_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + partition_name_to_spec_args typedOther = (partition_name_to_spec_args)other; - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } @@ -92746,7 +86371,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp } - public static class partition_name_to_spec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class partition_name_to_spec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partition_name_to_spec_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0); @@ -92853,7 +86478,18 @@ public partition_name_to_spec_result( */ public partition_name_to_spec_result(partition_name_to_spec_result other) { if (other.isSetSuccess()) { - Map __this__success = new HashMap(other.success); + Map __this__success = new HashMap(); + for (Map.Entry other_element : other.success.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__success_copy_key = other_element_key; + + String __this__success_copy_value = other_element_value; + + __this__success.put(__this__success_copy_key, __this__success_copy_value); + } this.success = __this__success; } if (other.isSetO1()) { @@ -93012,45 +86648,45 @@ public boolean equals(partition_name_to_spec_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(partition_name_to_spec_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + partition_name_to_spec_result typedOther = (partition_name_to_spec_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -93138,13 +86774,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s { org.apache.thrift.protocol.TMap _map872 = iprot.readMapBegin(); struct.success = new HashMap(2*_map872.size); - String _key873; - String _val874; - for (int _i875 = 0; _i875 < _map872.size; ++_i875) + for (int _i873 = 0; _i873 < _map872.size; ++_i873) { - _key873 = iprot.readString(); - _val874 = iprot.readString(); - struct.success.put(_key873, _val874); + String _key874; // required + String _val875; // required + _key874 = iprot.readString(); + _val875 = iprot.readString(); + struct.success.put(_key874, _val875); } iprot.readMapEnd(); } @@ -93241,13 +86877,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp { org.apache.thrift.protocol.TMap _map878 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new HashMap(2*_map878.size); - String _key879; - String _val880; - for (int _i881 = 0; _i881 < _map878.size; ++_i881) + for (int _i879 = 0; _i879 < _map878.size; ++_i879) { - _key879 = iprot.readString(); - _val880 = iprot.readString(); - struct.success.put(_key879, _val880); + String _key880; // required + String _val881; // required + _key880 = iprot.readString(); + _val881 = iprot.readString(); + struct.success.put(_key880, _val881); } } struct.setSuccessIsSet(true); @@ -93262,7 +86898,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp } - public static class markPartitionForEvent_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class markPartitionForEvent_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPartitionForEvent_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); @@ -93397,7 +87033,18 @@ public markPartitionForEvent_args(markPartitionForEvent_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - Map __this__part_vals = new HashMap(other.part_vals); + Map __this__part_vals = new HashMap(); + for (Map.Entry other_element : other.part_vals.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__part_vals_copy_key = other_element_key; + + String __this__part_vals_copy_value = other_element_value; + + __this__part_vals.put(__this__part_vals_copy_key, __this__part_vals_copy_value); + } this.part_vals = __this__part_vals; } if (other.isSetEventType()) { @@ -93656,75 +87303,75 @@ public boolean equals(markPartitionForEvent_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_eventType = true && (isSetEventType()); - list.add(present_eventType); + builder.append(present_eventType); if (present_eventType) - list.add(eventType.getValue()); + builder.append(eventType.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(markPartitionForEvent_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + markPartitionForEvent_args typedOther = (markPartitionForEvent_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEventType()).compareTo(other.isSetEventType()); + lastComparison = Boolean.valueOf(isSetEventType()).compareTo(typedOther.isSetEventType()); if (lastComparison != 0) { return lastComparison; } if (isSetEventType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, other.eventType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, typedOther.eventType); if (lastComparison != 0) { return lastComparison; } @@ -93844,13 +87491,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve { org.apache.thrift.protocol.TMap _map882 = iprot.readMapBegin(); struct.part_vals = new HashMap(2*_map882.size); - String _key883; - String _val884; - for (int _i885 = 0; _i885 < _map882.size; ++_i885) + for (int _i883 = 0; _i883 < _map882.size; ++_i883) { - _key883 = iprot.readString(); - _val884 = iprot.readString(); - struct.part_vals.put(_key883, _val884); + String _key884; // required + String _val885; // required + _key884 = iprot.readString(); + _val885 = iprot.readString(); + struct.part_vals.put(_key884, _val885); } iprot.readMapEnd(); } @@ -93861,7 +87508,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve break; case 4: // EVENT_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); + struct.eventType = PartitionEventType.findByValue(iprot.readI32()); struct.setEventTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -93976,19 +87623,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven { org.apache.thrift.protocol.TMap _map888 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new HashMap(2*_map888.size); - String _key889; - String _val890; - for (int _i891 = 0; _i891 < _map888.size; ++_i891) + for (int _i889 = 0; _i889 < _map888.size; ++_i889) { - _key889 = iprot.readString(); - _val890 = iprot.readString(); - struct.part_vals.put(_key889, _val890); + String _key890; // required + String _val891; // required + _key890 = iprot.readString(); + _val891 = iprot.readString(); + struct.part_vals.put(_key890, _val891); } } struct.setPart_valsIsSet(true); } if (incoming.get(3)) { - struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); + struct.eventType = PartitionEventType.findByValue(iprot.readI32()); struct.setEventTypeIsSet(true); } } @@ -93996,7 +87643,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } - public static class markPartitionForEvent_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class markPartitionForEvent_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPartitionForEvent_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -94480,105 +88127,105 @@ public boolean equals(markPartitionForEvent_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); boolean present_o5 = true && (isSetO5()); - list.add(present_o5); + builder.append(present_o5); if (present_o5) - list.add(o5); + builder.append(o5); boolean present_o6 = true && (isSetO6()); - list.add(present_o6); + builder.append(present_o6); if (present_o6) - list.add(o6); + builder.append(o6); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(markPartitionForEvent_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + markPartitionForEvent_result typedOther = (markPartitionForEvent_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO5()).compareTo(other.isSetO5()); + lastComparison = Boolean.valueOf(isSetO5()).compareTo(typedOther.isSetO5()); if (lastComparison != 0) { return lastComparison; } if (isSetO5()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, other.o5); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, typedOther.o5); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO6()).compareTo(other.isSetO6()); + lastComparison = Boolean.valueOf(isSetO6()).compareTo(typedOther.isSetO6()); if (lastComparison != 0) { return lastComparison; } if (isSetO6()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, other.o6); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, typedOther.o6); if (lastComparison != 0) { return lastComparison; } @@ -94886,7 +88533,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } - public static class isPartitionMarkedForEvent_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class isPartitionMarkedForEvent_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isPartitionMarkedForEvent_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); @@ -95021,7 +88668,18 @@ public isPartitionMarkedForEvent_args(isPartitionMarkedForEvent_args other) { this.tbl_name = other.tbl_name; } if (other.isSetPart_vals()) { - Map __this__part_vals = new HashMap(other.part_vals); + Map __this__part_vals = new HashMap(); + for (Map.Entry other_element : other.part_vals.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__part_vals_copy_key = other_element_key; + + String __this__part_vals_copy_value = other_element_value; + + __this__part_vals.put(__this__part_vals_copy_key, __this__part_vals_copy_value); + } this.part_vals = __this__part_vals; } if (other.isSetEventType()) { @@ -95280,75 +88938,75 @@ public boolean equals(isPartitionMarkedForEvent_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); + builder.append(present_part_vals); if (present_part_vals) - list.add(part_vals); + builder.append(part_vals); boolean present_eventType = true && (isSetEventType()); - list.add(present_eventType); + builder.append(present_eventType); if (present_eventType) - list.add(eventType.getValue()); + builder.append(eventType.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(isPartitionMarkedForEvent_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + isPartitionMarkedForEvent_args typedOther = (isPartitionMarkedForEvent_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.isSetPart_vals()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, typedOther.part_vals); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEventType()).compareTo(other.isSetEventType()); + lastComparison = Boolean.valueOf(isSetEventType()).compareTo(typedOther.isSetEventType()); if (lastComparison != 0) { return lastComparison; } if (isSetEventType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, other.eventType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, typedOther.eventType); if (lastComparison != 0) { return lastComparison; } @@ -95468,13 +89126,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo { org.apache.thrift.protocol.TMap _map892 = iprot.readMapBegin(); struct.part_vals = new HashMap(2*_map892.size); - String _key893; - String _val894; - for (int _i895 = 0; _i895 < _map892.size; ++_i895) + for (int _i893 = 0; _i893 < _map892.size; ++_i893) { - _key893 = iprot.readString(); - _val894 = iprot.readString(); - struct.part_vals.put(_key893, _val894); + String _key894; // required + String _val895; // required + _key894 = iprot.readString(); + _val895 = iprot.readString(); + struct.part_vals.put(_key894, _val895); } iprot.readMapEnd(); } @@ -95485,7 +89143,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo break; case 4: // EVENT_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); + struct.eventType = PartitionEventType.findByValue(iprot.readI32()); struct.setEventTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -95600,19 +89258,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor { org.apache.thrift.protocol.TMap _map898 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.part_vals = new HashMap(2*_map898.size); - String _key899; - String _val900; - for (int _i901 = 0; _i901 < _map898.size; ++_i901) + for (int _i899 = 0; _i899 < _map898.size; ++_i899) { - _key899 = iprot.readString(); - _val900 = iprot.readString(); - struct.part_vals.put(_key899, _val900); + String _key900; // required + String _val901; // required + _key900 = iprot.readString(); + _val901 = iprot.readString(); + struct.part_vals.put(_key900, _val901); } } struct.setPart_valsIsSet(true); } if (incoming.get(3)) { - struct.eventType = org.apache.hadoop.hive.metastore.api.PartitionEventType.findByValue(iprot.readI32()); + struct.eventType = PartitionEventType.findByValue(iprot.readI32()); struct.setEventTypeIsSet(true); } } @@ -95620,7 +89278,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } - public static class isPartitionMarkedForEvent_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class isPartitionMarkedForEvent_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isPartitionMarkedForEvent_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); @@ -96164,120 +89822,120 @@ public boolean equals(isPartitionMarkedForEvent_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); boolean present_o5 = true && (isSetO5()); - list.add(present_o5); + builder.append(present_o5); if (present_o5) - list.add(o5); + builder.append(o5); boolean present_o6 = true && (isSetO6()); - list.add(present_o6); + builder.append(present_o6); if (present_o6) - list.add(o6); + builder.append(o6); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(isPartitionMarkedForEvent_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + isPartitionMarkedForEvent_result typedOther = (isPartitionMarkedForEvent_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO5()).compareTo(other.isSetO5()); + lastComparison = Boolean.valueOf(isSetO5()).compareTo(typedOther.isSetO5()); if (lastComparison != 0) { return lastComparison; } if (isSetO5()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, other.o5); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o5, typedOther.o5); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO6()).compareTo(other.isSetO6()); + lastComparison = Boolean.valueOf(isSetO6()).compareTo(typedOther.isSetO6()); if (lastComparison != 0) { return lastComparison; } if (isSetO6()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, other.o6); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o6, typedOther.o6); if (lastComparison != 0) { return lastComparison; } @@ -96614,7 +90272,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } - public static class add_index_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_index_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_index_args"); private static final org.apache.thrift.protocol.TField NEW_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("new_index", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -96866,45 +90524,45 @@ public boolean equals(add_index_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_new_index = true && (isSetNew_index()); - list.add(present_new_index); + builder.append(present_new_index); if (present_new_index) - list.add(new_index); + builder.append(new_index); boolean present_index_table = true && (isSetIndex_table()); - list.add(present_index_table); + builder.append(present_index_table); if (present_index_table) - list.add(index_table); + builder.append(index_table); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_index_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_index_args typedOther = (add_index_args)other; - lastComparison = Boolean.valueOf(isSetNew_index()).compareTo(other.isSetNew_index()); + lastComparison = Boolean.valueOf(isSetNew_index()).compareTo(typedOther.isSetNew_index()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_index()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_index, other.new_index); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_index, typedOther.new_index); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_table()).compareTo(other.isSetIndex_table()); + lastComparison = Boolean.valueOf(isSetIndex_table()).compareTo(typedOther.isSetIndex_table()); if (lastComparison != 0) { return lastComparison; } if (isSetIndex_table()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_table, other.index_table); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_table, typedOther.index_table); if (lastComparison != 0) { return lastComparison; } @@ -97086,7 +90744,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_index_args struc } - public static class add_index_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_index_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_index_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); @@ -97454,75 +91112,75 @@ public boolean equals(add_index_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_index_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_index_result typedOther = (add_index_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -97767,7 +91425,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_index_result str } - public static class alter_index_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_index_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_index_args"); private static final org.apache.thrift.protocol.TField DBNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbname", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -98135,75 +91793,75 @@ public boolean equals(alter_index_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbname = true && (isSetDbname()); - list.add(present_dbname); + builder.append(present_dbname); if (present_dbname) - list.add(dbname); + builder.append(dbname); boolean present_base_tbl_name = true && (isSetBase_tbl_name()); - list.add(present_base_tbl_name); + builder.append(present_base_tbl_name); if (present_base_tbl_name) - list.add(base_tbl_name); + builder.append(base_tbl_name); boolean present_idx_name = true && (isSetIdx_name()); - list.add(present_idx_name); + builder.append(present_idx_name); if (present_idx_name) - list.add(idx_name); + builder.append(idx_name); boolean present_new_idx = true && (isSetNew_idx()); - list.add(present_new_idx); + builder.append(present_new_idx); if (present_new_idx) - list.add(new_idx); + builder.append(new_idx); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_index_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_index_args typedOther = (alter_index_args)other; - lastComparison = Boolean.valueOf(isSetDbname()).compareTo(other.isSetDbname()); + lastComparison = Boolean.valueOf(isSetDbname()).compareTo(typedOther.isSetDbname()); if (lastComparison != 0) { return lastComparison; } if (isSetDbname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, other.dbname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbname, typedOther.dbname); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetBase_tbl_name()).compareTo(other.isSetBase_tbl_name()); + lastComparison = Boolean.valueOf(isSetBase_tbl_name()).compareTo(typedOther.isSetBase_tbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetBase_tbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.base_tbl_name, other.base_tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.base_tbl_name, typedOther.base_tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIdx_name()).compareTo(other.isSetIdx_name()); + lastComparison = Boolean.valueOf(isSetIdx_name()).compareTo(typedOther.isSetIdx_name()); if (lastComparison != 0) { return lastComparison; } if (isSetIdx_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.idx_name, other.idx_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.idx_name, typedOther.idx_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNew_idx()).compareTo(other.isSetNew_idx()); + lastComparison = Boolean.valueOf(isSetNew_idx()).compareTo(typedOther.isSetNew_idx()); if (lastComparison != 0) { return lastComparison; } if (isSetNew_idx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_idx, other.new_idx); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_idx, typedOther.new_idx); if (lastComparison != 0) { return lastComparison; } @@ -98442,7 +92100,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_args str } - public static class alter_index_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_index_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_index_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -98694,45 +92352,45 @@ public boolean equals(alter_index_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_index_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_index_result typedOther = (alter_index_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -98908,7 +92566,7 @@ 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 { + public static class drop_index_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("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); @@ -99278,75 +92936,75 @@ public boolean equals(drop_index_by_name_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_index_name = true && (isSetIndex_name()); - list.add(present_index_name); + builder.append(present_index_name); if (present_index_name) - list.add(index_name); + builder.append(index_name); boolean present_deleteData = true; - list.add(present_deleteData); + builder.append(present_deleteData); if (present_deleteData) - list.add(deleteData); + builder.append(deleteData); - return list.hashCode(); + return builder.toHashCode(); } - @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; + drop_index_by_name_args typedOther = (drop_index_by_name_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); + lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(typedOther.isSetIndex_name()); if (lastComparison != 0) { return lastComparison; } if (isSetIndex_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, typedOther.index_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(typedOther.isSetDeleteData()); if (lastComparison != 0) { return lastComparison; } if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, typedOther.deleteData); if (lastComparison != 0) { return lastComparison; } @@ -99576,7 +93234,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_a } - public static class drop_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("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); @@ -99888,60 +93546,60 @@ public boolean equals(drop_index_by_name_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @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; + drop_index_by_name_result typedOther = (drop_index_by_name_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -100146,7 +93804,7 @@ 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 { + public static class get_index_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_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); @@ -100456,60 +94114,60 @@ public boolean equals(get_index_by_name_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_index_name = true && (isSetIndex_name()); - list.add(present_index_name); + builder.append(present_index_name); if (present_index_name) - list.add(index_name); + builder.append(index_name); - return list.hashCode(); + return builder.toHashCode(); } - @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; + get_index_by_name_args typedOther = (get_index_by_name_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); + lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(typedOther.isSetIndex_name()); if (lastComparison != 0) { return lastComparison; } if (isSetIndex_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, typedOther.index_name); if (lastComparison != 0) { return lastComparison; } @@ -100712,7 +94370,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_ar } - public static class get_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_index_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_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); @@ -101022,60 +94680,60 @@ public boolean equals(get_index_by_name_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @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; + get_index_by_name_result typedOther = (get_index_by_name_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -101287,7 +94945,7 @@ 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 { + public static class get_indexes_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_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); @@ -101601,60 +95259,60 @@ public boolean equals(get_indexes_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_max_indexes = true; - list.add(present_max_indexes); + builder.append(present_max_indexes); if (present_max_indexes) - list.add(max_indexes); + builder.append(max_indexes); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_indexes_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_indexes_args typedOther = (get_indexes_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); + lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(typedOther.isSetMax_indexes()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_indexes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, typedOther.max_indexes); if (lastComparison != 0) { return lastComparison; } @@ -101853,7 +95511,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_args str } - public static class get_indexes_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_indexes_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_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.LIST, (short)0); @@ -101968,7 +95626,7 @@ public get_indexes_result( */ public get_indexes_result(get_indexes_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Index other_element : other.success) { __this__success.add(new Index(other_element)); } @@ -102183,60 +95841,60 @@ public boolean equals(get_indexes_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_indexes_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_indexes_result typedOther = (get_indexes_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -102332,12 +95990,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result { org.apache.thrift.protocol.TList _list902 = iprot.readListBegin(); struct.success = new ArrayList(_list902.size); - Index _elem903; - for (int _i904 = 0; _i904 < _list902.size; ++_i904) + for (int _i903 = 0; _i903 < _list902.size; ++_i903) { - _elem903 = new Index(); - _elem903.read(iprot); - struct.success.add(_elem903); + Index _elem904; // required + _elem904 = new Index(); + _elem904.read(iprot); + struct.success.add(_elem904); } iprot.readListEnd(); } @@ -102452,12 +96110,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s { org.apache.thrift.protocol.TList _list907 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list907.size); - Index _elem908; - for (int _i909 = 0; _i909 < _list907.size; ++_i909) + for (int _i908 = 0; _i908 < _list907.size; ++_i908) { - _elem908 = new Index(); - _elem908.read(iprot); - struct.success.add(_elem908); + Index _elem909; // required + _elem909 = new Index(); + _elem909.read(iprot); + struct.success.add(_elem909); } } struct.setSuccessIsSet(true); @@ -102477,7 +96135,7 @@ 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 { + public static class get_index_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_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); @@ -102791,60 +96449,60 @@ public boolean equals(get_index_names_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_max_indexes = true; - list.add(present_max_indexes); + builder.append(present_max_indexes); if (present_max_indexes) - list.add(max_indexes); + builder.append(max_indexes); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_index_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_index_names_args typedOther = (get_index_names_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); + lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(typedOther.isSetMax_indexes()); if (lastComparison != 0) { return lastComparison; } if (isSetMax_indexes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, typedOther.max_indexes); if (lastComparison != 0) { return lastComparison; } @@ -103043,7 +96701,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_args } - public static class get_index_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_index_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_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.LIST, (short)0); @@ -103149,7 +96807,10 @@ public get_index_names_result( */ public get_index_names_result(get_index_names_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO2()) { @@ -103312,45 +96973,45 @@ public boolean equals(get_index_names_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_index_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_index_names_result typedOther = (get_index_names_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -103438,11 +97099,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_res { org.apache.thrift.protocol.TList _list910 = iprot.readListBegin(); struct.success = new ArrayList(_list910.size); - String _elem911; - for (int _i912 = 0; _i912 < _list910.size; ++_i912) + for (int _i911 = 0; _i911 < _list910.size; ++_i911) { - _elem911 = iprot.readString(); - struct.success.add(_elem911); + String _elem912; // required + _elem912 = iprot.readString(); + struct.success.add(_elem912); } iprot.readListEnd(); } @@ -103537,11 +97198,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_resu { org.apache.thrift.protocol.TList _list915 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list915.size); - String _elem916; - for (int _i917 = 0; _i917 < _list915.size; ++_i917) + for (int _i916 = 0; _i916 < _list915.size; ++_i916) { - _elem916 = iprot.readString(); - struct.success.add(_elem916); + String _elem917; // required + _elem917 = iprot.readString(); + struct.success.add(_elem917); } } struct.setSuccessIsSet(true); @@ -103556,7 +97217,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_resu } - public static class update_table_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class update_table_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_table_column_statistics_args"); private static final org.apache.thrift.protocol.TField STATS_OBJ_FIELD_DESC = new org.apache.thrift.protocol.TField("stats_obj", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -103750,30 +97411,30 @@ public boolean equals(update_table_column_statistics_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_stats_obj = true && (isSetStats_obj()); - list.add(present_stats_obj); + builder.append(present_stats_obj); if (present_stats_obj) - list.add(stats_obj); + builder.append(stats_obj); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(update_table_column_statistics_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + update_table_column_statistics_args typedOther = (update_table_column_statistics_args)other; - lastComparison = Boolean.valueOf(isSetStats_obj()).compareTo(other.isSetStats_obj()); + lastComparison = Boolean.valueOf(isSetStats_obj()).compareTo(typedOther.isSetStats_obj()); if (lastComparison != 0) { return lastComparison; } if (isSetStats_obj()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stats_obj, other.stats_obj); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stats_obj, typedOther.stats_obj); if (lastComparison != 0) { return lastComparison; } @@ -103919,7 +97580,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, update_table_column_ } - public static class update_table_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class update_table_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_table_column_statistics_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); @@ -104347,90 +98008,90 @@ public boolean equals(update_table_column_statistics_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(update_table_column_statistics_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + update_table_column_statistics_result typedOther = (update_table_column_statistics_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -104701,7 +98362,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, update_table_column_ } - public static class update_partition_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class update_partition_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_partition_column_statistics_args"); private static final org.apache.thrift.protocol.TField STATS_OBJ_FIELD_DESC = new org.apache.thrift.protocol.TField("stats_obj", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -104895,30 +98556,30 @@ public boolean equals(update_partition_column_statistics_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_stats_obj = true && (isSetStats_obj()); - list.add(present_stats_obj); + builder.append(present_stats_obj); if (present_stats_obj) - list.add(stats_obj); + builder.append(stats_obj); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(update_partition_column_statistics_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + update_partition_column_statistics_args typedOther = (update_partition_column_statistics_args)other; - lastComparison = Boolean.valueOf(isSetStats_obj()).compareTo(other.isSetStats_obj()); + lastComparison = Boolean.valueOf(isSetStats_obj()).compareTo(typedOther.isSetStats_obj()); if (lastComparison != 0) { return lastComparison; } if (isSetStats_obj()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stats_obj, other.stats_obj); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stats_obj, typedOther.stats_obj); if (lastComparison != 0) { return lastComparison; } @@ -105064,7 +98725,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, update_partition_col } - public static class update_partition_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class update_partition_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("update_partition_column_statistics_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); @@ -105492,90 +99153,90 @@ public boolean equals(update_partition_column_statistics_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(update_partition_column_statistics_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + update_partition_column_statistics_result typedOther = (update_partition_column_statistics_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -105846,7 +99507,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, update_partition_col } - public static class get_table_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_column_statistics_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); @@ -106156,60 +99817,60 @@ public boolean equals(get_table_column_statistics_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_col_name = true && (isSetCol_name()); - list.add(present_col_name); + builder.append(present_col_name); if (present_col_name) - list.add(col_name); + builder.append(col_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_column_statistics_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_column_statistics_args typedOther = (get_table_column_statistics_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(other.isSetCol_name()); + lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(typedOther.isSetCol_name()); if (lastComparison != 0) { return lastComparison; } if (isSetCol_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, other.col_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, typedOther.col_name); if (lastComparison != 0) { return lastComparison; } @@ -106412,7 +100073,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_column_sta } - public static class get_table_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_column_statistics_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); @@ -106838,90 +100499,90 @@ public boolean equals(get_table_column_statistics_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_column_statistics_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_column_statistics_result typedOther = (get_table_column_statistics_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -107199,7 +100860,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_column_sta } - public static class get_partition_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_column_statistics_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); @@ -107567,75 +101228,75 @@ public boolean equals(get_partition_column_statistics_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); boolean present_col_name = true && (isSetCol_name()); - list.add(present_col_name); + builder.append(present_col_name); if (present_col_name) - list.add(col_name); + builder.append(col_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_column_statistics_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_column_statistics_args typedOther = (get_partition_column_statistics_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(other.isSetCol_name()); + lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(typedOther.isSetCol_name()); if (lastComparison != 0) { return lastComparison; } if (isSetCol_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, other.col_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, typedOther.col_name); if (lastComparison != 0) { return lastComparison; } @@ -107869,7 +101530,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_column } - public static class get_partition_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partition_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_column_statistics_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); @@ -108295,90 +101956,90 @@ public boolean equals(get_partition_column_statistics_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partition_column_statistics_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partition_column_statistics_result typedOther = (get_partition_column_statistics_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -108656,7 +102317,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_column } - public static class get_table_statistics_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_statistics_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_statistics_req_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -108850,30 +102511,30 @@ public boolean equals(get_table_statistics_req_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_statistics_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_statistics_req_args typedOther = (get_table_statistics_req_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -109019,7 +102680,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_statistics } - public static class get_table_statistics_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_table_statistics_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_table_statistics_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -109329,60 +102990,60 @@ public boolean equals(get_table_statistics_req_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_table_statistics_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_table_statistics_req_result typedOther = (get_table_statistics_req_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -109594,7 +103255,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_statistics } - public static class get_partitions_statistics_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_statistics_req_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_statistics_req_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -109788,30 +103449,30 @@ public boolean equals(get_partitions_statistics_req_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_statistics_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_statistics_req_args typedOther = (get_partitions_statistics_req_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -109957,7 +103618,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_stati } - public static class get_partitions_statistics_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_partitions_statistics_req_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_statistics_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -110267,60 +103928,60 @@ public boolean equals(get_partitions_statistics_req_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_partitions_statistics_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_partitions_statistics_req_result typedOther = (get_partitions_statistics_req_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -110532,7 +104193,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_stati } - public static class get_aggr_stats_for_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_aggr_stats_for_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_aggr_stats_for_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -110726,30 +104387,30 @@ public boolean equals(get_aggr_stats_for_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_aggr_stats_for_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_aggr_stats_for_args typedOther = (get_aggr_stats_for_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -110895,7 +104556,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_aggr_stats_for_a } - public static class get_aggr_stats_for_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_aggr_stats_for_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_aggr_stats_for_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -111205,60 +104866,60 @@ public boolean equals(get_aggr_stats_for_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_aggr_stats_for_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_aggr_stats_for_result typedOther = (get_aggr_stats_for_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -111470,7 +105131,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_aggr_stats_for_r } - public static class set_aggr_stats_for_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class set_aggr_stats_for_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_aggr_stats_for_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -111664,30 +105325,30 @@ public boolean equals(set_aggr_stats_for_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(set_aggr_stats_for_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + set_aggr_stats_for_args typedOther = (set_aggr_stats_for_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -111833,7 +105494,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_aggr_stats_for_a } - public static class set_aggr_stats_for_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class set_aggr_stats_for_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_aggr_stats_for_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); @@ -112261,90 +105922,90 @@ public boolean equals(set_aggr_stats_for_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(set_aggr_stats_for_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + set_aggr_stats_for_result typedOther = (set_aggr_stats_for_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -112615,7 +106276,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_aggr_stats_for_r } - public static class delete_partition_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class delete_partition_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delete_partition_column_statistics_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); @@ -112983,75 +106644,75 @@ public boolean equals(delete_partition_column_statistics_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); + builder.append(present_part_name); if (present_part_name) - list.add(part_name); + builder.append(part_name); boolean present_col_name = true && (isSetCol_name()); - list.add(present_col_name); + builder.append(present_col_name); if (present_col_name) - list.add(col_name); + builder.append(col_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(delete_partition_column_statistics_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + delete_partition_column_statistics_args typedOther = (delete_partition_column_statistics_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(typedOther.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, typedOther.part_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(other.isSetCol_name()); + lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(typedOther.isSetCol_name()); if (lastComparison != 0) { return lastComparison; } if (isSetCol_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, other.col_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, typedOther.col_name); if (lastComparison != 0) { return lastComparison; } @@ -113285,7 +106946,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, delete_partition_col } - public static class delete_partition_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class delete_partition_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delete_partition_column_statistics_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); @@ -113713,90 +107374,90 @@ public boolean equals(delete_partition_column_statistics_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(delete_partition_column_statistics_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + delete_partition_column_statistics_result typedOther = (delete_partition_column_statistics_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -114067,7 +107728,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, delete_partition_col } - public static class delete_table_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class delete_table_column_statistics_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delete_table_column_statistics_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); @@ -114377,60 +108038,60 @@ public boolean equals(delete_table_column_statistics_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); + builder.append(present_db_name); if (present_db_name) - list.add(db_name); + builder.append(db_name); boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); + builder.append(present_tbl_name); if (present_tbl_name) - list.add(tbl_name); + builder.append(tbl_name); boolean present_col_name = true && (isSetCol_name()); - list.add(present_col_name); + builder.append(present_col_name); if (present_col_name) - list.add(col_name); + builder.append(col_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(delete_table_column_statistics_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + delete_table_column_statistics_args typedOther = (delete_table_column_statistics_args)other; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { return lastComparison; } if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, typedOther.db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(typedOther.isSetTbl_name()); if (lastComparison != 0) { return lastComparison; } if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, typedOther.tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(other.isSetCol_name()); + lastComparison = Boolean.valueOf(isSetCol_name()).compareTo(typedOther.isSetCol_name()); if (lastComparison != 0) { return lastComparison; } if (isSetCol_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, other.col_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.col_name, typedOther.col_name); if (lastComparison != 0) { return lastComparison; } @@ -114633,7 +108294,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, delete_table_column_ } - public static class delete_table_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class delete_table_column_statistics_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delete_table_column_statistics_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); @@ -115061,90 +108722,90 @@ public boolean equals(delete_table_column_statistics_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(delete_table_column_statistics_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + delete_table_column_statistics_result typedOther = (delete_table_column_statistics_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -115415,7 +109076,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, delete_table_column_ } - public static class create_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_function_args"); private static final org.apache.thrift.protocol.TField FUNC_FIELD_DESC = new org.apache.thrift.protocol.TField("func", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -115609,30 +109270,30 @@ public boolean equals(create_function_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_func = true && (isSetFunc()); - list.add(present_func); + builder.append(present_func); if (present_func) - list.add(func); + builder.append(func); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_function_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_function_args typedOther = (create_function_args)other; - lastComparison = Boolean.valueOf(isSetFunc()).compareTo(other.isSetFunc()); + lastComparison = Boolean.valueOf(isSetFunc()).compareTo(typedOther.isSetFunc()); if (lastComparison != 0) { return lastComparison; } if (isSetFunc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.func, other.func); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.func, typedOther.func); if (lastComparison != 0) { return lastComparison; } @@ -115778,7 +109439,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_function_args } - public static class create_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_function_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -116146,75 +109807,75 @@ public boolean equals(create_function_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); boolean present_o4 = true && (isSetO4()); - list.add(present_o4); + builder.append(present_o4); if (present_o4) - list.add(o4); + builder.append(o4); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_function_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_function_result typedOther = (create_function_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); if (lastComparison != 0) { return lastComparison; } if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); if (lastComparison != 0) { return lastComparison; } @@ -116456,7 +110117,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_function_resu } - public static class drop_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_function_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -116708,45 +110369,45 @@ public boolean equals(drop_function_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_funcName = true && (isSetFuncName()); - list.add(present_funcName); + builder.append(present_funcName); if (present_funcName) - list.add(funcName); + builder.append(funcName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_function_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_function_args typedOther = (drop_function_args)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFuncName()).compareTo(other.isSetFuncName()); + lastComparison = Boolean.valueOf(isSetFuncName()).compareTo(typedOther.isSetFuncName()); if (lastComparison != 0) { return lastComparison; } if (isSetFuncName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcName, other.funcName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcName, typedOther.funcName); if (lastComparison != 0) { return lastComparison; } @@ -116918,7 +110579,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_function_args s } - public static class drop_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_function_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -117170,45 +110831,45 @@ public boolean equals(drop_function_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_function_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_function_result typedOther = (drop_function_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -117384,7 +111045,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_function_result } - public static class alter_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_function_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -117694,60 +111355,60 @@ public boolean equals(alter_function_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_funcName = true && (isSetFuncName()); - list.add(present_funcName); + builder.append(present_funcName); if (present_funcName) - list.add(funcName); + builder.append(funcName); boolean present_newFunc = true && (isSetNewFunc()); - list.add(present_newFunc); + builder.append(present_newFunc); if (present_newFunc) - list.add(newFunc); + builder.append(newFunc); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_function_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_function_args typedOther = (alter_function_args)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFuncName()).compareTo(other.isSetFuncName()); + lastComparison = Boolean.valueOf(isSetFuncName()).compareTo(typedOther.isSetFuncName()); if (lastComparison != 0) { return lastComparison; } if (isSetFuncName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcName, other.funcName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcName, typedOther.funcName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNewFunc()).compareTo(other.isSetNewFunc()); + lastComparison = Boolean.valueOf(isSetNewFunc()).compareTo(typedOther.isSetNewFunc()); if (lastComparison != 0) { return lastComparison; } if (isSetNewFunc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newFunc, other.newFunc); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newFunc, typedOther.newFunc); if (lastComparison != 0) { return lastComparison; } @@ -117955,7 +111616,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_function_args } - public static class alter_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class alter_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("alter_function_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -118207,45 +111868,45 @@ public boolean equals(alter_function_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(alter_function_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + alter_function_result typedOther = (alter_function_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -118421,7 +112082,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_function_resul } - public static class get_functions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_functions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_functions_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -118673,45 +112334,45 @@ public boolean equals(get_functions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_pattern = true && (isSetPattern()); - list.add(present_pattern); + builder.append(present_pattern); if (present_pattern) - list.add(pattern); + builder.append(pattern); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_functions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_functions_args typedOther = (get_functions_args)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPattern()).compareTo(other.isSetPattern()); + lastComparison = Boolean.valueOf(isSetPattern()).compareTo(typedOther.isSetPattern()); if (lastComparison != 0) { return lastComparison; } if (isSetPattern()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, typedOther.pattern); if (lastComparison != 0) { return lastComparison; } @@ -118883,7 +112544,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_functions_args s } - public static class get_functions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_functions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_functions_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); @@ -118989,7 +112650,10 @@ public get_functions_result( */ public get_functions_result(get_functions_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -119152,45 +112816,45 @@ public boolean equals(get_functions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_functions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_functions_result typedOther = (get_functions_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -119278,11 +112942,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_functions_resul { org.apache.thrift.protocol.TList _list918 = iprot.readListBegin(); struct.success = new ArrayList(_list918.size); - String _elem919; - for (int _i920 = 0; _i920 < _list918.size; ++_i920) + for (int _i919 = 0; _i919 < _list918.size; ++_i919) { - _elem919 = iprot.readString(); - struct.success.add(_elem919); + String _elem920; // required + _elem920 = iprot.readString(); + struct.success.add(_elem920); } iprot.readListEnd(); } @@ -119377,11 +113041,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_functions_result { org.apache.thrift.protocol.TList _list923 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list923.size); - String _elem924; - for (int _i925 = 0; _i925 < _list923.size; ++_i925) + for (int _i924 = 0; _i924 < _list923.size; ++_i924) { - _elem924 = iprot.readString(); - struct.success.add(_elem924); + String _elem925; // required + _elem925 = iprot.readString(); + struct.success.add(_elem925); } } struct.setSuccessIsSet(true); @@ -119396,7 +113060,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_functions_result } - public static class get_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_function_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_function_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -119648,45 +113312,45 @@ public boolean equals(get_function_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_dbName = true && (isSetDbName()); - list.add(present_dbName); + builder.append(present_dbName); if (present_dbName) - list.add(dbName); + builder.append(dbName); boolean present_funcName = true && (isSetFuncName()); - list.add(present_funcName); + builder.append(present_funcName); if (present_funcName) - list.add(funcName); + builder.append(funcName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_function_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_function_args typedOther = (get_function_args)other; - lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(typedOther.isSetDbName()); if (lastComparison != 0) { return lastComparison; } if (isSetDbName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, typedOther.dbName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFuncName()).compareTo(other.isSetFuncName()); + lastComparison = Boolean.valueOf(isSetFuncName()).compareTo(typedOther.isSetFuncName()); if (lastComparison != 0) { return lastComparison; } if (isSetFuncName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcName, other.funcName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.funcName, typedOther.funcName); if (lastComparison != 0) { return lastComparison; } @@ -119858,7 +113522,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_function_args st } - public static class get_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_function_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_function_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); @@ -120168,60 +113832,60 @@ public boolean equals(get_function_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_function_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_function_result typedOther = (get_function_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -120433,7 +114097,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_function_result } - public static class get_all_functions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_all_functions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_functions_args"); @@ -120563,18 +114227,18 @@ public boolean equals(get_all_functions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_all_functions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_all_functions_args typedOther = (get_all_functions_args)other; return 0; } @@ -120679,7 +114343,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_functions_ar } - public static class get_all_functions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_all_functions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_all_functions_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); @@ -120931,45 +114595,45 @@ public boolean equals(get_all_functions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_all_functions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_all_functions_result typedOther = (get_all_functions_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -121148,7 +114812,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_functions_re } - public static class create_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_role_args"); private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -121342,30 +115006,30 @@ public boolean equals(create_role_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_role = true && (isSetRole()); - list.add(present_role); + builder.append(present_role); if (present_role) - list.add(role); + builder.append(role); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_role_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_role_args typedOther = (create_role_args)other; - lastComparison = Boolean.valueOf(isSetRole()).compareTo(other.isSetRole()); + lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole()); if (lastComparison != 0) { return lastComparison; } if (isSetRole()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, other.role); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role); if (lastComparison != 0) { return lastComparison; } @@ -121511,7 +115175,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_role_args str } - public static class create_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class create_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("create_role_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); @@ -121765,45 +115429,45 @@ public boolean equals(create_role_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(create_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + create_role_result typedOther = (create_role_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -121975,7 +115639,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_role_result s } - public static class drop_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_role_args"); private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("role_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -122169,30 +115833,30 @@ public boolean equals(drop_role_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_role_name = true && (isSetRole_name()); - list.add(present_role_name); + builder.append(present_role_name); if (present_role_name) - list.add(role_name); + builder.append(role_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_role_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_role_args typedOther = (drop_role_args)other; - lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(other.isSetRole_name()); + lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(typedOther.isSetRole_name()); if (lastComparison != 0) { return lastComparison; } if (isSetRole_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, other.role_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, typedOther.role_name); if (lastComparison != 0) { return lastComparison; } @@ -122333,7 +115997,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_role_args struc } - public static class drop_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class drop_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_role_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); @@ -122587,45 +116251,45 @@ public boolean equals(drop_role_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(drop_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + drop_role_result typedOther = (drop_role_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -122797,7 +116461,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_role_result str } - public static class get_role_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_role_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_role_names_args"); @@ -122927,18 +116591,18 @@ public boolean equals(get_role_names_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_role_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_role_names_args typedOther = (get_role_names_args)other; return 0; } @@ -123043,7 +116707,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_names_args } - public static class get_role_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_role_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_role_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.LIST, (short)0); @@ -123149,7 +116813,10 @@ public get_role_names_result( */ public get_role_names_result(get_role_names_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -123312,45 +116979,45 @@ public boolean equals(get_role_names_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_role_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_role_names_result typedOther = (get_role_names_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -123438,11 +117105,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_role_names_resu { org.apache.thrift.protocol.TList _list926 = iprot.readListBegin(); struct.success = new ArrayList(_list926.size); - String _elem927; - for (int _i928 = 0; _i928 < _list926.size; ++_i928) + for (int _i927 = 0; _i927 < _list926.size; ++_i927) { - _elem927 = iprot.readString(); - struct.success.add(_elem927); + String _elem928; // required + _elem928 = iprot.readString(); + struct.success.add(_elem928); } iprot.readListEnd(); } @@ -123537,11 +117204,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_names_resul { org.apache.thrift.protocol.TList _list931 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list931.size); - String _elem932; - for (int _i933 = 0; _i933 < _list931.size; ++_i933) + for (int _i932 = 0; _i932 < _list931.size; ++_i932) { - _elem932 = iprot.readString(); - struct.success.add(_elem932); + String _elem933; // required + _elem933 = iprot.readString(); + struct.success.add(_elem933); } } struct.setSuccessIsSet(true); @@ -123556,7 +117223,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_names_resul } - public static class grant_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_role_args"); private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("role_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -124066,105 +117733,105 @@ public boolean equals(grant_role_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_role_name = true && (isSetRole_name()); - list.add(present_role_name); + builder.append(present_role_name); if (present_role_name) - list.add(role_name); + builder.append(role_name); boolean present_principal_name = true && (isSetPrincipal_name()); - list.add(present_principal_name); + builder.append(present_principal_name); if (present_principal_name) - list.add(principal_name); + builder.append(principal_name); boolean present_principal_type = true && (isSetPrincipal_type()); - list.add(present_principal_type); + builder.append(present_principal_type); if (present_principal_type) - list.add(principal_type.getValue()); + builder.append(principal_type.getValue()); boolean present_grantor = true && (isSetGrantor()); - list.add(present_grantor); + builder.append(present_grantor); if (present_grantor) - list.add(grantor); + builder.append(grantor); boolean present_grantorType = true && (isSetGrantorType()); - list.add(present_grantorType); + builder.append(present_grantorType); if (present_grantorType) - list.add(grantorType.getValue()); + builder.append(grantorType.getValue()); boolean present_grant_option = true; - list.add(present_grant_option); + builder.append(present_grant_option); if (present_grant_option) - list.add(grant_option); + builder.append(grant_option); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_role_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_role_args typedOther = (grant_role_args)other; - lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(other.isSetRole_name()); + lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(typedOther.isSetRole_name()); if (lastComparison != 0) { return lastComparison; } if (isSetRole_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, other.role_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, typedOther.role_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(other.isSetPrincipal_name()); + lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, other.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(other.isSetPrincipal_type()); + lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(typedOther.isSetPrincipal_type()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, other.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantor()).compareTo(other.isSetGrantor()); + lastComparison = Boolean.valueOf(isSetGrantor()).compareTo(typedOther.isSetGrantor()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantor()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, other.grantor); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, typedOther.grantor); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrantorType()).compareTo(other.isSetGrantorType()); + lastComparison = Boolean.valueOf(isSetGrantorType()).compareTo(typedOther.isSetGrantorType()); if (lastComparison != 0) { return lastComparison; } if (isSetGrantorType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorType, other.grantorType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorType, typedOther.grantorType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGrant_option()).compareTo(other.isSetGrant_option()); + lastComparison = Boolean.valueOf(isSetGrant_option()).compareTo(typedOther.isSetGrant_option()); if (lastComparison != 0) { return lastComparison; } if (isSetGrant_option()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grant_option, other.grant_option); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grant_option, typedOther.grant_option); if (lastComparison != 0) { return lastComparison; } @@ -124295,7 +117962,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, grant_role_args str break; case 3: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -124311,7 +117978,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, grant_role_args str break; case 5: // GRANTOR_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.grantorType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -124436,7 +118103,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_args stru struct.setPrincipal_nameIsSet(true); } if (incoming.get(2)) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } if (incoming.get(3)) { @@ -124444,7 +118111,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_args stru struct.setGrantorIsSet(true); } if (incoming.get(4)) { - struct.grantorType = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); struct.setGrantorTypeIsSet(true); } if (incoming.get(5)) { @@ -124456,7 +118123,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_args stru } - public static class grant_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_role_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); @@ -124710,45 +118377,45 @@ public boolean equals(grant_role_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_role_result typedOther = (grant_role_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -124920,7 +118587,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_result st } - public static class revoke_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class revoke_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_role_args"); private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("role_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -125242,60 +118909,60 @@ public boolean equals(revoke_role_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_role_name = true && (isSetRole_name()); - list.add(present_role_name); + builder.append(present_role_name); if (present_role_name) - list.add(role_name); + builder.append(role_name); boolean present_principal_name = true && (isSetPrincipal_name()); - list.add(present_principal_name); + builder.append(present_principal_name); if (present_principal_name) - list.add(principal_name); + builder.append(principal_name); boolean present_principal_type = true && (isSetPrincipal_type()); - list.add(present_principal_type); + builder.append(present_principal_type); if (present_principal_type) - list.add(principal_type.getValue()); + builder.append(principal_type.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(revoke_role_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + revoke_role_args typedOther = (revoke_role_args)other; - lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(other.isSetRole_name()); + lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(typedOther.isSetRole_name()); if (lastComparison != 0) { return lastComparison; } if (isSetRole_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, other.role_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, typedOther.role_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(other.isSetPrincipal_name()); + lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, other.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(other.isSetPrincipal_type()); + lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(typedOther.isSetPrincipal_type()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, other.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } @@ -125404,7 +119071,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, revoke_role_args st break; case 3: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -125490,7 +119157,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, revoke_role_args str struct.setPrincipal_nameIsSet(true); } if (incoming.get(2)) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } } @@ -125498,7 +119165,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, revoke_role_args str } - public static class revoke_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class revoke_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_role_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); @@ -125752,45 +119419,45 @@ public boolean equals(revoke_role_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(revoke_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + revoke_role_result typedOther = (revoke_role_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -125962,7 +119629,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, revoke_role_result s } - public static class list_roles_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class list_roles_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_roles_args"); private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -126226,45 +119893,45 @@ public boolean equals(list_roles_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_principal_name = true && (isSetPrincipal_name()); - list.add(present_principal_name); + builder.append(present_principal_name); if (present_principal_name) - list.add(principal_name); + builder.append(principal_name); boolean present_principal_type = true && (isSetPrincipal_type()); - list.add(present_principal_type); + builder.append(present_principal_type); if (present_principal_type) - list.add(principal_type.getValue()); + builder.append(principal_type.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(list_roles_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + list_roles_args typedOther = (list_roles_args)other; - lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(other.isSetPrincipal_name()); + lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, other.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(other.isSetPrincipal_type()); + lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(typedOther.isSetPrincipal_type()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, other.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } @@ -126357,7 +120024,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_args str break; case 2: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -126428,7 +120095,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_args stru struct.setPrincipal_nameIsSet(true); } if (incoming.get(1)) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } } @@ -126436,7 +120103,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_args stru } - public static class list_roles_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class list_roles_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_roles_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); @@ -126542,7 +120209,7 @@ public list_roles_result( */ public list_roles_result(list_roles_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (Role other_element : other.success) { __this__success.add(new Role(other_element)); } @@ -126708,45 +120375,45 @@ public boolean equals(list_roles_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(list_roles_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + list_roles_result typedOther = (list_roles_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -126834,12 +120501,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_result s { org.apache.thrift.protocol.TList _list934 = iprot.readListBegin(); struct.success = new ArrayList(_list934.size); - Role _elem935; - for (int _i936 = 0; _i936 < _list934.size; ++_i936) + for (int _i935 = 0; _i935 < _list934.size; ++_i935) { - _elem935 = new Role(); - _elem935.read(iprot); - struct.success.add(_elem935); + Role _elem936; // required + _elem936 = new Role(); + _elem936.read(iprot); + struct.success.add(_elem936); } iprot.readListEnd(); } @@ -126934,12 +120601,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result st { org.apache.thrift.protocol.TList _list939 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list939.size); - Role _elem940; - for (int _i941 = 0; _i941 < _list939.size; ++_i941) + for (int _i940 = 0; _i940 < _list939.size; ++_i940) { - _elem940 = new Role(); - _elem940.read(iprot); - struct.success.add(_elem940); + Role _elem941; // required + _elem941 = new Role(); + _elem941.read(iprot); + struct.success.add(_elem941); } } struct.setSuccessIsSet(true); @@ -126954,7 +120621,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result st } - public static class grant_revoke_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_revoke_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_revoke_role_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -127148,30 +120815,30 @@ public boolean equals(grant_revoke_role_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_revoke_role_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_revoke_role_args typedOther = (grant_revoke_role_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -127317,7 +120984,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_revoke_role_ar } - public static class grant_revoke_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_revoke_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_revoke_role_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -127569,45 +121236,45 @@ public boolean equals(grant_revoke_role_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_revoke_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_revoke_role_result typedOther = (grant_revoke_role_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -127786,7 +121453,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_revoke_role_re } - public static class get_principals_in_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_principals_in_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_principals_in_role_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -127980,30 +121647,30 @@ public boolean equals(get_principals_in_role_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_principals_in_role_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_principals_in_role_args typedOther = (get_principals_in_role_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -128149,7 +121816,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_principals_in_ro } - public static class get_principals_in_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_principals_in_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_principals_in_role_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -128401,45 +122068,45 @@ public boolean equals(get_principals_in_role_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_principals_in_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_principals_in_role_result typedOther = (get_principals_in_role_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -128618,7 +122285,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_principals_in_ro } - public static class get_role_grants_for_principal_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_role_grants_for_principal_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_role_grants_for_principal_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -128812,30 +122479,30 @@ public boolean equals(get_role_grants_for_principal_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_role_grants_for_principal_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_role_grants_for_principal_args typedOther = (get_role_grants_for_principal_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -128981,7 +122648,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_grants_for_ } - public static class get_role_grants_for_principal_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_role_grants_for_principal_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_role_grants_for_principal_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); @@ -129233,45 +122900,45 @@ public boolean equals(get_role_grants_for_principal_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_role_grants_for_principal_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_role_grants_for_principal_result typedOther = (get_role_grants_for_principal_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -129450,7 +123117,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_grants_for_ } - public static class get_privilege_set_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_privilege_set_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_privilege_set_args"); private static final org.apache.thrift.protocol.TField HIVE_OBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("hiveObject", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -129571,7 +123238,10 @@ public get_privilege_set_args(get_privilege_set_args other) { this.user_name = other.user_name; } if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); + List __this__group_names = new ArrayList(); + for (String other_element : other.group_names) { + __this__group_names.add(other_element); + } this.group_names = __this__group_names; } } @@ -129777,60 +123447,60 @@ public boolean equals(get_privilege_set_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_hiveObject = true && (isSetHiveObject()); - list.add(present_hiveObject); + builder.append(present_hiveObject); if (present_hiveObject) - list.add(hiveObject); + builder.append(hiveObject); boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); + builder.append(present_user_name); if (present_user_name) - list.add(user_name); + builder.append(user_name); boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); + builder.append(present_group_names); if (present_group_names) - list.add(group_names); + builder.append(group_names); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_privilege_set_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_privilege_set_args typedOther = (get_privilege_set_args)other; - lastComparison = Boolean.valueOf(isSetHiveObject()).compareTo(other.isSetHiveObject()); + lastComparison = Boolean.valueOf(isSetHiveObject()).compareTo(typedOther.isSetHiveObject()); if (lastComparison != 0) { return lastComparison; } if (isSetHiveObject()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, other.hiveObject); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, typedOther.hiveObject); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(typedOther.isSetUser_name()); if (lastComparison != 0) { return lastComparison; } if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(typedOther.isSetGroup_names()); if (lastComparison != 0) { return lastComparison; } if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -129946,11 +123616,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_privilege_set_a { org.apache.thrift.protocol.TList _list942 = iprot.readListBegin(); struct.group_names = new ArrayList(_list942.size); - String _elem943; - for (int _i944 = 0; _i944 < _list942.size; ++_i944) + for (int _i943 = 0; _i943 < _list942.size; ++_i943) { - _elem943 = iprot.readString(); - struct.group_names.add(_elem943); + String _elem944; // required + _elem944 = iprot.readString(); + struct.group_names.add(_elem944); } iprot.readListEnd(); } @@ -130056,11 +123726,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar { org.apache.thrift.protocol.TList _list947 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.group_names = new ArrayList(_list947.size); - String _elem948; - for (int _i949 = 0; _i949 < _list947.size; ++_i949) + for (int _i948 = 0; _i948 < _list947.size; ++_i948) { - _elem948 = iprot.readString(); - struct.group_names.add(_elem948); + String _elem949; // required + _elem949 = iprot.readString(); + struct.group_names.add(_elem949); } } struct.setGroup_namesIsSet(true); @@ -130070,7 +123740,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } - public static class get_privilege_set_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_privilege_set_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_privilege_set_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); @@ -130322,45 +123992,45 @@ public boolean equals(get_privilege_set_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_privilege_set_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_privilege_set_result typedOther = (get_privilege_set_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -130539,7 +124209,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_re } - public static class list_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class list_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_privileges_args"); private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -130861,60 +124531,60 @@ public boolean equals(list_privileges_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_principal_name = true && (isSetPrincipal_name()); - list.add(present_principal_name); + builder.append(present_principal_name); if (present_principal_name) - list.add(principal_name); + builder.append(principal_name); boolean present_principal_type = true && (isSetPrincipal_type()); - list.add(present_principal_type); + builder.append(present_principal_type); if (present_principal_type) - list.add(principal_type.getValue()); + builder.append(principal_type.getValue()); boolean present_hiveObject = true && (isSetHiveObject()); - list.add(present_hiveObject); + builder.append(present_hiveObject); if (present_hiveObject) - list.add(hiveObject); + builder.append(hiveObject); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(list_privileges_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + list_privileges_args typedOther = (list_privileges_args)other; - lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(other.isSetPrincipal_name()); + lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, other.principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(other.isSetPrincipal_type()); + lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(typedOther.isSetPrincipal_type()); if (lastComparison != 0) { return lastComparison; } if (isSetPrincipal_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, other.principal_type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHiveObject()).compareTo(other.isSetHiveObject()); + lastComparison = Boolean.valueOf(isSetHiveObject()).compareTo(typedOther.isSetHiveObject()); if (lastComparison != 0) { return lastComparison; } if (isSetHiveObject()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, other.hiveObject); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hiveObject, typedOther.hiveObject); if (lastComparison != 0) { return lastComparison; } @@ -131018,7 +124688,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_privileges_arg break; case 2: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -131109,7 +124779,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_args struct.setPrincipal_nameIsSet(true); } if (incoming.get(1)) { - struct.principal_type = org.apache.hadoop.hive.metastore.api.PrincipalType.findByValue(iprot.readI32()); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } if (incoming.get(2)) { @@ -131122,7 +124792,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_args } - public static class list_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class list_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_privileges_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); @@ -131228,7 +124898,7 @@ public list_privileges_result( */ public list_privileges_result(list_privileges_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); + List __this__success = new ArrayList(); for (HiveObjectPrivilege other_element : other.success) { __this__success.add(new HiveObjectPrivilege(other_element)); } @@ -131394,45 +125064,45 @@ public boolean equals(list_privileges_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(list_privileges_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + list_privileges_result typedOther = (list_privileges_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -131520,12 +125190,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_privileges_res { org.apache.thrift.protocol.TList _list950 = iprot.readListBegin(); struct.success = new ArrayList(_list950.size); - HiveObjectPrivilege _elem951; - for (int _i952 = 0; _i952 < _list950.size; ++_i952) + for (int _i951 = 0; _i951 < _list950.size; ++_i951) { - _elem951 = new HiveObjectPrivilege(); - _elem951.read(iprot); - struct.success.add(_elem951); + HiveObjectPrivilege _elem952; // required + _elem952 = new HiveObjectPrivilege(); + _elem952.read(iprot); + struct.success.add(_elem952); } iprot.readListEnd(); } @@ -131620,12 +125290,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_resu { org.apache.thrift.protocol.TList _list955 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.success = new ArrayList(_list955.size); - HiveObjectPrivilege _elem956; - for (int _i957 = 0; _i957 < _list955.size; ++_i957) + for (int _i956 = 0; _i956 < _list955.size; ++_i956) { - _elem956 = new HiveObjectPrivilege(); - _elem956.read(iprot); - struct.success.add(_elem956); + HiveObjectPrivilege _elem957; // required + _elem957 = new HiveObjectPrivilege(); + _elem957.read(iprot); + struct.success.add(_elem957); } } struct.setSuccessIsSet(true); @@ -131640,7 +125310,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_resu } - public static class grant_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_privileges_args"); private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -131834,30 +125504,30 @@ public boolean equals(grant_privileges_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_privileges_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_privileges_args typedOther = (grant_privileges_args)other; - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -132003,7 +125673,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_privileges_arg } - public static class grant_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_privileges_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); @@ -132257,45 +125927,45 @@ public boolean equals(grant_privileges_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_privileges_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_privileges_result typedOther = (grant_privileges_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -132467,7 +126137,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_privileges_res } - public static class revoke_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class revoke_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_privileges_args"); private static final org.apache.thrift.protocol.TField PRIVILEGES_FIELD_DESC = new org.apache.thrift.protocol.TField("privileges", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -132661,30 +126331,30 @@ public boolean equals(revoke_privileges_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_privileges = true && (isSetPrivileges()); - list.add(present_privileges); + builder.append(present_privileges); if (present_privileges) - list.add(privileges); + builder.append(privileges); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(revoke_privileges_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + revoke_privileges_args typedOther = (revoke_privileges_args)other; - lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(other.isSetPrivileges()); + lastComparison = Boolean.valueOf(isSetPrivileges()).compareTo(typedOther.isSetPrivileges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivileges()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, other.privileges); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privileges, typedOther.privileges); if (lastComparison != 0) { return lastComparison; } @@ -132830,7 +126500,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, revoke_privileges_ar } - public static class revoke_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class revoke_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_privileges_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); @@ -133084,45 +126754,45 @@ public boolean equals(revoke_privileges_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(revoke_privileges_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + revoke_privileges_result typedOther = (revoke_privileges_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -133294,7 +126964,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, revoke_privileges_re } - public static class grant_revoke_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_revoke_privileges_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_revoke_privileges_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -133488,30 +127158,30 @@ public boolean equals(grant_revoke_privileges_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_request = true && (isSetRequest()); - list.add(present_request); + builder.append(present_request); if (present_request) - list.add(request); + builder.append(request); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_revoke_privileges_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_revoke_privileges_args typedOther = (grant_revoke_privileges_args)other; - lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } if (isSetRequest()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -133657,7 +127327,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_revoke_privile } - public static class grant_revoke_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class grant_revoke_privileges_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_revoke_privileges_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); @@ -133909,45 +127579,45 @@ public boolean equals(grant_revoke_privileges_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(grant_revoke_privileges_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + grant_revoke_privileges_result typedOther = (grant_revoke_privileges_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -134126,7 +127796,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_revoke_privile } - public static class set_ugi_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class set_ugi_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_ugi_args"); private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -134235,7 +127905,10 @@ public set_ugi_args(set_ugi_args other) { this.user_name = other.user_name; } if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); + List __this__group_names = new ArrayList(); + for (String other_element : other.group_names) { + __this__group_names.add(other_element); + } this.group_names = __this__group_names; } } @@ -134395,45 +128068,45 @@ public boolean equals(set_ugi_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); + builder.append(present_user_name); if (present_user_name) - list.add(user_name); + builder.append(user_name); boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); + builder.append(present_group_names); if (present_group_names) - list.add(group_names); + builder.append(group_names); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(set_ugi_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + set_ugi_args typedOther = (set_ugi_args)other; - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(typedOther.isSetUser_name()); if (lastComparison != 0) { return lastComparison; } if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(typedOther.isSetGroup_names()); if (lastComparison != 0) { return lastComparison; } if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); if (lastComparison != 0) { return lastComparison; } @@ -134529,11 +128202,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_args struct { org.apache.thrift.protocol.TList _list958 = iprot.readListBegin(); struct.group_names = new ArrayList(_list958.size); - String _elem959; - for (int _i960 = 0; _i960 < _list958.size; ++_i960) + for (int _i959 = 0; _i959 < _list958.size; ++_i959) { - _elem959 = iprot.readString(); - struct.group_names.add(_elem959); + String _elem960; // required + _elem960 = iprot.readString(); + struct.group_names.add(_elem960); } iprot.readListEnd(); } @@ -134623,11 +128296,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) { org.apache.thrift.protocol.TList _list963 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.group_names = new ArrayList(_list963.size); - String _elem964; - for (int _i965 = 0; _i965 < _list963.size; ++_i965) + for (int _i964 = 0; _i964 < _list963.size; ++_i964) { - _elem964 = iprot.readString(); - struct.group_names.add(_elem964); + String _elem965; // required + _elem965 = iprot.readString(); + struct.group_names.add(_elem965); } } struct.setGroup_namesIsSet(true); @@ -134637,7 +128310,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } - public static class set_ugi_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class set_ugi_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("set_ugi_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); @@ -134743,7 +128416,10 @@ public set_ugi_result( */ public set_ugi_result(set_ugi_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetO1()) { @@ -134906,45 +128582,45 @@ public boolean equals(set_ugi_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(set_ugi_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + set_ugi_result typedOther = (set_ugi_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -135032,11 +128708,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_result stru { org.apache.thrift.protocol.TList _list966 = iprot.readListBegin(); struct.success = new ArrayList(_list966.size); - String _elem967; - for (int _i968 = 0; _i968 < _list966.size; ++_i968) + for (int _i967 = 0; _i967 < _list966.size; ++_i967) { - _elem967 = iprot.readString(); - struct.success.add(_elem967); + String _elem968; // required + _elem968 = iprot.readString(); + struct.success.add(_elem968); } iprot.readListEnd(); } @@ -135131,11 +128807,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_result struc { org.apache.thrift.protocol.TList _list971 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list971.size); - String _elem972; - for (int _i973 = 0; _i973 < _list971.size; ++_i973) + for (int _i972 = 0; _i972 < _list971.size; ++_i972) { - _elem972 = iprot.readString(); - struct.success.add(_elem972); + String _elem973; // required + _elem973 = iprot.readString(); + struct.success.add(_elem973); } } struct.setSuccessIsSet(true); @@ -135150,7 +128826,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_result struc } - public static class get_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_delegation_token_args"); private static final org.apache.thrift.protocol.TField TOKEN_OWNER_FIELD_DESC = new org.apache.thrift.protocol.TField("token_owner", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -135402,45 +129078,45 @@ public boolean equals(get_delegation_token_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_token_owner = true && (isSetToken_owner()); - list.add(present_token_owner); + builder.append(present_token_owner); if (present_token_owner) - list.add(token_owner); + builder.append(token_owner); boolean present_renewer_kerberos_principal_name = true && (isSetRenewer_kerberos_principal_name()); - list.add(present_renewer_kerberos_principal_name); + builder.append(present_renewer_kerberos_principal_name); if (present_renewer_kerberos_principal_name) - list.add(renewer_kerberos_principal_name); + builder.append(renewer_kerberos_principal_name); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_delegation_token_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_delegation_token_args typedOther = (get_delegation_token_args)other; - lastComparison = Boolean.valueOf(isSetToken_owner()).compareTo(other.isSetToken_owner()); + lastComparison = Boolean.valueOf(isSetToken_owner()).compareTo(typedOther.isSetToken_owner()); if (lastComparison != 0) { return lastComparison; } if (isSetToken_owner()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_owner, other.token_owner); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_owner, typedOther.token_owner); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRenewer_kerberos_principal_name()).compareTo(other.isSetRenewer_kerberos_principal_name()); + lastComparison = Boolean.valueOf(isSetRenewer_kerberos_principal_name()).compareTo(typedOther.isSetRenewer_kerberos_principal_name()); if (lastComparison != 0) { return lastComparison; } if (isSetRenewer_kerberos_principal_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.renewer_kerberos_principal_name, other.renewer_kerberos_principal_name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.renewer_kerberos_principal_name, typedOther.renewer_kerberos_principal_name); if (lastComparison != 0) { return lastComparison; } @@ -135612,7 +129288,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_delegation_token } - public static class get_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_delegation_token_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -135864,45 +129540,45 @@ public boolean equals(get_delegation_token_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_delegation_token_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_delegation_token_result typedOther = (get_delegation_token_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -136076,7 +129752,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_delegation_token } - public static class renew_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class renew_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("renew_delegation_token_args"); private static final org.apache.thrift.protocol.TField TOKEN_STR_FORM_FIELD_DESC = new org.apache.thrift.protocol.TField("token_str_form", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -136270,30 +129946,30 @@ public boolean equals(renew_delegation_token_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_token_str_form = true && (isSetToken_str_form()); - list.add(present_token_str_form); + builder.append(present_token_str_form); if (present_token_str_form) - list.add(token_str_form); + builder.append(token_str_form); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(renew_delegation_token_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + renew_delegation_token_args typedOther = (renew_delegation_token_args)other; - lastComparison = Boolean.valueOf(isSetToken_str_form()).compareTo(other.isSetToken_str_form()); + lastComparison = Boolean.valueOf(isSetToken_str_form()).compareTo(typedOther.isSetToken_str_form()); if (lastComparison != 0) { return lastComparison; } if (isSetToken_str_form()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_str_form, other.token_str_form); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_str_form, typedOther.token_str_form); if (lastComparison != 0) { return lastComparison; } @@ -136434,7 +130110,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, renew_delegation_tok } - public static class renew_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class renew_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("renew_delegation_token_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0); @@ -136688,45 +130364,45 @@ public boolean equals(renew_delegation_token_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true; - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(renew_delegation_token_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + renew_delegation_token_result typedOther = (renew_delegation_token_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -136898,7 +130574,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, renew_delegation_tok } - public static class cancel_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class cancel_delegation_token_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cancel_delegation_token_args"); private static final org.apache.thrift.protocol.TField TOKEN_STR_FORM_FIELD_DESC = new org.apache.thrift.protocol.TField("token_str_form", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -137092,30 +130768,30 @@ public boolean equals(cancel_delegation_token_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_token_str_form = true && (isSetToken_str_form()); - list.add(present_token_str_form); + builder.append(present_token_str_form); if (present_token_str_form) - list.add(token_str_form); + builder.append(token_str_form); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(cancel_delegation_token_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + cancel_delegation_token_args typedOther = (cancel_delegation_token_args)other; - lastComparison = Boolean.valueOf(isSetToken_str_form()).compareTo(other.isSetToken_str_form()); + lastComparison = Boolean.valueOf(isSetToken_str_form()).compareTo(typedOther.isSetToken_str_form()); if (lastComparison != 0) { return lastComparison; } if (isSetToken_str_form()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_str_form, other.token_str_form); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token_str_form, typedOther.token_str_form); if (lastComparison != 0) { return lastComparison; } @@ -137256,7 +130932,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, cancel_delegation_to } - public static class cancel_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class cancel_delegation_token_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("cancel_delegation_token_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -137450,30 +131126,30 @@ public boolean equals(cancel_delegation_token_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(cancel_delegation_token_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + cancel_delegation_token_result typedOther = (cancel_delegation_token_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -137616,7 +131292,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, cancel_delegation_to } - public static class get_open_txns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_open_txns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_open_txns_args"); @@ -137746,18 +131422,18 @@ public boolean equals(get_open_txns_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_open_txns_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_open_txns_args typedOther = (get_open_txns_args)other; return 0; } @@ -137862,7 +131538,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_open_txns_args s } - public static class get_open_txns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_open_txns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_open_txns_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); @@ -138056,30 +131732,30 @@ public boolean equals(get_open_txns_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_open_txns_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_open_txns_result typedOther = (get_open_txns_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -138225,7 +131901,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_open_txns_result } - public static class get_open_txns_info_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_open_txns_info_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_open_txns_info_args"); @@ -138355,18 +132031,18 @@ public boolean equals(get_open_txns_info_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_open_txns_info_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_open_txns_info_args typedOther = (get_open_txns_info_args)other; return 0; } @@ -138471,7 +132147,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_open_txns_info_a } - public static class get_open_txns_info_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_open_txns_info_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_open_txns_info_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); @@ -138665,30 +132341,30 @@ public boolean equals(get_open_txns_info_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_open_txns_info_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_open_txns_info_result typedOther = (get_open_txns_info_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -138834,7 +132510,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_open_txns_info_r } - public static class open_txns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class open_txns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("open_txns_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -139028,30 +132704,30 @@ public boolean equals(open_txns_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(open_txns_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + open_txns_args typedOther = (open_txns_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -139197,7 +132873,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, open_txns_args struc } - public static class open_txns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class open_txns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("open_txns_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); @@ -139391,30 +133067,30 @@ public boolean equals(open_txns_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(open_txns_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + open_txns_result typedOther = (open_txns_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -139560,7 +133236,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, open_txns_result str } - public static class abort_txn_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class abort_txn_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("abort_txn_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -139754,30 +133430,30 @@ public boolean equals(abort_txn_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(abort_txn_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + abort_txn_args typedOther = (abort_txn_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -139923,7 +133599,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, abort_txn_args struc } - public static class abort_txn_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class abort_txn_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("abort_txn_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -140117,30 +133793,30 @@ public boolean equals(abort_txn_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(abort_txn_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + abort_txn_result typedOther = (abort_txn_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } @@ -140283,7 +133959,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, abort_txn_result str } - public static class commit_txn_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class commit_txn_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("commit_txn_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -140477,30 +134153,30 @@ public boolean equals(commit_txn_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(commit_txn_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + commit_txn_args typedOther = (commit_txn_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -140646,7 +134322,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, commit_txn_args stru } - public static class commit_txn_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class commit_txn_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("commit_txn_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -140898,45 +134574,45 @@ public boolean equals(commit_txn_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(commit_txn_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + commit_txn_result typedOther = (commit_txn_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -141112,7 +134788,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, commit_txn_result st } - public static class lock_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class lock_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("lock_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -141306,30 +134982,30 @@ public boolean equals(lock_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(lock_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lock_args typedOther = (lock_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -141475,7 +135151,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, lock_args struct) th } - public static class lock_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class lock_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("lock_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); @@ -141785,60 +135461,60 @@ public boolean equals(lock_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(lock_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + lock_result typedOther = (lock_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -142050,7 +135726,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, lock_result struct) } - public static class check_lock_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class check_lock_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("check_lock_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -142244,30 +135920,30 @@ public boolean equals(check_lock_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(check_lock_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + check_lock_args typedOther = (check_lock_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -142413,7 +136089,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, check_lock_args stru } - public static class check_lock_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class check_lock_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("check_lock_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); @@ -142781,75 +136457,75 @@ public boolean equals(check_lock_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(check_lock_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + check_lock_result typedOther = (check_lock_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -143094,7 +136770,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, check_lock_result st } - public static class unlock_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class unlock_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unlock_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -143288,30 +136964,30 @@ public boolean equals(unlock_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(unlock_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + unlock_args typedOther = (unlock_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -143457,7 +137133,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, unlock_args struct) } - public static class unlock_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class unlock_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unlock_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -143709,45 +137385,45 @@ public boolean equals(unlock_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(unlock_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + unlock_result typedOther = (unlock_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -143923,7 +137599,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, unlock_result struct } - public static class show_locks_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class show_locks_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("show_locks_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -144117,30 +137793,30 @@ public boolean equals(show_locks_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(show_locks_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + show_locks_args typedOther = (show_locks_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -144286,7 +137962,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_locks_args stru } - public static class show_locks_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class show_locks_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("show_locks_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); @@ -144480,30 +138156,30 @@ public boolean equals(show_locks_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(show_locks_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + show_locks_result typedOther = (show_locks_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -144649,7 +138325,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_locks_result st } - public static class heartbeat_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class heartbeat_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("heartbeat_args"); private static final org.apache.thrift.protocol.TField IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("ids", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -144843,30 +138519,30 @@ public boolean equals(heartbeat_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_ids = true && (isSetIds()); - list.add(present_ids); + builder.append(present_ids); if (present_ids) - list.add(ids); + builder.append(ids); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(heartbeat_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + heartbeat_args typedOther = (heartbeat_args)other; - lastComparison = Boolean.valueOf(isSetIds()).compareTo(other.isSetIds()); + lastComparison = Boolean.valueOf(isSetIds()).compareTo(typedOther.isSetIds()); if (lastComparison != 0) { return lastComparison; } if (isSetIds()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ids, other.ids); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ids, typedOther.ids); if (lastComparison != 0) { return lastComparison; } @@ -145012,7 +138688,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_args struc } - public static class heartbeat_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class heartbeat_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("heartbeat_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -145322,60 +138998,60 @@ public boolean equals(heartbeat_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); boolean present_o3 = true && (isSetO3()); - list.add(present_o3); + builder.append(present_o3); if (present_o3) - list.add(o3); + builder.append(o3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(heartbeat_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + heartbeat_result typedOther = (heartbeat_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); if (lastComparison != 0) { return lastComparison; } if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); if (lastComparison != 0) { return lastComparison; } @@ -145584,7 +139260,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_result str } - public static class heartbeat_txn_range_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class heartbeat_txn_range_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("heartbeat_txn_range_args"); private static final org.apache.thrift.protocol.TField TXNS_FIELD_DESC = new org.apache.thrift.protocol.TField("txns", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -145778,30 +139454,30 @@ public boolean equals(heartbeat_txn_range_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txns = true && (isSetTxns()); - list.add(present_txns); + builder.append(present_txns); if (present_txns) - list.add(txns); + builder.append(txns); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(heartbeat_txn_range_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + heartbeat_txn_range_args typedOther = (heartbeat_txn_range_args)other; - lastComparison = Boolean.valueOf(isSetTxns()).compareTo(other.isSetTxns()); + lastComparison = Boolean.valueOf(isSetTxns()).compareTo(typedOther.isSetTxns()); if (lastComparison != 0) { return lastComparison; } if (isSetTxns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txns, other.txns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txns, typedOther.txns); if (lastComparison != 0) { return lastComparison; } @@ -145947,7 +139623,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_ } - public static class heartbeat_txn_range_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class heartbeat_txn_range_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("heartbeat_txn_range_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); @@ -146141,30 +139817,30 @@ public boolean equals(heartbeat_txn_range_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(heartbeat_txn_range_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + heartbeat_txn_range_result typedOther = (heartbeat_txn_range_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -146310,7 +139986,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, heartbeat_txn_range_ } - public static class compact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class compact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("compact_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -146504,30 +140180,30 @@ public boolean equals(compact_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(compact_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + compact_args typedOther = (compact_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -146673,7 +140349,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, compact_args struct) } - public static class compact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class compact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("compact_result"); @@ -146803,18 +140479,18 @@ public boolean equals(compact_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(compact_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + compact_result typedOther = (compact_result)other; return 0; } @@ -146919,7 +140595,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, compact_result struc } - public static class show_compact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class show_compact_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("show_compact_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -147113,30 +140789,30 @@ public boolean equals(show_compact_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(show_compact_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + show_compact_args typedOther = (show_compact_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -147282,7 +140958,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_args st } - public static class show_compact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class show_compact_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("show_compact_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); @@ -147476,30 +141152,30 @@ public boolean equals(show_compact_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(show_compact_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + show_compact_result typedOther = (show_compact_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -147645,7 +141321,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, show_compact_result } - public static class add_dynamic_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_dynamic_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_dynamic_partitions_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -147839,30 +141515,30 @@ public boolean equals(add_dynamic_partitions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_dynamic_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_dynamic_partitions_args typedOther = (add_dynamic_partitions_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -148008,7 +141684,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitio } - public static class add_dynamic_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class add_dynamic_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_dynamic_partitions_result"); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -148260,45 +141936,45 @@ public boolean equals(add_dynamic_partitions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_o1 = true && (isSetO1()); - list.add(present_o1); + builder.append(present_o1); if (present_o1) - list.add(o1); + builder.append(o1); boolean present_o2 = true && (isSetO2()); - list.add(present_o2); + builder.append(present_o2); if (present_o2) - list.add(o2); + builder.append(o2); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(add_dynamic_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + add_dynamic_partitions_result typedOther = (add_dynamic_partitions_result)other; - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); if (lastComparison != 0) { return lastComparison; } if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; } if (isSetO2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); if (lastComparison != 0) { return lastComparison; } @@ -148474,7 +142150,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_dynamic_partitio } - public static class get_next_notification_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_next_notification_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_next_notification_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -148668,30 +142344,30 @@ public boolean equals(get_next_notification_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_next_notification_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_next_notification_args typedOther = (get_next_notification_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -148837,7 +142513,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_next_notificatio } - public static class get_next_notification_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_next_notification_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_next_notification_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); @@ -149031,30 +142707,30 @@ public boolean equals(get_next_notification_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_next_notification_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_next_notification_result typedOther = (get_next_notification_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -149200,7 +142876,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_next_notificatio } - public static class get_current_notificationEventId_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_current_notificationEventId_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_current_notificationEventId_args"); @@ -149330,18 +143006,18 @@ public boolean equals(get_current_notificationEventId_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_current_notificationEventId_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_current_notificationEventId_args typedOther = (get_current_notificationEventId_args)other; return 0; } @@ -149446,7 +143122,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_current_notifica } - public static class get_current_notificationEventId_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class get_current_notificationEventId_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_current_notificationEventId_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); @@ -149640,30 +143316,30 @@ public boolean equals(get_current_notificationEventId_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(get_current_notificationEventId_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + get_current_notificationEventId_result typedOther = (get_current_notificationEventId_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -149809,7 +143485,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_current_notifica } - public static class fire_listener_event_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fire_listener_event_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fire_listener_event_args"); private static final org.apache.thrift.protocol.TField RQST_FIELD_DESC = new org.apache.thrift.protocol.TField("rqst", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -150003,30 +143679,30 @@ public boolean equals(fire_listener_event_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_rqst = true && (isSetRqst()); - list.add(present_rqst); + builder.append(present_rqst); if (present_rqst) - list.add(rqst); + builder.append(rqst); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fire_listener_event_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fire_listener_event_args typedOther = (fire_listener_event_args)other; - lastComparison = Boolean.valueOf(isSetRqst()).compareTo(other.isSetRqst()); + lastComparison = Boolean.valueOf(isSetRqst()).compareTo(typedOther.isSetRqst()); if (lastComparison != 0) { return lastComparison; } if (isSetRqst()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, other.rqst); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rqst, typedOther.rqst); if (lastComparison != 0) { return lastComparison; } @@ -150172,7 +143848,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fire_listener_event_ } - public static class fire_listener_event_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fire_listener_event_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fire_listener_event_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); @@ -150366,30 +144042,30 @@ public boolean equals(fire_listener_event_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fire_listener_event_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fire_listener_event_result typedOther = (fire_listener_event_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnAbortedException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnAbortedException.java index a877338..ae39507 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnAbortedException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnAbortedException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TxnAbortedException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TxnAbortedException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TxnAbortedException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TxnAbortedException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TxnAbortedException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TxnAbortedException typedOther = (TxnAbortedException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnInfo.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnInfo.java index 8b255b9..18cbe53 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnInfo.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnInfo.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TxnInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TxnInfo implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TxnInfo"); private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1); @@ -417,75 +413,75 @@ public boolean equals(TxnInfo that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_id = true; - list.add(present_id); + builder.append(present_id); if (present_id) - list.add(id); + builder.append(id); boolean present_state = true && (isSetState()); - list.add(present_state); + builder.append(present_state); if (present_state) - list.add(state.getValue()); + builder.append(state.getValue()); boolean present_user = true && (isSetUser()); - list.add(present_user); + builder.append(present_user); if (present_user) - list.add(user); + builder.append(user); boolean present_hostname = true && (isSetHostname()); - list.add(present_hostname); + builder.append(present_hostname); if (present_hostname) - list.add(hostname); + builder.append(hostname); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TxnInfo other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TxnInfo typedOther = (TxnInfo)other; - lastComparison = Boolean.valueOf(isSetId()).compareTo(other.isSetId()); + lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId()); if (lastComparison != 0) { return lastComparison; } if (isSetId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState()); + lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState()); if (lastComparison != 0) { return lastComparison; } if (isSetState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser()).compareTo(other.isSetUser()); + lastComparison = Boolean.valueOf(isSetUser()).compareTo(typedOther.isSetUser()); if (lastComparison != 0) { return lastComparison; } if (isSetUser()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, typedOther.user); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHostname()).compareTo(other.isSetHostname()); + lastComparison = Boolean.valueOf(isSetHostname()).compareTo(typedOther.isSetHostname()); if (lastComparison != 0) { return lastComparison; } if (isSetHostname()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, other.hostname); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostname, typedOther.hostname); if (lastComparison != 0) { return lastComparison; } @@ -608,7 +604,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TxnInfo struct) thr break; case 2: // STATE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.state = org.apache.hadoop.hive.metastore.api.TxnState.findByValue(iprot.readI32()); + struct.state = TxnState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -689,7 +685,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TxnInfo struct) thro TTupleProtocol iprot = (TTupleProtocol) prot; struct.id = iprot.readI64(); struct.setIdIsSet(true); - struct.state = org.apache.hadoop.hive.metastore.api.TxnState.findByValue(iprot.readI32()); + struct.state = TxnState.findByValue(iprot.readI32()); struct.setStateIsSet(true); struct.user = iprot.readString(); struct.setUserIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnOpenException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnOpenException.java index 05af505..4f5d02d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnOpenException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnOpenException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TxnOpenException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TxnOpenException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TxnOpenException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TxnOpenException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TxnOpenException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TxnOpenException typedOther = (TxnOpenException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnState.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnState.java index 69d6239..f4540a1 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnState.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TxnState.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java index 61e7ceb..bb81e3c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Type implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Type implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Type"); private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -122,7 +118,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.TYPE1,_Fields.TYPE2,_Fields.FIELDS}; + private _Fields optionals[] = {_Fields.TYPE1,_Fields.TYPE2,_Fields.FIELDS}; 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); @@ -163,7 +159,7 @@ public Type(Type other) { this.type2 = other.type2; } if (other.isSetFields()) { - List __this__fields = new ArrayList(other.fields.size()); + List __this__fields = new ArrayList(); for (FieldSchema other_element : other.fields) { __this__fields.add(new FieldSchema(other_element)); } @@ -418,75 +414,75 @@ public boolean equals(Type that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_name = true && (isSetName()); - list.add(present_name); + builder.append(present_name); if (present_name) - list.add(name); + builder.append(name); boolean present_type1 = true && (isSetType1()); - list.add(present_type1); + builder.append(present_type1); if (present_type1) - list.add(type1); + builder.append(type1); boolean present_type2 = true && (isSetType2()); - list.add(present_type2); + builder.append(present_type2); if (present_type2) - list.add(type2); + builder.append(type2); boolean present_fields = true && (isSetFields()); - list.add(present_fields); + builder.append(present_fields); if (present_fields) - list.add(fields); + builder.append(fields); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Type other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Type typedOther = (Type)other; - lastComparison = Boolean.valueOf(isSetName()).compareTo(other.isSetName()); + lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName()); if (lastComparison != 0) { return lastComparison; } if (isSetName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType1()).compareTo(other.isSetType1()); + lastComparison = Boolean.valueOf(isSetType1()).compareTo(typedOther.isSetType1()); if (lastComparison != 0) { return lastComparison; } if (isSetType1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type1, other.type1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type1, typedOther.type1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetType2()).compareTo(other.isSetType2()); + lastComparison = Boolean.valueOf(isSetType2()).compareTo(typedOther.isSetType2()); if (lastComparison != 0) { return lastComparison; } if (isSetType2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type2, other.type2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type2, typedOther.type2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFields()).compareTo(other.isSetFields()); + lastComparison = Boolean.valueOf(isSetFields()).compareTo(typedOther.isSetFields()); if (lastComparison != 0) { return lastComparison; } if (isSetFields()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fields, other.fields); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fields, typedOther.fields); if (lastComparison != 0) { return lastComparison; } @@ -620,12 +616,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Type struct) throws { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); struct.fields = new ArrayList(_list0.size); - FieldSchema _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - _elem1 = new FieldSchema(); - _elem1.read(iprot); - struct.fields.add(_elem1); + FieldSchema _elem2; // required + _elem2 = new FieldSchema(); + _elem2.read(iprot); + struct.fields.add(_elem2); } iprot.readListEnd(); } @@ -751,12 +747,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Type struct) throws { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.fields = new ArrayList(_list5.size); - FieldSchema _elem6; - for (int _i7 = 0; _i7 < _list5.size; ++_i7) + for (int _i6 = 0; _i6 < _list5.size; ++_i6) { - _elem6 = new FieldSchema(); - _elem6.read(iprot); - struct.fields.add(_elem6); + FieldSchema _elem7; // required + _elem7 = new FieldSchema(); + _elem7.read(iprot); + struct.fields.add(_elem7); } } struct.setFieldsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java index e05e79d..ab91419 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownDBException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class UnknownDBException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class UnknownDBException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnknownDBException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(UnknownDBException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(UnknownDBException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + UnknownDBException typedOther = (UnknownDBException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownPartitionException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownPartitionException.java index c626bf6..7e28591 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownPartitionException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownPartitionException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class UnknownPartitionException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class UnknownPartitionException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnknownPartitionException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(UnknownPartitionException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(UnknownPartitionException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + UnknownPartitionException typedOther = (UnknownPartitionException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownTableException.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownTableException.java index 2856121..7aa8012 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownTableException.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnknownTableException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class UnknownTableException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class UnknownTableException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnknownTableException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(UnknownTableException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(UnknownTableException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + UnknownTableException typedOther = (UnknownTableException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnlockRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnlockRequest.java index cf248e0..54b949d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnlockRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/UnlockRequest.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class UnlockRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class UnlockRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UnlockRequest"); private static final org.apache.thrift.protocol.TField LOCKID_FIELD_DESC = new org.apache.thrift.protocol.TField("lockid", org.apache.thrift.protocol.TType.I64, (short)1); @@ -231,30 +227,30 @@ public boolean equals(UnlockRequest that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_lockid = true; - list.add(present_lockid); + builder.append(present_lockid); if (present_lockid) - list.add(lockid); + builder.append(lockid); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(UnlockRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + UnlockRequest typedOther = (UnlockRequest)other; - lastComparison = Boolean.valueOf(isSetLockid()).compareTo(other.isSetLockid()); + lastComparison = Boolean.valueOf(isSetLockid()).compareTo(typedOther.isSetLockid()); if (lastComparison != 0) { return lastComparison; } if (isSetLockid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, other.lockid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lockid, typedOther.lockid); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Version.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Version.java index cc8d5f5..aa83fd7 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Version.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Version.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Version implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Version implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Version"); private static final org.apache.thrift.protocol.TField VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("version", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -287,45 +283,45 @@ public boolean equals(Version that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_version = true && (isSetVersion()); - list.add(present_version); + builder.append(present_version); if (present_version) - list.add(version); + builder.append(version); boolean present_comments = true && (isSetComments()); - list.add(present_comments); + builder.append(present_comments); if (present_comments) - list.add(comments); + builder.append(comments); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Version other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Version typedOther = (Version)other; - lastComparison = Boolean.valueOf(isSetVersion()).compareTo(other.isSetVersion()); + lastComparison = Boolean.valueOf(isSetVersion()).compareTo(typedOther.isSetVersion()); if (lastComparison != 0) { return lastComparison; } if (isSetVersion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, other.version); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, typedOther.version); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetComments()).compareTo(other.isSetComments()); + lastComparison = Boolean.valueOf(isSetComments()).compareTo(typedOther.isSetComments()); if (lastComparison != 0) { return lastComparison; } if (isSetComments()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comments, other.comments); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comments, typedOther.comments); if (lastComparison != 0) { return lastComparison; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java index b6e0a29..0f2fca8 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/hive_metastoreConstants.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.metastore.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,11 +28,9 @@ 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"}) public class hive_metastoreConstants { public static final String DDL_TIME = "transient_lastDdlTime"; diff --git a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index ae47cb5..c23e9f0 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -1,7 +1,7 @@ key = $key; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'getMetaConf', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1040,7 +174,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_getMetaConf() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_getMetaConf_result', $this->input_->isStrictRead()); else { @@ -1079,7 +213,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_setMetaConf_args(); $args->key = $key; $args->value = $value; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'setMetaConf', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1095,7 +229,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_setMetaConf() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_setMetaConf_result', $this->input_->isStrictRead()); else { @@ -1130,7 +264,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_create_database_args(); $args->database = $database; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1146,7 +280,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_database() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_database_result', $this->input_->isStrictRead()); else { @@ -1187,7 +321,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_database_args(); $args->name = $name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1203,7 +337,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_database() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_database_result', $this->input_->isStrictRead()); else { @@ -1246,7 +380,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->name = $name; $args->deleteData = $deleteData; $args->cascade = $cascade; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1262,7 +396,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_database() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_database_result', $this->input_->isStrictRead()); else { @@ -1303,7 +437,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_databases_args(); $args->pattern = $pattern; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_databases', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1319,7 +453,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_databases() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_databases_result', $this->input_->isStrictRead()); else { @@ -1356,7 +490,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_get_all_databases() { $args = new \metastore\ThriftHiveMetastore_get_all_databases_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_all_databases', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1372,7 +506,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_all_databases() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_all_databases_result', $this->input_->isStrictRead()); else { @@ -1411,7 +545,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_alter_database_args(); $args->dbname = $dbname; $args->db = $db; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_database', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1427,7 +561,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_database() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_database_result', $this->input_->isStrictRead()); else { @@ -1465,7 +599,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_type_args(); $args->name = $name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_type', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1481,7 +615,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_type() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_type_result', $this->input_->isStrictRead()); else { @@ -1522,7 +656,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_create_type_args(); $args->type = $type; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_type', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1538,7 +672,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_type() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_type_result', $this->input_->isStrictRead()); else { @@ -1582,7 +716,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_drop_type_args(); $args->type = $type; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_type', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1598,7 +732,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_type() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_type_result', $this->input_->isStrictRead()); else { @@ -1639,7 +773,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_type_all_args(); $args->name = $name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_type_all', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1655,7 +789,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_type_all() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_type_all_result', $this->input_->isStrictRead()); else { @@ -1694,7 +828,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_fields_args(); $args->db_name = $db_name; $args->table_name = $table_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_fields', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1710,7 +844,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_fields() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_fields_result', $this->input_->isStrictRead()); else { @@ -1756,7 +890,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->table_name = $table_name; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_fields_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1772,7 +906,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_fields_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_fields_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -1817,7 +951,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_schema_args(); $args->db_name = $db_name; $args->table_name = $table_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_schema', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1833,7 +967,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_schema() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_schema_result', $this->input_->isStrictRead()); else { @@ -1879,7 +1013,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->table_name = $table_name; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_schema_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1895,7 +1029,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_schema_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_schema_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -1939,7 +1073,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_create_table_args(); $args->tbl = $tbl; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1955,7 +1089,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_table() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_table_result', $this->input_->isStrictRead()); else { @@ -2000,7 +1134,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_create_table_with_environment_context_args(); $args->tbl = $tbl; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_table_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2016,7 +1150,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_table_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_table_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -2062,7 +1196,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->dbname = $dbname; $args->name = $name; $args->deleteData = $deleteData; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2078,7 +1212,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_table() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_table_result', $this->input_->isStrictRead()); else { @@ -2119,7 +1253,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->name = $name; $args->deleteData = $deleteData; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_table_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2135,7 +1269,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_table_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_table_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -2174,7 +1308,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_tables_args(); $args->db_name = $db_name; $args->pattern = $pattern; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_tables', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2190,7 +1324,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_tables() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_tables_result', $this->input_->isStrictRead()); else { @@ -2228,7 +1362,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_all_tables_args(); $args->db_name = $db_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_all_tables', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2244,7 +1378,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_all_tables() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_all_tables_result', $this->input_->isStrictRead()); else { @@ -2283,7 +1417,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_table_args(); $args->dbname = $dbname; $args->tbl_name = $tbl_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2299,7 +1433,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_result', $this->input_->isStrictRead()); else { @@ -2330,18 +1464,18 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_table failed: unknown result"); } - public function get_table_objects_by_name($dbname, array $tbl_names) + public function get_table_objects_by_name($dbname, $tbl_names) { $this->send_get_table_objects_by_name($dbname, $tbl_names); return $this->recv_get_table_objects_by_name(); } - public function send_get_table_objects_by_name($dbname, array $tbl_names) + public function send_get_table_objects_by_name($dbname, $tbl_names) { $args = new \metastore\ThriftHiveMetastore_get_table_objects_by_name_args(); $args->dbname = $dbname; $args->tbl_names = $tbl_names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table_objects_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2357,7 +1491,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table_objects_by_name() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_objects_by_name_result', $this->input_->isStrictRead()); else { @@ -2403,7 +1537,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->dbname = $dbname; $args->filter = $filter; $args->max_tables = $max_tables; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table_names_by_filter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2419,7 +1553,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table_names_by_filter() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_names_by_filter_result', $this->input_->isStrictRead()); else { @@ -2465,7 +1599,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->dbname = $dbname; $args->tbl_name = $tbl_name; $args->new_tbl = $new_tbl; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_table', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2481,7 +1615,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_table() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_table_result', $this->input_->isStrictRead()); else { @@ -2522,7 +1656,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->new_tbl = $new_tbl; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_table_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2538,7 +1672,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_table_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_table_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -2579,7 +1713,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->new_tbl = $new_tbl; $args->cascade = $cascade; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_table_with_cascade', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2595,7 +1729,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_table_with_cascade() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_table_with_cascade_result', $this->input_->isStrictRead()); else { @@ -2633,7 +1767,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_add_partition_args(); $args->new_part = $new_part; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2649,7 +1783,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partition_result', $this->input_->isStrictRead()); else { @@ -2694,7 +1828,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_add_partition_with_environment_context_args(); $args->new_part = $new_part; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partition_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2710,7 +1844,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partition_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partition_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -2744,17 +1878,17 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("add_partition_with_environment_context failed: unknown result"); } - public function add_partitions(array $new_parts) + public function add_partitions($new_parts) { $this->send_add_partitions($new_parts); return $this->recv_add_partitions(); } - public function send_add_partitions(array $new_parts) + public function send_add_partitions($new_parts) { $args = new \metastore\ThriftHiveMetastore_add_partitions_args(); $args->new_parts = $new_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2770,7 +1904,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partitions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partitions_result', $this->input_->isStrictRead()); else { @@ -2804,17 +1938,17 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("add_partitions failed: unknown result"); } - public function add_partitions_pspec(array $new_parts) + public function add_partitions_pspec($new_parts) { $this->send_add_partitions_pspec($new_parts); return $this->recv_add_partitions_pspec(); } - public function send_add_partitions_pspec(array $new_parts) + public function send_add_partitions_pspec($new_parts) { $args = new \metastore\ThriftHiveMetastore_add_partitions_pspec_args(); $args->new_parts = $new_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partitions_pspec', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2830,7 +1964,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partitions_pspec() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partitions_pspec_result', $this->input_->isStrictRead()); else { @@ -2864,19 +1998,19 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("add_partitions_pspec failed: unknown result"); } - public function append_partition($db_name, $tbl_name, array $part_vals) + public function append_partition($db_name, $tbl_name, $part_vals) { $this->send_append_partition($db_name, $tbl_name, $part_vals); return $this->recv_append_partition(); } - public function send_append_partition($db_name, $tbl_name, array $part_vals) + public function send_append_partition($db_name, $tbl_name, $part_vals) { $args = new \metastore\ThriftHiveMetastore_append_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'append_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2892,7 +2026,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_append_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_result', $this->input_->isStrictRead()); else { @@ -2936,7 +2070,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_add_partitions_req_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_partitions_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -2952,7 +2086,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_partitions_req() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partitions_req_result', $this->input_->isStrictRead()); else { @@ -2986,20 +2120,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("add_partitions_req failed: unknown result"); } - public function append_partition_with_environment_context($db_name, $tbl_name, array $part_vals, \metastore\EnvironmentContext $environment_context) + public function append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context) { $this->send_append_partition_with_environment_context($db_name, $tbl_name, $part_vals, $environment_context); return $this->recv_append_partition_with_environment_context(); } - public function send_append_partition_with_environment_context($db_name, $tbl_name, array $part_vals, \metastore\EnvironmentContext $environment_context) + public function send_append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context) { $args = new \metastore\ThriftHiveMetastore_append_partition_with_environment_context_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'append_partition_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3015,7 +2149,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_append_partition_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -3061,7 +2195,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_name = $part_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'append_partition_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3077,7 +2211,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_append_partition_by_name() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_by_name_result', $this->input_->isStrictRead()); else { @@ -3124,7 +2258,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->part_name = $part_name; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'append_partition_by_name_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3140,7 +2274,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_append_partition_by_name_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_append_partition_by_name_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -3174,20 +2308,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("append_partition_by_name_with_environment_context failed: unknown result"); } - public function drop_partition($db_name, $tbl_name, array $part_vals, $deleteData) + public function drop_partition($db_name, $tbl_name, $part_vals, $deleteData) { $this->send_drop_partition($db_name, $tbl_name, $part_vals, $deleteData); return $this->recv_drop_partition(); } - public function send_drop_partition($db_name, $tbl_name, array $part_vals, $deleteData) + public function send_drop_partition($db_name, $tbl_name, $part_vals, $deleteData) { $args = new \metastore\ThriftHiveMetastore_drop_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->deleteData = $deleteData; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3203,7 +2337,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partition_result', $this->input_->isStrictRead()); else { @@ -3234,13 +2368,13 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("drop_partition failed: unknown result"); } - public function drop_partition_with_environment_context($db_name, $tbl_name, array $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context) + public function drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context) { $this->send_drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, $environment_context); return $this->recv_drop_partition_with_environment_context(); } - public function send_drop_partition_with_environment_context($db_name, $tbl_name, array $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context) + public function send_drop_partition_with_environment_context($db_name, $tbl_name, $part_vals, $deleteData, \metastore\EnvironmentContext $environment_context) { $args = new \metastore\ThriftHiveMetastore_drop_partition_with_environment_context_args(); $args->db_name = $db_name; @@ -3248,7 +2382,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->part_vals = $part_vals; $args->deleteData = $deleteData; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_partition_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3264,7 +2398,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_partition_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partition_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -3308,7 +2442,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->part_name = $part_name; $args->deleteData = $deleteData; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_partition_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3324,7 +2458,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_partition_by_name() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partition_by_name_result', $this->input_->isStrictRead()); else { @@ -3369,7 +2503,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->part_name = $part_name; $args->deleteData = $deleteData; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_partition_by_name_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3385,7 +2519,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_partition_by_name_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -3426,7 +2560,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_drop_partitions_req_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_partitions_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3442,7 +2576,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_partitions_req() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_partitions_req_result', $this->input_->isStrictRead()); else { @@ -3473,19 +2607,19 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("drop_partitions_req failed: unknown result"); } - public function get_partition($db_name, $tbl_name, array $part_vals) + public function get_partition($db_name, $tbl_name, $part_vals) { $this->send_get_partition($db_name, $tbl_name, $part_vals); return $this->recv_get_partition(); } - public function send_get_partition($db_name, $tbl_name, array $part_vals) + public function send_get_partition($db_name, $tbl_name, $part_vals) { $args = new \metastore\ThriftHiveMetastore_get_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3501,7 +2635,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_result', $this->input_->isStrictRead()); else { @@ -3532,13 +2666,13 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partition failed: unknown result"); } - public function exchange_partition(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) + public function exchange_partition($partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) { $this->send_exchange_partition($partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name); return $this->recv_exchange_partition(); } - public function send_exchange_partition(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) + public function send_exchange_partition($partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) { $args = new \metastore\ThriftHiveMetastore_exchange_partition_args(); $args->partitionSpecs = $partitionSpecs; @@ -3546,7 +2680,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->source_table_name = $source_table_name; $args->dest_db = $dest_db; $args->dest_table_name = $dest_table_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'exchange_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3562,7 +2696,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_exchange_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_exchange_partition_result', $this->input_->isStrictRead()); else { @@ -3599,13 +2733,13 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("exchange_partition failed: unknown result"); } - public function get_partition_with_auth($db_name, $tbl_name, array $part_vals, $user_name, array $group_names) + public function get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names) { $this->send_get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names); return $this->recv_get_partition_with_auth(); } - public function send_get_partition_with_auth($db_name, $tbl_name, array $part_vals, $user_name, array $group_names) + public function send_get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names) { $args = new \metastore\ThriftHiveMetastore_get_partition_with_auth_args(); $args->db_name = $db_name; @@ -3613,7 +2747,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->part_vals = $part_vals; $args->user_name = $user_name; $args->group_names = $group_names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partition_with_auth', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3629,7 +2763,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partition_with_auth() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_with_auth_result', $this->input_->isStrictRead()); else { @@ -3672,7 +2806,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_name = $part_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partition_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3688,7 +2822,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partition_by_name() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_by_name_result', $this->input_->isStrictRead()); else { @@ -3731,7 +2865,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3747,7 +2881,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_result', $this->input_->isStrictRead()); else { @@ -3778,13 +2912,13 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partitions failed: unknown result"); } - public function get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, array $group_names) + public function get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names) { $this->send_get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names); return $this->recv_get_partitions_with_auth(); } - public function send_get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, array $group_names) + public function send_get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names) { $args = new \metastore\ThriftHiveMetastore_get_partitions_with_auth_args(); $args->db_name = $db_name; @@ -3792,7 +2926,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->max_parts = $max_parts; $args->user_name = $user_name; $args->group_names = $group_names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_with_auth', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3808,7 +2942,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_with_auth() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_with_auth_result', $this->input_->isStrictRead()); else { @@ -3851,7 +2985,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_pspec', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3867,7 +3001,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_pspec() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_pspec_result', $this->input_->isStrictRead()); else { @@ -3910,7 +3044,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partition_names', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3926,7 +3060,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partition_names() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_names_result', $this->input_->isStrictRead()); else { @@ -3954,20 +3088,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partition_names failed: unknown result"); } - public function get_partitions_ps($db_name, $tbl_name, array $part_vals, $max_parts) + public function get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts) { $this->send_get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts); return $this->recv_get_partitions_ps(); } - public function send_get_partitions_ps($db_name, $tbl_name, array $part_vals, $max_parts) + public function send_get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts) { $args = new \metastore\ThriftHiveMetastore_get_partitions_ps_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_ps', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -3983,7 +3117,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_ps() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_ps_result', $this->input_->isStrictRead()); else { @@ -4014,13 +3148,13 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partitions_ps failed: unknown result"); } - public function get_partitions_ps_with_auth($db_name, $tbl_name, array $part_vals, $max_parts, $user_name, array $group_names) + public function get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names) { $this->send_get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names); return $this->recv_get_partitions_ps_with_auth(); } - public function send_get_partitions_ps_with_auth($db_name, $tbl_name, array $part_vals, $max_parts, $user_name, array $group_names) + public function send_get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names) { $args = new \metastore\ThriftHiveMetastore_get_partitions_ps_with_auth_args(); $args->db_name = $db_name; @@ -4029,7 +3163,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->max_parts = $max_parts; $args->user_name = $user_name; $args->group_names = $group_names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_ps_with_auth', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4045,7 +3179,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_ps_with_auth() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_ps_with_auth_result', $this->input_->isStrictRead()); else { @@ -4076,20 +3210,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partitions_ps_with_auth failed: unknown result"); } - public function get_partition_names_ps($db_name, $tbl_name, array $part_vals, $max_parts) + public function get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts) { $this->send_get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts); return $this->recv_get_partition_names_ps(); } - public function send_get_partition_names_ps($db_name, $tbl_name, array $part_vals, $max_parts) + public function send_get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts) { $args = new \metastore\ThriftHiveMetastore_get_partition_names_ps_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partition_names_ps', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4105,7 +3239,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partition_names_ps() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_names_ps_result', $this->input_->isStrictRead()); else { @@ -4149,7 +3283,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->filter = $filter; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_by_filter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4165,7 +3299,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_by_filter() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_by_filter_result', $this->input_->isStrictRead()); else { @@ -4209,7 +3343,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->filter = $filter; $args->max_parts = $max_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_part_specs_by_filter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4225,7 +3359,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_part_specs_by_filter() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_part_specs_by_filter_result', $this->input_->isStrictRead()); else { @@ -4266,7 +3400,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_partitions_by_expr_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_by_expr', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4282,7 +3416,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_by_expr() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_by_expr_result', $this->input_->isStrictRead()); else { @@ -4313,19 +3447,79 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partitions_by_expr failed: unknown result"); } - public function get_partitions_by_names($db_name, $tbl_name, array $names) + public function get_num_partitions_by_filter($db_name, $tbl_name, $filter, $max_parts) + { + $this->send_get_num_partitions_by_filter($db_name, $tbl_name, $filter, $max_parts); + return $this->recv_get_num_partitions_by_filter(); + } + + public function send_get_num_partitions_by_filter($db_name, $tbl_name, $filter, $max_parts) + { + $args = new \metastore\ThriftHiveMetastore_get_num_partitions_by_filter_args(); + $args->db_name = $db_name; + $args->tbl_name = $tbl_name; + $args->filter = $filter; + $args->max_parts = $max_parts; + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_num_partitions_by_filter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_num_partitions_by_filter', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_num_partitions_by_filter() + { + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_num_partitions_by_filter_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_num_partitions_by_filter_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_num_partitions_by_filter failed: unknown result"); + } + + public function get_partitions_by_names($db_name, $tbl_name, $names) { $this->send_get_partitions_by_names($db_name, $tbl_name, $names); return $this->recv_get_partitions_by_names(); } - public function send_get_partitions_by_names($db_name, $tbl_name, array $names) + public function send_get_partitions_by_names($db_name, $tbl_name, $names) { $args = new \metastore\ThriftHiveMetastore_get_partitions_by_names_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->names = $names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_by_names', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4341,7 +3535,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_by_names() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_by_names_result', $this->input_->isStrictRead()); else { @@ -4384,7 +3578,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->new_part = $new_part; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4400,7 +3594,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_partition_result', $this->input_->isStrictRead()); else { @@ -4428,19 +3622,19 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } - public function alter_partitions($db_name, $tbl_name, array $new_parts) + public function alter_partitions($db_name, $tbl_name, $new_parts) { $this->send_alter_partitions($db_name, $tbl_name, $new_parts); $this->recv_alter_partitions(); } - public function send_alter_partitions($db_name, $tbl_name, array $new_parts) + public function send_alter_partitions($db_name, $tbl_name, $new_parts) { $args = new \metastore\ThriftHiveMetastore_alter_partitions_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->new_parts = $new_parts; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4456,7 +3650,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_partitions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_partitions_result', $this->input_->isStrictRead()); else { @@ -4497,7 +3691,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->new_part = $new_part; $args->environment_context = $environment_context; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_partition_with_environment_context', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4513,7 +3707,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_partition_with_environment_context() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_partition_with_environment_context_result', $this->input_->isStrictRead()); else { @@ -4541,20 +3735,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } - public function rename_partition($db_name, $tbl_name, array $part_vals, \metastore\Partition $new_part) + public function rename_partition($db_name, $tbl_name, $part_vals, \metastore\Partition $new_part) { $this->send_rename_partition($db_name, $tbl_name, $part_vals, $new_part); $this->recv_rename_partition(); } - public function send_rename_partition($db_name, $tbl_name, array $part_vals, \metastore\Partition $new_part) + public function send_rename_partition($db_name, $tbl_name, $part_vals, \metastore\Partition $new_part) { $args = new \metastore\ThriftHiveMetastore_rename_partition_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->new_part = $new_part; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'rename_partition', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4570,7 +3764,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_rename_partition() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_rename_partition_result', $this->input_->isStrictRead()); else { @@ -4598,18 +3792,18 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } - public function partition_name_has_valid_characters(array $part_vals, $throw_exception) + public function partition_name_has_valid_characters($part_vals, $throw_exception) { $this->send_partition_name_has_valid_characters($part_vals, $throw_exception); return $this->recv_partition_name_has_valid_characters(); } - public function send_partition_name_has_valid_characters(array $part_vals, $throw_exception) + public function send_partition_name_has_valid_characters($part_vals, $throw_exception) { $args = new \metastore\ThriftHiveMetastore_partition_name_has_valid_characters_args(); $args->part_vals = $part_vals; $args->throw_exception = $throw_exception; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'partition_name_has_valid_characters', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4625,7 +3819,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_partition_name_has_valid_characters() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_partition_name_has_valid_characters_result', $this->input_->isStrictRead()); else { @@ -4664,7 +3858,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_config_value_args(); $args->name = $name; $args->defaultValue = $defaultValue; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_config_value', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4680,7 +3874,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_config_value() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_config_value_result', $this->input_->isStrictRead()); else { @@ -4718,7 +3912,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_partition_name_to_vals_args(); $args->part_name = $part_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'partition_name_to_vals', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4734,7 +3928,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_partition_name_to_vals() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_partition_name_to_vals_result', $this->input_->isStrictRead()); else { @@ -4772,7 +3966,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_partition_name_to_spec_args(); $args->part_name = $part_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'partition_name_to_spec', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4788,7 +3982,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_partition_name_to_spec() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_partition_name_to_spec_result', $this->input_->isStrictRead()); else { @@ -4816,20 +4010,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("partition_name_to_spec failed: unknown result"); } - public function markPartitionForEvent($db_name, $tbl_name, array $part_vals, $eventType) + public function markPartitionForEvent($db_name, $tbl_name, $part_vals, $eventType) { $this->send_markPartitionForEvent($db_name, $tbl_name, $part_vals, $eventType); $this->recv_markPartitionForEvent(); } - public function send_markPartitionForEvent($db_name, $tbl_name, array $part_vals, $eventType) + public function send_markPartitionForEvent($db_name, $tbl_name, $part_vals, $eventType) { $args = new \metastore\ThriftHiveMetastore_markPartitionForEvent_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->eventType = $eventType; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'markPartitionForEvent', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4845,7 +4039,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_markPartitionForEvent() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_markPartitionForEvent_result', $this->input_->isStrictRead()); else { @@ -4885,20 +4079,20 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } - public function isPartitionMarkedForEvent($db_name, $tbl_name, array $part_vals, $eventType) + public function isPartitionMarkedForEvent($db_name, $tbl_name, $part_vals, $eventType) { $this->send_isPartitionMarkedForEvent($db_name, $tbl_name, $part_vals, $eventType); return $this->recv_isPartitionMarkedForEvent(); } - public function send_isPartitionMarkedForEvent($db_name, $tbl_name, array $part_vals, $eventType) + public function send_isPartitionMarkedForEvent($db_name, $tbl_name, $part_vals, $eventType) { $args = new \metastore\ThriftHiveMetastore_isPartitionMarkedForEvent_args(); $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->part_vals = $part_vals; $args->eventType = $eventType; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'isPartitionMarkedForEvent', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4914,7 +4108,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_isPartitionMarkedForEvent() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_isPartitionMarkedForEvent_result', $this->input_->isStrictRead()); else { @@ -4968,7 +4162,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_add_index_args(); $args->new_index = $new_index; $args->index_table = $index_table; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_index', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -4984,7 +4178,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_index() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_index_result', $this->input_->isStrictRead()); else { @@ -5031,7 +4225,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->base_tbl_name = $base_tbl_name; $args->idx_name = $idx_name; $args->new_idx = $new_idx; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_index', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5047,7 +4241,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_index() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_index_result', $this->input_->isStrictRead()); else { @@ -5088,7 +4282,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->index_name = $index_name; $args->deleteData = $deleteData; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_index_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5104,7 +4298,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_index_by_name() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_index_by_name_result', $this->input_->isStrictRead()); else { @@ -5147,7 +4341,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->index_name = $index_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_index_by_name', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5163,7 +4357,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_index_by_name() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_index_by_name_result', $this->input_->isStrictRead()); else { @@ -5206,7 +4400,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_indexes = $max_indexes; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_indexes', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5222,7 +4416,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_indexes() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_indexes_result', $this->input_->isStrictRead()); else { @@ -5265,7 +4459,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->max_indexes = $max_indexes; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_index_names', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5281,7 +4475,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_index_names() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_index_names_result', $this->input_->isStrictRead()); else { @@ -5319,7 +4513,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_update_table_column_statistics_args(); $args->stats_obj = $stats_obj; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'update_table_column_statistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5335,7 +4529,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_update_table_column_statistics() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_update_table_column_statistics_result', $this->input_->isStrictRead()); else { @@ -5382,7 +4576,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_update_partition_column_statistics_args(); $args->stats_obj = $stats_obj; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'update_partition_column_statistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5398,7 +4592,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_update_partition_column_statistics() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_update_partition_column_statistics_result', $this->input_->isStrictRead()); else { @@ -5447,7 +4641,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->col_name = $col_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table_column_statistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5463,7 +4657,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table_column_statistics() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_column_statistics_result', $this->input_->isStrictRead()); else { @@ -5513,7 +4707,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->part_name = $part_name; $args->col_name = $col_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partition_column_statistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5529,7 +4723,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partition_column_statistics() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_column_statistics_result', $this->input_->isStrictRead()); else { @@ -5576,7 +4770,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_table_statistics_req_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_table_statistics_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5592,7 +4786,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_table_statistics_req() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_table_statistics_req_result', $this->input_->isStrictRead()); else { @@ -5633,7 +4827,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_partitions_statistics_req_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_partitions_statistics_req', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5649,7 +4843,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_partitions_statistics_req() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_statistics_req_result', $this->input_->isStrictRead()); else { @@ -5690,7 +4884,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_aggr_stats_for_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_aggr_stats_for', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5706,7 +4900,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_aggr_stats_for() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_aggr_stats_for_result', $this->input_->isStrictRead()); else { @@ -5747,7 +4941,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_set_aggr_stats_for_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'set_aggr_stats_for', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5763,7 +4957,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_set_aggr_stats_for() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_set_aggr_stats_for_result', $this->input_->isStrictRead()); else { @@ -5813,7 +5007,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->tbl_name = $tbl_name; $args->part_name = $part_name; $args->col_name = $col_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'delete_partition_column_statistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5829,7 +5023,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_delete_partition_column_statistics() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_delete_partition_column_statistics_result', $this->input_->isStrictRead()); else { @@ -5878,7 +5072,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->db_name = $db_name; $args->tbl_name = $tbl_name; $args->col_name = $col_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'delete_table_column_statistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5894,7 +5088,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_delete_table_column_statistics() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_delete_table_column_statistics_result', $this->input_->isStrictRead()); else { @@ -5941,7 +5135,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_create_function_args(); $args->func = $func; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_function', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -5957,7 +5151,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_function() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_function_result', $this->input_->isStrictRead()); else { @@ -6002,7 +5196,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_drop_function_args(); $args->dbName = $dbName; $args->funcName = $funcName; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_function', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6018,7 +5212,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_function() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_function_result', $this->input_->isStrictRead()); else { @@ -6058,7 +5252,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->dbName = $dbName; $args->funcName = $funcName; $args->newFunc = $newFunc; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'alter_function', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6074,7 +5268,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_alter_function() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_alter_function_result', $this->input_->isStrictRead()); else { @@ -6113,7 +5307,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_functions_args(); $args->dbName = $dbName; $args->pattern = $pattern; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_functions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6129,7 +5323,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_functions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_functions_result', $this->input_->isStrictRead()); else { @@ -6168,7 +5362,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_function_args(); $args->dbName = $dbName; $args->funcName = $funcName; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_function', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6184,7 +5378,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_function() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_function_result', $this->input_->isStrictRead()); else { @@ -6224,7 +5418,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_get_all_functions() { $args = new \metastore\ThriftHiveMetastore_get_all_functions_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_all_functions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6240,7 +5434,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_all_functions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_all_functions_result', $this->input_->isStrictRead()); else { @@ -6278,7 +5472,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_create_role_args(); $args->role = $role; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'create_role', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6294,7 +5488,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_create_role() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_create_role_result', $this->input_->isStrictRead()); else { @@ -6332,7 +5526,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_drop_role_args(); $args->role_name = $role_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'drop_role', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6348,7 +5542,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_drop_role() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_drop_role_result', $this->input_->isStrictRead()); else { @@ -6385,7 +5579,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_get_role_names() { $args = new \metastore\ThriftHiveMetastore_get_role_names_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_role_names', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6401,7 +5595,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_role_names() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_role_names_result', $this->input_->isStrictRead()); else { @@ -6444,7 +5638,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->grantor = $grantor; $args->grantorType = $grantorType; $args->grant_option = $grant_option; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'grant_role', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6460,7 +5654,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_grant_role() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_grant_role_result', $this->input_->isStrictRead()); else { @@ -6500,7 +5694,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->role_name = $role_name; $args->principal_name = $principal_name; $args->principal_type = $principal_type; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'revoke_role', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6516,7 +5710,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_revoke_role() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_revoke_role_result', $this->input_->isStrictRead()); else { @@ -6555,7 +5749,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_list_roles_args(); $args->principal_name = $principal_name; $args->principal_type = $principal_type; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'list_roles', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6571,7 +5765,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_list_roles() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_list_roles_result', $this->input_->isStrictRead()); else { @@ -6609,7 +5803,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_grant_revoke_role_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'grant_revoke_role', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6625,7 +5819,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_grant_revoke_role() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_grant_revoke_role_result', $this->input_->isStrictRead()); else { @@ -6663,7 +5857,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_principals_in_role_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_principals_in_role', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6679,7 +5873,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_principals_in_role() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_principals_in_role_result', $this->input_->isStrictRead()); else { @@ -6717,7 +5911,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_role_grants_for_principal_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_role_grants_for_principal', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6733,7 +5927,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_role_grants_for_principal() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_role_grants_for_principal_result', $this->input_->isStrictRead()); else { @@ -6761,19 +5955,19 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_role_grants_for_principal failed: unknown result"); } - public function get_privilege_set(\metastore\HiveObjectRef $hiveObject, $user_name, array $group_names) + public function get_privilege_set(\metastore\HiveObjectRef $hiveObject, $user_name, $group_names) { $this->send_get_privilege_set($hiveObject, $user_name, $group_names); return $this->recv_get_privilege_set(); } - public function send_get_privilege_set(\metastore\HiveObjectRef $hiveObject, $user_name, array $group_names) + public function send_get_privilege_set(\metastore\HiveObjectRef $hiveObject, $user_name, $group_names) { $args = new \metastore\ThriftHiveMetastore_get_privilege_set_args(); $args->hiveObject = $hiveObject; $args->user_name = $user_name; $args->group_names = $group_names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_privilege_set', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6789,7 +5983,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_privilege_set() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_privilege_set_result', $this->input_->isStrictRead()); else { @@ -6829,7 +6023,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args->principal_name = $principal_name; $args->principal_type = $principal_type; $args->hiveObject = $hiveObject; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'list_privileges', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6845,7 +6039,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_list_privileges() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_list_privileges_result', $this->input_->isStrictRead()); else { @@ -6883,7 +6077,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_grant_privileges_args(); $args->privileges = $privileges; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'grant_privileges', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6899,7 +6093,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_grant_privileges() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_grant_privileges_result', $this->input_->isStrictRead()); else { @@ -6937,7 +6131,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_revoke_privileges_args(); $args->privileges = $privileges; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'revoke_privileges', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -6953,7 +6147,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_revoke_privileges() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_revoke_privileges_result', $this->input_->isStrictRead()); else { @@ -6991,7 +6185,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_grant_revoke_privileges_args(); $args->request = $request; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'grant_revoke_privileges', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7007,7 +6201,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_grant_revoke_privileges() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_grant_revoke_privileges_result', $this->input_->isStrictRead()); else { @@ -7035,18 +6229,18 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("grant_revoke_privileges failed: unknown result"); } - public function set_ugi($user_name, array $group_names) + public function set_ugi($user_name, $group_names) { $this->send_set_ugi($user_name, $group_names); return $this->recv_set_ugi(); } - public function send_set_ugi($user_name, array $group_names) + public function send_set_ugi($user_name, $group_names) { $args = new \metastore\ThriftHiveMetastore_set_ugi_args(); $args->user_name = $user_name; $args->group_names = $group_names; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'set_ugi', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7062,7 +6256,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_set_ugi() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_set_ugi_result', $this->input_->isStrictRead()); else { @@ -7101,7 +6295,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas $args = new \metastore\ThriftHiveMetastore_get_delegation_token_args(); $args->token_owner = $token_owner; $args->renewer_kerberos_principal_name = $renewer_kerberos_principal_name; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_delegation_token', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7117,7 +6311,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_delegation_token() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_delegation_token_result', $this->input_->isStrictRead()); else { @@ -7155,7 +6349,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_renew_delegation_token_args(); $args->token_str_form = $token_str_form; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'renew_delegation_token', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7171,7 +6365,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_renew_delegation_token() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_renew_delegation_token_result', $this->input_->isStrictRead()); else { @@ -7209,7 +6403,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_cancel_delegation_token_args(); $args->token_str_form = $token_str_form; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'cancel_delegation_token', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7225,7 +6419,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_cancel_delegation_token() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_cancel_delegation_token_result', $this->input_->isStrictRead()); else { @@ -7259,7 +6453,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_get_open_txns() { $args = new \metastore\ThriftHiveMetastore_get_open_txns_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_open_txns', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7275,7 +6469,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_open_txns() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_open_txns_result', $this->input_->isStrictRead()); else { @@ -7309,7 +6503,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_get_open_txns_info() { $args = new \metastore\ThriftHiveMetastore_get_open_txns_info_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_open_txns_info', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7325,7 +6519,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_open_txns_info() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_open_txns_info_result', $this->input_->isStrictRead()); else { @@ -7360,7 +6554,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_open_txns_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'open_txns', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7376,7 +6570,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_open_txns() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_open_txns_result', $this->input_->isStrictRead()); else { @@ -7411,7 +6605,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_abort_txn_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'abort_txn', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7427,7 +6621,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_abort_txn() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_abort_txn_result', $this->input_->isStrictRead()); else { @@ -7462,7 +6656,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_commit_txn_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'commit_txn', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7478,7 +6672,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_commit_txn() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_commit_txn_result', $this->input_->isStrictRead()); else { @@ -7516,7 +6710,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_lock_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'lock', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7532,7 +6726,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_lock() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_lock_result', $this->input_->isStrictRead()); else { @@ -7573,7 +6767,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_check_lock_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'check_lock', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7589,7 +6783,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_check_lock() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_check_lock_result', $this->input_->isStrictRead()); else { @@ -7633,7 +6827,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_unlock_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'unlock', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7649,7 +6843,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_unlock() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_unlock_result', $this->input_->isStrictRead()); else { @@ -7687,7 +6881,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_show_locks_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'show_locks', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7703,7 +6897,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_show_locks() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_show_locks_result', $this->input_->isStrictRead()); else { @@ -7738,7 +6932,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_heartbeat_args(); $args->ids = $ids; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'heartbeat', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7754,7 +6948,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_heartbeat() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_heartbeat_result', $this->input_->isStrictRead()); else { @@ -7795,7 +6989,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_heartbeat_txn_range_args(); $args->txns = $txns; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'heartbeat_txn_range', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7811,7 +7005,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_heartbeat_txn_range() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_heartbeat_txn_range_result', $this->input_->isStrictRead()); else { @@ -7846,7 +7040,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_compact_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'compact', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7862,7 +7056,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_compact() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_compact_result', $this->input_->isStrictRead()); else { @@ -7894,7 +7088,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_show_compact_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'show_compact', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7910,7 +7104,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_show_compact() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_show_compact_result', $this->input_->isStrictRead()); else { @@ -7945,7 +7139,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_add_dynamic_partitions_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'add_dynamic_partitions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -7961,7 +7155,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_add_dynamic_partitions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_dynamic_partitions_result', $this->input_->isStrictRead()); else { @@ -7999,7 +7193,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_get_next_notification_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_next_notification', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8015,7 +7209,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_next_notification() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_next_notification_result', $this->input_->isStrictRead()); else { @@ -8049,7 +7243,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function send_get_current_notificationEventId() { $args = new \metastore\ThriftHiveMetastore_get_current_notificationEventId_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'get_current_notificationEventId', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8065,7 +7259,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_get_current_notificationEventId() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_current_notificationEventId_result', $this->input_->isStrictRead()); else { @@ -8100,7 +7294,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas { $args = new \metastore\ThriftHiveMetastore_fire_listener_event_args(); $args->rqst = $rqst; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'fire_listener_event', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -8116,7 +7310,7 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas public function recv_fire_listener_event() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_fire_listener_event_result', $this->input_->isStrictRead()); else { @@ -8148,9 +7342,6 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas class ThriftHiveMetastore_getMetaConf_args { static $_TSPEC; - /** - * @var string - */ public $key = null; public function __construct($vals=null) { @@ -8223,13 +7414,7 @@ class ThriftHiveMetastore_getMetaConf_args { class ThriftHiveMetastore_getMetaConf_result { static $_TSPEC; - /** - * @var string - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -8323,13 +7508,7 @@ class ThriftHiveMetastore_getMetaConf_result { class ThriftHiveMetastore_setMetaConf_args { static $_TSPEC; - /** - * @var string - */ public $key = null; - /** - * @var string - */ public $value = null; public function __construct($vals=null) { @@ -8421,9 +7600,6 @@ class ThriftHiveMetastore_setMetaConf_args { class ThriftHiveMetastore_setMetaConf_result { static $_TSPEC; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -8498,9 +7674,6 @@ class ThriftHiveMetastore_setMetaConf_result { class ThriftHiveMetastore_create_database_args { static $_TSPEC; - /** - * @var \metastore\Database - */ public $database = null; public function __construct($vals=null) { @@ -8578,17 +7751,8 @@ class ThriftHiveMetastore_create_database_args { class ThriftHiveMetastore_create_database_result { static $_TSPEC; - /** - * @var \metastore\AlreadyExistsException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -8705,9 +7869,6 @@ class ThriftHiveMetastore_create_database_result { class ThriftHiveMetastore_get_database_args { static $_TSPEC; - /** - * @var string - */ public $name = null; public function __construct($vals=null) { @@ -8780,17 +7941,8 @@ class ThriftHiveMetastore_get_database_args { class ThriftHiveMetastore_get_database_result { static $_TSPEC; - /** - * @var \metastore\Database - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -8910,17 +8062,8 @@ class ThriftHiveMetastore_get_database_result { class ThriftHiveMetastore_drop_database_args { static $_TSPEC; - /** - * @var string - */ public $name = null; - /** - * @var bool - */ public $deleteData = null; - /** - * @var bool - */ public $cascade = null; public function __construct($vals=null) { @@ -9031,17 +8174,8 @@ class ThriftHiveMetastore_drop_database_args { class ThriftHiveMetastore_drop_database_result { static $_TSPEC; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\InvalidOperationException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -9158,9 +8292,6 @@ class ThriftHiveMetastore_drop_database_result { class ThriftHiveMetastore_get_databases_args { static $_TSPEC; - /** - * @var string - */ public $pattern = null; public function __construct($vals=null) { @@ -9233,13 +8364,7 @@ class ThriftHiveMetastore_get_databases_args { class ThriftHiveMetastore_get_databases_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -9409,13 +8534,7 @@ class ThriftHiveMetastore_get_all_databases_args { class ThriftHiveMetastore_get_all_databases_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -9535,13 +8654,7 @@ class ThriftHiveMetastore_get_all_databases_result { class ThriftHiveMetastore_alter_database_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var \metastore\Database - */ public $db = null; public function __construct($vals=null) { @@ -9638,13 +8751,7 @@ class ThriftHiveMetastore_alter_database_args { class ThriftHiveMetastore_alter_database_result { static $_TSPEC; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -9740,9 +8847,6 @@ class ThriftHiveMetastore_alter_database_result { class ThriftHiveMetastore_get_type_args { static $_TSPEC; - /** - * @var string - */ public $name = null; public function __construct($vals=null) { @@ -9815,17 +8919,8 @@ class ThriftHiveMetastore_get_type_args { class ThriftHiveMetastore_get_type_result { static $_TSPEC; - /** - * @var \metastore\Type - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -9945,9 +9040,6 @@ class ThriftHiveMetastore_get_type_result { class ThriftHiveMetastore_create_type_args { static $_TSPEC; - /** - * @var \metastore\Type - */ public $type = null; public function __construct($vals=null) { @@ -10025,21 +9117,9 @@ class ThriftHiveMetastore_create_type_args { class ThriftHiveMetastore_create_type_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -10175,9 +9255,6 @@ class ThriftHiveMetastore_create_type_result { class ThriftHiveMetastore_drop_type_args { static $_TSPEC; - /** - * @var string - */ public $type = null; public function __construct($vals=null) { @@ -10250,17 +9327,8 @@ class ThriftHiveMetastore_drop_type_args { class ThriftHiveMetastore_drop_type_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -10375,9 +9443,6 @@ class ThriftHiveMetastore_drop_type_result { class ThriftHiveMetastore_get_type_all_args { static $_TSPEC; - /** - * @var string - */ public $name = null; public function __construct($vals=null) { @@ -10450,13 +9515,7 @@ class ThriftHiveMetastore_get_type_all_args { class ThriftHiveMetastore_get_type_all_result { static $_TSPEC; - /** - * @var array - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -10586,13 +9645,7 @@ class ThriftHiveMetastore_get_type_all_result { class ThriftHiveMetastore_get_fields_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $table_name = null; public function __construct($vals=null) { @@ -10684,21 +9737,9 @@ class ThriftHiveMetastore_get_fields_args { class ThriftHiveMetastore_get_fields_result { static $_TSPEC; - /** - * @var \metastore\FieldSchema[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\UnknownTableException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; public function __construct($vals=null) { @@ -10862,17 +9903,8 @@ class ThriftHiveMetastore_get_fields_result { class ThriftHiveMetastore_get_fields_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $table_name = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -10988,21 +10020,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_args { class ThriftHiveMetastore_get_fields_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\FieldSchema[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\UnknownTableException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; public function __construct($vals=null) { @@ -11166,13 +10186,7 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { class ThriftHiveMetastore_get_schema_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $table_name = null; public function __construct($vals=null) { @@ -11264,21 +10278,9 @@ class ThriftHiveMetastore_get_schema_args { class ThriftHiveMetastore_get_schema_result { static $_TSPEC; - /** - * @var \metastore\FieldSchema[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\UnknownTableException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; public function __construct($vals=null) { @@ -11442,17 +10444,8 @@ class ThriftHiveMetastore_get_schema_result { class ThriftHiveMetastore_get_schema_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $table_name = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -11568,21 +10561,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_args { class ThriftHiveMetastore_get_schema_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\FieldSchema[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\UnknownTableException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; public function __construct($vals=null) { @@ -11746,9 +10727,6 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { class ThriftHiveMetastore_create_table_args { static $_TSPEC; - /** - * @var \metastore\Table - */ public $tbl = null; public function __construct($vals=null) { @@ -11826,21 +10804,9 @@ class ThriftHiveMetastore_create_table_args { class ThriftHiveMetastore_create_table_result { static $_TSPEC; - /** - * @var \metastore\AlreadyExistsException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o4 = null; public function __construct($vals=null) { @@ -11978,13 +10944,7 @@ class ThriftHiveMetastore_create_table_result { class ThriftHiveMetastore_create_table_with_environment_context_args { static $_TSPEC; - /** - * @var \metastore\Table - */ public $tbl = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -12086,21 +11046,9 @@ class ThriftHiveMetastore_create_table_with_environment_context_args { class ThriftHiveMetastore_create_table_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\AlreadyExistsException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o4 = null; public function __construct($vals=null) { @@ -12238,17 +11186,8 @@ class ThriftHiveMetastore_create_table_with_environment_context_result { class ThriftHiveMetastore_drop_table_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $name = null; - /** - * @var bool - */ public $deleteData = null; public function __construct($vals=null) { @@ -12359,13 +11298,7 @@ class ThriftHiveMetastore_drop_table_args { class ThriftHiveMetastore_drop_table_result { static $_TSPEC; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -12461,21 +11394,9 @@ class ThriftHiveMetastore_drop_table_result { class ThriftHiveMetastore_drop_table_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $name = null; - /** - * @var bool - */ public $deleteData = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -12610,13 +11531,7 @@ class ThriftHiveMetastore_drop_table_with_environment_context_args { class ThriftHiveMetastore_drop_table_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -12712,13 +11627,7 @@ class ThriftHiveMetastore_drop_table_with_environment_context_result { class ThriftHiveMetastore_get_tables_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $pattern = null; public function __construct($vals=null) { @@ -12810,13 +11719,7 @@ class ThriftHiveMetastore_get_tables_args { class ThriftHiveMetastore_get_tables_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -12936,9 +11839,6 @@ class ThriftHiveMetastore_get_tables_result { class ThriftHiveMetastore_get_all_tables_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; public function __construct($vals=null) { @@ -13011,13 +11911,7 @@ class ThriftHiveMetastore_get_all_tables_args { class ThriftHiveMetastore_get_all_tables_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -13137,13 +12031,7 @@ class ThriftHiveMetastore_get_all_tables_result { class ThriftHiveMetastore_get_table_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tbl_name = null; public function __construct($vals=null) { @@ -13235,17 +12123,8 @@ class ThriftHiveMetastore_get_table_args { class ThriftHiveMetastore_get_table_result { static $_TSPEC; - /** - * @var \metastore\Table - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -13365,13 +12244,7 @@ class ThriftHiveMetastore_get_table_result { class ThriftHiveMetastore_get_table_objects_by_name_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string[] - */ public $tbl_names = null; public function __construct($vals=null) { @@ -13489,21 +12362,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { class ThriftHiveMetastore_get_table_objects_by_name_result { static $_TSPEC; - /** - * @var \metastore\Table[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\InvalidOperationException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; public function __construct($vals=null) { @@ -13667,17 +12528,8 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { class ThriftHiveMetastore_get_table_names_by_filter_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $filter = null; - /** - * @var int - */ public $max_tables = -1; public function __construct($vals=null) { @@ -13788,21 +12640,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_args { class ThriftHiveMetastore_get_table_names_by_filter_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\InvalidOperationException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; public function __construct($vals=null) { @@ -13964,17 +12804,8 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { class ThriftHiveMetastore_alter_table_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var \metastore\Table - */ public $new_tbl = null; public function __construct($vals=null) { @@ -14090,13 +12921,7 @@ class ThriftHiveMetastore_alter_table_args { class ThriftHiveMetastore_alter_table_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -14192,21 +13017,9 @@ class ThriftHiveMetastore_alter_table_result { class ThriftHiveMetastore_alter_table_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var \metastore\Table - */ public $new_tbl = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -14346,13 +13159,7 @@ class ThriftHiveMetastore_alter_table_with_environment_context_args { class ThriftHiveMetastore_alter_table_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -14448,21 +13255,9 @@ class ThriftHiveMetastore_alter_table_with_environment_context_result { class ThriftHiveMetastore_alter_table_with_cascade_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var \metastore\Table - */ public $new_tbl = null; - /** - * @var bool - */ public $cascade = null; public function __construct($vals=null) { @@ -14597,13 +13392,7 @@ class ThriftHiveMetastore_alter_table_with_cascade_args { class ThriftHiveMetastore_alter_table_with_cascade_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -14699,9 +13488,6 @@ class ThriftHiveMetastore_alter_table_with_cascade_result { class ThriftHiveMetastore_add_partition_args { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $new_part = null; public function __construct($vals=null) { @@ -14779,21 +13565,9 @@ class ThriftHiveMetastore_add_partition_args { class ThriftHiveMetastore_add_partition_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -14934,13 +13708,7 @@ class ThriftHiveMetastore_add_partition_result { class ThriftHiveMetastore_add_partition_with_environment_context_args { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $new_part = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -15042,21 +13810,9 @@ class ThriftHiveMetastore_add_partition_with_environment_context_args { class ThriftHiveMetastore_add_partition_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -15197,9 +13953,6 @@ class ThriftHiveMetastore_add_partition_with_environment_context_result { class ThriftHiveMetastore_add_partitions_args { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $new_parts = null; public function __construct($vals=null) { @@ -15300,21 +14053,9 @@ class ThriftHiveMetastore_add_partitions_args { class ThriftHiveMetastore_add_partitions_result { static $_TSPEC; - /** - * @var int - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -15450,9 +14191,6 @@ class ThriftHiveMetastore_add_partitions_result { class ThriftHiveMetastore_add_partitions_pspec_args { static $_TSPEC; - /** - * @var \metastore\PartitionSpec[] - */ public $new_parts = null; public function __construct($vals=null) { @@ -15553,21 +14291,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { class ThriftHiveMetastore_add_partitions_pspec_result { static $_TSPEC; - /** - * @var int - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -15703,17 +14429,8 @@ class ThriftHiveMetastore_add_partitions_pspec_result { class ThriftHiveMetastore_append_partition_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; public function __construct($vals=null) { @@ -15850,21 +14567,9 @@ class ThriftHiveMetastore_append_partition_args { class ThriftHiveMetastore_append_partition_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -16005,9 +14710,6 @@ class ThriftHiveMetastore_append_partition_result { class ThriftHiveMetastore_add_partitions_req_args { static $_TSPEC; - /** - * @var \metastore\AddPartitionsRequest - */ public $request = null; public function __construct($vals=null) { @@ -16085,21 +14787,9 @@ class ThriftHiveMetastore_add_partitions_req_args { class ThriftHiveMetastore_add_partitions_req_result { static $_TSPEC; - /** - * @var \metastore\AddPartitionsResult - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -16240,21 +14930,9 @@ class ThriftHiveMetastore_add_partitions_req_result { class ThriftHiveMetastore_append_partition_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -16415,21 +15093,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { class ThriftHiveMetastore_append_partition_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -16570,17 +15236,8 @@ class ThriftHiveMetastore_append_partition_with_environment_context_result { class ThriftHiveMetastore_append_partition_by_name_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; public function __construct($vals=null) { @@ -16691,21 +15348,9 @@ class ThriftHiveMetastore_append_partition_by_name_args { class ThriftHiveMetastore_append_partition_by_name_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -16846,21 +15491,9 @@ class ThriftHiveMetastore_append_partition_by_name_result { class ThriftHiveMetastore_append_partition_by_name_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -16995,21 +15628,9 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_args class ThriftHiveMetastore_append_partition_by_name_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -17150,21 +15771,9 @@ class ThriftHiveMetastore_append_partition_by_name_with_environment_context_resu class ThriftHiveMetastore_drop_partition_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var bool - */ public $deleteData = null; public function __construct($vals=null) { @@ -17320,17 +15929,8 @@ class ThriftHiveMetastore_drop_partition_args { class ThriftHiveMetastore_drop_partition_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -17445,25 +16045,10 @@ class ThriftHiveMetastore_drop_partition_result { class ThriftHiveMetastore_drop_partition_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var bool - */ public $deleteData = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -17643,17 +16228,8 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { class ThriftHiveMetastore_drop_partition_with_environment_context_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -17768,21 +16344,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_result { class ThriftHiveMetastore_drop_partition_by_name_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; - /** - * @var bool - */ public $deleteData = null; public function __construct($vals=null) { @@ -17912,17 +16476,8 @@ class ThriftHiveMetastore_drop_partition_by_name_args { class ThriftHiveMetastore_drop_partition_by_name_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -18037,25 +16592,10 @@ class ThriftHiveMetastore_drop_partition_by_name_result { class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; - /** - * @var bool - */ public $deleteData = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -18209,17 +16749,8 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args { class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -18334,9 +16865,6 @@ class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result class ThriftHiveMetastore_drop_partitions_req_args { static $_TSPEC; - /** - * @var \metastore\DropPartitionsRequest - */ public $req = null; public function __construct($vals=null) { @@ -18414,17 +16942,8 @@ class ThriftHiveMetastore_drop_partitions_req_args { class ThriftHiveMetastore_drop_partitions_req_result { static $_TSPEC; - /** - * @var \metastore\DropPartitionsResult - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -18544,17 +17063,8 @@ class ThriftHiveMetastore_drop_partitions_req_result { class ThriftHiveMetastore_get_partition_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; public function __construct($vals=null) { @@ -18691,17 +17201,8 @@ class ThriftHiveMetastore_get_partition_args { class ThriftHiveMetastore_get_partition_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -18821,25 +17322,10 @@ class ThriftHiveMetastore_get_partition_result { class ThriftHiveMetastore_exchange_partition_args { static $_TSPEC; - /** - * @var array - */ public $partitionSpecs = null; - /** - * @var string - */ public $source_db = null; - /** - * @var string - */ public $source_table_name = null; - /** - * @var string - */ public $dest_db = null; - /** - * @var string - */ public $dest_table_name = null; public function __construct($vals=null) { @@ -19022,25 +17508,10 @@ class ThriftHiveMetastore_exchange_partition_args { class ThriftHiveMetastore_exchange_partition_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ public $o4 = null; public function __construct($vals=null) { @@ -19202,25 +17673,10 @@ class ThriftHiveMetastore_exchange_partition_result { class ThriftHiveMetastore_get_partition_with_auth_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var string - */ public $user_name = null; - /** - * @var string[] - */ public $group_names = null; public function __construct($vals=null) { @@ -19421,17 +17877,8 @@ class ThriftHiveMetastore_get_partition_with_auth_args { class ThriftHiveMetastore_get_partition_with_auth_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -19551,17 +17998,8 @@ class ThriftHiveMetastore_get_partition_with_auth_result { class ThriftHiveMetastore_get_partition_by_name_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; public function __construct($vals=null) { @@ -19672,17 +18110,8 @@ class ThriftHiveMetastore_get_partition_by_name_args { class ThriftHiveMetastore_get_partition_by_name_result { static $_TSPEC; - /** - * @var \metastore\Partition - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -19802,17 +18231,8 @@ class ThriftHiveMetastore_get_partition_by_name_result { class ThriftHiveMetastore_get_partitions_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -19923,17 +18343,8 @@ class ThriftHiveMetastore_get_partitions_args { class ThriftHiveMetastore_get_partitions_result { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -20076,25 +18487,10 @@ class ThriftHiveMetastore_get_partitions_result { class ThriftHiveMetastore_get_partitions_with_auth_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var int - */ public $max_parts = -1; - /** - * @var string - */ public $user_name = null; - /** - * @var string[] - */ public $group_names = null; public function __construct($vals=null) { @@ -20269,17 +18665,8 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { class ThriftHiveMetastore_get_partitions_with_auth_result { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -20422,17 +18809,8 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { class ThriftHiveMetastore_get_partitions_pspec_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -20543,17 +18921,8 @@ class ThriftHiveMetastore_get_partitions_pspec_args { class ThriftHiveMetastore_get_partitions_pspec_result { static $_TSPEC; - /** - * @var \metastore\PartitionSpec[] - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -20696,17 +19065,8 @@ class ThriftHiveMetastore_get_partitions_pspec_result { class ThriftHiveMetastore_get_partition_names_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -20817,13 +19177,7 @@ class ThriftHiveMetastore_get_partition_names_args { class ThriftHiveMetastore_get_partition_names_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -20943,21 +19297,9 @@ class ThriftHiveMetastore_get_partition_names_result { class ThriftHiveMetastore_get_partitions_ps_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -21113,17 +19455,8 @@ class ThriftHiveMetastore_get_partitions_ps_args { class ThriftHiveMetastore_get_partitions_ps_result { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -21266,29 +19599,11 @@ class ThriftHiveMetastore_get_partitions_ps_result { class ThriftHiveMetastore_get_partitions_ps_with_auth_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var int - */ public $max_parts = -1; - /** - * @var string - */ public $user_name = null; - /** - * @var string[] - */ public $group_names = null; public function __construct($vals=null) { @@ -21508,17 +19823,8 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { class ThriftHiveMetastore_get_partitions_ps_with_auth_result { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -21661,21 +19967,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { class ThriftHiveMetastore_get_partition_names_ps_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -21831,17 +20125,8 @@ class ThriftHiveMetastore_get_partition_names_ps_args { class ThriftHiveMetastore_get_partition_names_ps_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -21982,21 +20267,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { class ThriftHiveMetastore_get_partitions_by_filter_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $filter = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -22126,17 +20399,8 @@ class ThriftHiveMetastore_get_partitions_by_filter_args { class ThriftHiveMetastore_get_partitions_by_filter_result { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -22279,21 +20543,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { class ThriftHiveMetastore_get_part_specs_by_filter_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $filter = null; - /** - * @var int - */ public $max_parts = -1; public function __construct($vals=null) { @@ -22423,17 +20675,8 @@ class ThriftHiveMetastore_get_part_specs_by_filter_args { class ThriftHiveMetastore_get_part_specs_by_filter_result { static $_TSPEC; - /** - * @var \metastore\PartitionSpec[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -22576,9 +20819,6 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { class ThriftHiveMetastore_get_partitions_by_expr_args { static $_TSPEC; - /** - * @var \metastore\PartitionsByExprRequest - */ public $req = null; public function __construct($vals=null) { @@ -22656,17 +20896,8 @@ class ThriftHiveMetastore_get_partitions_by_expr_args { class ThriftHiveMetastore_get_partitions_by_expr_result { static $_TSPEC; - /** - * @var \metastore\PartitionsByExprResult - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -22783,20 +21014,259 @@ class ThriftHiveMetastore_get_partitions_by_expr_result { } +class ThriftHiveMetastore_get_num_partitions_by_filter_args { + static $_TSPEC; + + public $db_name = null; + public $tbl_name = null; + public $filter = null; + public $max_parts = -1; + + 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, + ), + 3 => array( + 'var' => 'filter', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'max_parts', + 'type' => TType::I16, + ), + ); + } + 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']; + } + if (isset($vals['filter'])) { + $this->filter = $vals['filter']; + } + if (isset($vals['max_parts'])) { + $this->max_parts = $vals['max_parts']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_num_partitions_by_filter_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; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->filter); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I16) { + $xfer += $input->readI16($this->max_parts); + } 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_num_partitions_by_filter_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(); + } + if ($this->filter !== null) { + $xfer += $output->writeFieldBegin('filter', TType::STRING, 3); + $xfer += $output->writeString($this->filter); + $xfer += $output->writeFieldEnd(); + } + if ($this->max_parts !== null) { + $xfer += $output->writeFieldBegin('max_parts', TType::I16, 4); + $xfer += $output->writeI16($this->max_parts); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_num_partitions_by_filter_result { + static $_TSPEC; + + public $success = null; + public $o1 = null; + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::I32, + ), + 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_num_partitions_by_filter_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::I32) { + $xfer += $input->readI32($this->success); + } 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_num_partitions_by_filter_result'); + if ($this->success !== null) { + $xfer += $output->writeFieldBegin('success', TType::I32, 0); + $xfer += $output->writeI32($this->success); + $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_partitions_by_names_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $names = null; public function __construct($vals=null) { @@ -22933,17 +21403,8 @@ class ThriftHiveMetastore_get_partitions_by_names_args { class ThriftHiveMetastore_get_partitions_by_names_result { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -23086,17 +21547,8 @@ class ThriftHiveMetastore_get_partitions_by_names_result { class ThriftHiveMetastore_alter_partition_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var \metastore\Partition - */ public $new_part = null; public function __construct($vals=null) { @@ -23212,13 +21664,7 @@ class ThriftHiveMetastore_alter_partition_args { class ThriftHiveMetastore_alter_partition_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -23314,17 +21760,8 @@ class ThriftHiveMetastore_alter_partition_result { class ThriftHiveMetastore_alter_partitions_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var \metastore\Partition[] - */ public $new_parts = null; public function __construct($vals=null) { @@ -23463,13 +21900,7 @@ class ThriftHiveMetastore_alter_partitions_args { class ThriftHiveMetastore_alter_partitions_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -23565,21 +21996,9 @@ class ThriftHiveMetastore_alter_partitions_result { class ThriftHiveMetastore_alter_partition_with_environment_context_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var \metastore\Partition - */ public $new_part = null; - /** - * @var \metastore\EnvironmentContext - */ public $environment_context = null; public function __construct($vals=null) { @@ -23719,13 +22138,7 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_args { class ThriftHiveMetastore_alter_partition_with_environment_context_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -23821,21 +22234,9 @@ class ThriftHiveMetastore_alter_partition_with_environment_context_result { class ThriftHiveMetastore_rename_partition_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var \metastore\Partition - */ public $new_part = null; public function __construct($vals=null) { @@ -23996,13 +22397,7 @@ class ThriftHiveMetastore_rename_partition_args { class ThriftHiveMetastore_rename_partition_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -24098,13 +22493,7 @@ class ThriftHiveMetastore_rename_partition_result { class ThriftHiveMetastore_partition_name_has_valid_characters_args { static $_TSPEC; - /** - * @var string[] - */ public $part_vals = null; - /** - * @var bool - */ public $throw_exception = null; public function __construct($vals=null) { @@ -24222,13 +22611,7 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { class ThriftHiveMetastore_partition_name_has_valid_characters_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -24322,13 +22705,7 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_result { class ThriftHiveMetastore_get_config_value_args { static $_TSPEC; - /** - * @var string - */ public $name = null; - /** - * @var string - */ public $defaultValue = null; public function __construct($vals=null) { @@ -24420,13 +22797,7 @@ class ThriftHiveMetastore_get_config_value_args { class ThriftHiveMetastore_get_config_value_result { static $_TSPEC; - /** - * @var string - */ public $success = null; - /** - * @var \metastore\ConfigValSecurityException - */ public $o1 = null; public function __construct($vals=null) { @@ -24520,9 +22891,6 @@ class ThriftHiveMetastore_get_config_value_result { class ThriftHiveMetastore_partition_name_to_vals_args { static $_TSPEC; - /** - * @var string - */ public $part_name = null; public function __construct($vals=null) { @@ -24595,13 +22963,7 @@ class ThriftHiveMetastore_partition_name_to_vals_args { class ThriftHiveMetastore_partition_name_to_vals_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -24721,9 +23083,6 @@ class ThriftHiveMetastore_partition_name_to_vals_result { class ThriftHiveMetastore_partition_name_to_spec_args { static $_TSPEC; - /** - * @var string - */ public $part_name = null; public function __construct($vals=null) { @@ -24796,13 +23155,7 @@ class ThriftHiveMetastore_partition_name_to_spec_args { class ThriftHiveMetastore_partition_name_to_spec_result { static $_TSPEC; - /** - * @var array - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -24930,21 +23283,9 @@ class ThriftHiveMetastore_partition_name_to_spec_result { class ThriftHiveMetastore_markPartitionForEvent_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var array - */ public $part_vals = null; - /** - * @var int - */ public $eventType = null; public function __construct($vals=null) { @@ -25108,29 +23449,11 @@ class ThriftHiveMetastore_markPartitionForEvent_args { class ThriftHiveMetastore_markPartitionForEvent_result { static $_TSPEC; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; - /** - * @var \metastore\UnknownTableException - */ public $o4 = null; - /** - * @var \metastore\UnknownPartitionException - */ public $o5 = null; - /** - * @var \metastore\InvalidPartitionException - */ public $o6 = null; public function __construct($vals=null) { @@ -25310,21 +23633,9 @@ class ThriftHiveMetastore_markPartitionForEvent_result { class ThriftHiveMetastore_isPartitionMarkedForEvent_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var array - */ public $part_vals = null; - /** - * @var int - */ public $eventType = null; public function __construct($vals=null) { @@ -25488,33 +23799,12 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { class ThriftHiveMetastore_isPartitionMarkedForEvent_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; - /** - * @var \metastore\UnknownDBException - */ public $o3 = null; - /** - * @var \metastore\UnknownTableException - */ public $o4 = null; - /** - * @var \metastore\UnknownPartitionException - */ public $o5 = null; - /** - * @var \metastore\InvalidPartitionException - */ public $o6 = null; public function __construct($vals=null) { @@ -25713,13 +24003,7 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_result { class ThriftHiveMetastore_add_index_args { static $_TSPEC; - /** - * @var \metastore\Index - */ public $new_index = null; - /** - * @var \metastore\Table - */ public $index_table = null; public function __construct($vals=null) { @@ -25821,21 +24105,9 @@ class ThriftHiveMetastore_add_index_args { class ThriftHiveMetastore_add_index_result { static $_TSPEC; - /** - * @var \metastore\Index - */ public $success = null; - /** - * @var \metastore\InvalidObjectException - */ public $o1 = null; - /** - * @var \metastore\AlreadyExistsException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -25976,21 +24248,9 @@ class ThriftHiveMetastore_add_index_result { class ThriftHiveMetastore_alter_index_args { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $base_tbl_name = null; - /** - * @var string - */ public $idx_name = null; - /** - * @var \metastore\Index - */ public $new_idx = null; public function __construct($vals=null) { @@ -26125,13 +24385,7 @@ class ThriftHiveMetastore_alter_index_args { class ThriftHiveMetastore_alter_index_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -26227,21 +24481,9 @@ class ThriftHiveMetastore_alter_index_result { class ThriftHiveMetastore_drop_index_by_name_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $index_name = null; - /** - * @var bool - */ public $deleteData = null; public function __construct($vals=null) { @@ -26371,17 +24613,8 @@ class ThriftHiveMetastore_drop_index_by_name_args { class ThriftHiveMetastore_drop_index_by_name_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -26496,17 +24729,8 @@ class ThriftHiveMetastore_drop_index_by_name_result { class ThriftHiveMetastore_get_index_by_name_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $index_name = null; public function __construct($vals=null) { @@ -26617,17 +24841,8 @@ class ThriftHiveMetastore_get_index_by_name_args { class ThriftHiveMetastore_get_index_by_name_result { static $_TSPEC; - /** - * @var \metastore\Index - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -26747,17 +24962,8 @@ class ThriftHiveMetastore_get_index_by_name_result { class ThriftHiveMetastore_get_indexes_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var int - */ public $max_indexes = -1; public function __construct($vals=null) { @@ -26868,17 +25074,8 @@ class ThriftHiveMetastore_get_indexes_args { class ThriftHiveMetastore_get_indexes_result { static $_TSPEC; - /** - * @var \metastore\Index[] - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -27021,17 +25218,8 @@ class ThriftHiveMetastore_get_indexes_result { class ThriftHiveMetastore_get_index_names_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var int - */ public $max_indexes = -1; public function __construct($vals=null) { @@ -27142,13 +25330,7 @@ class ThriftHiveMetastore_get_index_names_args { class ThriftHiveMetastore_get_index_names_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -27268,9 +25450,6 @@ class ThriftHiveMetastore_get_index_names_result { class ThriftHiveMetastore_update_table_column_statistics_args { static $_TSPEC; - /** - * @var \metastore\ColumnStatistics - */ public $stats_obj = null; public function __construct($vals=null) { @@ -27348,25 +25527,10 @@ class ThriftHiveMetastore_update_table_column_statistics_args { class ThriftHiveMetastore_update_table_column_statistics_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ public $o4 = null; public function __construct($vals=null) { @@ -27523,9 +25687,6 @@ class ThriftHiveMetastore_update_table_column_statistics_result { class ThriftHiveMetastore_update_partition_column_statistics_args { static $_TSPEC; - /** - * @var \metastore\ColumnStatistics - */ public $stats_obj = null; public function __construct($vals=null) { @@ -27603,25 +25764,10 @@ class ThriftHiveMetastore_update_partition_column_statistics_args { class ThriftHiveMetastore_update_partition_column_statistics_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ public $o4 = null; public function __construct($vals=null) { @@ -27778,17 +25924,8 @@ class ThriftHiveMetastore_update_partition_column_statistics_result { class ThriftHiveMetastore_get_table_column_statistics_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $col_name = null; public function __construct($vals=null) { @@ -27899,25 +26036,10 @@ class ThriftHiveMetastore_get_table_column_statistics_args { class ThriftHiveMetastore_get_table_column_statistics_result { static $_TSPEC; - /** - * @var \metastore\ColumnStatistics - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; - /** - * @var \metastore\InvalidInputException - */ public $o3 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o4 = null; public function __construct($vals=null) { @@ -28079,21 +26201,9 @@ class ThriftHiveMetastore_get_table_column_statistics_result { class ThriftHiveMetastore_get_partition_column_statistics_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; - /** - * @var string - */ public $col_name = null; public function __construct($vals=null) { @@ -28223,25 +26333,10 @@ class ThriftHiveMetastore_get_partition_column_statistics_args { class ThriftHiveMetastore_get_partition_column_statistics_result { static $_TSPEC; - /** - * @var \metastore\ColumnStatistics - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; - /** - * @var \metastore\InvalidInputException - */ public $o3 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o4 = null; public function __construct($vals=null) { @@ -28403,9 +26498,6 @@ class ThriftHiveMetastore_get_partition_column_statistics_result { class ThriftHiveMetastore_get_table_statistics_req_args { static $_TSPEC; - /** - * @var \metastore\TableStatsRequest - */ public $request = null; public function __construct($vals=null) { @@ -28483,17 +26575,8 @@ class ThriftHiveMetastore_get_table_statistics_req_args { class ThriftHiveMetastore_get_table_statistics_req_result { static $_TSPEC; - /** - * @var \metastore\TableStatsResult - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -28613,9 +26696,6 @@ class ThriftHiveMetastore_get_table_statistics_req_result { class ThriftHiveMetastore_get_partitions_statistics_req_args { static $_TSPEC; - /** - * @var \metastore\PartitionsStatsRequest - */ public $request = null; public function __construct($vals=null) { @@ -28693,17 +26773,8 @@ class ThriftHiveMetastore_get_partitions_statistics_req_args { class ThriftHiveMetastore_get_partitions_statistics_req_result { static $_TSPEC; - /** - * @var \metastore\PartitionsStatsResult - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -28823,9 +26894,6 @@ class ThriftHiveMetastore_get_partitions_statistics_req_result { class ThriftHiveMetastore_get_aggr_stats_for_args { static $_TSPEC; - /** - * @var \metastore\PartitionsStatsRequest - */ public $request = null; public function __construct($vals=null) { @@ -28903,17 +26971,8 @@ class ThriftHiveMetastore_get_aggr_stats_for_args { class ThriftHiveMetastore_get_aggr_stats_for_result { static $_TSPEC; - /** - * @var \metastore\AggrStats - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -29033,9 +27092,6 @@ class ThriftHiveMetastore_get_aggr_stats_for_result { class ThriftHiveMetastore_set_aggr_stats_for_args { static $_TSPEC; - /** - * @var \metastore\SetPartitionsStatsRequest - */ public $request = null; public function __construct($vals=null) { @@ -29113,25 +27169,10 @@ class ThriftHiveMetastore_set_aggr_stats_for_args { class ThriftHiveMetastore_set_aggr_stats_for_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ public $o4 = null; public function __construct($vals=null) { @@ -29288,21 +27329,9 @@ class ThriftHiveMetastore_set_aggr_stats_for_result { class ThriftHiveMetastore_delete_partition_column_statistics_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $part_name = null; - /** - * @var string - */ public $col_name = null; public function __construct($vals=null) { @@ -29432,25 +27461,10 @@ class ThriftHiveMetastore_delete_partition_column_statistics_args { class ThriftHiveMetastore_delete_partition_column_statistics_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ public $o4 = null; public function __construct($vals=null) { @@ -29607,17 +27621,8 @@ class ThriftHiveMetastore_delete_partition_column_statistics_result { class ThriftHiveMetastore_delete_table_column_statistics_args { static $_TSPEC; - /** - * @var string - */ public $db_name = null; - /** - * @var string - */ public $tbl_name = null; - /** - * @var string - */ public $col_name = null; public function __construct($vals=null) { @@ -29728,25 +27733,10 @@ class ThriftHiveMetastore_delete_table_column_statistics_args { class ThriftHiveMetastore_delete_table_column_statistics_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o3 = null; - /** - * @var \metastore\InvalidInputException - */ public $o4 = null; public function __construct($vals=null) { @@ -29903,9 +27893,6 @@ class ThriftHiveMetastore_delete_table_column_statistics_result { class ThriftHiveMetastore_create_function_args { static $_TSPEC; - /** - * @var \metastore\Function - */ public $func = null; public function __construct($vals=null) { @@ -29983,21 +27970,9 @@ class ThriftHiveMetastore_create_function_args { class ThriftHiveMetastore_create_function_result { static $_TSPEC; - /** - * @var \metastore\AlreadyExistsException - */ public $o1 = null; - /** - * @var \metastore\InvalidObjectException - */ public $o2 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o4 = null; public function __construct($vals=null) { @@ -30135,13 +28110,7 @@ class ThriftHiveMetastore_create_function_result { class ThriftHiveMetastore_drop_function_args { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $funcName = null; public function __construct($vals=null) { @@ -30233,13 +28202,7 @@ class ThriftHiveMetastore_drop_function_args { class ThriftHiveMetastore_drop_function_result { static $_TSPEC; - /** - * @var \metastore\NoSuchObjectException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o3 = null; public function __construct($vals=null) { @@ -30335,17 +28298,8 @@ class ThriftHiveMetastore_drop_function_result { class ThriftHiveMetastore_alter_function_args { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $funcName = null; - /** - * @var \metastore\Function - */ public $newFunc = null; public function __construct($vals=null) { @@ -30461,13 +28415,7 @@ class ThriftHiveMetastore_alter_function_args { class ThriftHiveMetastore_alter_function_result { static $_TSPEC; - /** - * @var \metastore\InvalidOperationException - */ public $o1 = null; - /** - * @var \metastore\MetaException - */ public $o2 = null; public function __construct($vals=null) { @@ -30563,13 +28511,7 @@ class ThriftHiveMetastore_alter_function_result { class ThriftHiveMetastore_get_functions_args { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $pattern = null; public function __construct($vals=null) { @@ -30661,13 +28603,7 @@ class ThriftHiveMetastore_get_functions_args { class ThriftHiveMetastore_get_functions_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -30787,13 +28723,7 @@ class ThriftHiveMetastore_get_functions_result { class ThriftHiveMetastore_get_function_args { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $funcName = null; public function __construct($vals=null) { @@ -30885,17 +28815,8 @@ class ThriftHiveMetastore_get_function_args { class ThriftHiveMetastore_get_function_result { static $_TSPEC; - /** - * @var \metastore\Function - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; - /** - * @var \metastore\NoSuchObjectException - */ public $o2 = null; public function __construct($vals=null) { @@ -31065,13 +28986,7 @@ class ThriftHiveMetastore_get_all_functions_args { class ThriftHiveMetastore_get_all_functions_result { static $_TSPEC; - /** - * @var \metastore\GetAllFunctionsResponse - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -31170,9 +29085,6 @@ class ThriftHiveMetastore_get_all_functions_result { class ThriftHiveMetastore_create_role_args { static $_TSPEC; - /** - * @var \metastore\Role - */ public $role = null; public function __construct($vals=null) { @@ -31250,13 +29162,7 @@ class ThriftHiveMetastore_create_role_args { class ThriftHiveMetastore_create_role_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -31350,9 +29256,6 @@ class ThriftHiveMetastore_create_role_result { class ThriftHiveMetastore_drop_role_args { static $_TSPEC; - /** - * @var string - */ public $role_name = null; public function __construct($vals=null) { @@ -31425,13 +29328,7 @@ class ThriftHiveMetastore_drop_role_args { class ThriftHiveMetastore_drop_role_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -31575,13 +29472,7 @@ class ThriftHiveMetastore_get_role_names_args { class ThriftHiveMetastore_get_role_names_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -31701,29 +29592,11 @@ class ThriftHiveMetastore_get_role_names_result { class ThriftHiveMetastore_grant_role_args { static $_TSPEC; - /** - * @var string - */ public $role_name = null; - /** - * @var string - */ public $principal_name = null; - /** - * @var int - */ public $principal_type = null; - /** - * @var string - */ public $grantor = null; - /** - * @var int - */ public $grantorType = null; - /** - * @var bool - */ public $grant_option = null; public function __construct($vals=null) { @@ -31891,13 +29764,7 @@ class ThriftHiveMetastore_grant_role_args { class ThriftHiveMetastore_grant_role_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -31991,17 +29858,8 @@ class ThriftHiveMetastore_grant_role_result { class ThriftHiveMetastore_revoke_role_args { static $_TSPEC; - /** - * @var string - */ public $role_name = null; - /** - * @var string - */ public $principal_name = null; - /** - * @var int - */ public $principal_type = null; public function __construct($vals=null) { @@ -32112,13 +29970,7 @@ class ThriftHiveMetastore_revoke_role_args { class ThriftHiveMetastore_revoke_role_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -32212,13 +30064,7 @@ class ThriftHiveMetastore_revoke_role_result { class ThriftHiveMetastore_list_roles_args { static $_TSPEC; - /** - * @var string - */ public $principal_name = null; - /** - * @var int - */ public $principal_type = null; public function __construct($vals=null) { @@ -32310,13 +30156,7 @@ class ThriftHiveMetastore_list_roles_args { class ThriftHiveMetastore_list_roles_result { static $_TSPEC; - /** - * @var \metastore\Role[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -32438,9 +30278,6 @@ class ThriftHiveMetastore_list_roles_result { class ThriftHiveMetastore_grant_revoke_role_args { static $_TSPEC; - /** - * @var \metastore\GrantRevokeRoleRequest - */ public $request = null; public function __construct($vals=null) { @@ -32518,13 +30355,7 @@ class ThriftHiveMetastore_grant_revoke_role_args { class ThriftHiveMetastore_grant_revoke_role_result { static $_TSPEC; - /** - * @var \metastore\GrantRevokeRoleResponse - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -32623,9 +30454,6 @@ class ThriftHiveMetastore_grant_revoke_role_result { class ThriftHiveMetastore_get_principals_in_role_args { static $_TSPEC; - /** - * @var \metastore\GetPrincipalsInRoleRequest - */ public $request = null; public function __construct($vals=null) { @@ -32703,13 +30531,7 @@ class ThriftHiveMetastore_get_principals_in_role_args { class ThriftHiveMetastore_get_principals_in_role_result { static $_TSPEC; - /** - * @var \metastore\GetPrincipalsInRoleResponse - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -32808,9 +30630,6 @@ class ThriftHiveMetastore_get_principals_in_role_result { class ThriftHiveMetastore_get_role_grants_for_principal_args { static $_TSPEC; - /** - * @var \metastore\GetRoleGrantsForPrincipalRequest - */ public $request = null; public function __construct($vals=null) { @@ -32888,13 +30707,7 @@ class ThriftHiveMetastore_get_role_grants_for_principal_args { class ThriftHiveMetastore_get_role_grants_for_principal_result { static $_TSPEC; - /** - * @var \metastore\GetRoleGrantsForPrincipalResponse - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -32993,17 +30806,8 @@ class ThriftHiveMetastore_get_role_grants_for_principal_result { class ThriftHiveMetastore_get_privilege_set_args { static $_TSPEC; - /** - * @var \metastore\HiveObjectRef - */ public $hiveObject = null; - /** - * @var string - */ public $user_name = null; - /** - * @var string[] - */ public $group_names = null; public function __construct($vals=null) { @@ -33145,13 +30949,7 @@ class ThriftHiveMetastore_get_privilege_set_args { class ThriftHiveMetastore_get_privilege_set_result { static $_TSPEC; - /** - * @var \metastore\PrincipalPrivilegeSet - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -33250,17 +31048,8 @@ class ThriftHiveMetastore_get_privilege_set_result { class ThriftHiveMetastore_list_privileges_args { static $_TSPEC; - /** - * @var string - */ public $principal_name = null; - /** - * @var int - */ public $principal_type = null; - /** - * @var \metastore\HiveObjectRef - */ public $hiveObject = null; public function __construct($vals=null) { @@ -33376,13 +31165,7 @@ class ThriftHiveMetastore_list_privileges_args { class ThriftHiveMetastore_list_privileges_result { static $_TSPEC; - /** - * @var \metastore\HiveObjectPrivilege[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -33504,9 +31287,6 @@ class ThriftHiveMetastore_list_privileges_result { class ThriftHiveMetastore_grant_privileges_args { static $_TSPEC; - /** - * @var \metastore\PrivilegeBag - */ public $privileges = null; public function __construct($vals=null) { @@ -33584,13 +31364,7 @@ class ThriftHiveMetastore_grant_privileges_args { class ThriftHiveMetastore_grant_privileges_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -33684,9 +31458,6 @@ class ThriftHiveMetastore_grant_privileges_result { class ThriftHiveMetastore_revoke_privileges_args { static $_TSPEC; - /** - * @var \metastore\PrivilegeBag - */ public $privileges = null; public function __construct($vals=null) { @@ -33764,13 +31535,7 @@ class ThriftHiveMetastore_revoke_privileges_args { class ThriftHiveMetastore_revoke_privileges_result { static $_TSPEC; - /** - * @var bool - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -33864,9 +31629,6 @@ class ThriftHiveMetastore_revoke_privileges_result { class ThriftHiveMetastore_grant_revoke_privileges_args { static $_TSPEC; - /** - * @var \metastore\GrantRevokePrivilegeRequest - */ public $request = null; public function __construct($vals=null) { @@ -33944,13 +31706,7 @@ class ThriftHiveMetastore_grant_revoke_privileges_args { class ThriftHiveMetastore_grant_revoke_privileges_result { static $_TSPEC; - /** - * @var \metastore\GrantRevokePrivilegeResponse - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -34049,13 +31805,7 @@ class ThriftHiveMetastore_grant_revoke_privileges_result { class ThriftHiveMetastore_set_ugi_args { static $_TSPEC; - /** - * @var string - */ public $user_name = null; - /** - * @var string[] - */ public $group_names = null; public function __construct($vals=null) { @@ -34173,13 +31923,7 @@ class ThriftHiveMetastore_set_ugi_args { class ThriftHiveMetastore_set_ugi_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -34299,13 +32043,7 @@ class ThriftHiveMetastore_set_ugi_result { class ThriftHiveMetastore_get_delegation_token_args { static $_TSPEC; - /** - * @var string - */ public $token_owner = null; - /** - * @var string - */ public $renewer_kerberos_principal_name = null; public function __construct($vals=null) { @@ -34397,13 +32135,7 @@ class ThriftHiveMetastore_get_delegation_token_args { class ThriftHiveMetastore_get_delegation_token_result { static $_TSPEC; - /** - * @var string - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -34497,9 +32229,6 @@ class ThriftHiveMetastore_get_delegation_token_result { class ThriftHiveMetastore_renew_delegation_token_args { static $_TSPEC; - /** - * @var string - */ public $token_str_form = null; public function __construct($vals=null) { @@ -34572,13 +32301,7 @@ class ThriftHiveMetastore_renew_delegation_token_args { class ThriftHiveMetastore_renew_delegation_token_result { static $_TSPEC; - /** - * @var int - */ public $success = null; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -34672,9 +32395,6 @@ class ThriftHiveMetastore_renew_delegation_token_result { class ThriftHiveMetastore_cancel_delegation_token_args { static $_TSPEC; - /** - * @var string - */ public $token_str_form = null; public function __construct($vals=null) { @@ -34747,9 +32467,6 @@ class ThriftHiveMetastore_cancel_delegation_token_args { class ThriftHiveMetastore_cancel_delegation_token_result { static $_TSPEC; - /** - * @var \metastore\MetaException - */ public $o1 = null; public function __construct($vals=null) { @@ -34874,9 +32591,6 @@ class ThriftHiveMetastore_get_open_txns_args { class ThriftHiveMetastore_get_open_txns_result { static $_TSPEC; - /** - * @var \metastore\GetOpenTxnsResponse - */ public $success = null; public function __construct($vals=null) { @@ -35004,9 +32718,6 @@ class ThriftHiveMetastore_get_open_txns_info_args { class ThriftHiveMetastore_get_open_txns_info_result { static $_TSPEC; - /** - * @var \metastore\GetOpenTxnsInfoResponse - */ public $success = null; public function __construct($vals=null) { @@ -35084,9 +32795,6 @@ class ThriftHiveMetastore_get_open_txns_info_result { class ThriftHiveMetastore_open_txns_args { static $_TSPEC; - /** - * @var \metastore\OpenTxnRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -35164,9 +32872,6 @@ class ThriftHiveMetastore_open_txns_args { class ThriftHiveMetastore_open_txns_result { static $_TSPEC; - /** - * @var \metastore\OpenTxnsResponse - */ public $success = null; public function __construct($vals=null) { @@ -35244,9 +32949,6 @@ class ThriftHiveMetastore_open_txns_result { class ThriftHiveMetastore_abort_txn_args { static $_TSPEC; - /** - * @var \metastore\AbortTxnRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -35324,9 +33026,6 @@ class ThriftHiveMetastore_abort_txn_args { class ThriftHiveMetastore_abort_txn_result { static $_TSPEC; - /** - * @var \metastore\NoSuchTxnException - */ public $o1 = null; public function __construct($vals=null) { @@ -35401,9 +33100,6 @@ class ThriftHiveMetastore_abort_txn_result { class ThriftHiveMetastore_commit_txn_args { static $_TSPEC; - /** - * @var \metastore\CommitTxnRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -35481,13 +33177,7 @@ class ThriftHiveMetastore_commit_txn_args { class ThriftHiveMetastore_commit_txn_result { static $_TSPEC; - /** - * @var \metastore\NoSuchTxnException - */ public $o1 = null; - /** - * @var \metastore\TxnAbortedException - */ public $o2 = null; public function __construct($vals=null) { @@ -35583,9 +33273,6 @@ class ThriftHiveMetastore_commit_txn_result { class ThriftHiveMetastore_lock_args { static $_TSPEC; - /** - * @var \metastore\LockRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -35663,17 +33350,8 @@ class ThriftHiveMetastore_lock_args { class ThriftHiveMetastore_lock_result { static $_TSPEC; - /** - * @var \metastore\LockResponse - */ public $success = null; - /** - * @var \metastore\NoSuchTxnException - */ public $o1 = null; - /** - * @var \metastore\TxnAbortedException - */ public $o2 = null; public function __construct($vals=null) { @@ -35793,9 +33471,6 @@ class ThriftHiveMetastore_lock_result { class ThriftHiveMetastore_check_lock_args { static $_TSPEC; - /** - * @var \metastore\CheckLockRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -35873,21 +33548,9 @@ class ThriftHiveMetastore_check_lock_args { class ThriftHiveMetastore_check_lock_result { static $_TSPEC; - /** - * @var \metastore\LockResponse - */ public $success = null; - /** - * @var \metastore\NoSuchTxnException - */ public $o1 = null; - /** - * @var \metastore\TxnAbortedException - */ public $o2 = null; - /** - * @var \metastore\NoSuchLockException - */ public $o3 = null; public function __construct($vals=null) { @@ -36028,9 +33691,6 @@ class ThriftHiveMetastore_check_lock_result { class ThriftHiveMetastore_unlock_args { static $_TSPEC; - /** - * @var \metastore\UnlockRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -36108,13 +33768,7 @@ class ThriftHiveMetastore_unlock_args { class ThriftHiveMetastore_unlock_result { static $_TSPEC; - /** - * @var \metastore\NoSuchLockException - */ public $o1 = null; - /** - * @var \metastore\TxnOpenException - */ public $o2 = null; public function __construct($vals=null) { @@ -36210,9 +33864,6 @@ class ThriftHiveMetastore_unlock_result { class ThriftHiveMetastore_show_locks_args { static $_TSPEC; - /** - * @var \metastore\ShowLocksRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -36290,9 +33941,6 @@ class ThriftHiveMetastore_show_locks_args { class ThriftHiveMetastore_show_locks_result { static $_TSPEC; - /** - * @var \metastore\ShowLocksResponse - */ public $success = null; public function __construct($vals=null) { @@ -36370,9 +34018,6 @@ class ThriftHiveMetastore_show_locks_result { class ThriftHiveMetastore_heartbeat_args { static $_TSPEC; - /** - * @var \metastore\HeartbeatRequest - */ public $ids = null; public function __construct($vals=null) { @@ -36450,17 +34095,8 @@ class ThriftHiveMetastore_heartbeat_args { class ThriftHiveMetastore_heartbeat_result { static $_TSPEC; - /** - * @var \metastore\NoSuchLockException - */ public $o1 = null; - /** - * @var \metastore\NoSuchTxnException - */ public $o2 = null; - /** - * @var \metastore\TxnAbortedException - */ public $o3 = null; public function __construct($vals=null) { @@ -36577,9 +34213,6 @@ class ThriftHiveMetastore_heartbeat_result { class ThriftHiveMetastore_heartbeat_txn_range_args { static $_TSPEC; - /** - * @var \metastore\HeartbeatTxnRangeRequest - */ public $txns = null; public function __construct($vals=null) { @@ -36657,9 +34290,6 @@ class ThriftHiveMetastore_heartbeat_txn_range_args { class ThriftHiveMetastore_heartbeat_txn_range_result { static $_TSPEC; - /** - * @var \metastore\HeartbeatTxnRangeResponse - */ public $success = null; public function __construct($vals=null) { @@ -36737,9 +34367,6 @@ class ThriftHiveMetastore_heartbeat_txn_range_result { class ThriftHiveMetastore_compact_args { static $_TSPEC; - /** - * @var \metastore\CompactionRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -36867,9 +34494,6 @@ class ThriftHiveMetastore_compact_result { class ThriftHiveMetastore_show_compact_args { static $_TSPEC; - /** - * @var \metastore\ShowCompactRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -36947,9 +34571,6 @@ class ThriftHiveMetastore_show_compact_args { class ThriftHiveMetastore_show_compact_result { static $_TSPEC; - /** - * @var \metastore\ShowCompactResponse - */ public $success = null; public function __construct($vals=null) { @@ -37027,9 +34648,6 @@ class ThriftHiveMetastore_show_compact_result { class ThriftHiveMetastore_add_dynamic_partitions_args { static $_TSPEC; - /** - * @var \metastore\AddDynamicPartitions - */ public $rqst = null; public function __construct($vals=null) { @@ -37107,13 +34725,7 @@ class ThriftHiveMetastore_add_dynamic_partitions_args { class ThriftHiveMetastore_add_dynamic_partitions_result { static $_TSPEC; - /** - * @var \metastore\NoSuchTxnException - */ public $o1 = null; - /** - * @var \metastore\TxnAbortedException - */ public $o2 = null; public function __construct($vals=null) { @@ -37209,9 +34821,6 @@ class ThriftHiveMetastore_add_dynamic_partitions_result { class ThriftHiveMetastore_get_next_notification_args { static $_TSPEC; - /** - * @var \metastore\NotificationEventRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -37289,9 +34898,6 @@ class ThriftHiveMetastore_get_next_notification_args { class ThriftHiveMetastore_get_next_notification_result { static $_TSPEC; - /** - * @var \metastore\NotificationEventResponse - */ public $success = null; public function __construct($vals=null) { @@ -37419,9 +35025,6 @@ class ThriftHiveMetastore_get_current_notificationEventId_args { class ThriftHiveMetastore_get_current_notificationEventId_result { static $_TSPEC; - /** - * @var \metastore\CurrentNotificationEventId - */ public $success = null; public function __construct($vals=null) { @@ -37499,9 +35102,6 @@ class ThriftHiveMetastore_get_current_notificationEventId_result { class ThriftHiveMetastore_fire_listener_event_args { static $_TSPEC; - /** - * @var \metastore\FireEventRequest - */ public $rqst = null; public function __construct($vals=null) { @@ -37579,9 +35179,6 @@ class ThriftHiveMetastore_fire_listener_event_args { class ThriftHiveMetastore_fire_listener_event_result { static $_TSPEC; - /** - * @var \metastore\FireEventResponse - */ public $success = null; public function __construct($vals=null) { diff --git a/metastore/src/gen/thrift/gen-php/metastore/Types.php b/metastore/src/gen/thrift/gen-php/metastore/Types.php index 949a6e9..9d94810 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -2,7 +2,7 @@ namespace metastore; /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -13,7 +13,6 @@ use Thrift\Type\TMessageType; use Thrift\Exception\TException; use Thrift\Exception\TProtocolException; use Thrift\Protocol\TProtocol; -use Thrift\Protocol\TBinaryProtocolAccelerated; use Thrift\Exception\TApplicationException; @@ -146,13 +145,7 @@ final class ResourceType { class Version { static $_TSPEC; - /** - * @var string - */ public $version = null; - /** - * @var string - */ public $comments = null; public function __construct($vals=null) { @@ -244,17 +237,8 @@ class Version { class FieldSchema { static $_TSPEC; - /** - * @var string - */ public $name = null; - /** - * @var string - */ public $type = null; - /** - * @var string - */ public $comment = null; public function __construct($vals=null) { @@ -365,21 +349,9 @@ class FieldSchema { class Type { static $_TSPEC; - /** - * @var string - */ public $name = null; - /** - * @var string - */ public $type1 = null; - /** - * @var string - */ public $type2 = null; - /** - * @var \metastore\FieldSchema[] - */ public $fields = null; public function __construct($vals=null) { @@ -537,25 +509,10 @@ class Type { class HiveObjectRef { static $_TSPEC; - /** - * @var int - */ public $objectType = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $objectName = null; - /** - * @var string[] - */ public $partValues = null; - /** - * @var string - */ public $columnName = null; public function __construct($vals=null) { @@ -730,25 +687,10 @@ class HiveObjectRef { class PrivilegeGrantInfo { static $_TSPEC; - /** - * @var string - */ public $privilege = null; - /** - * @var int - */ public $createTime = null; - /** - * @var string - */ public $grantor = null; - /** - * @var int - */ public $grantorType = null; - /** - * @var bool - */ public $grantOption = null; public function __construct($vals=null) { @@ -897,21 +839,9 @@ class PrivilegeGrantInfo { class HiveObjectPrivilege { static $_TSPEC; - /** - * @var \metastore\HiveObjectRef - */ public $hiveObject = null; - /** - * @var string - */ public $principalName = null; - /** - * @var int - */ public $principalType = null; - /** - * @var \metastore\PrivilegeGrantInfo - */ public $grantInfo = null; public function __construct($vals=null) { @@ -1051,9 +981,6 @@ class HiveObjectPrivilege { class PrivilegeBag { static $_TSPEC; - /** - * @var \metastore\HiveObjectPrivilege[] - */ public $privileges = null; public function __construct($vals=null) { @@ -1154,17 +1081,8 @@ class PrivilegeBag { class PrincipalPrivilegeSet { static $_TSPEC; - /** - * @var array - */ public $userPrivileges = null; - /** - * @var array - */ public $groupPrivileges = null; - /** - * @var array - */ public $rolePrivileges = null; public function __construct($vals=null) { @@ -1452,17 +1370,8 @@ class PrincipalPrivilegeSet { class GrantRevokePrivilegeRequest { static $_TSPEC; - /** - * @var int - */ public $requestType = null; - /** - * @var \metastore\PrivilegeBag - */ public $privileges = null; - /** - * @var bool - */ public $revokeGrantOption = null; public function __construct($vals=null) { @@ -1578,9 +1487,6 @@ class GrantRevokePrivilegeRequest { class GrantRevokePrivilegeResponse { static $_TSPEC; - /** - * @var bool - */ public $success = null; public function __construct($vals=null) { @@ -1653,17 +1559,8 @@ class GrantRevokePrivilegeResponse { class Role { static $_TSPEC; - /** - * @var string - */ public $roleName = null; - /** - * @var int - */ public $createTime = null; - /** - * @var string - */ public $ownerName = null; public function __construct($vals=null) { @@ -1774,33 +1671,12 @@ class Role { class RolePrincipalGrant { static $_TSPEC; - /** - * @var string - */ public $roleName = null; - /** - * @var string - */ public $principalName = null; - /** - * @var int - */ public $principalType = null; - /** - * @var bool - */ public $grantOption = null; - /** - * @var int - */ public $grantTime = null; - /** - * @var string - */ public $grantorName = null; - /** - * @var int - */ public $grantorPrincipalType = null; public function __construct($vals=null) { @@ -1987,13 +1863,7 @@ class RolePrincipalGrant { class GetRoleGrantsForPrincipalRequest { static $_TSPEC; - /** - * @var string - */ public $principal_name = null; - /** - * @var int - */ public $principal_type = null; public function __construct($vals=null) { @@ -2085,9 +1955,6 @@ class GetRoleGrantsForPrincipalRequest { class GetRoleGrantsForPrincipalResponse { static $_TSPEC; - /** - * @var \metastore\RolePrincipalGrant[] - */ public $principalGrants = null; public function __construct($vals=null) { @@ -2188,9 +2055,6 @@ class GetRoleGrantsForPrincipalResponse { class GetPrincipalsInRoleRequest { static $_TSPEC; - /** - * @var string - */ public $roleName = null; public function __construct($vals=null) { @@ -2263,9 +2127,6 @@ class GetPrincipalsInRoleRequest { class GetPrincipalsInRoleResponse { static $_TSPEC; - /** - * @var \metastore\RolePrincipalGrant[] - */ public $principalGrants = null; public function __construct($vals=null) { @@ -2366,33 +2227,12 @@ class GetPrincipalsInRoleResponse { class GrantRevokeRoleRequest { static $_TSPEC; - /** - * @var int - */ public $requestType = null; - /** - * @var string - */ public $roleName = null; - /** - * @var string - */ public $principalName = null; - /** - * @var int - */ public $principalType = null; - /** - * @var string - */ public $grantor = null; - /** - * @var int - */ public $grantorType = null; - /** - * @var bool - */ public $grantOption = null; public function __construct($vals=null) { @@ -2579,9 +2419,6 @@ class GrantRevokeRoleRequest { class GrantRevokeRoleResponse { static $_TSPEC; - /** - * @var bool - */ public $success = null; public function __construct($vals=null) { @@ -2654,33 +2491,12 @@ class GrantRevokeRoleResponse { class Database { static $_TSPEC; - /** - * @var string - */ public $name = null; - /** - * @var string - */ public $description = null; - /** - * @var string - */ public $locationUri = null; - /** - * @var array - */ public $parameters = null; - /** - * @var \metastore\PrincipalPrivilegeSet - */ public $privileges = null; - /** - * @var string - */ public $ownerName = null; - /** - * @var int - */ public $ownerType = null; public function __construct($vals=null) { @@ -2906,17 +2722,8 @@ class Database { class SerDeInfo { static $_TSPEC; - /** - * @var string - */ public $name = null; - /** - * @var string - */ public $serializationLib = null; - /** - * @var array - */ public $parameters = null; public function __construct($vals=null) { @@ -3061,13 +2868,7 @@ class SerDeInfo { class Order { static $_TSPEC; - /** - * @var string - */ public $col = null; - /** - * @var int - */ public $order = null; public function __construct($vals=null) { @@ -3159,17 +2960,8 @@ class Order { class SkewedInfo { static $_TSPEC; - /** - * @var string[] - */ public $skewedColNames = null; - /** - * @var (string[])[] - */ public $skewedColValues = null; - /** - * @var array - */ public $skewedColValueLocationMaps = null; public function __construct($vals=null) { @@ -3412,53 +3204,17 @@ class SkewedInfo { class StorageDescriptor { static $_TSPEC; - /** - * @var \metastore\FieldSchema[] - */ public $cols = null; - /** - * @var string - */ public $location = null; - /** - * @var string - */ public $inputFormat = null; - /** - * @var string - */ public $outputFormat = null; - /** - * @var bool - */ public $compressed = null; - /** - * @var int - */ public $numBuckets = null; - /** - * @var \metastore\SerDeInfo - */ public $serdeInfo = null; - /** - * @var string[] - */ public $bucketCols = null; - /** - * @var \metastore\Order[] - */ public $sortCols = null; - /** - * @var array - */ public $parameters = null; - /** - * @var \metastore\SkewedInfo - */ public $skewedInfo = null; - /** - * @var bool - */ public $storedAsSubDirectories = null; public function __construct($vals=null) { @@ -3866,61 +3622,19 @@ class StorageDescriptor { class Table { static $_TSPEC; - /** - * @var string - */ public $tableName = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $owner = null; - /** - * @var int - */ public $createTime = null; - /** - * @var int - */ public $lastAccessTime = null; - /** - * @var int - */ public $retention = null; - /** - * @var \metastore\StorageDescriptor - */ public $sd = null; - /** - * @var \metastore\FieldSchema[] - */ public $partitionKeys = null; - /** - * @var array - */ public $parameters = null; - /** - * @var string - */ public $viewOriginalText = null; - /** - * @var string - */ public $viewExpandedText = null; - /** - * @var string - */ public $tableType = null; - /** - * @var \metastore\PrincipalPrivilegeSet - */ public $privileges = null; - /** - * @var bool - */ public $temporary = false; public function __construct($vals=null) { @@ -4312,37 +4026,13 @@ class Table { class Partition { static $_TSPEC; - /** - * @var string[] - */ public $values = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tableName = null; - /** - * @var int - */ public $createTime = null; - /** - * @var int - */ public $lastAccessTime = null; - /** - * @var \metastore\StorageDescriptor - */ public $sd = null; - /** - * @var array - */ public $parameters = null; - /** - * @var \metastore\PrincipalPrivilegeSet - */ public $privileges = null; public function __construct($vals=null) { @@ -4618,29 +4308,11 @@ class Partition { class PartitionWithoutSD { static $_TSPEC; - /** - * @var string[] - */ public $values = null; - /** - * @var int - */ public $createTime = null; - /** - * @var int - */ public $lastAccessTime = null; - /** - * @var string - */ public $relativePath = null; - /** - * @var array - */ public $parameters = null; - /** - * @var \metastore\PrincipalPrivilegeSet - */ public $privileges = null; public function __construct($vals=null) { @@ -4873,13 +4545,7 @@ class PartitionWithoutSD { class PartitionSpecWithSharedSD { static $_TSPEC; - /** - * @var \metastore\PartitionWithoutSD[] - */ public $partitions = null; - /** - * @var \metastore\StorageDescriptor - */ public $sd = null; public function __construct($vals=null) { @@ -5004,9 +4670,6 @@ class PartitionSpecWithSharedSD { class PartitionListComposingSpec { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $partitions = null; public function __construct($vals=null) { @@ -5107,25 +4770,10 @@ class PartitionListComposingSpec { class PartitionSpec { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tableName = null; - /** - * @var string - */ public $rootPath = null; - /** - * @var \metastore\PartitionSpecWithSharedSD - */ public $sharedSDPartitionSpec = null; - /** - * @var \metastore\PartitionListComposingSpec - */ public $partitionList = null; public function __construct($vals=null) { @@ -5284,45 +4932,15 @@ class PartitionSpec { class Index { static $_TSPEC; - /** - * @var string - */ public $indexName = null; - /** - * @var string - */ public $indexHandlerClass = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $origTableName = null; - /** - * @var int - */ public $createTime = null; - /** - * @var int - */ public $lastAccessTime = null; - /** - * @var string - */ public $indexTableName = null; - /** - * @var \metastore\StorageDescriptor - */ public $sd = null; - /** - * @var array - */ public $parameters = null; - /** - * @var bool - */ public $deferredRebuild = null; public function __construct($vals=null) { @@ -5605,17 +5223,8 @@ class Index { class BooleanColumnStatsData { static $_TSPEC; - /** - * @var int - */ public $numTrues = null; - /** - * @var int - */ public $numFalses = null; - /** - * @var int - */ public $numNulls = null; public function __construct($vals=null) { @@ -5726,21 +5335,9 @@ class BooleanColumnStatsData { class DoubleColumnStatsData { static $_TSPEC; - /** - * @var double - */ public $lowValue = null; - /** - * @var double - */ public $highValue = null; - /** - * @var int - */ public $numNulls = null; - /** - * @var int - */ public $numDVs = null; public function __construct($vals=null) { @@ -5870,21 +5467,9 @@ class DoubleColumnStatsData { class LongColumnStatsData { static $_TSPEC; - /** - * @var int - */ public $lowValue = null; - /** - * @var int - */ public $highValue = null; - /** - * @var int - */ public $numNulls = null; - /** - * @var int - */ public $numDVs = null; public function __construct($vals=null) { @@ -6014,21 +5599,9 @@ class LongColumnStatsData { class StringColumnStatsData { static $_TSPEC; - /** - * @var int - */ public $maxColLen = null; - /** - * @var double - */ public $avgColLen = null; - /** - * @var int - */ public $numNulls = null; - /** - * @var int - */ public $numDVs = null; public function __construct($vals=null) { @@ -6158,17 +5731,8 @@ class StringColumnStatsData { class BinaryColumnStatsData { static $_TSPEC; - /** - * @var int - */ public $maxColLen = null; - /** - * @var double - */ public $avgColLen = null; - /** - * @var int - */ public $numNulls = null; public function __construct($vals=null) { @@ -6279,13 +5843,7 @@ class BinaryColumnStatsData { class Decimal { static $_TSPEC; - /** - * @var string - */ public $unscaled = null; - /** - * @var int - */ public $scale = null; public function __construct($vals=null) { @@ -6377,21 +5935,9 @@ class Decimal { class DecimalColumnStatsData { static $_TSPEC; - /** - * @var \metastore\Decimal - */ public $lowValue = null; - /** - * @var \metastore\Decimal - */ public $highValue = null; - /** - * @var int - */ public $numNulls = null; - /** - * @var int - */ public $numDVs = null; public function __construct($vals=null) { @@ -6531,9 +6077,6 @@ class DecimalColumnStatsData { class Date { static $_TSPEC; - /** - * @var int - */ public $daysSinceEpoch = null; public function __construct($vals=null) { @@ -6606,21 +6149,9 @@ class Date { class DateColumnStatsData { static $_TSPEC; - /** - * @var \metastore\Date - */ public $lowValue = null; - /** - * @var \metastore\Date - */ public $highValue = null; - /** - * @var int - */ public $numNulls = null; - /** - * @var int - */ public $numDVs = null; public function __construct($vals=null) { @@ -6760,33 +6291,12 @@ class DateColumnStatsData { class ColumnStatisticsData { static $_TSPEC; - /** - * @var \metastore\BooleanColumnStatsData - */ public $booleanStats = null; - /** - * @var \metastore\LongColumnStatsData - */ public $longStats = null; - /** - * @var \metastore\DoubleColumnStatsData - */ public $doubleStats = null; - /** - * @var \metastore\StringColumnStatsData - */ public $stringStats = null; - /** - * @var \metastore\BinaryColumnStatsData - */ public $binaryStats = null; - /** - * @var \metastore\DecimalColumnStatsData - */ public $decimalStats = null; - /** - * @var \metastore\DateColumnStatsData - */ public $dateStats = null; public function __construct($vals=null) { @@ -7008,17 +6518,8 @@ class ColumnStatisticsData { class ColumnStatisticsObj { static $_TSPEC; - /** - * @var string - */ public $colName = null; - /** - * @var string - */ public $colType = null; - /** - * @var \metastore\ColumnStatisticsData - */ public $statsData = null; public function __construct($vals=null) { @@ -7134,25 +6635,10 @@ class ColumnStatisticsObj { class ColumnStatisticsDesc { static $_TSPEC; - /** - * @var bool - */ public $isTblLevel = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tableName = null; - /** - * @var string - */ public $partName = null; - /** - * @var int - */ public $lastAnalyzed = null; public function __construct($vals=null) { @@ -7301,13 +6787,7 @@ class ColumnStatisticsDesc { class ColumnStatistics { static $_TSPEC; - /** - * @var \metastore\ColumnStatisticsDesc - */ public $statsDesc = null; - /** - * @var \metastore\ColumnStatisticsObj[] - */ public $statsObj = null; public function __construct($vals=null) { @@ -7432,13 +6912,7 @@ class ColumnStatistics { class AggrStats { static $_TSPEC; - /** - * @var \metastore\ColumnStatisticsObj[] - */ public $colStats = null; - /** - * @var int - */ public $partsFound = null; public function __construct($vals=null) { @@ -7558,9 +7032,6 @@ class AggrStats { class SetPartitionsStatsRequest { static $_TSPEC; - /** - * @var \metastore\ColumnStatistics[] - */ public $colStats = null; public function __construct($vals=null) { @@ -7661,13 +7132,7 @@ class SetPartitionsStatsRequest { class Schema { static $_TSPEC; - /** - * @var \metastore\FieldSchema[] - */ public $fieldSchemas = null; - /** - * @var array - */ public $properties = null; public function __construct($vals=null) { @@ -7821,9 +7286,6 @@ class Schema { class EnvironmentContext { static $_TSPEC; - /** - * @var array - */ public $properties = null; public function __construct($vals=null) { @@ -7930,13 +7392,7 @@ class EnvironmentContext { class PartitionsByExprResult { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $partitions = null; - /** - * @var bool - */ public $hasUnknownPartitions = null; public function __construct($vals=null) { @@ -8056,25 +7512,10 @@ class PartitionsByExprResult { class PartitionsByExprRequest { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tblName = null; - /** - * @var string - */ public $expr = null; - /** - * @var string - */ public $defaultPartitionName = null; - /** - * @var int - */ public $maxParts = -1; public function __construct($vals=null) { @@ -8223,9 +7664,6 @@ class PartitionsByExprRequest { class TableStatsResult { static $_TSPEC; - /** - * @var \metastore\ColumnStatisticsObj[] - */ public $tableStats = null; public function __construct($vals=null) { @@ -8326,9 +7764,6 @@ class TableStatsResult { class PartitionsStatsResult { static $_TSPEC; - /** - * @var array - */ public $partStats = null; public function __construct($vals=null) { @@ -8460,17 +7895,8 @@ class PartitionsStatsResult { class TableStatsRequest { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tblName = null; - /** - * @var string[] - */ public $colNames = null; public function __construct($vals=null) { @@ -8607,21 +8033,9 @@ class TableStatsRequest { class PartitionsStatsRequest { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tblName = null; - /** - * @var string[] - */ public $colNames = null; - /** - * @var string[] - */ public $partNames = null; public function __construct($vals=null) { @@ -8803,9 +8217,6 @@ class PartitionsStatsRequest { class AddPartitionsResult { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $partitions = null; public function __construct($vals=null) { @@ -8906,25 +8317,10 @@ class AddPartitionsResult { class AddPartitionsRequest { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tblName = null; - /** - * @var \metastore\Partition[] - */ public $parts = null; - /** - * @var bool - */ public $ifNotExists = null; - /** - * @var bool - */ public $needResult = true; public function __construct($vals=null) { @@ -9101,9 +8497,6 @@ class AddPartitionsRequest { class DropPartitionsResult { static $_TSPEC; - /** - * @var \metastore\Partition[] - */ public $partitions = null; public function __construct($vals=null) { @@ -9204,13 +8597,7 @@ class DropPartitionsResult { class DropPartitionsExpr { static $_TSPEC; - /** - * @var string - */ public $expr = null; - /** - * @var int - */ public $partArchiveLevel = null; public function __construct($vals=null) { @@ -9302,13 +8689,7 @@ class DropPartitionsExpr { class RequestPartsSpec { static $_TSPEC; - /** - * @var string[] - */ public $names = null; - /** - * @var \metastore\DropPartitionsExpr[] - */ public $exprs = null; public function __construct($vals=null) { @@ -9454,37 +8835,13 @@ class RequestPartsSpec { class DropPartitionsRequest { static $_TSPEC; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tblName = null; - /** - * @var \metastore\RequestPartsSpec - */ public $parts = null; - /** - * @var bool - */ public $deleteData = null; - /** - * @var bool - */ public $ifExists = true; - /** - * @var bool - */ public $ignoreProtection = null; - /** - * @var \metastore\EnvironmentContext - */ public $environmentContext = null; - /** - * @var bool - */ public $needResult = true; public function __construct($vals=null) { @@ -9700,13 +9057,7 @@ class DropPartitionsRequest { class ResourceUri { static $_TSPEC; - /** - * @var int - */ public $resourceType = null; - /** - * @var string - */ public $uri = null; public function __construct($vals=null) { @@ -9798,37 +9149,13 @@ class ResourceUri { class Function { static $_TSPEC; - /** - * @var string - */ public $functionName = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $className = null; - /** - * @var string - */ public $ownerName = null; - /** - * @var int - */ public $ownerType = null; - /** - * @var int - */ public $createTime = null; - /** - * @var int - */ public $functionType = null; - /** - * @var \metastore\ResourceUri[] - */ public $resourceUris = null; public function __construct($vals=null) { @@ -10062,21 +9389,9 @@ class Function { class TxnInfo { static $_TSPEC; - /** - * @var int - */ public $id = null; - /** - * @var int - */ public $state = null; - /** - * @var string - */ public $user = null; - /** - * @var string - */ public $hostname = null; public function __construct($vals=null) { @@ -10206,13 +9521,7 @@ class TxnInfo { class GetOpenTxnsInfoResponse { static $_TSPEC; - /** - * @var int - */ public $txn_high_water_mark = null; - /** - * @var \metastore\TxnInfo[] - */ public $open_txns = null; public function __construct($vals=null) { @@ -10332,13 +9641,7 @@ class GetOpenTxnsInfoResponse { class GetOpenTxnsResponse { static $_TSPEC; - /** - * @var int - */ public $txn_high_water_mark = null; - /** - * @var int[] - */ public $open_txns = null; public function __construct($vals=null) { @@ -10464,17 +9767,8 @@ class GetOpenTxnsResponse { class OpenTxnRequest { static $_TSPEC; - /** - * @var int - */ public $num_txns = null; - /** - * @var string - */ public $user = null; - /** - * @var string - */ public $hostname = null; public function __construct($vals=null) { @@ -10585,9 +9879,6 @@ class OpenTxnRequest { class OpenTxnsResponse { static $_TSPEC; - /** - * @var int[] - */ public $txn_ids = null; public function __construct($vals=null) { @@ -10686,9 +9977,6 @@ class OpenTxnsResponse { class AbortTxnRequest { static $_TSPEC; - /** - * @var int - */ public $txnid = null; public function __construct($vals=null) { @@ -10761,9 +10049,6 @@ class AbortTxnRequest { class CommitTxnRequest { static $_TSPEC; - /** - * @var int - */ public $txnid = null; public function __construct($vals=null) { @@ -10836,25 +10121,10 @@ class CommitTxnRequest { class LockComponent { static $_TSPEC; - /** - * @var int - */ public $type = null; - /** - * @var int - */ public $level = null; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tablename = null; - /** - * @var string - */ public $partitionname = null; public function __construct($vals=null) { @@ -11003,21 +10273,9 @@ class LockComponent { class LockRequest { static $_TSPEC; - /** - * @var \metastore\LockComponent[] - */ public $component = null; - /** - * @var int - */ public $txnid = null; - /** - * @var string - */ public $user = null; - /** - * @var string - */ public $hostname = null; public function __construct($vals=null) { @@ -11175,13 +10433,7 @@ class LockRequest { class LockResponse { static $_TSPEC; - /** - * @var int - */ public $lockid = null; - /** - * @var int - */ public $state = null; public function __construct($vals=null) { @@ -11273,9 +10525,6 @@ class LockResponse { class CheckLockRequest { static $_TSPEC; - /** - * @var int - */ public $lockid = null; public function __construct($vals=null) { @@ -11348,9 +10597,6 @@ class CheckLockRequest { class UnlockRequest { static $_TSPEC; - /** - * @var int - */ public $lockid = null; public function __construct($vals=null) { @@ -11473,49 +10719,16 @@ class ShowLocksRequest { class ShowLocksResponseElement { static $_TSPEC; - /** - * @var int - */ public $lockid = null; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tablename = null; - /** - * @var string - */ public $partname = null; - /** - * @var int - */ public $state = null; - /** - * @var int - */ public $type = null; - /** - * @var int - */ public $txnid = null; - /** - * @var int - */ public $lastheartbeat = null; - /** - * @var int - */ public $acquiredat = null; - /** - * @var string - */ public $user = null; - /** - * @var string - */ public $hostname = null; public function __construct($vals=null) { @@ -11778,9 +10991,6 @@ class ShowLocksResponseElement { class ShowLocksResponse { static $_TSPEC; - /** - * @var \metastore\ShowLocksResponseElement[] - */ public $locks = null; public function __construct($vals=null) { @@ -11881,13 +11091,7 @@ class ShowLocksResponse { class HeartbeatRequest { static $_TSPEC; - /** - * @var int - */ public $lockid = null; - /** - * @var int - */ public $txnid = null; public function __construct($vals=null) { @@ -11979,13 +11183,7 @@ class HeartbeatRequest { class HeartbeatTxnRangeRequest { static $_TSPEC; - /** - * @var int - */ public $min = null; - /** - * @var int - */ public $max = null; public function __construct($vals=null) { @@ -12077,13 +11275,7 @@ class HeartbeatTxnRangeRequest { class HeartbeatTxnRangeResponse { static $_TSPEC; - /** - * @var int[] - */ public $aborted = null; - /** - * @var int[] - */ public $nosuch = null; public function __construct($vals=null) { @@ -12243,25 +11435,10 @@ class HeartbeatTxnRangeResponse { class CompactionRequest { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tablename = null; - /** - * @var string - */ public $partitionname = null; - /** - * @var int - */ public $type = null; - /** - * @var string - */ public $runas = null; public function __construct($vals=null) { @@ -12460,37 +11637,13 @@ class ShowCompactRequest { class ShowCompactResponseElement { static $_TSPEC; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tablename = null; - /** - * @var string - */ public $partitionname = null; - /** - * @var int - */ public $type = null; - /** - * @var string - */ public $state = null; - /** - * @var string - */ public $workerid = null; - /** - * @var int - */ public $start = null; - /** - * @var string - */ public $runAs = null; public function __construct($vals=null) { @@ -12696,9 +11849,6 @@ class ShowCompactResponseElement { class ShowCompactResponse { static $_TSPEC; - /** - * @var \metastore\ShowCompactResponseElement[] - */ public $compacts = null; public function __construct($vals=null) { @@ -12799,21 +11949,9 @@ class ShowCompactResponse { class AddDynamicPartitions { static $_TSPEC; - /** - * @var int - */ public $txnid = null; - /** - * @var string - */ public $dbname = null; - /** - * @var string - */ public $tablename = null; - /** - * @var string[] - */ public $partitionnames = null; public function __construct($vals=null) { @@ -12969,13 +12107,7 @@ class AddDynamicPartitions { class NotificationEventRequest { static $_TSPEC; - /** - * @var int - */ public $lastEvent = null; - /** - * @var int - */ public $maxEvents = null; public function __construct($vals=null) { @@ -13067,29 +12199,11 @@ class NotificationEventRequest { class NotificationEvent { static $_TSPEC; - /** - * @var int - */ public $eventId = null; - /** - * @var int - */ public $eventTime = null; - /** - * @var string - */ public $eventType = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tableName = null; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -13257,9 +12371,6 @@ class NotificationEvent { class NotificationEventResponse { static $_TSPEC; - /** - * @var \metastore\NotificationEvent[] - */ public $events = null; public function __construct($vals=null) { @@ -13360,9 +12471,6 @@ class NotificationEventResponse { class CurrentNotificationEventId { static $_TSPEC; - /** - * @var int - */ public $eventId = null; public function __construct($vals=null) { @@ -13435,9 +12543,6 @@ class CurrentNotificationEventId { class InsertEventRequestData { static $_TSPEC; - /** - * @var string[] - */ public $filesAdded = null; public function __construct($vals=null) { @@ -13536,9 +12641,6 @@ class InsertEventRequestData { class FireEventRequestData { static $_TSPEC; - /** - * @var \metastore\InsertEventRequestData - */ public $insertData = null; public function __construct($vals=null) { @@ -13616,25 +12718,10 @@ class FireEventRequestData { class FireEventRequest { static $_TSPEC; - /** - * @var bool - */ public $successful = null; - /** - * @var \metastore\FireEventRequestData - */ public $data = null; - /** - * @var string - */ public $dbName = null; - /** - * @var string - */ public $tableName = null; - /** - * @var string[] - */ public $partitionVals = null; public function __construct($vals=null) { @@ -13864,9 +12951,6 @@ class FireEventResponse { class GetAllFunctionsResponse { static $_TSPEC; - /** - * @var \metastore\Function[] - */ public $functions = null; public function __construct($vals=null) { @@ -13967,9 +13051,6 @@ class GetAllFunctionsResponse { class MetaException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -14042,9 +13123,6 @@ class MetaException extends TException { class UnknownTableException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -14117,9 +13195,6 @@ class UnknownTableException extends TException { class UnknownDBException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -14192,9 +13267,6 @@ class UnknownDBException extends TException { class AlreadyExistsException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -14267,9 +13339,6 @@ class AlreadyExistsException extends TException { class InvalidPartitionException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -14342,9 +13411,6 @@ class InvalidPartitionException extends TException { class UnknownPartitionException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -14417,9 +13483,6 @@ class UnknownPartitionException extends TException { class InvalidObjectException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -14492,9 +13555,6 @@ class InvalidObjectException extends TException { class NoSuchObjectException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -14567,9 +13627,6 @@ class NoSuchObjectException extends TException { class IndexAlreadyExistsException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -14642,9 +13699,6 @@ class IndexAlreadyExistsException extends TException { class InvalidOperationException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -14717,9 +13771,6 @@ class InvalidOperationException extends TException { class ConfigValSecurityException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -14792,9 +13843,6 @@ class ConfigValSecurityException extends TException { class InvalidInputException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -14867,9 +13915,6 @@ class InvalidInputException extends TException { class NoSuchTxnException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -14942,9 +13987,6 @@ class NoSuchTxnException extends TException { class TxnAbortedException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -15017,9 +14059,6 @@ class TxnAbortedException extends TException { class TxnOpenException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -15092,9 +14131,6 @@ class TxnOpenException extends TException { class NoSuchLockException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; public function __construct($vals=null) { @@ -15164,122 +14200,50 @@ class NoSuchLockException extends TException { } -final class Constant extends \Thrift\Type\TConstant { - static protected $DDL_TIME; - static protected $HIVE_FILTER_FIELD_OWNER; - static protected $HIVE_FILTER_FIELD_PARAMS; - static protected $HIVE_FILTER_FIELD_LAST_ACCESS; - static protected $IS_ARCHIVED; - static protected $ORIGINAL_LOCATION; - static protected $IS_IMMUTABLE; - static protected $META_TABLE_COLUMNS; - static protected $META_TABLE_COLUMN_TYPES; - static protected $BUCKET_FIELD_NAME; - static protected $BUCKET_COUNT; - static protected $FIELD_TO_DIMENSION; - static protected $META_TABLE_NAME; - static protected $META_TABLE_DB; - static protected $META_TABLE_LOCATION; - static protected $META_TABLE_SERDE; - static protected $META_TABLE_PARTITION_COLUMNS; - static protected $META_TABLE_PARTITION_COLUMN_TYPES; - static protected $FILE_INPUT_FORMAT; - static protected $FILE_OUTPUT_FORMAT; - static protected $META_TABLE_STORAGE; - static protected $TABLE_IS_TRANSACTIONAL; - static protected $TABLE_NO_AUTO_COMPACT; +$GLOBALS['hive_metastore_CONSTANTS']['DDL_TIME'] = "transient_lastDdlTime"; - static protected function init_DDL_TIME() { - return "transient_lastDdlTime"; - } +$GLOBALS['hive_metastore_CONSTANTS']['HIVE_FILTER_FIELD_OWNER'] = "hive_filter_field_owner__"; - static protected function init_HIVE_FILTER_FIELD_OWNER() { - return "hive_filter_field_owner__"; - } +$GLOBALS['hive_metastore_CONSTANTS']['HIVE_FILTER_FIELD_PARAMS'] = "hive_filter_field_params__"; - static protected function init_HIVE_FILTER_FIELD_PARAMS() { - return "hive_filter_field_params__"; - } +$GLOBALS['hive_metastore_CONSTANTS']['HIVE_FILTER_FIELD_LAST_ACCESS'] = "hive_filter_field_last_access__"; - static protected function init_HIVE_FILTER_FIELD_LAST_ACCESS() { - return "hive_filter_field_last_access__"; - } +$GLOBALS['hive_metastore_CONSTANTS']['IS_ARCHIVED'] = "is_archived"; - static protected function init_IS_ARCHIVED() { - return "is_archived"; - } +$GLOBALS['hive_metastore_CONSTANTS']['ORIGINAL_LOCATION'] = "original_location"; - static protected function init_ORIGINAL_LOCATION() { - return "original_location"; - } +$GLOBALS['hive_metastore_CONSTANTS']['IS_IMMUTABLE'] = "immutable"; - static protected function init_IS_IMMUTABLE() { - return "immutable"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_COLUMNS'] = "columns"; - static protected function init_META_TABLE_COLUMNS() { - return "columns"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_COLUMN_TYPES'] = "columns.types"; - static protected function init_META_TABLE_COLUMN_TYPES() { - return "columns.types"; - } +$GLOBALS['hive_metastore_CONSTANTS']['BUCKET_FIELD_NAME'] = "bucket_field_name"; - static protected function init_BUCKET_FIELD_NAME() { - return "bucket_field_name"; - } +$GLOBALS['hive_metastore_CONSTANTS']['BUCKET_COUNT'] = "bucket_count"; - static protected function init_BUCKET_COUNT() { - return "bucket_count"; - } +$GLOBALS['hive_metastore_CONSTANTS']['FIELD_TO_DIMENSION'] = "field_to_dimension"; - static protected function init_FIELD_TO_DIMENSION() { - return "field_to_dimension"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_NAME'] = "name"; - static protected function init_META_TABLE_NAME() { - return "name"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_DB'] = "db"; - static protected function init_META_TABLE_DB() { - return "db"; - } - - static protected function init_META_TABLE_LOCATION() { - return "location"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_LOCATION'] = "location"; - static protected function init_META_TABLE_SERDE() { - return "serde"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_SERDE'] = "serde"; - static protected function init_META_TABLE_PARTITION_COLUMNS() { - return "partition_columns"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_PARTITION_COLUMNS'] = "partition_columns"; - static protected function init_META_TABLE_PARTITION_COLUMN_TYPES() { - return "partition_columns.types"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_PARTITION_COLUMN_TYPES'] = "partition_columns.types"; - static protected function init_FILE_INPUT_FORMAT() { - return "file.inputformat"; - } +$GLOBALS['hive_metastore_CONSTANTS']['FILE_INPUT_FORMAT'] = "file.inputformat"; - static protected function init_FILE_OUTPUT_FORMAT() { - return "file.outputformat"; - } +$GLOBALS['hive_metastore_CONSTANTS']['FILE_OUTPUT_FORMAT'] = "file.outputformat"; - static protected function init_META_TABLE_STORAGE() { - return "storage_handler"; - } +$GLOBALS['hive_metastore_CONSTANTS']['META_TABLE_STORAGE'] = "storage_handler"; - static protected function init_TABLE_IS_TRANSACTIONAL() { - return "transactional"; - } +$GLOBALS['hive_metastore_CONSTANTS']['TABLE_IS_TRANSACTIONAL'] = "transactional"; - static protected function init_TABLE_NO_AUTO_COMPACT() { - return "no_auto_compaction"; - } -} +$GLOBALS['hive_metastore_CONSTANTS']['TABLE_NO_AUTO_COMPACT'] = "no_auto_compaction"; 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 dc348ef..0ad77d7 100755 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -12,156 +12,143 @@ import pprint from urlparse import urlparse from thrift.transport import TTransport from thrift.transport import TSocket -from thrift.transport import TSSLSocket from thrift.transport import THttpClient from thrift.protocol import TBinaryProtocol -from hive_metastore import ThriftHiveMetastore -from hive_metastore.ttypes import * +import ThriftHiveMetastore +from ttypes import * if len(sys.argv) <= 1 or sys.argv[1] == '--help': - print('') - print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] function [arg1 [arg2...]]') - print('') - print('Functions:') - print(' string getMetaConf(string key)') - print(' void setMetaConf(string key, string value)') - print(' void create_database(Database database)') - print(' Database get_database(string name)') - print(' void drop_database(string name, bool deleteData, bool cascade)') - print(' get_databases(string pattern)') - print(' get_all_databases()') - print(' void alter_database(string dbname, Database db)') - print(' Type get_type(string name)') - print(' bool create_type(Type type)') - print(' bool drop_type(string type)') - print(' get_type_all(string name)') - print(' get_fields(string db_name, string table_name)') - print(' get_fields_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)') - print(' get_schema(string db_name, string table_name)') - print(' get_schema_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)') - print(' void create_table(Table tbl)') - print(' void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context)') - print(' void drop_table(string dbname, string name, bool deleteData)') - print(' void drop_table_with_environment_context(string dbname, string name, bool deleteData, EnvironmentContext environment_context)') - print(' get_tables(string db_name, string pattern)') - print(' get_all_tables(string db_name)') - print(' Table get_table(string dbname, string tbl_name)') - print(' get_table_objects_by_name(string dbname, tbl_names)') - print(' get_table_names_by_filter(string dbname, string filter, i16 max_tables)') - print(' void alter_table(string dbname, string tbl_name, Table new_tbl)') - print(' void alter_table_with_environment_context(string dbname, string tbl_name, Table new_tbl, EnvironmentContext environment_context)') - print(' void alter_table_with_cascade(string dbname, string tbl_name, Table new_tbl, bool cascade)') - print(' Partition add_partition(Partition new_part)') - print(' Partition add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context)') - print(' i32 add_partitions( new_parts)') - print(' i32 add_partitions_pspec( new_parts)') - print(' Partition append_partition(string db_name, string tbl_name, part_vals)') - print(' AddPartitionsResult add_partitions_req(AddPartitionsRequest request)') - print(' Partition append_partition_with_environment_context(string db_name, string tbl_name, part_vals, EnvironmentContext environment_context)') - print(' Partition append_partition_by_name(string db_name, string tbl_name, string part_name)') - print(' Partition append_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, EnvironmentContext environment_context)') - print(' bool drop_partition(string db_name, string tbl_name, part_vals, bool deleteData)') - print(' bool drop_partition_with_environment_context(string db_name, string tbl_name, part_vals, bool deleteData, EnvironmentContext environment_context)') - print(' bool drop_partition_by_name(string db_name, string tbl_name, string part_name, bool deleteData)') - print(' bool drop_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, bool deleteData, EnvironmentContext environment_context)') - print(' DropPartitionsResult drop_partitions_req(DropPartitionsRequest req)') - print(' Partition get_partition(string db_name, string tbl_name, part_vals)') - print(' Partition exchange_partition( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)') - print(' Partition get_partition_with_auth(string db_name, string tbl_name, part_vals, string user_name, group_names)') - print(' Partition get_partition_by_name(string db_name, string tbl_name, string part_name)') - print(' get_partitions(string db_name, string tbl_name, i16 max_parts)') - print(' get_partitions_with_auth(string db_name, string tbl_name, i16 max_parts, string user_name, group_names)') - print(' get_partitions_pspec(string db_name, string tbl_name, i32 max_parts)') - print(' get_partition_names(string db_name, string tbl_name, i16 max_parts)') - print(' get_partitions_ps(string db_name, string tbl_name, part_vals, i16 max_parts)') - print(' get_partitions_ps_with_auth(string db_name, string tbl_name, part_vals, i16 max_parts, string user_name, group_names)') - print(' get_partition_names_ps(string db_name, string tbl_name, part_vals, i16 max_parts)') - print(' get_partitions_by_filter(string db_name, string tbl_name, string filter, i16 max_parts)') - print(' get_part_specs_by_filter(string db_name, string tbl_name, string filter, i32 max_parts)') - print(' PartitionsByExprResult get_partitions_by_expr(PartitionsByExprRequest req)') - print(' get_partitions_by_names(string db_name, string tbl_name, names)') - print(' void alter_partition(string db_name, string tbl_name, Partition new_part)') - print(' void alter_partitions(string db_name, string tbl_name, new_parts)') - print(' void alter_partition_with_environment_context(string db_name, string tbl_name, Partition new_part, EnvironmentContext environment_context)') - print(' void rename_partition(string db_name, string tbl_name, part_vals, Partition new_part)') - print(' bool partition_name_has_valid_characters( part_vals, bool throw_exception)') - print(' string get_config_value(string name, string defaultValue)') - print(' partition_name_to_vals(string part_name)') - print(' partition_name_to_spec(string part_name)') - print(' void markPartitionForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)') - print(' bool isPartitionMarkedForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)') - print(' Index add_index(Index new_index, Table index_table)') - print(' void alter_index(string dbname, string base_tbl_name, string idx_name, Index new_idx)') - print(' bool drop_index_by_name(string db_name, string tbl_name, string index_name, bool deleteData)') - 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(' 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)') - print(' ColumnStatistics get_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)') - print(' TableStatsResult get_table_statistics_req(TableStatsRequest request)') - print(' PartitionsStatsResult get_partitions_statistics_req(PartitionsStatsRequest request)') - print(' AggrStats get_aggr_stats_for(PartitionsStatsRequest request)') - print(' bool set_aggr_stats_for(SetPartitionsStatsRequest request)') - print(' bool delete_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)') - print(' bool delete_table_column_statistics(string db_name, string tbl_name, string col_name)') - print(' void create_function(Function func)') - print(' void drop_function(string dbName, string funcName)') - print(' void alter_function(string dbName, string funcName, Function newFunc)') - print(' get_functions(string dbName, string pattern)') - print(' Function get_function(string dbName, string funcName)') - print(' GetAllFunctionsResponse get_all_functions()') - print(' bool create_role(Role role)') - print(' bool drop_role(string role_name)') - print(' get_role_names()') - print(' bool grant_role(string role_name, string principal_name, PrincipalType principal_type, string grantor, PrincipalType grantorType, bool grant_option)') - print(' bool revoke_role(string role_name, string principal_name, PrincipalType principal_type)') - print(' list_roles(string principal_name, PrincipalType principal_type)') - print(' GrantRevokeRoleResponse grant_revoke_role(GrantRevokeRoleRequest request)') - print(' GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request)') - print(' GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request)') - print(' PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, string user_name, group_names)') - print(' list_privileges(string principal_name, PrincipalType principal_type, HiveObjectRef hiveObject)') - print(' bool grant_privileges(PrivilegeBag privileges)') - print(' bool revoke_privileges(PrivilegeBag privileges)') - print(' GrantRevokePrivilegeResponse grant_revoke_privileges(GrantRevokePrivilegeRequest request)') - print(' set_ugi(string user_name, group_names)') - print(' string get_delegation_token(string token_owner, string renewer_kerberos_principal_name)') - print(' i64 renew_delegation_token(string token_str_form)') - print(' void cancel_delegation_token(string token_str_form)') - print(' GetOpenTxnsResponse get_open_txns()') - print(' GetOpenTxnsInfoResponse get_open_txns_info()') - print(' OpenTxnsResponse open_txns(OpenTxnRequest rqst)') - print(' void abort_txn(AbortTxnRequest rqst)') - print(' void commit_txn(CommitTxnRequest rqst)') - print(' LockResponse lock(LockRequest rqst)') - print(' LockResponse check_lock(CheckLockRequest rqst)') - print(' void unlock(UnlockRequest rqst)') - print(' ShowLocksResponse show_locks(ShowLocksRequest rqst)') - print(' void heartbeat(HeartbeatRequest ids)') - print(' HeartbeatTxnRangeResponse heartbeat_txn_range(HeartbeatTxnRangeRequest txns)') - print(' void compact(CompactionRequest rqst)') - print(' ShowCompactResponse show_compact(ShowCompactRequest rqst)') - print(' void add_dynamic_partitions(AddDynamicPartitions rqst)') - print(' NotificationEventResponse get_next_notification(NotificationEventRequest rqst)') - print(' CurrentNotificationEventId get_current_notificationEventId()') - print(' FireEventResponse fire_listener_event(FireEventRequest rqst)') - print(' string getName()') - print(' string getVersion()') - print(' fb_status getStatus()') - print(' string getStatusDetails()') - print(' getCounters()') - print(' i64 getCounter(string key)') - print(' void setOption(string key, string value)') - print(' string getOption(string key)') - print(' getOptions()') - print(' i64 aliveSince()') - print(' reflection_limited.Service getLimitedReflection()') - print(' void reinitialize()') - print(' void shutdown()') - print('') + print '' + print 'Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] function [arg1 [arg2...]]' + print '' + print 'Functions:' + print ' string getMetaConf(string key)' + print ' void setMetaConf(string key, string value)' + print ' void create_database(Database database)' + print ' Database get_database(string name)' + print ' void drop_database(string name, bool deleteData, bool cascade)' + print ' get_databases(string pattern)' + print ' get_all_databases()' + print ' void alter_database(string dbname, Database db)' + print ' Type get_type(string name)' + print ' bool create_type(Type type)' + print ' bool drop_type(string type)' + print ' get_type_all(string name)' + print ' get_fields(string db_name, string table_name)' + print ' get_fields_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)' + print ' get_schema(string db_name, string table_name)' + print ' get_schema_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)' + print ' void create_table(Table tbl)' + print ' void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context)' + print ' void drop_table(string dbname, string name, bool deleteData)' + print ' void drop_table_with_environment_context(string dbname, string name, bool deleteData, EnvironmentContext environment_context)' + print ' get_tables(string db_name, string pattern)' + print ' get_all_tables(string db_name)' + print ' Table get_table(string dbname, string tbl_name)' + print ' get_table_objects_by_name(string dbname, tbl_names)' + print ' get_table_names_by_filter(string dbname, string filter, i16 max_tables)' + print ' void alter_table(string dbname, string tbl_name, Table new_tbl)' + print ' void alter_table_with_environment_context(string dbname, string tbl_name, Table new_tbl, EnvironmentContext environment_context)' + print ' void alter_table_with_cascade(string dbname, string tbl_name, Table new_tbl, bool cascade)' + print ' Partition add_partition(Partition new_part)' + print ' Partition add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context)' + print ' i32 add_partitions( new_parts)' + print ' i32 add_partitions_pspec( new_parts)' + print ' Partition append_partition(string db_name, string tbl_name, part_vals)' + print ' AddPartitionsResult add_partitions_req(AddPartitionsRequest request)' + print ' Partition append_partition_with_environment_context(string db_name, string tbl_name, part_vals, EnvironmentContext environment_context)' + print ' Partition append_partition_by_name(string db_name, string tbl_name, string part_name)' + print ' Partition append_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, EnvironmentContext environment_context)' + print ' bool drop_partition(string db_name, string tbl_name, part_vals, bool deleteData)' + print ' bool drop_partition_with_environment_context(string db_name, string tbl_name, part_vals, bool deleteData, EnvironmentContext environment_context)' + print ' bool drop_partition_by_name(string db_name, string tbl_name, string part_name, bool deleteData)' + print ' bool drop_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, bool deleteData, EnvironmentContext environment_context)' + print ' DropPartitionsResult drop_partitions_req(DropPartitionsRequest req)' + print ' Partition get_partition(string db_name, string tbl_name, part_vals)' + print ' Partition exchange_partition( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)' + print ' Partition get_partition_with_auth(string db_name, string tbl_name, part_vals, string user_name, group_names)' + print ' Partition get_partition_by_name(string db_name, string tbl_name, string part_name)' + print ' get_partitions(string db_name, string tbl_name, i16 max_parts)' + print ' get_partitions_with_auth(string db_name, string tbl_name, i16 max_parts, string user_name, group_names)' + print ' get_partitions_pspec(string db_name, string tbl_name, i32 max_parts)' + print ' get_partition_names(string db_name, string tbl_name, i16 max_parts)' + print ' get_partitions_ps(string db_name, string tbl_name, part_vals, i16 max_parts)' + print ' get_partitions_ps_with_auth(string db_name, string tbl_name, part_vals, i16 max_parts, string user_name, group_names)' + print ' get_partition_names_ps(string db_name, string tbl_name, part_vals, i16 max_parts)' + print ' get_partitions_by_filter(string db_name, string tbl_name, string filter, i16 max_parts)' + print ' get_part_specs_by_filter(string db_name, string tbl_name, string filter, i32 max_parts)' + print ' PartitionsByExprResult get_partitions_by_expr(PartitionsByExprRequest req)' + print ' i32 get_num_partitions_by_filter(string db_name, string tbl_name, string filter, i16 max_parts)' + print ' get_partitions_by_names(string db_name, string tbl_name, names)' + print ' void alter_partition(string db_name, string tbl_name, Partition new_part)' + print ' void alter_partitions(string db_name, string tbl_name, new_parts)' + print ' void alter_partition_with_environment_context(string db_name, string tbl_name, Partition new_part, EnvironmentContext environment_context)' + print ' void rename_partition(string db_name, string tbl_name, part_vals, Partition new_part)' + print ' bool partition_name_has_valid_characters( part_vals, bool throw_exception)' + print ' string get_config_value(string name, string defaultValue)' + print ' partition_name_to_vals(string part_name)' + print ' partition_name_to_spec(string part_name)' + print ' void markPartitionForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)' + print ' bool isPartitionMarkedForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)' + print ' Index add_index(Index new_index, Table index_table)' + print ' void alter_index(string dbname, string base_tbl_name, string idx_name, Index new_idx)' + print ' bool drop_index_by_name(string db_name, string tbl_name, string index_name, bool deleteData)' + 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 ' 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)' + print ' ColumnStatistics get_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)' + print ' TableStatsResult get_table_statistics_req(TableStatsRequest request)' + print ' PartitionsStatsResult get_partitions_statistics_req(PartitionsStatsRequest request)' + print ' AggrStats get_aggr_stats_for(PartitionsStatsRequest request)' + print ' bool set_aggr_stats_for(SetPartitionsStatsRequest request)' + print ' bool delete_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)' + print ' bool delete_table_column_statistics(string db_name, string tbl_name, string col_name)' + print ' void create_function(Function func)' + print ' void drop_function(string dbName, string funcName)' + print ' void alter_function(string dbName, string funcName, Function newFunc)' + print ' get_functions(string dbName, string pattern)' + print ' Function get_function(string dbName, string funcName)' + print ' GetAllFunctionsResponse get_all_functions()' + print ' bool create_role(Role role)' + print ' bool drop_role(string role_name)' + print ' get_role_names()' + print ' bool grant_role(string role_name, string principal_name, PrincipalType principal_type, string grantor, PrincipalType grantorType, bool grant_option)' + print ' bool revoke_role(string role_name, string principal_name, PrincipalType principal_type)' + print ' list_roles(string principal_name, PrincipalType principal_type)' + print ' GrantRevokeRoleResponse grant_revoke_role(GrantRevokeRoleRequest request)' + print ' GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request)' + print ' GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request)' + print ' PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, string user_name, group_names)' + print ' list_privileges(string principal_name, PrincipalType principal_type, HiveObjectRef hiveObject)' + print ' bool grant_privileges(PrivilegeBag privileges)' + print ' bool revoke_privileges(PrivilegeBag privileges)' + print ' GrantRevokePrivilegeResponse grant_revoke_privileges(GrantRevokePrivilegeRequest request)' + print ' set_ugi(string user_name, group_names)' + print ' string get_delegation_token(string token_owner, string renewer_kerberos_principal_name)' + print ' i64 renew_delegation_token(string token_str_form)' + print ' void cancel_delegation_token(string token_str_form)' + print ' GetOpenTxnsResponse get_open_txns()' + print ' GetOpenTxnsInfoResponse get_open_txns_info()' + print ' OpenTxnsResponse open_txns(OpenTxnRequest rqst)' + print ' void abort_txn(AbortTxnRequest rqst)' + print ' void commit_txn(CommitTxnRequest rqst)' + print ' LockResponse lock(LockRequest rqst)' + print ' LockResponse check_lock(CheckLockRequest rqst)' + print ' void unlock(UnlockRequest rqst)' + print ' ShowLocksResponse show_locks(ShowLocksRequest rqst)' + print ' void heartbeat(HeartbeatRequest ids)' + print ' HeartbeatTxnRangeResponse heartbeat_txn_range(HeartbeatTxnRangeRequest txns)' + print ' void compact(CompactionRequest rqst)' + print ' ShowCompactResponse show_compact(ShowCompactRequest rqst)' + print ' void add_dynamic_partitions(AddDynamicPartitions rqst)' + print ' NotificationEventResponse get_next_notification(NotificationEventRequest rqst)' + print ' CurrentNotificationEventId get_current_notificationEventId()' + print ' FireEventResponse fire_listener_event(FireEventRequest rqst)' + print '' sys.exit(0) pp = pprint.PrettyPrinter(indent = 2) @@ -169,7 +156,6 @@ host = 'localhost' port = 9090 uri = '' framed = False -ssl = False http = False argi = 1 @@ -198,17 +184,13 @@ if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed': framed = True argi += 1 -if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl': - ssl = True - argi += 1 - cmd = sys.argv[argi] args = sys.argv[argi+1:] if http: transport = THttpClient.THttpClient(host, port, uri) else: - socket = TSSLSocket.TSSLSocket(host, port, validate=False) if ssl else TSocket.TSocket(host, port) + socket = TSocket.TSocket(host, port) if framed: transport = TTransport.TFramedTransport(socket) else: @@ -219,828 +201,756 @@ transport.open() if cmd == 'getMetaConf': if len(args) != 1: - print('getMetaConf requires 1 args') + print 'getMetaConf requires 1 args' sys.exit(1) pp.pprint(client.getMetaConf(args[0],)) elif cmd == 'setMetaConf': if len(args) != 2: - print('setMetaConf requires 2 args') + print 'setMetaConf requires 2 args' sys.exit(1) pp.pprint(client.setMetaConf(args[0],args[1],)) elif cmd == 'create_database': if len(args) != 1: - print('create_database requires 1 args') + print 'create_database requires 1 args' sys.exit(1) pp.pprint(client.create_database(eval(args[0]),)) elif cmd == 'get_database': if len(args) != 1: - print('get_database requires 1 args') + print 'get_database requires 1 args' sys.exit(1) pp.pprint(client.get_database(args[0],)) elif cmd == 'drop_database': if len(args) != 3: - print('drop_database requires 3 args') + print 'drop_database requires 3 args' sys.exit(1) pp.pprint(client.drop_database(args[0],eval(args[1]),eval(args[2]),)) elif cmd == 'get_databases': if len(args) != 1: - print('get_databases requires 1 args') + print 'get_databases requires 1 args' sys.exit(1) pp.pprint(client.get_databases(args[0],)) elif cmd == 'get_all_databases': if len(args) != 0: - print('get_all_databases requires 0 args') + print 'get_all_databases requires 0 args' sys.exit(1) pp.pprint(client.get_all_databases()) elif cmd == 'alter_database': if len(args) != 2: - print('alter_database requires 2 args') + print 'alter_database requires 2 args' sys.exit(1) pp.pprint(client.alter_database(args[0],eval(args[1]),)) elif cmd == 'get_type': if len(args) != 1: - print('get_type requires 1 args') + print 'get_type requires 1 args' sys.exit(1) pp.pprint(client.get_type(args[0],)) elif cmd == 'create_type': if len(args) != 1: - print('create_type requires 1 args') + print 'create_type requires 1 args' sys.exit(1) pp.pprint(client.create_type(eval(args[0]),)) elif cmd == 'drop_type': if len(args) != 1: - print('drop_type requires 1 args') + print 'drop_type requires 1 args' sys.exit(1) pp.pprint(client.drop_type(args[0],)) elif cmd == 'get_type_all': if len(args) != 1: - print('get_type_all requires 1 args') + print 'get_type_all requires 1 args' sys.exit(1) pp.pprint(client.get_type_all(args[0],)) elif cmd == 'get_fields': if len(args) != 2: - print('get_fields requires 2 args') + print 'get_fields requires 2 args' sys.exit(1) pp.pprint(client.get_fields(args[0],args[1],)) elif cmd == 'get_fields_with_environment_context': if len(args) != 3: - print('get_fields_with_environment_context requires 3 args') + print 'get_fields_with_environment_context requires 3 args' sys.exit(1) pp.pprint(client.get_fields_with_environment_context(args[0],args[1],eval(args[2]),)) elif cmd == 'get_schema': if len(args) != 2: - print('get_schema requires 2 args') + print 'get_schema requires 2 args' sys.exit(1) pp.pprint(client.get_schema(args[0],args[1],)) elif cmd == 'get_schema_with_environment_context': if len(args) != 3: - print('get_schema_with_environment_context requires 3 args') + print 'get_schema_with_environment_context requires 3 args' sys.exit(1) pp.pprint(client.get_schema_with_environment_context(args[0],args[1],eval(args[2]),)) elif cmd == 'create_table': if len(args) != 1: - print('create_table requires 1 args') + print 'create_table requires 1 args' sys.exit(1) pp.pprint(client.create_table(eval(args[0]),)) elif cmd == 'create_table_with_environment_context': if len(args) != 2: - print('create_table_with_environment_context requires 2 args') + print 'create_table_with_environment_context requires 2 args' sys.exit(1) pp.pprint(client.create_table_with_environment_context(eval(args[0]),eval(args[1]),)) elif cmd == 'drop_table': if len(args) != 3: - print('drop_table requires 3 args') + print 'drop_table requires 3 args' sys.exit(1) pp.pprint(client.drop_table(args[0],args[1],eval(args[2]),)) elif cmd == 'drop_table_with_environment_context': if len(args) != 4: - print('drop_table_with_environment_context requires 4 args') + print 'drop_table_with_environment_context requires 4 args' sys.exit(1) pp.pprint(client.drop_table_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'get_tables': if len(args) != 2: - print('get_tables requires 2 args') + print 'get_tables requires 2 args' sys.exit(1) pp.pprint(client.get_tables(args[0],args[1],)) elif cmd == 'get_all_tables': if len(args) != 1: - print('get_all_tables requires 1 args') + print 'get_all_tables requires 1 args' sys.exit(1) pp.pprint(client.get_all_tables(args[0],)) elif cmd == 'get_table': if len(args) != 2: - print('get_table requires 2 args') + print 'get_table requires 2 args' sys.exit(1) pp.pprint(client.get_table(args[0],args[1],)) elif cmd == 'get_table_objects_by_name': if len(args) != 2: - print('get_table_objects_by_name requires 2 args') + print 'get_table_objects_by_name requires 2 args' sys.exit(1) pp.pprint(client.get_table_objects_by_name(args[0],eval(args[1]),)) elif cmd == 'get_table_names_by_filter': if len(args) != 3: - print('get_table_names_by_filter requires 3 args') + print 'get_table_names_by_filter requires 3 args' sys.exit(1) pp.pprint(client.get_table_names_by_filter(args[0],args[1],eval(args[2]),)) elif cmd == 'alter_table': if len(args) != 3: - print('alter_table requires 3 args') + print 'alter_table requires 3 args' sys.exit(1) pp.pprint(client.alter_table(args[0],args[1],eval(args[2]),)) elif cmd == 'alter_table_with_environment_context': if len(args) != 4: - print('alter_table_with_environment_context requires 4 args') + print 'alter_table_with_environment_context requires 4 args' sys.exit(1) pp.pprint(client.alter_table_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'alter_table_with_cascade': if len(args) != 4: - print('alter_table_with_cascade requires 4 args') + print 'alter_table_with_cascade requires 4 args' sys.exit(1) pp.pprint(client.alter_table_with_cascade(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'add_partition': if len(args) != 1: - print('add_partition requires 1 args') + print 'add_partition requires 1 args' sys.exit(1) pp.pprint(client.add_partition(eval(args[0]),)) elif cmd == 'add_partition_with_environment_context': if len(args) != 2: - print('add_partition_with_environment_context requires 2 args') + print 'add_partition_with_environment_context requires 2 args' sys.exit(1) pp.pprint(client.add_partition_with_environment_context(eval(args[0]),eval(args[1]),)) elif cmd == 'add_partitions': if len(args) != 1: - print('add_partitions requires 1 args') + print 'add_partitions requires 1 args' sys.exit(1) pp.pprint(client.add_partitions(eval(args[0]),)) elif cmd == 'add_partitions_pspec': if len(args) != 1: - print('add_partitions_pspec requires 1 args') + print 'add_partitions_pspec requires 1 args' sys.exit(1) pp.pprint(client.add_partitions_pspec(eval(args[0]),)) elif cmd == 'append_partition': if len(args) != 3: - print('append_partition requires 3 args') + print 'append_partition requires 3 args' sys.exit(1) pp.pprint(client.append_partition(args[0],args[1],eval(args[2]),)) elif cmd == 'add_partitions_req': if len(args) != 1: - print('add_partitions_req requires 1 args') + print 'add_partitions_req requires 1 args' sys.exit(1) pp.pprint(client.add_partitions_req(eval(args[0]),)) elif cmd == 'append_partition_with_environment_context': if len(args) != 4: - print('append_partition_with_environment_context requires 4 args') + print 'append_partition_with_environment_context requires 4 args' sys.exit(1) pp.pprint(client.append_partition_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'append_partition_by_name': if len(args) != 3: - print('append_partition_by_name requires 3 args') + print 'append_partition_by_name requires 3 args' sys.exit(1) pp.pprint(client.append_partition_by_name(args[0],args[1],args[2],)) elif cmd == 'append_partition_by_name_with_environment_context': if len(args) != 4: - print('append_partition_by_name_with_environment_context requires 4 args') + print 'append_partition_by_name_with_environment_context requires 4 args' sys.exit(1) pp.pprint(client.append_partition_by_name_with_environment_context(args[0],args[1],args[2],eval(args[3]),)) elif cmd == 'drop_partition': if len(args) != 4: - print('drop_partition requires 4 args') + print 'drop_partition requires 4 args' sys.exit(1) pp.pprint(client.drop_partition(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'drop_partition_with_environment_context': if len(args) != 5: - print('drop_partition_with_environment_context requires 5 args') + print 'drop_partition_with_environment_context requires 5 args' sys.exit(1) pp.pprint(client.drop_partition_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),eval(args[4]),)) elif cmd == 'drop_partition_by_name': if len(args) != 4: - print('drop_partition_by_name requires 4 args') + print 'drop_partition_by_name requires 4 args' sys.exit(1) pp.pprint(client.drop_partition_by_name(args[0],args[1],args[2],eval(args[3]),)) elif cmd == 'drop_partition_by_name_with_environment_context': if len(args) != 5: - print('drop_partition_by_name_with_environment_context requires 5 args') + print 'drop_partition_by_name_with_environment_context requires 5 args' sys.exit(1) pp.pprint(client.drop_partition_by_name_with_environment_context(args[0],args[1],args[2],eval(args[3]),eval(args[4]),)) elif cmd == 'drop_partitions_req': if len(args) != 1: - print('drop_partitions_req requires 1 args') + print 'drop_partitions_req requires 1 args' sys.exit(1) pp.pprint(client.drop_partitions_req(eval(args[0]),)) elif cmd == 'get_partition': if len(args) != 3: - print('get_partition requires 3 args') + print 'get_partition requires 3 args' sys.exit(1) pp.pprint(client.get_partition(args[0],args[1],eval(args[2]),)) elif cmd == 'exchange_partition': if len(args) != 5: - print('exchange_partition requires 5 args') + print 'exchange_partition requires 5 args' sys.exit(1) pp.pprint(client.exchange_partition(eval(args[0]),args[1],args[2],args[3],args[4],)) elif cmd == 'get_partition_with_auth': if len(args) != 5: - print('get_partition_with_auth requires 5 args') + print 'get_partition_with_auth requires 5 args' sys.exit(1) pp.pprint(client.get_partition_with_auth(args[0],args[1],eval(args[2]),args[3],eval(args[4]),)) elif cmd == 'get_partition_by_name': if len(args) != 3: - print('get_partition_by_name requires 3 args') + print 'get_partition_by_name requires 3 args' sys.exit(1) pp.pprint(client.get_partition_by_name(args[0],args[1],args[2],)) elif cmd == 'get_partitions': if len(args) != 3: - print('get_partitions requires 3 args') + print 'get_partitions requires 3 args' sys.exit(1) pp.pprint(client.get_partitions(args[0],args[1],eval(args[2]),)) elif cmd == 'get_partitions_with_auth': if len(args) != 5: - print('get_partitions_with_auth requires 5 args') + print 'get_partitions_with_auth requires 5 args' sys.exit(1) pp.pprint(client.get_partitions_with_auth(args[0],args[1],eval(args[2]),args[3],eval(args[4]),)) elif cmd == 'get_partitions_pspec': if len(args) != 3: - print('get_partitions_pspec requires 3 args') + print 'get_partitions_pspec requires 3 args' sys.exit(1) pp.pprint(client.get_partitions_pspec(args[0],args[1],eval(args[2]),)) elif cmd == 'get_partition_names': if len(args) != 3: - print('get_partition_names requires 3 args') + print 'get_partition_names requires 3 args' sys.exit(1) pp.pprint(client.get_partition_names(args[0],args[1],eval(args[2]),)) elif cmd == 'get_partitions_ps': if len(args) != 4: - print('get_partitions_ps requires 4 args') + print 'get_partitions_ps requires 4 args' sys.exit(1) pp.pprint(client.get_partitions_ps(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'get_partitions_ps_with_auth': if len(args) != 6: - print('get_partitions_ps_with_auth requires 6 args') + print 'get_partitions_ps_with_auth requires 6 args' sys.exit(1) pp.pprint(client.get_partitions_ps_with_auth(args[0],args[1],eval(args[2]),eval(args[3]),args[4],eval(args[5]),)) elif cmd == 'get_partition_names_ps': if len(args) != 4: - print('get_partition_names_ps requires 4 args') + print 'get_partition_names_ps requires 4 args' sys.exit(1) pp.pprint(client.get_partition_names_ps(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'get_partitions_by_filter': if len(args) != 4: - print('get_partitions_by_filter requires 4 args') + print 'get_partitions_by_filter requires 4 args' sys.exit(1) pp.pprint(client.get_partitions_by_filter(args[0],args[1],args[2],eval(args[3]),)) elif cmd == 'get_part_specs_by_filter': if len(args) != 4: - print('get_part_specs_by_filter requires 4 args') + print 'get_part_specs_by_filter requires 4 args' sys.exit(1) pp.pprint(client.get_part_specs_by_filter(args[0],args[1],args[2],eval(args[3]),)) elif cmd == 'get_partitions_by_expr': if len(args) != 1: - print('get_partitions_by_expr requires 1 args') + print 'get_partitions_by_expr requires 1 args' sys.exit(1) pp.pprint(client.get_partitions_by_expr(eval(args[0]),)) +elif cmd == 'get_num_partitions_by_filter': + if len(args) != 4: + print 'get_num_partitions_by_filter requires 4 args' + sys.exit(1) + pp.pprint(client.get_num_partitions_by_filter(args[0],args[1],args[2],eval(args[3]),)) + elif cmd == 'get_partitions_by_names': if len(args) != 3: - print('get_partitions_by_names requires 3 args') + print 'get_partitions_by_names requires 3 args' sys.exit(1) pp.pprint(client.get_partitions_by_names(args[0],args[1],eval(args[2]),)) elif cmd == 'alter_partition': if len(args) != 3: - print('alter_partition requires 3 args') + print 'alter_partition requires 3 args' sys.exit(1) pp.pprint(client.alter_partition(args[0],args[1],eval(args[2]),)) elif cmd == 'alter_partitions': if len(args) != 3: - print('alter_partitions requires 3 args') + print 'alter_partitions requires 3 args' sys.exit(1) pp.pprint(client.alter_partitions(args[0],args[1],eval(args[2]),)) elif cmd == 'alter_partition_with_environment_context': if len(args) != 4: - print('alter_partition_with_environment_context requires 4 args') + print 'alter_partition_with_environment_context requires 4 args' sys.exit(1) pp.pprint(client.alter_partition_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'rename_partition': if len(args) != 4: - print('rename_partition requires 4 args') + print 'rename_partition requires 4 args' sys.exit(1) pp.pprint(client.rename_partition(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'partition_name_has_valid_characters': if len(args) != 2: - print('partition_name_has_valid_characters requires 2 args') + print 'partition_name_has_valid_characters requires 2 args' sys.exit(1) pp.pprint(client.partition_name_has_valid_characters(eval(args[0]),eval(args[1]),)) elif cmd == 'get_config_value': if len(args) != 2: - print('get_config_value requires 2 args') + print 'get_config_value requires 2 args' sys.exit(1) pp.pprint(client.get_config_value(args[0],args[1],)) elif cmd == 'partition_name_to_vals': if len(args) != 1: - print('partition_name_to_vals requires 1 args') + print 'partition_name_to_vals requires 1 args' sys.exit(1) pp.pprint(client.partition_name_to_vals(args[0],)) elif cmd == 'partition_name_to_spec': if len(args) != 1: - print('partition_name_to_spec requires 1 args') + print 'partition_name_to_spec requires 1 args' sys.exit(1) pp.pprint(client.partition_name_to_spec(args[0],)) elif cmd == 'markPartitionForEvent': if len(args) != 4: - print('markPartitionForEvent requires 4 args') + print 'markPartitionForEvent requires 4 args' sys.exit(1) pp.pprint(client.markPartitionForEvent(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'isPartitionMarkedForEvent': if len(args) != 4: - print('isPartitionMarkedForEvent requires 4 args') + print 'isPartitionMarkedForEvent requires 4 args' sys.exit(1) pp.pprint(client.isPartitionMarkedForEvent(args[0],args[1],eval(args[2]),eval(args[3]),)) elif cmd == 'add_index': if len(args) != 2: - print('add_index requires 2 args') + print 'add_index requires 2 args' sys.exit(1) pp.pprint(client.add_index(eval(args[0]),eval(args[1]),)) elif cmd == 'alter_index': if len(args) != 4: - print('alter_index requires 4 args') + print 'alter_index requires 4 args' sys.exit(1) pp.pprint(client.alter_index(args[0],args[1],args[2],eval(args[3]),)) elif cmd == 'drop_index_by_name': if len(args) != 4: - print('drop_index_by_name requires 4 args') + print 'drop_index_by_name requires 4 args' sys.exit(1) pp.pprint(client.drop_index_by_name(args[0],args[1],args[2],eval(args[3]),)) elif cmd == 'get_index_by_name': if len(args) != 3: - print('get_index_by_name requires 3 args') + print 'get_index_by_name requires 3 args' sys.exit(1) pp.pprint(client.get_index_by_name(args[0],args[1],args[2],)) elif cmd == 'get_indexes': if len(args) != 3: - print('get_indexes requires 3 args') + print 'get_indexes requires 3 args' sys.exit(1) pp.pprint(client.get_indexes(args[0],args[1],eval(args[2]),)) elif cmd == 'get_index_names': if len(args) != 3: - print('get_index_names requires 3 args') + print 'get_index_names requires 3 args' sys.exit(1) pp.pprint(client.get_index_names(args[0],args[1],eval(args[2]),)) elif cmd == 'update_table_column_statistics': if len(args) != 1: - print('update_table_column_statistics requires 1 args') + print 'update_table_column_statistics requires 1 args' sys.exit(1) pp.pprint(client.update_table_column_statistics(eval(args[0]),)) elif cmd == 'update_partition_column_statistics': if len(args) != 1: - print('update_partition_column_statistics requires 1 args') + print 'update_partition_column_statistics requires 1 args' sys.exit(1) pp.pprint(client.update_partition_column_statistics(eval(args[0]),)) elif cmd == 'get_table_column_statistics': if len(args) != 3: - print('get_table_column_statistics requires 3 args') + print 'get_table_column_statistics requires 3 args' sys.exit(1) pp.pprint(client.get_table_column_statistics(args[0],args[1],args[2],)) elif cmd == 'get_partition_column_statistics': if len(args) != 4: - print('get_partition_column_statistics requires 4 args') + print 'get_partition_column_statistics requires 4 args' sys.exit(1) pp.pprint(client.get_partition_column_statistics(args[0],args[1],args[2],args[3],)) elif cmd == 'get_table_statistics_req': if len(args) != 1: - print('get_table_statistics_req requires 1 args') + print 'get_table_statistics_req requires 1 args' sys.exit(1) pp.pprint(client.get_table_statistics_req(eval(args[0]),)) elif cmd == 'get_partitions_statistics_req': if len(args) != 1: - print('get_partitions_statistics_req requires 1 args') + print 'get_partitions_statistics_req requires 1 args' sys.exit(1) pp.pprint(client.get_partitions_statistics_req(eval(args[0]),)) elif cmd == 'get_aggr_stats_for': if len(args) != 1: - print('get_aggr_stats_for requires 1 args') + print 'get_aggr_stats_for requires 1 args' sys.exit(1) pp.pprint(client.get_aggr_stats_for(eval(args[0]),)) elif cmd == 'set_aggr_stats_for': if len(args) != 1: - print('set_aggr_stats_for requires 1 args') + print 'set_aggr_stats_for requires 1 args' sys.exit(1) pp.pprint(client.set_aggr_stats_for(eval(args[0]),)) elif cmd == 'delete_partition_column_statistics': if len(args) != 4: - print('delete_partition_column_statistics requires 4 args') + print 'delete_partition_column_statistics requires 4 args' sys.exit(1) pp.pprint(client.delete_partition_column_statistics(args[0],args[1],args[2],args[3],)) elif cmd == 'delete_table_column_statistics': if len(args) != 3: - print('delete_table_column_statistics requires 3 args') + print 'delete_table_column_statistics requires 3 args' sys.exit(1) pp.pprint(client.delete_table_column_statistics(args[0],args[1],args[2],)) elif cmd == 'create_function': if len(args) != 1: - print('create_function requires 1 args') + print 'create_function requires 1 args' sys.exit(1) pp.pprint(client.create_function(eval(args[0]),)) elif cmd == 'drop_function': if len(args) != 2: - print('drop_function requires 2 args') + print 'drop_function requires 2 args' sys.exit(1) pp.pprint(client.drop_function(args[0],args[1],)) elif cmd == 'alter_function': if len(args) != 3: - print('alter_function requires 3 args') + print 'alter_function requires 3 args' sys.exit(1) pp.pprint(client.alter_function(args[0],args[1],eval(args[2]),)) elif cmd == 'get_functions': if len(args) != 2: - print('get_functions requires 2 args') + print 'get_functions requires 2 args' sys.exit(1) pp.pprint(client.get_functions(args[0],args[1],)) elif cmd == 'get_function': if len(args) != 2: - print('get_function requires 2 args') + print 'get_function requires 2 args' sys.exit(1) pp.pprint(client.get_function(args[0],args[1],)) elif cmd == 'get_all_functions': if len(args) != 0: - print('get_all_functions requires 0 args') + print 'get_all_functions requires 0 args' sys.exit(1) pp.pprint(client.get_all_functions()) elif cmd == 'create_role': if len(args) != 1: - print('create_role requires 1 args') + print 'create_role requires 1 args' sys.exit(1) pp.pprint(client.create_role(eval(args[0]),)) elif cmd == 'drop_role': if len(args) != 1: - print('drop_role requires 1 args') + print 'drop_role requires 1 args' sys.exit(1) pp.pprint(client.drop_role(args[0],)) elif cmd == 'get_role_names': if len(args) != 0: - print('get_role_names requires 0 args') + print 'get_role_names requires 0 args' sys.exit(1) pp.pprint(client.get_role_names()) elif cmd == 'grant_role': if len(args) != 6: - print('grant_role requires 6 args') + print 'grant_role requires 6 args' sys.exit(1) pp.pprint(client.grant_role(args[0],args[1],eval(args[2]),args[3],eval(args[4]),eval(args[5]),)) elif cmd == 'revoke_role': if len(args) != 3: - print('revoke_role requires 3 args') + print 'revoke_role requires 3 args' sys.exit(1) pp.pprint(client.revoke_role(args[0],args[1],eval(args[2]),)) elif cmd == 'list_roles': if len(args) != 2: - print('list_roles requires 2 args') + print 'list_roles requires 2 args' sys.exit(1) pp.pprint(client.list_roles(args[0],eval(args[1]),)) elif cmd == 'grant_revoke_role': if len(args) != 1: - print('grant_revoke_role requires 1 args') + print 'grant_revoke_role requires 1 args' sys.exit(1) pp.pprint(client.grant_revoke_role(eval(args[0]),)) elif cmd == 'get_principals_in_role': if len(args) != 1: - print('get_principals_in_role requires 1 args') + print 'get_principals_in_role requires 1 args' sys.exit(1) pp.pprint(client.get_principals_in_role(eval(args[0]),)) elif cmd == 'get_role_grants_for_principal': if len(args) != 1: - print('get_role_grants_for_principal requires 1 args') + print 'get_role_grants_for_principal requires 1 args' sys.exit(1) pp.pprint(client.get_role_grants_for_principal(eval(args[0]),)) elif cmd == 'get_privilege_set': if len(args) != 3: - print('get_privilege_set requires 3 args') + print 'get_privilege_set requires 3 args' sys.exit(1) pp.pprint(client.get_privilege_set(eval(args[0]),args[1],eval(args[2]),)) elif cmd == 'list_privileges': if len(args) != 3: - print('list_privileges requires 3 args') + print 'list_privileges requires 3 args' sys.exit(1) pp.pprint(client.list_privileges(args[0],eval(args[1]),eval(args[2]),)) elif cmd == 'grant_privileges': if len(args) != 1: - print('grant_privileges requires 1 args') + print 'grant_privileges requires 1 args' sys.exit(1) pp.pprint(client.grant_privileges(eval(args[0]),)) elif cmd == 'revoke_privileges': if len(args) != 1: - print('revoke_privileges requires 1 args') + print 'revoke_privileges requires 1 args' sys.exit(1) pp.pprint(client.revoke_privileges(eval(args[0]),)) elif cmd == 'grant_revoke_privileges': if len(args) != 1: - print('grant_revoke_privileges requires 1 args') + print 'grant_revoke_privileges requires 1 args' sys.exit(1) pp.pprint(client.grant_revoke_privileges(eval(args[0]),)) elif cmd == 'set_ugi': if len(args) != 2: - print('set_ugi requires 2 args') + print 'set_ugi requires 2 args' sys.exit(1) pp.pprint(client.set_ugi(args[0],eval(args[1]),)) elif cmd == 'get_delegation_token': if len(args) != 2: - print('get_delegation_token requires 2 args') + print 'get_delegation_token requires 2 args' sys.exit(1) pp.pprint(client.get_delegation_token(args[0],args[1],)) elif cmd == 'renew_delegation_token': if len(args) != 1: - print('renew_delegation_token requires 1 args') + print 'renew_delegation_token requires 1 args' sys.exit(1) pp.pprint(client.renew_delegation_token(args[0],)) elif cmd == 'cancel_delegation_token': if len(args) != 1: - print('cancel_delegation_token requires 1 args') + print 'cancel_delegation_token requires 1 args' sys.exit(1) pp.pprint(client.cancel_delegation_token(args[0],)) elif cmd == 'get_open_txns': if len(args) != 0: - print('get_open_txns requires 0 args') + print 'get_open_txns requires 0 args' sys.exit(1) pp.pprint(client.get_open_txns()) elif cmd == 'get_open_txns_info': if len(args) != 0: - print('get_open_txns_info requires 0 args') + print 'get_open_txns_info requires 0 args' sys.exit(1) pp.pprint(client.get_open_txns_info()) elif cmd == 'open_txns': if len(args) != 1: - print('open_txns requires 1 args') + print 'open_txns requires 1 args' sys.exit(1) pp.pprint(client.open_txns(eval(args[0]),)) elif cmd == 'abort_txn': if len(args) != 1: - print('abort_txn requires 1 args') + print 'abort_txn requires 1 args' sys.exit(1) pp.pprint(client.abort_txn(eval(args[0]),)) elif cmd == 'commit_txn': if len(args) != 1: - print('commit_txn requires 1 args') + print 'commit_txn requires 1 args' sys.exit(1) pp.pprint(client.commit_txn(eval(args[0]),)) elif cmd == 'lock': if len(args) != 1: - print('lock requires 1 args') + print 'lock requires 1 args' sys.exit(1) pp.pprint(client.lock(eval(args[0]),)) elif cmd == 'check_lock': if len(args) != 1: - print('check_lock requires 1 args') + print 'check_lock requires 1 args' sys.exit(1) pp.pprint(client.check_lock(eval(args[0]),)) elif cmd == 'unlock': if len(args) != 1: - print('unlock requires 1 args') + print 'unlock requires 1 args' sys.exit(1) pp.pprint(client.unlock(eval(args[0]),)) elif cmd == 'show_locks': if len(args) != 1: - print('show_locks requires 1 args') + print 'show_locks requires 1 args' sys.exit(1) pp.pprint(client.show_locks(eval(args[0]),)) elif cmd == 'heartbeat': if len(args) != 1: - print('heartbeat requires 1 args') + print 'heartbeat requires 1 args' sys.exit(1) pp.pprint(client.heartbeat(eval(args[0]),)) elif cmd == 'heartbeat_txn_range': if len(args) != 1: - print('heartbeat_txn_range requires 1 args') + print 'heartbeat_txn_range requires 1 args' sys.exit(1) pp.pprint(client.heartbeat_txn_range(eval(args[0]),)) elif cmd == 'compact': if len(args) != 1: - print('compact requires 1 args') + print 'compact requires 1 args' sys.exit(1) pp.pprint(client.compact(eval(args[0]),)) elif cmd == 'show_compact': if len(args) != 1: - print('show_compact requires 1 args') + print 'show_compact requires 1 args' sys.exit(1) pp.pprint(client.show_compact(eval(args[0]),)) elif cmd == 'add_dynamic_partitions': if len(args) != 1: - print('add_dynamic_partitions requires 1 args') + print 'add_dynamic_partitions requires 1 args' sys.exit(1) pp.pprint(client.add_dynamic_partitions(eval(args[0]),)) elif cmd == 'get_next_notification': if len(args) != 1: - print('get_next_notification requires 1 args') + print 'get_next_notification requires 1 args' sys.exit(1) pp.pprint(client.get_next_notification(eval(args[0]),)) elif cmd == 'get_current_notificationEventId': if len(args) != 0: - print('get_current_notificationEventId requires 0 args') + print 'get_current_notificationEventId requires 0 args' sys.exit(1) pp.pprint(client.get_current_notificationEventId()) elif cmd == 'fire_listener_event': if len(args) != 1: - print('fire_listener_event requires 1 args') + print 'fire_listener_event requires 1 args' sys.exit(1) pp.pprint(client.fire_listener_event(eval(args[0]),)) -elif cmd == 'getName': - if len(args) != 0: - print('getName requires 0 args') - sys.exit(1) - pp.pprint(client.getName()) - -elif cmd == 'getVersion': - if len(args) != 0: - print('getVersion requires 0 args') - sys.exit(1) - pp.pprint(client.getVersion()) - -elif cmd == 'getStatus': - if len(args) != 0: - print('getStatus requires 0 args') - sys.exit(1) - pp.pprint(client.getStatus()) - -elif cmd == 'getStatusDetails': - if len(args) != 0: - print('getStatusDetails requires 0 args') - sys.exit(1) - pp.pprint(client.getStatusDetails()) - -elif cmd == 'getCounters': - if len(args) != 0: - print('getCounters requires 0 args') - sys.exit(1) - pp.pprint(client.getCounters()) - -elif cmd == 'getCounter': - if len(args) != 1: - print('getCounter requires 1 args') - sys.exit(1) - pp.pprint(client.getCounter(args[0],)) - -elif cmd == 'setOption': - if len(args) != 2: - print('setOption requires 2 args') - sys.exit(1) - pp.pprint(client.setOption(args[0],args[1],)) - -elif cmd == 'getOption': - if len(args) != 1: - print('getOption requires 1 args') - sys.exit(1) - pp.pprint(client.getOption(args[0],)) - -elif cmd == 'getOptions': - if len(args) != 0: - print('getOptions requires 0 args') - sys.exit(1) - pp.pprint(client.getOptions()) - -elif cmd == 'aliveSince': - if len(args) != 0: - print('aliveSince requires 0 args') - sys.exit(1) - pp.pprint(client.aliveSince()) - -elif cmd == 'getLimitedReflection': - if len(args) != 0: - print('getLimitedReflection requires 0 args') - sys.exit(1) - pp.pprint(client.getLimitedReflection()) - -elif cmd == 'reinitialize': - if len(args) != 0: - print('reinitialize requires 0 args') - sys.exit(1) - pp.pprint(client.reinitialize()) - -elif cmd == 'shutdown': - if len(args) != 0: - print('shutdown requires 0 args') - sys.exit(1) - pp.pprint(client.shutdown()) - else: - print('Unrecognized method %s' % cmd) + print 'Unrecognized method %s' % cmd sys.exit(1) transport.close() 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 9e460f0..740b138 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -67,7 +67,7 @@ def get_databases(self, pattern): """ pass - def get_all_databases(self): + def get_all_databases(self, ): pass def alter_database(self, dbname, db): @@ -503,6 +503,16 @@ def get_partitions_by_expr(self, req): """ pass + def get_num_partitions_by_filter(self, db_name, tbl_name, filter, max_parts): + """ + Parameters: + - db_name + - tbl_name + - filter + - max_parts + """ + pass + def get_partitions_by_names(self, db_name, tbl_name, names): """ Parameters: @@ -775,7 +785,7 @@ def get_function(self, dbName, funcName): """ pass - def get_all_functions(self): + def get_all_functions(self, ): pass def create_role(self, role): @@ -792,7 +802,7 @@ def drop_role(self, role_name): """ pass - def get_role_names(self): + def get_role_names(self, ): pass def grant_role(self, role_name, principal_name, principal_type, grantor, grantorType, grant_option): @@ -914,10 +924,10 @@ def cancel_delegation_token(self, token_str_form): """ pass - def get_open_txns(self): + def get_open_txns(self, ): pass - def get_open_txns_info(self): + def get_open_txns_info(self, ): pass def open_txns(self, rqst): @@ -1011,7 +1021,7 @@ def get_next_notification(self, rqst): """ pass - def get_current_notificationEventId(self): + def get_current_notificationEventId(self, ): pass def fire_listener_event(self, rqst): @@ -1045,17 +1055,16 @@ def send_getMetaConf(self, key): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getMetaConf(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_getMetaConf(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = getMetaConf_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1080,17 +1089,16 @@ def send_setMetaConf(self, key, value): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_setMetaConf(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_setMetaConf(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = setMetaConf_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 return @@ -1111,17 +1119,16 @@ def send_create_database(self, database): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_create_database(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_create_database(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = create_database_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -1146,17 +1153,16 @@ def send_get_database(self, name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_database(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_database(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_database_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1185,17 +1191,16 @@ def send_drop_database(self, name, deleteData, cascade): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_database(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_database(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_database_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -1220,45 +1225,43 @@ def send_get_databases(self, pattern): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_databases(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_databases(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_databases_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result"); - def get_all_databases(self): + def get_all_databases(self, ): self.send_get_all_databases() return self.recv_get_all_databases() - def send_get_all_databases(self): + def send_get_all_databases(self, ): self._oprot.writeMessageBegin('get_all_databases', TMessageType.CALL, self._seqid) args = get_all_databases_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_all_databases(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_all_databases(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_all_databases_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1283,17 +1286,16 @@ def send_alter_database(self, dbname, db): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_database(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_database(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_database_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -1316,17 +1318,16 @@ def send_get_type(self, name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_type(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_type(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_type_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1351,17 +1352,16 @@ def send_create_type(self, type): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_create_type(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_create_type(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = create_type_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1388,17 +1388,16 @@ def send_drop_type(self, type): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_type(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_type(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_type_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1423,17 +1422,16 @@ def send_get_type_all(self, name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_type_all(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_type_all(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_type_all_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o2 is not None: @@ -1458,17 +1456,16 @@ def send_get_fields(self, db_name, table_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_fields(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_fields(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_fields_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1499,17 +1496,16 @@ def send_get_fields_with_environment_context(self, db_name, table_name, environm self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_fields_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_fields_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_fields_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1538,17 +1534,16 @@ def send_get_schema(self, db_name, table_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_schema(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_schema(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_schema_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1579,17 +1574,16 @@ def send_get_schema_with_environment_context(self, db_name, table_name, environm self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_schema_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_schema_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_schema_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1616,17 +1610,16 @@ def send_create_table(self, tbl): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_create_table(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_create_table(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = create_table_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -1655,17 +1648,16 @@ def send_create_table_with_environment_context(self, tbl, environment_context): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_create_table_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_create_table_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = create_table_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -1696,17 +1688,16 @@ def send_drop_table(self, dbname, name, deleteData): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_table(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_table(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_table_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o3 is not None: @@ -1735,17 +1726,16 @@ def send_drop_table_with_environment_context(self, dbname, name, deleteData, env self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_table_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_table_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_table_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o3 is not None: @@ -1770,17 +1760,16 @@ def send_get_tables(self, db_name, pattern): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_tables(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_tables(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_tables_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1803,17 +1792,16 @@ def send_get_all_tables(self, db_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_all_tables(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_all_tables(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_all_tables_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1838,17 +1826,16 @@ def send_get_table(self, dbname, tbl_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_table(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_table(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_table_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1875,17 +1862,16 @@ def send_get_table_objects_by_name(self, dbname, tbl_names): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_table_objects_by_name(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_table_objects_by_name(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_table_objects_by_name_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1916,17 +1902,16 @@ def send_get_table_names_by_filter(self, dbname, filter, max_tables): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_table_names_by_filter(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_table_names_by_filter(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_table_names_by_filter_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -1957,17 +1942,16 @@ def send_alter_table(self, dbname, tbl_name, new_tbl): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_table(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_table(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_table_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -1996,17 +1980,16 @@ def send_alter_table_with_environment_context(self, dbname, tbl_name, new_tbl, e self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_table_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_table_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_table_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -2035,17 +2018,16 @@ def send_alter_table_with_cascade(self, dbname, tbl_name, new_tbl, cascade): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_table_with_cascade(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_table_with_cascade(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_table_with_cascade_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -2068,17 +2050,16 @@ def send_add_partition(self, new_part): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2107,17 +2088,16 @@ def send_add_partition_with_environment_context(self, new_part, environment_cont self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_partition_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_partition_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_partition_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2144,17 +2124,16 @@ def send_add_partitions(self, new_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_partitions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_partitions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_partitions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2181,17 +2160,16 @@ def send_add_partitions_pspec(self, new_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_partitions_pspec(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_partitions_pspec(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_partitions_pspec_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2222,17 +2200,16 @@ def send_append_partition(self, db_name, tbl_name, part_vals): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_append_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_append_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = append_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2259,17 +2236,16 @@ def send_add_partitions_req(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_partitions_req(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_partitions_req(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_partitions_req_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2302,17 +2278,16 @@ def send_append_partition_with_environment_context(self, db_name, tbl_name, part self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_append_partition_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_append_partition_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = append_partition_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2343,17 +2318,16 @@ def send_append_partition_by_name(self, db_name, tbl_name, part_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_append_partition_by_name(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_append_partition_by_name(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = append_partition_by_name_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2386,17 +2360,16 @@ def send_append_partition_by_name_with_environment_context(self, db_name, tbl_na self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_append_partition_by_name_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_append_partition_by_name_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = append_partition_by_name_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2429,17 +2402,16 @@ def send_drop_partition(self, db_name, tbl_name, part_vals, deleteData): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2472,17 +2444,16 @@ def send_drop_partition_with_environment_context(self, db_name, tbl_name, part_v self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_partition_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_partition_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_partition_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2513,17 +2484,16 @@ def send_drop_partition_by_name(self, db_name, tbl_name, part_name, deleteData): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_partition_by_name(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_partition_by_name(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_partition_by_name_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2556,17 +2526,16 @@ def send_drop_partition_by_name_with_environment_context(self, db_name, tbl_name self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_partition_by_name_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_partition_by_name_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_partition_by_name_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2591,17 +2560,16 @@ def send_drop_partitions_req(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_partitions_req(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_partitions_req(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_partitions_req_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2630,17 +2598,16 @@ def send_get_partition(self, db_name, tbl_name, part_vals): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2673,17 +2640,16 @@ def send_exchange_partition(self, partitionSpecs, source_db, source_table_name, self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_exchange_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_exchange_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = exchange_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2720,17 +2686,16 @@ def send_get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partition_with_auth(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partition_with_auth(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partition_with_auth_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2759,17 +2724,16 @@ def send_get_partition_by_name(self, db_name, tbl_name, part_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partition_by_name(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partition_by_name(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partition_by_name_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2798,17 +2762,16 @@ def send_get_partitions(self, db_name, tbl_name, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2841,17 +2804,16 @@ def send_get_partitions_with_auth(self, db_name, tbl_name, max_parts, user_name, self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_with_auth(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_with_auth(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_with_auth_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2880,17 +2842,16 @@ def send_get_partitions_pspec(self, db_name, tbl_name, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_pspec(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_pspec(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_pspec_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -2919,17 +2880,16 @@ def send_get_partition_names(self, db_name, tbl_name, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partition_names(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partition_names(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partition_names_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o2 is not None: @@ -2958,17 +2918,16 @@ def send_get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_ps(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_ps(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_ps_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3003,17 +2962,16 @@ def send_get_partitions_ps_with_auth(self, db_name, tbl_name, part_vals, max_par self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_ps_with_auth(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_ps_with_auth(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_ps_with_auth_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3044,17 +3002,16 @@ def send_get_partition_names_ps(self, db_name, tbl_name, part_vals, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partition_names_ps(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partition_names_ps(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partition_names_ps_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3085,17 +3042,16 @@ def send_get_partitions_by_filter(self, db_name, tbl_name, filter, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_by_filter(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_by_filter(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_by_filter_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3126,17 +3082,16 @@ def send_get_part_specs_by_filter(self, db_name, tbl_name, filter, max_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_part_specs_by_filter(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_part_specs_by_filter(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_part_specs_by_filter_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3161,17 +3116,16 @@ def send_get_partitions_by_expr(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_by_expr(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_by_expr(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_by_expr_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3180,6 +3134,46 @@ def recv_get_partitions_by_expr(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_by_expr failed: unknown result"); + def get_num_partitions_by_filter(self, db_name, tbl_name, filter, max_parts): + """ + Parameters: + - db_name + - tbl_name + - filter + - max_parts + """ + self.send_get_num_partitions_by_filter(db_name, tbl_name, filter, max_parts) + return self.recv_get_num_partitions_by_filter() + + def send_get_num_partitions_by_filter(self, db_name, tbl_name, filter, max_parts): + self._oprot.writeMessageBegin('get_num_partitions_by_filter', TMessageType.CALL, self._seqid) + args = get_num_partitions_by_filter_args() + args.db_name = db_name + args.tbl_name = tbl_name + args.filter = filter + args.max_parts = max_parts + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_num_partitions_by_filter(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = get_num_partitions_by_filter_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_num_partitions_by_filter failed: unknown result"); + def get_partitions_by_names(self, db_name, tbl_name, names): """ Parameters: @@ -3200,17 +3194,16 @@ def send_get_partitions_by_names(self, db_name, tbl_name, names): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_by_names(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_by_names(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_by_names_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3239,17 +3232,16 @@ def send_alter_partition(self, db_name, tbl_name, new_part): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -3276,17 +3268,16 @@ def send_alter_partitions(self, db_name, tbl_name, new_parts): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_partitions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_partitions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_partitions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -3315,17 +3306,16 @@ def send_alter_partition_with_environment_context(self, db_name, tbl_name, new_p self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_partition_with_environment_context(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_partition_with_environment_context(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_partition_with_environment_context_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -3354,17 +3344,16 @@ def send_rename_partition(self, db_name, tbl_name, part_vals, new_part): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_rename_partition(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_rename_partition(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = rename_partition_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -3389,17 +3378,16 @@ def send_partition_name_has_valid_characters(self, part_vals, throw_exception): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_partition_name_has_valid_characters(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_partition_name_has_valid_characters(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = partition_name_has_valid_characters_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3424,17 +3412,16 @@ def send_get_config_value(self, name, defaultValue): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_config_value(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_config_value(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_config_value_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3457,17 +3444,16 @@ def send_partition_name_to_vals(self, part_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_partition_name_to_vals(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_partition_name_to_vals(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = partition_name_to_vals_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3490,17 +3476,16 @@ def send_partition_name_to_spec(self, part_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_partition_name_to_spec(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_partition_name_to_spec(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = partition_name_to_spec_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3529,17 +3514,16 @@ def send_markPartitionForEvent(self, db_name, tbl_name, part_vals, eventType): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_markPartitionForEvent(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_markPartitionForEvent(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = markPartitionForEvent_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -3576,17 +3560,16 @@ def send_isPartitionMarkedForEvent(self, db_name, tbl_name, part_vals, eventType self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_isPartitionMarkedForEvent(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_isPartitionMarkedForEvent(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = isPartitionMarkedForEvent_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3621,17 +3604,16 @@ def send_add_index(self, new_index, index_table): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_index(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_index(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_index_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3664,17 +3646,16 @@ def send_alter_index(self, dbname, base_tbl_name, idx_name, new_idx): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_index(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_index(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_index_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -3703,17 +3684,16 @@ def send_drop_index_by_name(self, db_name, tbl_name, index_name, deleteData): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_index_by_name(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_index_by_name(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_index_by_name_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3742,17 +3722,16 @@ def send_get_index_by_name(self, db_name, tbl_name, index_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_index_by_name(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_index_by_name(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_index_by_name_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3781,17 +3760,16 @@ def send_get_indexes(self, db_name, tbl_name, max_indexes): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_indexes(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_indexes(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_indexes_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3820,17 +3798,16 @@ def send_get_index_names(self, db_name, tbl_name, max_indexes): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_index_names(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_index_names(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_index_names_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o2 is not None: @@ -3853,17 +3830,16 @@ def send_update_table_column_statistics(self, stats_obj): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_update_table_column_statistics(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_update_table_column_statistics(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = update_table_column_statistics_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3892,17 +3868,16 @@ def send_update_partition_column_statistics(self, stats_obj): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_update_partition_column_statistics(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_update_partition_column_statistics(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = update_partition_column_statistics_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3935,17 +3910,16 @@ def send_get_table_column_statistics(self, db_name, tbl_name, col_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_table_column_statistics(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_table_column_statistics(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_table_column_statistics_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -3980,17 +3954,16 @@ def send_get_partition_column_statistics(self, db_name, tbl_name, part_name, col self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partition_column_statistics(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partition_column_statistics(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partition_column_statistics_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4019,17 +3992,16 @@ def send_get_table_statistics_req(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_table_statistics_req(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_table_statistics_req(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_table_statistics_req_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4054,17 +4026,16 @@ def send_get_partitions_statistics_req(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_partitions_statistics_req(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_partitions_statistics_req(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_partitions_statistics_req_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4089,17 +4060,16 @@ def send_get_aggr_stats_for(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_aggr_stats_for(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_aggr_stats_for(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_aggr_stats_for_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4124,17 +4094,16 @@ def send_set_aggr_stats_for(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_set_aggr_stats_for(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_set_aggr_stats_for(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = set_aggr_stats_for_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4169,17 +4138,16 @@ def send_delete_partition_column_statistics(self, db_name, tbl_name, part_name, self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_delete_partition_column_statistics(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_delete_partition_column_statistics(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = delete_partition_column_statistics_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4212,17 +4180,16 @@ def send_delete_table_column_statistics(self, db_name, tbl_name, col_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_delete_table_column_statistics(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_delete_table_column_statistics(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = delete_table_column_statistics_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4251,17 +4218,16 @@ def send_create_function(self, func): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_create_function(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_create_function(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = create_function_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -4290,17 +4256,16 @@ def send_drop_function(self, dbName, funcName): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_function(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_function(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_function_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o3 is not None: @@ -4327,17 +4292,16 @@ def send_alter_function(self, dbName, funcName, newFunc): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_alter_function(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_alter_function(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = alter_function_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -4362,17 +4326,16 @@ def send_get_functions(self, dbName, pattern): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_functions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_functions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_functions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4397,17 +4360,16 @@ def send_get_function(self, dbName, funcName): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_function(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_function(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_function_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4416,28 +4378,27 @@ def recv_get_function(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_function failed: unknown result"); - def get_all_functions(self): + def get_all_functions(self, ): self.send_get_all_functions() return self.recv_get_all_functions() - def send_get_all_functions(self): + def send_get_all_functions(self, ): self._oprot.writeMessageBegin('get_all_functions', TMessageType.CALL, self._seqid) args = get_all_functions_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_all_functions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_all_functions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_all_functions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4460,17 +4421,16 @@ def send_create_role(self, role): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_create_role(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_create_role(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = create_role_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4493,45 +4453,43 @@ def send_drop_role(self, role_name): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_drop_role(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_drop_role(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = drop_role_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "drop_role failed: unknown result"); - def get_role_names(self): + def get_role_names(self, ): self.send_get_role_names() return self.recv_get_role_names() - def send_get_role_names(self): + def send_get_role_names(self, ): self._oprot.writeMessageBegin('get_role_names', TMessageType.CALL, self._seqid) args = get_role_names_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_role_names(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_role_names(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_role_names_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4564,17 +4522,16 @@ def send_grant_role(self, role_name, principal_name, principal_type, grantor, gr self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_grant_role(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_grant_role(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = grant_role_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4601,17 +4558,16 @@ def send_revoke_role(self, role_name, principal_name, principal_type): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_revoke_role(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_revoke_role(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = revoke_role_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4636,17 +4592,16 @@ def send_list_roles(self, principal_name, principal_type): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_list_roles(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_list_roles(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = list_roles_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4669,17 +4624,16 @@ def send_grant_revoke_role(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_grant_revoke_role(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_grant_revoke_role(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = grant_revoke_role_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4702,17 +4656,16 @@ def send_get_principals_in_role(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_principals_in_role(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_principals_in_role(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_principals_in_role_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4735,17 +4688,16 @@ def send_get_role_grants_for_principal(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_role_grants_for_principal(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_role_grants_for_principal(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_role_grants_for_principal_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4772,17 +4724,16 @@ def send_get_privilege_set(self, hiveObject, user_name, group_names): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_privilege_set(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_privilege_set(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_privilege_set_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4809,17 +4760,16 @@ def send_list_privileges(self, principal_name, principal_type, hiveObject): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_list_privileges(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_list_privileges(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = list_privileges_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4842,17 +4792,16 @@ def send_grant_privileges(self, privileges): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_grant_privileges(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_grant_privileges(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = grant_privileges_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4875,17 +4824,16 @@ def send_revoke_privileges(self, privileges): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_revoke_privileges(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_revoke_privileges(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = revoke_privileges_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4908,17 +4856,16 @@ def send_grant_revoke_privileges(self, request): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_grant_revoke_privileges(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_grant_revoke_privileges(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = grant_revoke_privileges_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4943,17 +4890,16 @@ def send_set_ugi(self, user_name, group_names): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_set_ugi(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_set_ugi(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = set_ugi_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -4978,17 +4924,16 @@ def send_get_delegation_token(self, token_owner, renewer_kerberos_principal_name self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_delegation_token(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_delegation_token(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_delegation_token_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -5011,17 +4956,16 @@ def send_renew_delegation_token(self, token_str_form): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_renew_delegation_token(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_renew_delegation_token(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = renew_delegation_token_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -5044,69 +4988,66 @@ def send_cancel_delegation_token(self, token_str_form): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_cancel_delegation_token(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_cancel_delegation_token(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = cancel_delegation_token_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 return - def get_open_txns(self): + def get_open_txns(self, ): self.send_get_open_txns() return self.recv_get_open_txns() - def send_get_open_txns(self): + def send_get_open_txns(self, ): self._oprot.writeMessageBegin('get_open_txns', TMessageType.CALL, self._seqid) args = get_open_txns_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_open_txns(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_open_txns(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_open_txns_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "get_open_txns failed: unknown result"); - def get_open_txns_info(self): + def get_open_txns_info(self, ): self.send_get_open_txns_info() return self.recv_get_open_txns_info() - def send_get_open_txns_info(self): + def send_get_open_txns_info(self, ): self._oprot.writeMessageBegin('get_open_txns_info', TMessageType.CALL, self._seqid) args = get_open_txns_info_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_open_txns_info(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_open_txns_info(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_open_txns_info_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "get_open_txns_info failed: unknown result"); @@ -5127,17 +5068,16 @@ def send_open_txns(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_open_txns(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_open_txns(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = open_txns_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "open_txns failed: unknown result"); @@ -5158,17 +5098,16 @@ def send_abort_txn(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_abort_txn(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_abort_txn(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = abort_txn_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 return @@ -5189,17 +5128,16 @@ def send_commit_txn(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_commit_txn(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_commit_txn(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = commit_txn_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -5222,17 +5160,16 @@ def send_lock(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_lock(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_lock(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = lock_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -5257,17 +5194,16 @@ def send_check_lock(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_check_lock(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_check_lock(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = check_lock_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.o1 is not None: @@ -5294,17 +5230,16 @@ def send_unlock(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_unlock(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_unlock(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = unlock_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -5327,17 +5262,16 @@ def send_show_locks(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_show_locks(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_show_locks(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = show_locks_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "show_locks failed: unknown result"); @@ -5358,17 +5292,16 @@ def send_heartbeat(self, ids): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_heartbeat(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_heartbeat(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = heartbeat_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -5393,17 +5326,16 @@ def send_heartbeat_txn_range(self, txns): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_heartbeat_txn_range(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_heartbeat_txn_range(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = heartbeat_txn_range_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "heartbeat_txn_range failed: unknown result"); @@ -5424,17 +5356,16 @@ def send_compact(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_compact(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_compact(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = compact_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() return def show_compact(self, rqst): @@ -5453,17 +5384,16 @@ def send_show_compact(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_show_compact(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_show_compact(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = show_compact_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "show_compact failed: unknown result"); @@ -5484,17 +5414,16 @@ def send_add_dynamic_partitions(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_add_dynamic_partitions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_add_dynamic_partitions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = add_dynamic_partitions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.o1 is not None: raise result.o1 if result.o2 is not None: @@ -5517,43 +5446,41 @@ def send_get_next_notification(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_next_notification(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_next_notification(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_next_notification_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "get_next_notification failed: unknown result"); - def get_current_notificationEventId(self): + def get_current_notificationEventId(self, ): self.send_get_current_notificationEventId() return self.recv_get_current_notificationEventId() - def send_get_current_notificationEventId(self): + def send_get_current_notificationEventId(self, ): self._oprot.writeMessageBegin('get_current_notificationEventId', TMessageType.CALL, self._seqid) args = get_current_notificationEventId_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_get_current_notificationEventId(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_get_current_notificationEventId(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = get_current_notificationEventId_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "get_current_notificationEventId failed: unknown result"); @@ -5574,17 +5501,16 @@ def send_fire_listener_event(self, rqst): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_fire_listener_event(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_fire_listener_event(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = fire_listener_event_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "fire_listener_event failed: unknown result"); @@ -5649,6 +5575,7 @@ def __init__(self, handler): self._processMap["get_partitions_by_filter"] = Processor.process_get_partitions_by_filter self._processMap["get_part_specs_by_filter"] = Processor.process_get_part_specs_by_filter self._processMap["get_partitions_by_expr"] = Processor.process_get_partitions_by_expr + self._processMap["get_num_partitions_by_filter"] = Processor.process_get_num_partitions_by_filter self._processMap["get_partitions_by_names"] = Processor.process_get_partitions_by_names self._processMap["alter_partition"] = Processor.process_alter_partition self._processMap["alter_partitions"] = Processor.process_alter_partitions @@ -5740,7 +5667,7 @@ def process_getMetaConf(self, seqid, iprot, oprot): result = getMetaConf_result() try: result.success = self._handler.getMetaConf(args.key) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("getMetaConf", TMessageType.REPLY, seqid) result.write(oprot) @@ -5754,7 +5681,7 @@ def process_setMetaConf(self, seqid, iprot, oprot): result = setMetaConf_result() try: self._handler.setMetaConf(args.key, args.value) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("setMetaConf", TMessageType.REPLY, seqid) result.write(oprot) @@ -5768,11 +5695,11 @@ def process_create_database(self, seqid, iprot, oprot): result = create_database_result() try: self._handler.create_database(args.database) - except AlreadyExistsException, o1: + except AlreadyExistsException as o1: result.o1 = o1 - except InvalidObjectException, o2: + except InvalidObjectException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("create_database", TMessageType.REPLY, seqid) result.write(oprot) @@ -5786,9 +5713,9 @@ def process_get_database(self, seqid, iprot, oprot): result = get_database_result() try: result.success = self._handler.get_database(args.name) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("get_database", TMessageType.REPLY, seqid) result.write(oprot) @@ -5802,11 +5729,11 @@ def process_drop_database(self, seqid, iprot, oprot): result = drop_database_result() try: self._handler.drop_database(args.name, args.deleteData, args.cascade) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except InvalidOperationException, o2: + except InvalidOperationException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("drop_database", TMessageType.REPLY, seqid) result.write(oprot) @@ -5820,7 +5747,7 @@ def process_get_databases(self, seqid, iprot, oprot): result = get_databases_result() try: result.success = self._handler.get_databases(args.pattern) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("get_databases", TMessageType.REPLY, seqid) result.write(oprot) @@ -5834,7 +5761,7 @@ def process_get_all_databases(self, seqid, iprot, oprot): result = get_all_databases_result() try: result.success = self._handler.get_all_databases() - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("get_all_databases", TMessageType.REPLY, seqid) result.write(oprot) @@ -5848,9 +5775,9 @@ def process_alter_database(self, seqid, iprot, oprot): result = alter_database_result() try: self._handler.alter_database(args.dbname, args.db) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("alter_database", TMessageType.REPLY, seqid) result.write(oprot) @@ -5864,9 +5791,9 @@ def process_get_type(self, seqid, iprot, oprot): result = get_type_result() try: result.success = self._handler.get_type(args.name) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("get_type", TMessageType.REPLY, seqid) result.write(oprot) @@ -5880,11 +5807,11 @@ def process_create_type(self, seqid, iprot, oprot): result = create_type_result() try: result.success = self._handler.create_type(args.type) - except AlreadyExistsException, o1: + except AlreadyExistsException as o1: result.o1 = o1 - except InvalidObjectException, o2: + except InvalidObjectException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("create_type", TMessageType.REPLY, seqid) result.write(oprot) @@ -5898,9 +5825,9 @@ def process_drop_type(self, seqid, iprot, oprot): result = drop_type_result() try: result.success = self._handler.drop_type(args.type) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("drop_type", TMessageType.REPLY, seqid) result.write(oprot) @@ -5914,7 +5841,7 @@ def process_get_type_all(self, seqid, iprot, oprot): result = get_type_all_result() try: result.success = self._handler.get_type_all(args.name) - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("get_type_all", TMessageType.REPLY, seqid) result.write(oprot) @@ -5928,11 +5855,11 @@ def process_get_fields(self, seqid, iprot, oprot): result = get_fields_result() try: result.success = self._handler.get_fields(args.db_name, args.table_name) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except UnknownTableException, o2: + except UnknownTableException as o2: result.o2 = o2 - except UnknownDBException, o3: + except UnknownDBException as o3: result.o3 = o3 oprot.writeMessageBegin("get_fields", TMessageType.REPLY, seqid) result.write(oprot) @@ -5946,11 +5873,11 @@ def process_get_fields_with_environment_context(self, seqid, iprot, oprot): result = get_fields_with_environment_context_result() try: result.success = self._handler.get_fields_with_environment_context(args.db_name, args.table_name, args.environment_context) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except UnknownTableException, o2: + except UnknownTableException as o2: result.o2 = o2 - except UnknownDBException, o3: + except UnknownDBException as o3: result.o3 = o3 oprot.writeMessageBegin("get_fields_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) @@ -5964,11 +5891,11 @@ def process_get_schema(self, seqid, iprot, oprot): result = get_schema_result() try: result.success = self._handler.get_schema(args.db_name, args.table_name) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except UnknownTableException, o2: + except UnknownTableException as o2: result.o2 = o2 - except UnknownDBException, o3: + except UnknownDBException as o3: result.o3 = o3 oprot.writeMessageBegin("get_schema", TMessageType.REPLY, seqid) result.write(oprot) @@ -5982,11 +5909,11 @@ def process_get_schema_with_environment_context(self, seqid, iprot, oprot): result = get_schema_with_environment_context_result() try: result.success = self._handler.get_schema_with_environment_context(args.db_name, args.table_name, args.environment_context) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except UnknownTableException, o2: + except UnknownTableException as o2: result.o2 = o2 - except UnknownDBException, o3: + except UnknownDBException as o3: result.o3 = o3 oprot.writeMessageBegin("get_schema_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) @@ -6000,13 +5927,13 @@ def process_create_table(self, seqid, iprot, oprot): result = create_table_result() try: self._handler.create_table(args.tbl) - except AlreadyExistsException, o1: + except AlreadyExistsException as o1: result.o1 = o1 - except InvalidObjectException, o2: + except InvalidObjectException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 - except NoSuchObjectException, o4: + except NoSuchObjectException as o4: result.o4 = o4 oprot.writeMessageBegin("create_table", TMessageType.REPLY, seqid) result.write(oprot) @@ -6020,13 +5947,13 @@ def process_create_table_with_environment_context(self, seqid, iprot, oprot): result = create_table_with_environment_context_result() try: self._handler.create_table_with_environment_context(args.tbl, args.environment_context) - except AlreadyExistsException, o1: + except AlreadyExistsException as o1: result.o1 = o1 - except InvalidObjectException, o2: + except InvalidObjectException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 - except NoSuchObjectException, o4: + except NoSuchObjectException as o4: result.o4 = o4 oprot.writeMessageBegin("create_table_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) @@ -6040,9 +5967,9 @@ def process_drop_table(self, seqid, iprot, oprot): result = drop_table_result() try: self._handler.drop_table(args.dbname, args.name, args.deleteData) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("drop_table", TMessageType.REPLY, seqid) result.write(oprot) @@ -6056,9 +5983,9 @@ def process_drop_table_with_environment_context(self, seqid, iprot, oprot): result = drop_table_with_environment_context_result() try: self._handler.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("drop_table_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) @@ -6072,7 +5999,7 @@ def process_get_tables(self, seqid, iprot, oprot): result = get_tables_result() try: result.success = self._handler.get_tables(args.db_name, args.pattern) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("get_tables", TMessageType.REPLY, seqid) result.write(oprot) @@ -6086,7 +6013,7 @@ def process_get_all_tables(self, seqid, iprot, oprot): result = get_all_tables_result() try: result.success = self._handler.get_all_tables(args.db_name) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("get_all_tables", TMessageType.REPLY, seqid) result.write(oprot) @@ -6100,9 +6027,9 @@ def process_get_table(self, seqid, iprot, oprot): result = get_table_result() try: result.success = self._handler.get_table(args.dbname, args.tbl_name) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("get_table", TMessageType.REPLY, seqid) result.write(oprot) @@ -6116,11 +6043,11 @@ def process_get_table_objects_by_name(self, seqid, iprot, oprot): result = get_table_objects_by_name_result() try: result.success = self._handler.get_table_objects_by_name(args.dbname, args.tbl_names) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except InvalidOperationException, o2: + except InvalidOperationException as o2: result.o2 = o2 - except UnknownDBException, o3: + except UnknownDBException as o3: result.o3 = o3 oprot.writeMessageBegin("get_table_objects_by_name", TMessageType.REPLY, seqid) result.write(oprot) @@ -6134,11 +6061,11 @@ def process_get_table_names_by_filter(self, seqid, iprot, oprot): result = get_table_names_by_filter_result() try: result.success = self._handler.get_table_names_by_filter(args.dbname, args.filter, args.max_tables) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except InvalidOperationException, o2: + except InvalidOperationException as o2: result.o2 = o2 - except UnknownDBException, o3: + except UnknownDBException as o3: result.o3 = o3 oprot.writeMessageBegin("get_table_names_by_filter", TMessageType.REPLY, seqid) result.write(oprot) @@ -6152,9 +6079,9 @@ def process_alter_table(self, seqid, iprot, oprot): result = alter_table_result() try: self._handler.alter_table(args.dbname, args.tbl_name, args.new_tbl) - except InvalidOperationException, o1: + except InvalidOperationException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("alter_table", TMessageType.REPLY, seqid) result.write(oprot) @@ -6168,9 +6095,9 @@ def process_alter_table_with_environment_context(self, seqid, iprot, oprot): result = alter_table_with_environment_context_result() try: self._handler.alter_table_with_environment_context(args.dbname, args.tbl_name, args.new_tbl, args.environment_context) - except InvalidOperationException, o1: + except InvalidOperationException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("alter_table_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) @@ -6184,9 +6111,9 @@ def process_alter_table_with_cascade(self, seqid, iprot, oprot): result = alter_table_with_cascade_result() try: self._handler.alter_table_with_cascade(args.dbname, args.tbl_name, args.new_tbl, args.cascade) - except InvalidOperationException, o1: + except InvalidOperationException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("alter_table_with_cascade", TMessageType.REPLY, seqid) result.write(oprot) @@ -6200,11 +6127,11 @@ def process_add_partition(self, seqid, iprot, oprot): result = add_partition_result() try: result.success = self._handler.add_partition(args.new_part) - except InvalidObjectException, o1: + except InvalidObjectException as o1: result.o1 = o1 - except AlreadyExistsException, o2: + except AlreadyExistsException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("add_partition", TMessageType.REPLY, seqid) result.write(oprot) @@ -6218,11 +6145,11 @@ def process_add_partition_with_environment_context(self, seqid, iprot, oprot): result = add_partition_with_environment_context_result() try: result.success = self._handler.add_partition_with_environment_context(args.new_part, args.environment_context) - except InvalidObjectException, o1: + except InvalidObjectException as o1: result.o1 = o1 - except AlreadyExistsException, o2: + except AlreadyExistsException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("add_partition_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) @@ -6236,11 +6163,11 @@ def process_add_partitions(self, seqid, iprot, oprot): result = add_partitions_result() try: result.success = self._handler.add_partitions(args.new_parts) - except InvalidObjectException, o1: + except InvalidObjectException as o1: result.o1 = o1 - except AlreadyExistsException, o2: + except AlreadyExistsException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("add_partitions", TMessageType.REPLY, seqid) result.write(oprot) @@ -6254,11 +6181,11 @@ def process_add_partitions_pspec(self, seqid, iprot, oprot): result = add_partitions_pspec_result() try: result.success = self._handler.add_partitions_pspec(args.new_parts) - except InvalidObjectException, o1: + except InvalidObjectException as o1: result.o1 = o1 - except AlreadyExistsException, o2: + except AlreadyExistsException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("add_partitions_pspec", TMessageType.REPLY, seqid) result.write(oprot) @@ -6272,11 +6199,11 @@ def process_append_partition(self, seqid, iprot, oprot): result = append_partition_result() try: result.success = self._handler.append_partition(args.db_name, args.tbl_name, args.part_vals) - except InvalidObjectException, o1: + except InvalidObjectException as o1: result.o1 = o1 - except AlreadyExistsException, o2: + except AlreadyExistsException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("append_partition", TMessageType.REPLY, seqid) result.write(oprot) @@ -6290,11 +6217,11 @@ def process_add_partitions_req(self, seqid, iprot, oprot): result = add_partitions_req_result() try: result.success = self._handler.add_partitions_req(args.request) - except InvalidObjectException, o1: + except InvalidObjectException as o1: result.o1 = o1 - except AlreadyExistsException, o2: + except AlreadyExistsException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("add_partitions_req", TMessageType.REPLY, seqid) result.write(oprot) @@ -6308,11 +6235,11 @@ def process_append_partition_with_environment_context(self, seqid, iprot, oprot) result = append_partition_with_environment_context_result() try: result.success = self._handler.append_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.environment_context) - except InvalidObjectException, o1: + except InvalidObjectException as o1: result.o1 = o1 - except AlreadyExistsException, o2: + except AlreadyExistsException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("append_partition_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) @@ -6326,11 +6253,11 @@ def process_append_partition_by_name(self, seqid, iprot, oprot): result = append_partition_by_name_result() try: result.success = self._handler.append_partition_by_name(args.db_name, args.tbl_name, args.part_name) - except InvalidObjectException, o1: + except InvalidObjectException as o1: result.o1 = o1 - except AlreadyExistsException, o2: + except AlreadyExistsException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("append_partition_by_name", TMessageType.REPLY, seqid) result.write(oprot) @@ -6344,11 +6271,11 @@ def process_append_partition_by_name_with_environment_context(self, seqid, iprot result = append_partition_by_name_with_environment_context_result() try: result.success = self._handler.append_partition_by_name_with_environment_context(args.db_name, args.tbl_name, args.part_name, args.environment_context) - except InvalidObjectException, o1: + except InvalidObjectException as o1: result.o1 = o1 - except AlreadyExistsException, o2: + except AlreadyExistsException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("append_partition_by_name_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) @@ -6362,9 +6289,9 @@ def process_drop_partition(self, seqid, iprot, oprot): result = drop_partition_result() try: result.success = self._handler.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("drop_partition", TMessageType.REPLY, seqid) result.write(oprot) @@ -6378,9 +6305,9 @@ def process_drop_partition_with_environment_context(self, seqid, iprot, oprot): result = drop_partition_with_environment_context_result() try: result.success = self._handler.drop_partition_with_environment_context(args.db_name, args.tbl_name, args.part_vals, args.deleteData, args.environment_context) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("drop_partition_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) @@ -6394,9 +6321,9 @@ def process_drop_partition_by_name(self, seqid, iprot, oprot): result = drop_partition_by_name_result() try: result.success = self._handler.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("drop_partition_by_name", TMessageType.REPLY, seqid) result.write(oprot) @@ -6410,9 +6337,9 @@ def process_drop_partition_by_name_with_environment_context(self, seqid, iprot, result = drop_partition_by_name_with_environment_context_result() try: result.success = self._handler.drop_partition_by_name_with_environment_context(args.db_name, args.tbl_name, args.part_name, args.deleteData, args.environment_context) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("drop_partition_by_name_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) @@ -6426,9 +6353,9 @@ def process_drop_partitions_req(self, seqid, iprot, oprot): result = drop_partitions_req_result() try: result.success = self._handler.drop_partitions_req(args.req) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("drop_partitions_req", TMessageType.REPLY, seqid) result.write(oprot) @@ -6442,9 +6369,9 @@ def process_get_partition(self, seqid, iprot, oprot): result = get_partition_result() try: result.success = self._handler.get_partition(args.db_name, args.tbl_name, args.part_vals) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partition", TMessageType.REPLY, seqid) result.write(oprot) @@ -6458,13 +6385,13 @@ def process_exchange_partition(self, seqid, iprot, oprot): result = exchange_partition_result() try: result.success = self._handler.exchange_partition(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 - except InvalidObjectException, o3: + except InvalidObjectException as o3: result.o3 = o3 - except InvalidInputException, o4: + except InvalidInputException as o4: result.o4 = o4 oprot.writeMessageBegin("exchange_partition", TMessageType.REPLY, seqid) result.write(oprot) @@ -6478,9 +6405,9 @@ def process_get_partition_with_auth(self, seqid, iprot, oprot): result = get_partition_with_auth_result() try: result.success = self._handler.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partition_with_auth", TMessageType.REPLY, seqid) result.write(oprot) @@ -6494,9 +6421,9 @@ def process_get_partition_by_name(self, seqid, iprot, oprot): result = get_partition_by_name_result() try: result.success = self._handler.get_partition_by_name(args.db_name, args.tbl_name, args.part_name) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partition_by_name", TMessageType.REPLY, seqid) result.write(oprot) @@ -6510,9 +6437,9 @@ def process_get_partitions(self, seqid, iprot, oprot): result = get_partitions_result() try: result.success = self._handler.get_partitions(args.db_name, args.tbl_name, args.max_parts) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partitions", TMessageType.REPLY, seqid) result.write(oprot) @@ -6526,9 +6453,9 @@ def process_get_partitions_with_auth(self, seqid, iprot, oprot): result = get_partitions_with_auth_result() try: result.success = self._handler.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partitions_with_auth", TMessageType.REPLY, seqid) result.write(oprot) @@ -6542,9 +6469,9 @@ def process_get_partitions_pspec(self, seqid, iprot, oprot): result = get_partitions_pspec_result() try: result.success = self._handler.get_partitions_pspec(args.db_name, args.tbl_name, args.max_parts) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partitions_pspec", TMessageType.REPLY, seqid) result.write(oprot) @@ -6558,7 +6485,7 @@ def process_get_partition_names(self, seqid, iprot, oprot): result = get_partition_names_result() try: result.success = self._handler.get_partition_names(args.db_name, args.tbl_name, args.max_parts) - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partition_names", TMessageType.REPLY, seqid) result.write(oprot) @@ -6572,9 +6499,9 @@ def process_get_partitions_ps(self, seqid, iprot, oprot): result = get_partitions_ps_result() try: result.success = self._handler.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partitions_ps", TMessageType.REPLY, seqid) result.write(oprot) @@ -6588,9 +6515,9 @@ def process_get_partitions_ps_with_auth(self, seqid, iprot, oprot): result = get_partitions_ps_with_auth_result() try: result.success = self._handler.get_partitions_ps_with_auth(args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partitions_ps_with_auth", TMessageType.REPLY, seqid) result.write(oprot) @@ -6604,9 +6531,9 @@ def process_get_partition_names_ps(self, seqid, iprot, oprot): result = get_partition_names_ps_result() try: result.success = self._handler.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partition_names_ps", TMessageType.REPLY, seqid) result.write(oprot) @@ -6620,9 +6547,9 @@ def process_get_partitions_by_filter(self, seqid, iprot, oprot): result = get_partitions_by_filter_result() try: result.success = self._handler.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partitions_by_filter", TMessageType.REPLY, seqid) result.write(oprot) @@ -6636,9 +6563,9 @@ def process_get_part_specs_by_filter(self, seqid, iprot, oprot): result = get_part_specs_by_filter_result() try: result.success = self._handler.get_part_specs_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("get_part_specs_by_filter", TMessageType.REPLY, seqid) result.write(oprot) @@ -6652,15 +6579,31 @@ def process_get_partitions_by_expr(self, seqid, iprot, oprot): result = get_partitions_by_expr_result() try: result.success = self._handler.get_partitions_by_expr(args.req) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partitions_by_expr", TMessageType.REPLY, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() + def process_get_num_partitions_by_filter(self, seqid, iprot, oprot): + args = get_num_partitions_by_filter_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_num_partitions_by_filter_result() + try: + result.success = self._handler.get_num_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts) + except MetaException as o1: + result.o1 = o1 + except NoSuchObjectException as o2: + result.o2 = o2 + oprot.writeMessageBegin("get_num_partitions_by_filter", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_partitions_by_names(self, seqid, iprot, oprot): args = get_partitions_by_names_args() args.read(iprot) @@ -6668,9 +6611,9 @@ def process_get_partitions_by_names(self, seqid, iprot, oprot): result = get_partitions_by_names_result() try: result.success = self._handler.get_partitions_by_names(args.db_name, args.tbl_name, args.names) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partitions_by_names", TMessageType.REPLY, seqid) result.write(oprot) @@ -6684,9 +6627,9 @@ def process_alter_partition(self, seqid, iprot, oprot): result = alter_partition_result() try: self._handler.alter_partition(args.db_name, args.tbl_name, args.new_part) - except InvalidOperationException, o1: + except InvalidOperationException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("alter_partition", TMessageType.REPLY, seqid) result.write(oprot) @@ -6700,9 +6643,9 @@ def process_alter_partitions(self, seqid, iprot, oprot): result = alter_partitions_result() try: self._handler.alter_partitions(args.db_name, args.tbl_name, args.new_parts) - except InvalidOperationException, o1: + except InvalidOperationException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("alter_partitions", TMessageType.REPLY, seqid) result.write(oprot) @@ -6716,9 +6659,9 @@ def process_alter_partition_with_environment_context(self, seqid, iprot, oprot): result = alter_partition_with_environment_context_result() try: self._handler.alter_partition_with_environment_context(args.db_name, args.tbl_name, args.new_part, args.environment_context) - except InvalidOperationException, o1: + except InvalidOperationException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("alter_partition_with_environment_context", TMessageType.REPLY, seqid) result.write(oprot) @@ -6732,9 +6675,9 @@ def process_rename_partition(self, seqid, iprot, oprot): result = rename_partition_result() try: self._handler.rename_partition(args.db_name, args.tbl_name, args.part_vals, args.new_part) - except InvalidOperationException, o1: + except InvalidOperationException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("rename_partition", TMessageType.REPLY, seqid) result.write(oprot) @@ -6748,7 +6691,7 @@ def process_partition_name_has_valid_characters(self, seqid, iprot, oprot): result = partition_name_has_valid_characters_result() try: result.success = self._handler.partition_name_has_valid_characters(args.part_vals, args.throw_exception) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("partition_name_has_valid_characters", TMessageType.REPLY, seqid) result.write(oprot) @@ -6762,7 +6705,7 @@ def process_get_config_value(self, seqid, iprot, oprot): result = get_config_value_result() try: result.success = self._handler.get_config_value(args.name, args.defaultValue) - except ConfigValSecurityException, o1: + except ConfigValSecurityException as o1: result.o1 = o1 oprot.writeMessageBegin("get_config_value", TMessageType.REPLY, seqid) result.write(oprot) @@ -6776,7 +6719,7 @@ def process_partition_name_to_vals(self, seqid, iprot, oprot): result = partition_name_to_vals_result() try: result.success = self._handler.partition_name_to_vals(args.part_name) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("partition_name_to_vals", TMessageType.REPLY, seqid) result.write(oprot) @@ -6790,7 +6733,7 @@ def process_partition_name_to_spec(self, seqid, iprot, oprot): result = partition_name_to_spec_result() try: result.success = self._handler.partition_name_to_spec(args.part_name) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("partition_name_to_spec", TMessageType.REPLY, seqid) result.write(oprot) @@ -6804,17 +6747,17 @@ def process_markPartitionForEvent(self, seqid, iprot, oprot): result = markPartitionForEvent_result() try: self._handler.markPartitionForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 - except UnknownDBException, o3: + except UnknownDBException as o3: result.o3 = o3 - except UnknownTableException, o4: + except UnknownTableException as o4: result.o4 = o4 - except UnknownPartitionException, o5: + except UnknownPartitionException as o5: result.o5 = o5 - except InvalidPartitionException, o6: + except InvalidPartitionException as o6: result.o6 = o6 oprot.writeMessageBegin("markPartitionForEvent", TMessageType.REPLY, seqid) result.write(oprot) @@ -6828,17 +6771,17 @@ def process_isPartitionMarkedForEvent(self, seqid, iprot, oprot): result = isPartitionMarkedForEvent_result() try: result.success = self._handler.isPartitionMarkedForEvent(args.db_name, args.tbl_name, args.part_vals, args.eventType) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 - except UnknownDBException, o3: + except UnknownDBException as o3: result.o3 = o3 - except UnknownTableException, o4: + except UnknownTableException as o4: result.o4 = o4 - except UnknownPartitionException, o5: + except UnknownPartitionException as o5: result.o5 = o5 - except InvalidPartitionException, o6: + except InvalidPartitionException as o6: result.o6 = o6 oprot.writeMessageBegin("isPartitionMarkedForEvent", TMessageType.REPLY, seqid) result.write(oprot) @@ -6852,11 +6795,11 @@ def process_add_index(self, seqid, iprot, oprot): result = add_index_result() try: result.success = self._handler.add_index(args.new_index, args.index_table) - except InvalidObjectException, o1: + except InvalidObjectException as o1: result.o1 = o1 - except AlreadyExistsException, o2: + except AlreadyExistsException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("add_index", TMessageType.REPLY, seqid) result.write(oprot) @@ -6870,9 +6813,9 @@ def process_alter_index(self, seqid, iprot, oprot): result = alter_index_result() try: self._handler.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx) - except InvalidOperationException, o1: + except InvalidOperationException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("alter_index", TMessageType.REPLY, seqid) result.write(oprot) @@ -6886,9 +6829,9 @@ def process_drop_index_by_name(self, seqid, iprot, oprot): result = drop_index_by_name_result() try: result.success = self._handler.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("drop_index_by_name", TMessageType.REPLY, seqid) result.write(oprot) @@ -6902,9 +6845,9 @@ def process_get_index_by_name(self, seqid, iprot, oprot): result = get_index_by_name_result() try: result.success = self._handler.get_index_by_name(args.db_name, args.tbl_name, args.index_name) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("get_index_by_name", TMessageType.REPLY, seqid) result.write(oprot) @@ -6918,9 +6861,9 @@ def process_get_indexes(self, seqid, iprot, oprot): result = get_indexes_result() try: result.success = self._handler.get_indexes(args.db_name, args.tbl_name, args.max_indexes) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("get_indexes", TMessageType.REPLY, seqid) result.write(oprot) @@ -6934,7 +6877,7 @@ def process_get_index_names(self, seqid, iprot, oprot): result = get_index_names_result() try: result.success = self._handler.get_index_names(args.db_name, args.tbl_name, args.max_indexes) - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("get_index_names", TMessageType.REPLY, seqid) result.write(oprot) @@ -6948,13 +6891,13 @@ def process_update_table_column_statistics(self, seqid, iprot, oprot): result = update_table_column_statistics_result() try: result.success = self._handler.update_table_column_statistics(args.stats_obj) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except InvalidObjectException, o2: + except InvalidObjectException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 - except InvalidInputException, o4: + except InvalidInputException as o4: result.o4 = o4 oprot.writeMessageBegin("update_table_column_statistics", TMessageType.REPLY, seqid) result.write(oprot) @@ -6968,13 +6911,13 @@ def process_update_partition_column_statistics(self, seqid, iprot, oprot): result = update_partition_column_statistics_result() try: result.success = self._handler.update_partition_column_statistics(args.stats_obj) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except InvalidObjectException, o2: + except InvalidObjectException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 - except InvalidInputException, o4: + except InvalidInputException as o4: result.o4 = o4 oprot.writeMessageBegin("update_partition_column_statistics", TMessageType.REPLY, seqid) result.write(oprot) @@ -6988,13 +6931,13 @@ def process_get_table_column_statistics(self, seqid, iprot, oprot): result = get_table_column_statistics_result() try: result.success = self._handler.get_table_column_statistics(args.db_name, args.tbl_name, args.col_name) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 - except InvalidInputException, o3: + except InvalidInputException as o3: result.o3 = o3 - except InvalidObjectException, o4: + except InvalidObjectException as o4: result.o4 = o4 oprot.writeMessageBegin("get_table_column_statistics", TMessageType.REPLY, seqid) result.write(oprot) @@ -7008,13 +6951,13 @@ def process_get_partition_column_statistics(self, seqid, iprot, oprot): result = get_partition_column_statistics_result() try: result.success = self._handler.get_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 - except InvalidInputException, o3: + except InvalidInputException as o3: result.o3 = o3 - except InvalidObjectException, o4: + except InvalidObjectException as o4: result.o4 = o4 oprot.writeMessageBegin("get_partition_column_statistics", TMessageType.REPLY, seqid) result.write(oprot) @@ -7028,9 +6971,9 @@ def process_get_table_statistics_req(self, seqid, iprot, oprot): result = get_table_statistics_req_result() try: result.success = self._handler.get_table_statistics_req(args.request) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("get_table_statistics_req", TMessageType.REPLY, seqid) result.write(oprot) @@ -7044,9 +6987,9 @@ def process_get_partitions_statistics_req(self, seqid, iprot, oprot): result = get_partitions_statistics_req_result() try: result.success = self._handler.get_partitions_statistics_req(args.request) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("get_partitions_statistics_req", TMessageType.REPLY, seqid) result.write(oprot) @@ -7060,9 +7003,9 @@ def process_get_aggr_stats_for(self, seqid, iprot, oprot): result = get_aggr_stats_for_result() try: result.success = self._handler.get_aggr_stats_for(args.request) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("get_aggr_stats_for", TMessageType.REPLY, seqid) result.write(oprot) @@ -7076,13 +7019,13 @@ def process_set_aggr_stats_for(self, seqid, iprot, oprot): result = set_aggr_stats_for_result() try: result.success = self._handler.set_aggr_stats_for(args.request) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except InvalidObjectException, o2: + except InvalidObjectException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 - except InvalidInputException, o4: + except InvalidInputException as o4: result.o4 = o4 oprot.writeMessageBegin("set_aggr_stats_for", TMessageType.REPLY, seqid) result.write(oprot) @@ -7096,13 +7039,13 @@ def process_delete_partition_column_statistics(self, seqid, iprot, oprot): result = delete_partition_column_statistics_result() try: result.success = self._handler.delete_partition_column_statistics(args.db_name, args.tbl_name, args.part_name, args.col_name) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 - except InvalidObjectException, o3: + except InvalidObjectException as o3: result.o3 = o3 - except InvalidInputException, o4: + except InvalidInputException as o4: result.o4 = o4 oprot.writeMessageBegin("delete_partition_column_statistics", TMessageType.REPLY, seqid) result.write(oprot) @@ -7116,13 +7059,13 @@ def process_delete_table_column_statistics(self, seqid, iprot, oprot): result = delete_table_column_statistics_result() try: result.success = self._handler.delete_table_column_statistics(args.db_name, args.tbl_name, args.col_name) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 - except InvalidObjectException, o3: + except InvalidObjectException as o3: result.o3 = o3 - except InvalidInputException, o4: + except InvalidInputException as o4: result.o4 = o4 oprot.writeMessageBegin("delete_table_column_statistics", TMessageType.REPLY, seqid) result.write(oprot) @@ -7136,13 +7079,13 @@ def process_create_function(self, seqid, iprot, oprot): result = create_function_result() try: self._handler.create_function(args.func) - except AlreadyExistsException, o1: + except AlreadyExistsException as o1: result.o1 = o1 - except InvalidObjectException, o2: + except InvalidObjectException as o2: result.o2 = o2 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 - except NoSuchObjectException, o4: + except NoSuchObjectException as o4: result.o4 = o4 oprot.writeMessageBegin("create_function", TMessageType.REPLY, seqid) result.write(oprot) @@ -7156,9 +7099,9 @@ def process_drop_function(self, seqid, iprot, oprot): result = drop_function_result() try: self._handler.drop_function(args.dbName, args.funcName) - except NoSuchObjectException, o1: + except NoSuchObjectException as o1: result.o1 = o1 - except MetaException, o3: + except MetaException as o3: result.o3 = o3 oprot.writeMessageBegin("drop_function", TMessageType.REPLY, seqid) result.write(oprot) @@ -7172,9 +7115,9 @@ def process_alter_function(self, seqid, iprot, oprot): result = alter_function_result() try: self._handler.alter_function(args.dbName, args.funcName, args.newFunc) - except InvalidOperationException, o1: + except InvalidOperationException as o1: result.o1 = o1 - except MetaException, o2: + except MetaException as o2: result.o2 = o2 oprot.writeMessageBegin("alter_function", TMessageType.REPLY, seqid) result.write(oprot) @@ -7188,7 +7131,7 @@ def process_get_functions(self, seqid, iprot, oprot): result = get_functions_result() try: result.success = self._handler.get_functions(args.dbName, args.pattern) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("get_functions", TMessageType.REPLY, seqid) result.write(oprot) @@ -7202,9 +7145,9 @@ def process_get_function(self, seqid, iprot, oprot): result = get_function_result() try: result.success = self._handler.get_function(args.dbName, args.funcName) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 - except NoSuchObjectException, o2: + except NoSuchObjectException as o2: result.o2 = o2 oprot.writeMessageBegin("get_function", TMessageType.REPLY, seqid) result.write(oprot) @@ -7218,7 +7161,7 @@ def process_get_all_functions(self, seqid, iprot, oprot): result = get_all_functions_result() try: result.success = self._handler.get_all_functions() - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("get_all_functions", TMessageType.REPLY, seqid) result.write(oprot) @@ -7232,7 +7175,7 @@ def process_create_role(self, seqid, iprot, oprot): result = create_role_result() try: result.success = self._handler.create_role(args.role) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("create_role", TMessageType.REPLY, seqid) result.write(oprot) @@ -7246,7 +7189,7 @@ def process_drop_role(self, seqid, iprot, oprot): result = drop_role_result() try: result.success = self._handler.drop_role(args.role_name) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("drop_role", TMessageType.REPLY, seqid) result.write(oprot) @@ -7260,7 +7203,7 @@ def process_get_role_names(self, seqid, iprot, oprot): result = get_role_names_result() try: result.success = self._handler.get_role_names() - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("get_role_names", TMessageType.REPLY, seqid) result.write(oprot) @@ -7274,7 +7217,7 @@ def process_grant_role(self, seqid, iprot, oprot): result = grant_role_result() try: result.success = self._handler.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("grant_role", TMessageType.REPLY, seqid) result.write(oprot) @@ -7288,7 +7231,7 @@ def process_revoke_role(self, seqid, iprot, oprot): result = revoke_role_result() try: result.success = self._handler.revoke_role(args.role_name, args.principal_name, args.principal_type) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("revoke_role", TMessageType.REPLY, seqid) result.write(oprot) @@ -7302,7 +7245,7 @@ def process_list_roles(self, seqid, iprot, oprot): result = list_roles_result() try: result.success = self._handler.list_roles(args.principal_name, args.principal_type) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("list_roles", TMessageType.REPLY, seqid) result.write(oprot) @@ -7316,7 +7259,7 @@ def process_grant_revoke_role(self, seqid, iprot, oprot): result = grant_revoke_role_result() try: result.success = self._handler.grant_revoke_role(args.request) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("grant_revoke_role", TMessageType.REPLY, seqid) result.write(oprot) @@ -7330,7 +7273,7 @@ def process_get_principals_in_role(self, seqid, iprot, oprot): result = get_principals_in_role_result() try: result.success = self._handler.get_principals_in_role(args.request) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("get_principals_in_role", TMessageType.REPLY, seqid) result.write(oprot) @@ -7344,7 +7287,7 @@ def process_get_role_grants_for_principal(self, seqid, iprot, oprot): result = get_role_grants_for_principal_result() try: result.success = self._handler.get_role_grants_for_principal(args.request) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("get_role_grants_for_principal", TMessageType.REPLY, seqid) result.write(oprot) @@ -7358,7 +7301,7 @@ def process_get_privilege_set(self, seqid, iprot, oprot): result = get_privilege_set_result() try: result.success = self._handler.get_privilege_set(args.hiveObject, args.user_name, args.group_names) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("get_privilege_set", TMessageType.REPLY, seqid) result.write(oprot) @@ -7372,7 +7315,7 @@ def process_list_privileges(self, seqid, iprot, oprot): result = list_privileges_result() try: result.success = self._handler.list_privileges(args.principal_name, args.principal_type, args.hiveObject) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("list_privileges", TMessageType.REPLY, seqid) result.write(oprot) @@ -7386,7 +7329,7 @@ def process_grant_privileges(self, seqid, iprot, oprot): result = grant_privileges_result() try: result.success = self._handler.grant_privileges(args.privileges) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("grant_privileges", TMessageType.REPLY, seqid) result.write(oprot) @@ -7400,7 +7343,7 @@ def process_revoke_privileges(self, seqid, iprot, oprot): result = revoke_privileges_result() try: result.success = self._handler.revoke_privileges(args.privileges) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("revoke_privileges", TMessageType.REPLY, seqid) result.write(oprot) @@ -7414,7 +7357,7 @@ def process_grant_revoke_privileges(self, seqid, iprot, oprot): result = grant_revoke_privileges_result() try: result.success = self._handler.grant_revoke_privileges(args.request) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("grant_revoke_privileges", TMessageType.REPLY, seqid) result.write(oprot) @@ -7428,7 +7371,7 @@ def process_set_ugi(self, seqid, iprot, oprot): result = set_ugi_result() try: result.success = self._handler.set_ugi(args.user_name, args.group_names) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("set_ugi", TMessageType.REPLY, seqid) result.write(oprot) @@ -7442,7 +7385,7 @@ def process_get_delegation_token(self, seqid, iprot, oprot): result = get_delegation_token_result() try: result.success = self._handler.get_delegation_token(args.token_owner, args.renewer_kerberos_principal_name) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("get_delegation_token", TMessageType.REPLY, seqid) result.write(oprot) @@ -7456,7 +7399,7 @@ def process_renew_delegation_token(self, seqid, iprot, oprot): result = renew_delegation_token_result() try: result.success = self._handler.renew_delegation_token(args.token_str_form) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("renew_delegation_token", TMessageType.REPLY, seqid) result.write(oprot) @@ -7470,7 +7413,7 @@ def process_cancel_delegation_token(self, seqid, iprot, oprot): result = cancel_delegation_token_result() try: self._handler.cancel_delegation_token(args.token_str_form) - except MetaException, o1: + except MetaException as o1: result.o1 = o1 oprot.writeMessageBegin("cancel_delegation_token", TMessageType.REPLY, seqid) result.write(oprot) @@ -7517,7 +7460,7 @@ def process_abort_txn(self, seqid, iprot, oprot): result = abort_txn_result() try: self._handler.abort_txn(args.rqst) - except NoSuchTxnException, o1: + except NoSuchTxnException as o1: result.o1 = o1 oprot.writeMessageBegin("abort_txn", TMessageType.REPLY, seqid) result.write(oprot) @@ -7531,9 +7474,9 @@ def process_commit_txn(self, seqid, iprot, oprot): result = commit_txn_result() try: self._handler.commit_txn(args.rqst) - except NoSuchTxnException, o1: + except NoSuchTxnException as o1: result.o1 = o1 - except TxnAbortedException, o2: + except TxnAbortedException as o2: result.o2 = o2 oprot.writeMessageBegin("commit_txn", TMessageType.REPLY, seqid) result.write(oprot) @@ -7547,9 +7490,9 @@ def process_lock(self, seqid, iprot, oprot): result = lock_result() try: result.success = self._handler.lock(args.rqst) - except NoSuchTxnException, o1: + except NoSuchTxnException as o1: result.o1 = o1 - except TxnAbortedException, o2: + except TxnAbortedException as o2: result.o2 = o2 oprot.writeMessageBegin("lock", TMessageType.REPLY, seqid) result.write(oprot) @@ -7563,11 +7506,11 @@ def process_check_lock(self, seqid, iprot, oprot): result = check_lock_result() try: result.success = self._handler.check_lock(args.rqst) - except NoSuchTxnException, o1: + except NoSuchTxnException as o1: result.o1 = o1 - except TxnAbortedException, o2: + except TxnAbortedException as o2: result.o2 = o2 - except NoSuchLockException, o3: + except NoSuchLockException as o3: result.o3 = o3 oprot.writeMessageBegin("check_lock", TMessageType.REPLY, seqid) result.write(oprot) @@ -7581,9 +7524,9 @@ def process_unlock(self, seqid, iprot, oprot): result = unlock_result() try: self._handler.unlock(args.rqst) - except NoSuchLockException, o1: + except NoSuchLockException as o1: result.o1 = o1 - except TxnOpenException, o2: + except TxnOpenException as o2: result.o2 = o2 oprot.writeMessageBegin("unlock", TMessageType.REPLY, seqid) result.write(oprot) @@ -7608,11 +7551,11 @@ def process_heartbeat(self, seqid, iprot, oprot): result = heartbeat_result() try: self._handler.heartbeat(args.ids) - except NoSuchLockException, o1: + except NoSuchLockException as o1: result.o1 = o1 - except NoSuchTxnException, o2: + except NoSuchTxnException as o2: result.o2 = o2 - except TxnAbortedException, o3: + except TxnAbortedException as o3: result.o3 = o3 oprot.writeMessageBegin("heartbeat", TMessageType.REPLY, seqid) result.write(oprot) @@ -7659,9 +7602,9 @@ def process_add_dynamic_partitions(self, seqid, iprot, oprot): result = add_dynamic_partitions_result() try: self._handler.add_dynamic_partitions(args.rqst) - except NoSuchTxnException, o1: + except NoSuchTxnException as o1: result.o1 = o1 - except TxnAbortedException, o2: + except TxnAbortedException as o2: result.o2 = o2 oprot.writeMessageBegin("add_dynamic_partitions", TMessageType.REPLY, seqid) result.write(oprot) @@ -7753,11 +7696,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.key) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7830,12 +7768,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7908,12 +7840,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.key) - value = (value * 31) ^ hash(self.value) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7975,11 +7901,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8041,11 +7962,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.database) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8133,13 +8049,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8200,11 +8109,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8291,13 +8195,6 @@ 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()] @@ -8382,13 +8279,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.deleteData) - value = (value * 31) ^ hash(self.cascade) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8476,13 +8366,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8543,11 +8426,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.pattern) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8628,12 +8506,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8676,10 +8548,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8760,12 +8628,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8839,12 +8701,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.db) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8919,12 +8775,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8985,11 +8835,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9076,13 +8921,6 @@ 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()] @@ -9144,11 +8982,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.type) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9247,14 +9080,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9315,11 +9140,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.type) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9405,13 +9225,6 @@ 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()] @@ -9472,11 +9285,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9516,7 +9324,7 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype484, _vtype485, _size483 ) = iprot.readMapBegin() + (_ktype484, _vtype485, _size483 ) = iprot.readMapBegin() for _i487 in xrange(_size483): _key488 = iprot.readString(); _val489 = Type() @@ -9560,12 +9368,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9638,12 +9440,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.table_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9751,14 +9547,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9844,13 +9632,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.table_name) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9958,14 +9739,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10038,12 +9811,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.table_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10151,14 +9918,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10244,13 +10003,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.table_name) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10358,14 +10110,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10427,11 +10171,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.tbl) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10532,14 +10271,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10614,12 +10345,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.tbl) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10720,14 +10445,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10812,13 +10529,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.deleteData) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10893,12 +10603,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10996,14 +10700,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.deleteData) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11078,12 +10774,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11156,12 +10846,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.pattern) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11242,12 +10926,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11308,11 +10986,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11393,12 +11066,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11471,12 +11138,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tbl_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11563,13 +11224,6 @@ 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()] @@ -11650,12 +11304,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tbl_names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11763,14 +11411,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11855,13 +11495,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.filter) - value = (value * 31) ^ hash(self.max_tables) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -11968,14 +11601,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12061,13 +11686,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.new_tbl) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12142,12 +11760,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12246,14 +11858,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.new_tbl) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12328,12 +11932,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12431,14 +12029,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.new_tbl) - value = (value * 31) ^ hash(self.cascade) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12513,12 +12103,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12580,11 +12164,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.new_part) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12684,14 +12263,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12766,12 +12337,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.new_part) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12871,14 +12436,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -12948,11 +12505,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.new_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13051,14 +12603,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13128,11 +12672,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.new_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13231,14 +12770,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13331,13 +12862,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13437,14 +12961,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13506,11 +13022,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13610,14 +13121,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13723,14 +13226,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13830,14 +13325,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -13922,13 +13409,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14028,14 +13508,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14133,14 +13605,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14240,14 +13704,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14352,14 +13808,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.deleteData) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14445,13 +13893,6 @@ 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()] @@ -14569,15 +14010,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.deleteData) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14663,13 +14095,6 @@ 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()] @@ -14766,14 +14191,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - value = (value * 31) ^ hash(self.deleteData) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -14859,13 +14276,6 @@ 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()] @@ -14975,15 +14385,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - value = (value * 31) ^ hash(self.deleteData) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15069,13 +14470,6 @@ 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()] @@ -15137,11 +14531,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15228,13 +14617,6 @@ 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()] @@ -15327,13 +14709,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15420,13 +14795,6 @@ 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()] @@ -15476,7 +14844,7 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype605, _vtype606, _size604 ) = iprot.readMapBegin() + (_ktype605, _vtype606, _size604 ) = iprot.readMapBegin() for _i608 in xrange(_size604): _key609 = iprot.readString(); _val610 = iprot.readString(); @@ -15545,15 +14913,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partitionSpecs) - value = (value * 31) ^ hash(self.source_db) - value = (value * 31) ^ hash(self.source_table_name) - value = (value * 31) ^ hash(self.dest_db) - value = (value * 31) ^ hash(self.dest_table_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15666,15 +15025,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15799,15 +15149,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -15894,13 +15235,6 @@ 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()] @@ -15985,13 +15319,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16078,13 +15405,6 @@ 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()] @@ -16169,13 +15489,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16270,13 +15583,6 @@ 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()] @@ -16393,15 +15699,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_parts) - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16496,13 +15793,6 @@ 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()] @@ -16587,13 +15877,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16688,13 +15971,6 @@ 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()] @@ -16779,13 +16055,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16866,12 +16135,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -16976,14 +16239,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17078,13 +16333,6 @@ 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()] @@ -17221,16 +16469,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.max_parts) - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17325,13 +16563,6 @@ 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()] @@ -17436,14 +16667,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17537,13 +16760,6 @@ 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()] @@ -17640,14 +16856,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.filter) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17742,13 +16950,6 @@ 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()] @@ -17821,22 +17022,177 @@ 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_part_specs_by_filter_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() - if self.filter is not None: - oprot.writeFieldBegin('filter', TType.STRING, 3) - oprot.writeString(self.filter) - oprot.writeFieldEnd() - if self.max_parts is not None: - oprot.writeFieldBegin('max_parts', TType.I32, 4) - oprot.writeI32(self.max_parts) + oprot.writeStructBegin('get_part_specs_by_filter_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() + if self.filter is not None: + oprot.writeFieldBegin('filter', TType.STRING, 3) + oprot.writeString(self.filter) + oprot.writeFieldEnd() + if self.max_parts is not None: + oprot.writeFieldBegin('max_parts', TType.I32, 4) + oprot.writeI32(self.max_parts) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class get_part_specs_by_filter_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT,(PartitionSpec, PartitionSpec.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 = [] + (_etype721, _size718) = iprot.readListBegin() + for _i722 in xrange(_size718): + _elem723 = PartitionSpec() + _elem723.read(iprot) + self.success.append(_elem723) + 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_part_specs_by_filter_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter724 in self.success: + iter724.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 __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_partitions_by_expr_args: + """ + Attributes: + - req + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', (PartitionsByExprRequest, PartitionsByExprRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, req=None,): + self.req = req + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.req = PartitionsByExprRequest() + self.req.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_partitions_by_expr_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -17845,14 +17201,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.filter) - value = (value * 31) ^ hash(self.max_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -17864,7 +17212,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_part_specs_by_filter_result: +class get_partitions_by_expr_result: """ Attributes: - success @@ -17873,7 +17221,7 @@ class get_part_specs_by_filter_result: """ thrift_spec = ( - (0, TType.LIST, 'success', (TType.STRUCT,(PartitionSpec, PartitionSpec.thrift_spec)), None, ), # 0 + (0, TType.STRUCT, 'success', (PartitionsByExprResult, PartitionsByExprResult.thrift_spec), None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) @@ -17893,14 +17241,9 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.LIST: - self.success = [] - (_etype721, _size718) = iprot.readListBegin() - for _i722 in xrange(_size718): - _elem723 = PartitionSpec() - _elem723.read(iprot) - self.success.append(_elem723) - iprot.readListEnd() + if ftype == TType.STRUCT: + self.success = PartitionsByExprResult() + self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: @@ -17924,13 +17267,10 @@ 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_part_specs_by_filter_result') + oprot.writeStructBegin('get_partitions_by_expr_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.LIST, 0) - oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter724 in self.success: - iter724.write(oprot) - oprot.writeListEnd() + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -17947,13 +17287,6 @@ 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()] @@ -17965,19 +17298,28 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_by_expr_args: +class get_num_partitions_by_filter_args: """ Attributes: - - req + - db_name + - tbl_name + - filter + - max_parts """ thrift_spec = ( None, # 0 - (1, TType.STRUCT, 'req', (PartitionsByExprRequest, PartitionsByExprRequest.thrift_spec), None, ), # 1 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 + (3, TType.STRING, 'filter', None, None, ), # 3 + (4, TType.I16, 'max_parts', None, -1, ), # 4 ) - def __init__(self, req=None,): - self.req = req + def __init__(self, db_name=None, tbl_name=None, filter=None, max_parts=thrift_spec[4][4],): + self.db_name = db_name + self.tbl_name = tbl_name + self.filter = filter + self.max_parts = max_parts 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: @@ -17989,9 +17331,23 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 1: - if ftype == TType.STRUCT: - self.req = PartitionsByExprRequest() - self.req.read(iprot) + 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) + elif fid == 3: + if ftype == TType.STRING: + self.filter = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I16: + self.max_parts = iprot.readI16(); else: iprot.skip(ftype) else: @@ -18003,10 +17359,22 @@ 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_partitions_by_expr_args') - if self.req is not None: - oprot.writeFieldBegin('req', TType.STRUCT, 1) - self.req.write(oprot) + oprot.writeStructBegin('get_num_partitions_by_filter_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() + if self.filter is not None: + oprot.writeFieldBegin('filter', TType.STRING, 3) + oprot.writeString(self.filter) + oprot.writeFieldEnd() + if self.max_parts is not None: + oprot.writeFieldBegin('max_parts', TType.I16, 4) + oprot.writeI16(self.max_parts) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -18015,11 +17383,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18031,7 +17394,7 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) -class get_partitions_by_expr_result: +class get_num_partitions_by_filter_result: """ Attributes: - success @@ -18040,7 +17403,7 @@ class get_partitions_by_expr_result: """ thrift_spec = ( - (0, TType.STRUCT, 'success', (PartitionsByExprResult, PartitionsByExprResult.thrift_spec), None, ), # 0 + (0, TType.I32, 'success', None, None, ), # 0 (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 ) @@ -18060,9 +17423,8 @@ def read(self, iprot): if ftype == TType.STOP: break if fid == 0: - if ftype == TType.STRUCT: - self.success = PartitionsByExprResult() - self.success.read(iprot) + if ftype == TType.I32: + self.success = iprot.readI32(); else: iprot.skip(ftype) elif fid == 1: @@ -18086,10 +17448,10 @@ 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_partitions_by_expr_result') + oprot.writeStructBegin('get_num_partitions_by_filter_result') if self.success is not None: - oprot.writeFieldBegin('success', TType.STRUCT, 0) - self.success.write(oprot) + oprot.writeFieldBegin('success', TType.I32, 0) + oprot.writeI32(self.success) oprot.writeFieldEnd() if self.o1 is not None: oprot.writeFieldBegin('o1', TType.STRUCT, 1) @@ -18106,13 +17468,6 @@ 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()] @@ -18205,13 +17560,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18306,13 +17654,6 @@ 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()] @@ -18398,13 +17739,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.new_part) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18479,12 +17813,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18578,13 +17906,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.new_parts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18659,12 +17980,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18763,14 +18078,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.new_part) - value = (value * 31) ^ hash(self.environment_context) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18845,12 +18152,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -18956,14 +18257,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.new_part) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19038,12 +18331,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19124,12 +18411,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.throw_exception) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19202,12 +18483,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19280,12 +18555,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.defaultValue) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19358,12 +18627,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19424,11 +18687,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.part_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19509,12 +18767,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19575,11 +18827,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.part_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19619,7 +18866,7 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype768, _vtype769, _size767 ) = iprot.readMapBegin() + (_ktype768, _vtype769, _size767 ) = iprot.readMapBegin() for _i771 in xrange(_size767): _key772 = iprot.readString(); _val773 = iprot.readString(); @@ -19662,12 +18909,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19724,7 +18965,7 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype777, _vtype778, _size776 ) = iprot.readMapBegin() + (_ktype777, _vtype778, _size776 ) = iprot.readMapBegin() for _i780 in xrange(_size776): _key781 = iprot.readString(); _val782 = iprot.readString(); @@ -19774,14 +19015,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.eventType) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19908,16 +19141,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - value = (value * 31) ^ hash(self.o5) - value = (value * 31) ^ hash(self.o6) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -19974,7 +19197,7 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype786, _vtype787, _size785 ) = iprot.readMapBegin() + (_ktype786, _vtype787, _size785 ) = iprot.readMapBegin() for _i789 in xrange(_size785): _key790 = iprot.readString(); _val791 = iprot.readString(); @@ -20024,14 +19247,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_vals) - value = (value * 31) ^ hash(self.eventType) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20169,17 +19384,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - value = (value * 31) ^ hash(self.o5) - value = (value * 31) ^ hash(self.o6) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20254,12 +19458,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.new_index) - value = (value * 31) ^ hash(self.index_table) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20359,14 +19557,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20464,14 +19654,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.base_tbl_name) - value = (value * 31) ^ hash(self.idx_name) - value = (value * 31) ^ hash(self.new_idx) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20546,12 +19728,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20648,14 +19824,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.index_name) - value = (value * 31) ^ hash(self.deleteData) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20741,13 +19909,6 @@ 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()] @@ -20832,13 +19993,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.index_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -20925,13 +20079,6 @@ 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()] @@ -21016,13 +20163,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_indexes) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21117,13 +20257,6 @@ 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()] @@ -21208,13 +20341,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.max_indexes) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21295,12 +20421,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21362,11 +20482,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.stats_obj) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21478,15 +20593,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21548,11 +20654,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.stats_obj) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21664,15 +20765,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21757,13 +20849,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.col_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21876,15 +20961,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -21981,14 +21057,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - value = (value * 31) ^ hash(self.col_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22101,15 +21169,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22171,11 +21230,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22262,13 +21316,6 @@ 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()] @@ -22330,11 +21377,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22421,13 +21463,6 @@ 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()] @@ -22489,11 +21524,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22580,13 +21610,6 @@ 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()] @@ -22648,11 +21671,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22764,15 +21782,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22869,14 +21878,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.part_name) - value = (value * 31) ^ hash(self.col_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -22988,15 +21989,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23081,13 +22073,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.db_name) - value = (value * 31) ^ hash(self.tbl_name) - value = (value * 31) ^ hash(self.col_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23199,15 +22184,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23269,11 +22245,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.func) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23374,14 +22345,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - value = (value * 31) ^ hash(self.o4) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23454,12 +22417,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.funcName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23534,12 +22491,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23625,13 +22576,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.funcName) - value = (value * 31) ^ hash(self.newFunc) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23706,12 +22650,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23784,12 +22722,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.pattern) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23870,12 +22802,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -23948,12 +22874,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.funcName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24040,13 +22960,6 @@ 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()] @@ -24089,10 +23002,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24166,12 +23075,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24233,11 +23136,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.role) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24310,12 +23208,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24376,11 +23268,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.role_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24453,12 +23340,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24501,10 +23382,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24585,12 +23462,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24711,16 +23582,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.role_name) - value = (value * 31) ^ hash(self.principal_name) - value = (value * 31) ^ hash(self.principal_type) - value = (value * 31) ^ hash(self.grantor) - value = (value * 31) ^ hash(self.grantorType) - value = (value * 31) ^ hash(self.grant_option) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24793,12 +23654,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24883,13 +23738,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.role_name) - value = (value * 31) ^ hash(self.principal_name) - value = (value * 31) ^ hash(self.principal_type) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -24962,12 +23810,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25040,12 +23882,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.principal_name) - value = (value * 31) ^ hash(self.principal_type) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25127,12 +23963,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25194,11 +24024,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25272,12 +24097,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25339,11 +24158,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25417,12 +24231,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25484,11 +24292,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25562,12 +24365,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25661,13 +24458,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.hiveObject) - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25741,12 +24531,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25832,13 +24616,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.principal_name) - value = (value * 31) ^ hash(self.principal_type) - value = (value * 31) ^ hash(self.hiveObject) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25920,12 +24697,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -25987,11 +24758,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.privileges) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26064,12 +24830,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26131,11 +24891,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.privileges) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26208,12 +24963,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26275,11 +25024,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.request) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26353,12 +25097,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26439,12 +25177,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.user_name) - value = (value * 31) ^ hash(self.group_names) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26525,12 +25257,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26603,12 +25329,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.token_owner) - value = (value * 31) ^ hash(self.renewer_kerberos_principal_name) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26681,12 +25401,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26747,11 +25461,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.token_str_form) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26824,12 +25533,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26890,11 +25593,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.token_str_form) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -26956,11 +25654,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27003,10 +25696,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27067,11 +25756,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27114,10 +25798,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27178,11 +25858,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27244,11 +25919,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27309,11 +25979,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27375,11 +26040,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27441,11 +26101,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27507,11 +26162,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27586,12 +26236,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27653,11 +26297,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27744,13 +26383,6 @@ 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()] @@ -27812,11 +26444,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27916,14 +26543,6 @@ 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) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -27985,11 +26604,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28064,12 +26678,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28131,11 +26739,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28196,11 +26799,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28262,11 +26860,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.ids) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28354,13 +26947,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - value = (value * 31) ^ hash(self.o3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28422,11 +27008,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txns) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28487,11 +27068,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28553,11 +27129,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28600,10 +27171,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28665,11 +27232,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28730,11 +27292,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28796,11 +27353,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28875,12 +27427,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.o1) - value = (value * 31) ^ hash(self.o2) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -28942,11 +27488,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29007,11 +27548,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29054,10 +27590,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29118,11 +27650,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29184,11 +27711,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.rqst) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -29249,11 +27771,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/constants.py b/metastore/src/gen/thrift/gen-py/hive_metastore/constants.py index f86fda9..81f70eb 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/constants.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # 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 0b80390..850ac15 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -275,12 +275,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.version) - value = (value * 31) ^ hash(self.comments) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -365,13 +359,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.type) - value = (value * 31) ^ hash(self.comment) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -477,14 +464,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.type1) - value = (value * 31) ^ hash(self.type2) - value = (value * 31) ^ hash(self.fields) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -601,15 +580,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.objectType) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.objectName) - value = (value * 31) ^ hash(self.partValues) - value = (value * 31) ^ hash(self.columnName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -718,15 +688,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.privilege) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.grantor) - value = (value * 31) ^ hash(self.grantorType) - value = (value * 31) ^ hash(self.grantOption) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -825,14 +786,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.hiveObject) - value = (value * 31) ^ hash(self.principalName) - value = (value * 31) ^ hash(self.principalType) - value = (value * 31) ^ hash(self.grantInfo) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -902,11 +855,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.privileges) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -950,7 +898,7 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.userPrivileges = {} - (_ktype22, _vtype23, _size21 ) = iprot.readMapBegin() + (_ktype22, _vtype23, _size21 ) = iprot.readMapBegin() for _i25 in xrange(_size21): _key26 = iprot.readString(); _val27 = [] @@ -967,7 +915,7 @@ def read(self, iprot): elif fid == 2: if ftype == TType.MAP: self.groupPrivileges = {} - (_ktype35, _vtype36, _size34 ) = iprot.readMapBegin() + (_ktype35, _vtype36, _size34 ) = iprot.readMapBegin() for _i38 in xrange(_size34): _key39 = iprot.readString(); _val40 = [] @@ -984,7 +932,7 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.rolePrivileges = {} - (_ktype48, _vtype49, _size47 ) = iprot.readMapBegin() + (_ktype48, _vtype49, _size47 ) = iprot.readMapBegin() for _i51 in xrange(_size47): _key52 = iprot.readString(); _val53 = [] @@ -1048,13 +996,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.userPrivileges) - value = (value * 31) ^ hash(self.groupPrivileges) - value = (value * 31) ^ hash(self.rolePrivileges) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1140,13 +1081,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.requestType) - value = (value * 31) ^ hash(self.privileges) - value = (value * 31) ^ hash(self.revokeGrantOption) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1207,11 +1141,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1296,13 +1225,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.roleName) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.ownerName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1435,17 +1357,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.roleName) - value = (value * 31) ^ hash(self.principalName) - value = (value * 31) ^ hash(self.principalType) - value = (value * 31) ^ hash(self.grantOption) - value = (value * 31) ^ hash(self.grantTime) - value = (value * 31) ^ hash(self.grantorName) - value = (value * 31) ^ hash(self.grantorPrincipalType) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1522,12 +1433,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.principal_name) - value = (value * 31) ^ hash(self.principal_type) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1599,11 +1504,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.principalGrants) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1666,11 +1566,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.roleName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1742,11 +1637,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.principalGrants) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1879,17 +1769,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.requestType) - value = (value * 31) ^ hash(self.roleName) - value = (value * 31) ^ hash(self.principalName) - value = (value * 31) ^ hash(self.principalType) - value = (value * 31) ^ hash(self.grantor) - value = (value * 31) ^ hash(self.grantorType) - value = (value * 31) ^ hash(self.grantOption) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1950,11 +1829,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2025,7 +1899,7 @@ def read(self, iprot): elif fid == 4: if ftype == TType.MAP: self.parameters = {} - (_ktype84, _vtype85, _size83 ) = iprot.readMapBegin() + (_ktype84, _vtype85, _size83 ) = iprot.readMapBegin() for _i87 in xrange(_size83): _key88 = iprot.readString(); _val89 = iprot.readString(); @@ -2098,17 +1972,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.description) - value = (value * 31) ^ hash(self.locationUri) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.privileges) - value = (value * 31) ^ hash(self.ownerName) - value = (value * 31) ^ hash(self.ownerType) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2162,7 +2025,7 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.parameters = {} - (_ktype93, _vtype94, _size92 ) = iprot.readMapBegin() + (_ktype93, _vtype94, _size92 ) = iprot.readMapBegin() for _i96 in xrange(_size92): _key97 = iprot.readString(); _val98 = iprot.readString(); @@ -2203,13 +2066,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.name) - value = (value * 31) ^ hash(self.serializationLib) - value = (value * 31) ^ hash(self.parameters) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2282,12 +2138,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.col) - value = (value * 31) ^ hash(self.order) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2356,7 +2206,7 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.skewedColValueLocationMaps = {} - (_ktype120, _vtype121, _size119 ) = iprot.readMapBegin() + (_ktype120, _vtype121, _size119 ) = iprot.readMapBegin() for _i123 in xrange(_size119): _key124 = [] (_etype129, _size126) = iprot.readListBegin() @@ -2414,13 +2264,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.skewedColNames) - value = (value * 31) ^ hash(self.skewedColValues) - value = (value * 31) ^ hash(self.skewedColValueLocationMaps) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2554,7 +2397,7 @@ def read(self, iprot): elif fid == 10: if ftype == TType.MAP: self.parameters = {} - (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() + (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() for _i160 in xrange(_size156): _key161 = iprot.readString(); _val162 = iprot.readString(); @@ -2651,22 +2494,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.cols) - value = (value * 31) ^ hash(self.location) - value = (value * 31) ^ hash(self.inputFormat) - value = (value * 31) ^ hash(self.outputFormat) - value = (value * 31) ^ hash(self.compressed) - value = (value * 31) ^ hash(self.numBuckets) - value = (value * 31) ^ hash(self.serdeInfo) - value = (value * 31) ^ hash(self.bucketCols) - value = (value * 31) ^ hash(self.sortCols) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.skewedInfo) - value = (value * 31) ^ hash(self.storedAsSubDirectories) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2790,7 +2617,7 @@ def read(self, iprot): elif fid == 9: if ftype == TType.MAP: self.parameters = {} - (_ktype175, _vtype176, _size174 ) = iprot.readMapBegin() + (_ktype175, _vtype176, _size174 ) = iprot.readMapBegin() for _i178 in xrange(_size174): _key179 = iprot.readString(); _val180 = iprot.readString(); @@ -2904,24 +2731,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.owner) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.lastAccessTime) - value = (value * 31) ^ hash(self.retention) - value = (value * 31) ^ hash(self.sd) - value = (value * 31) ^ hash(self.partitionKeys) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.viewOriginalText) - value = (value * 31) ^ hash(self.viewExpandedText) - value = (value * 31) ^ hash(self.tableType) - value = (value * 31) ^ hash(self.privileges) - value = (value * 31) ^ hash(self.temporary) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3016,7 +2825,7 @@ def read(self, iprot): elif fid == 7: if ftype == TType.MAP: self.parameters = {} - (_ktype191, _vtype192, _size190 ) = iprot.readMapBegin() + (_ktype191, _vtype192, _size190 ) = iprot.readMapBegin() for _i194 in xrange(_size190): _key195 = iprot.readString(); _val196 = iprot.readString(); @@ -3086,18 +2895,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.lastAccessTime) - value = (value * 31) ^ hash(self.sd) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.privileges) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3175,7 +2972,7 @@ def read(self, iprot): elif fid == 5: if ftype == TType.MAP: self.parameters = {} - (_ktype207, _vtype208, _size206 ) = iprot.readMapBegin() + (_ktype207, _vtype208, _size206 ) = iprot.readMapBegin() for _i210 in xrange(_size206): _key211 = iprot.readString(); _val212 = iprot.readString(); @@ -3237,16 +3034,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.lastAccessTime) - value = (value * 31) ^ hash(self.relativePath) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.privileges) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3329,12 +3116,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partitions) - value = (value * 31) ^ hash(self.sd) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3404,11 +3185,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partitions) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3519,15 +3295,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.rootPath) - value = (value * 31) ^ hash(self.sharedSDPartitionSpec) - value = (value * 31) ^ hash(self.partitionList) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3633,7 +3400,7 @@ def read(self, iprot): elif fid == 9: if ftype == TType.MAP: self.parameters = {} - (_ktype231, _vtype232, _size230 ) = iprot.readMapBegin() + (_ktype231, _vtype232, _size230 ) = iprot.readMapBegin() for _i234 in xrange(_size230): _key235 = iprot.readString(); _val236 = iprot.readString(); @@ -3707,20 +3474,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.indexName) - value = (value * 31) ^ hash(self.indexHandlerClass) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.origTableName) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.lastAccessTime) - value = (value * 31) ^ hash(self.indexTableName) - value = (value * 31) ^ hash(self.sd) - value = (value * 31) ^ hash(self.parameters) - value = (value * 31) ^ hash(self.deferredRebuild) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3811,13 +3564,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.numTrues) - value = (value * 31) ^ hash(self.numFalses) - value = (value * 31) ^ hash(self.numNulls) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3918,14 +3664,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lowValue) - value = (value * 31) ^ hash(self.highValue) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4026,14 +3764,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lowValue) - value = (value * 31) ^ hash(self.highValue) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4138,14 +3868,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.maxColLen) - value = (value * 31) ^ hash(self.avgColLen) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4236,13 +3958,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.maxColLen) - value = (value * 31) ^ hash(self.avgColLen) - value = (value * 31) ^ hash(self.numNulls) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4320,12 +4035,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.unscaled) - value = (value * 31) ^ hash(self.scale) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4428,14 +4137,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lowValue) - value = (value * 31) ^ hash(self.highValue) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4498,11 +4199,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.daysSinceEpoch) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4605,14 +4301,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lowValue) - value = (value * 31) ^ hash(self.highValue) - value = (value * 31) ^ hash(self.numNulls) - value = (value * 31) ^ hash(self.numDVs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4752,17 +4440,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.booleanStats) - value = (value * 31) ^ hash(self.longStats) - value = (value * 31) ^ hash(self.doubleStats) - value = (value * 31) ^ hash(self.stringStats) - value = (value * 31) ^ hash(self.binaryStats) - value = (value * 31) ^ hash(self.decimalStats) - value = (value * 31) ^ hash(self.dateStats) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4854,13 +4531,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.colName) - value = (value * 31) ^ hash(self.colType) - value = (value * 31) ^ hash(self.statsData) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4975,15 +4645,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.isTblLevel) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.partName) - value = (value * 31) ^ hash(self.lastAnalyzed) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5070,12 +4731,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.statsDesc) - value = (value * 31) ^ hash(self.statsObj) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5161,12 +4816,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.colStats) - value = (value * 31) ^ hash(self.partsFound) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5238,11 +4887,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.colStats) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5294,7 +4938,7 @@ def read(self, iprot): elif fid == 2: if ftype == TType.MAP: self.properties = {} - (_ktype267, _vtype268, _size266 ) = iprot.readMapBegin() + (_ktype267, _vtype268, _size266 ) = iprot.readMapBegin() for _i270 in xrange(_size266): _key271 = iprot.readString(); _val272 = iprot.readString(); @@ -5334,12 +4978,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.fieldSchemas) - value = (value * 31) ^ hash(self.properties) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5377,7 +5015,7 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.properties = {} - (_ktype277, _vtype278, _size276 ) = iprot.readMapBegin() + (_ktype277, _vtype278, _size276 ) = iprot.readMapBegin() for _i280 in xrange(_size276): _key281 = iprot.readString(); _val282 = iprot.readString(); @@ -5410,11 +5048,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.properties) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5500,12 +5133,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partitions) - value = (value * 31) ^ hash(self.hasUnknownPartitions) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5620,15 +5247,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.expr) - value = (value * 31) ^ hash(self.defaultPartitionName) - value = (value * 31) ^ hash(self.maxParts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5700,11 +5318,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.tableStats) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5742,7 +5355,7 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partStats = {} - (_ktype300, _vtype301, _size299 ) = iprot.readMapBegin() + (_ktype300, _vtype301, _size299 ) = iprot.readMapBegin() for _i303 in xrange(_size299): _key304 = iprot.readString(); _val305 = [] @@ -5786,11 +5399,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partStats) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5889,13 +5497,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.colNames) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6016,14 +5617,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.colNames) - value = (value * 31) ^ hash(self.partNames) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6093,11 +5686,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partitions) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6223,15 +5811,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.parts) - value = (value * 31) ^ hash(self.ifNotExists) - value = (value * 31) ^ hash(self.needResult) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6301,11 +5880,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.partitions) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6380,12 +5954,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.expr) - value = (value * 31) ^ hash(self.partArchiveLevel) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6475,12 +6043,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.names) - value = (value * 31) ^ hash(self.exprs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6633,18 +6195,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tblName) - value = (value * 31) ^ hash(self.parts) - value = (value * 31) ^ hash(self.deleteData) - value = (value * 31) ^ hash(self.ifExists) - value = (value * 31) ^ hash(self.ignoreProtection) - value = (value * 31) ^ hash(self.environmentContext) - value = (value * 31) ^ hash(self.needResult) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6717,12 +6267,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.resourceType) - value = (value * 31) ^ hash(self.uri) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6876,18 +6420,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.functionName) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.className) - value = (value * 31) ^ hash(self.ownerName) - value = (value * 31) ^ hash(self.ownerType) - value = (value * 31) ^ hash(self.createTime) - value = (value * 31) ^ hash(self.functionType) - value = (value * 31) ^ hash(self.resourceUris) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6992,14 +6524,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.id) - value = (value * 31) ^ hash(self.state) - value = (value * 31) ^ hash(self.user) - value = (value * 31) ^ hash(self.hostname) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7085,12 +6609,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txn_high_water_mark) - value = (value * 31) ^ hash(self.open_txns) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7175,12 +6693,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txn_high_water_mark) - value = (value * 31) ^ hash(self.open_txns) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7271,13 +6783,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.num_txns) - value = (value * 31) ^ hash(self.user) - value = (value * 31) ^ hash(self.hostname) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7348,11 +6853,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txn_ids) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7415,11 +6915,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txnid) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7482,11 +6977,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txnid) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7601,15 +7091,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.type) - value = (value * 31) ^ hash(self.level) - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tablename) - value = (value * 31) ^ hash(self.partitionname) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7721,14 +7202,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.component) - value = (value * 31) ^ hash(self.txnid) - value = (value * 31) ^ hash(self.user) - value = (value * 31) ^ hash(self.hostname) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7805,12 +7278,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lockid) - value = (value * 31) ^ hash(self.state) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7873,11 +7340,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lockid) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7940,11 +7402,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lockid) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -7987,10 +7444,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8185,21 +7638,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lockid) - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tablename) - value = (value * 31) ^ hash(self.partname) - value = (value * 31) ^ hash(self.state) - value = (value * 31) ^ hash(self.type) - value = (value * 31) ^ hash(self.txnid) - value = (value * 31) ^ hash(self.lastheartbeat) - value = (value * 31) ^ hash(self.acquiredat) - value = (value * 31) ^ hash(self.user) - value = (value * 31) ^ hash(self.hostname) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8269,11 +7707,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.locks) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8346,12 +7779,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lockid) - value = (value * 31) ^ hash(self.txnid) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8428,12 +7855,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.min) - value = (value * 31) ^ hash(self.max) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8526,12 +7947,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.aborted) - value = (value * 31) ^ hash(self.nosuch) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8646,15 +8061,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tablename) - value = (value * 31) ^ hash(self.partitionname) - value = (value * 31) ^ hash(self.type) - value = (value * 31) ^ hash(self.runas) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8697,10 +8103,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8853,18 +8255,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tablename) - value = (value * 31) ^ hash(self.partitionname) - value = (value * 31) ^ hash(self.type) - value = (value * 31) ^ hash(self.state) - value = (value * 31) ^ hash(self.workerid) - value = (value * 31) ^ hash(self.start) - value = (value * 31) ^ hash(self.runAs) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -8936,11 +8326,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.compacts) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9053,14 +8438,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.txnid) - value = (value * 31) ^ hash(self.dbname) - value = (value * 31) ^ hash(self.tablename) - value = (value * 31) ^ hash(self.partitionnames) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9135,12 +8512,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.lastEvent) - value = (value * 31) ^ hash(self.maxEvents) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9269,16 +8640,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.eventId) - value = (value * 31) ^ hash(self.eventTime) - value = (value * 31) ^ hash(self.eventType) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9350,11 +8711,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.events) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9417,11 +8773,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.eventId) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9492,11 +8843,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.filesAdded) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9558,11 +8904,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.insertData) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9684,15 +9025,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.successful) - value = (value * 31) ^ hash(self.data) - value = (value * 31) ^ hash(self.dbName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.partitionVals) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9735,10 +9067,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9808,11 +9136,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.functions) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9876,11 +9199,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -9944,11 +9262,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10012,11 +9325,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10080,11 +9388,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10148,11 +9451,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10216,11 +9514,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10284,11 +9577,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10352,11 +9640,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10420,11 +9703,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10488,11 +9766,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10556,11 +9829,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10624,11 +9892,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10692,11 +9955,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10760,11 +10018,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10828,11 +10081,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -10896,11 +10144,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/metastore/src/gen/thrift/gen-rb/hive_metastore_constants.rb b/metastore/src/gen/thrift/gen-rb/hive_metastore_constants.rb index 7ef6f43..3208ecd 100644 --- a/metastore/src/gen/thrift/gen-rb/hive_metastore_constants.rb +++ b/metastore/src/gen/thrift/gen-rb/hive_metastore_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # 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 4bd4302..03c5197 100644 --- a/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ b/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # 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 73a1d20..cff15dc 100644 --- a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -969,6 +969,23 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_by_expr failed: unknown result') end + def get_num_partitions_by_filter(db_name, tbl_name, filter, max_parts) + send_get_num_partitions_by_filter(db_name, tbl_name, filter, max_parts) + return recv_get_num_partitions_by_filter() + end + + def send_get_num_partitions_by_filter(db_name, tbl_name, filter, max_parts) + send_message('get_num_partitions_by_filter', Get_num_partitions_by_filter_args, :db_name => db_name, :tbl_name => tbl_name, :filter => filter, :max_parts => max_parts) + end + + def recv_get_num_partitions_by_filter() + result = receive_message(Get_num_partitions_by_filter_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_num_partitions_by_filter failed: unknown result') + end + def get_partitions_by_names(db_name, tbl_name, names) send_get_partitions_by_names(db_name, tbl_name, names) return recv_get_partitions_by_names() @@ -2855,6 +2872,19 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_partitions_by_expr', seqid) end + def process_get_num_partitions_by_filter(seqid, iprot, oprot) + args = read_args(iprot, Get_num_partitions_by_filter_args) + result = Get_num_partitions_by_filter_result.new() + begin + result.success = @handler.get_num_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::NoSuchObjectException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_num_partitions_by_filter', seqid) + end + def process_get_partitions_by_names(seqid, iprot, oprot) args = read_args(iprot, Get_partitions_by_names_args) result = Get_partitions_by_names_result.new() @@ -5896,6 +5926,48 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_num_partitions_by_filter_args + include ::Thrift::Struct, ::Thrift::Struct_Union + DB_NAME = 1 + TBL_NAME = 2 + FILTER = 3 + MAX_PARTS = 4 + + FIELDS = { + DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'}, + TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'}, + FILTER => {:type => ::Thrift::Types::STRING, :name => 'filter'}, + MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_num_partitions_by_filter_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, + 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_partitions_by_names_args include ::Thrift::Struct, ::Thrift::Struct_Union DB_NAME = 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 1840e76..e6c9120 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -4550,6 +4550,25 @@ private void rethrowException(Exception e) } @Override + public int get_num_partitions_by_filter(final String dbName, + final String tblName, final String filter, final short maxParts) + throws MetaException, NoSuchObjectException, TException { + startTableFunction("get_num_partitions_by_filter", dbName, tblName); + + int ret = -1; + Exception ex = null; + try { + ret = getMS().getNumPartitionsByFilter(dbName, tblName, filter, maxParts); + } catch (Exception e) { + ex = e; + rethrowException(e); + } finally { + endFunction("get_num_partitions_by_filter", ret != -1, ex, tblName); + } + return ret; + } + + @Override public List get_partitions_by_names(final String dbName, final String tblName, final List partNames) throws MetaException, NoSuchObjectException, TException { 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 482f278..255a986 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -825,7 +825,7 @@ public boolean dropPartition(String db_name, String tbl_name, List part_ boolean deleteData, EnvironmentContext envContext) throws NoSuchObjectException, MetaException, TException { return client.drop_partition_with_environment_context(db_name, tbl_name, part_vals, deleteData, - envContext); + envContext); } @Override @@ -858,10 +858,10 @@ public boolean dropPartition(String db_name, String tbl_name, List part_ boolean ifExists, boolean needResult) throws NoSuchObjectException, MetaException, TException { return dropPartitions(dbName, tblName, partExprs, - PartitionDropOptions.instance() - .deleteData(deleteData) - .ifExists(ifExists) - .returnResults(needResult)); + PartitionDropOptions.instance() + .deleteData(deleteData) + .ifExists(ifExists) + .returnResults(needResult)); } @@ -1058,7 +1058,7 @@ public boolean dropType(String type) throws NoSuchObjectException, MetaException @Override public PartitionSpecProxy listPartitionSpecs(String dbName, String tableName, int maxParts) throws TException { return PartitionSpecProxy.Factory.get(filterHook.filterPartitionSpecs( - client.get_partitions_pspec(dbName, tableName, maxParts))); + client.get_partitions_pspec(dbName, tableName, maxParts))); } @Override @@ -1066,7 +1066,7 @@ public PartitionSpecProxy listPartitionSpecs(String dbName, String tableName, in List part_vals, short max_parts) throws NoSuchObjectException, MetaException, TException { return deepCopyPartitions(filterHook.filterPartitions( - client.get_partitions_ps(db_name, tbl_name, part_vals, max_parts))); + client.get_partitions_ps(db_name, tbl_name, part_vals, max_parts))); } @Override @@ -1083,7 +1083,7 @@ public PartitionSpecProxy listPartitionSpecs(String dbName, String tableName, in String user_name, List group_names) throws NoSuchObjectException, MetaException, TException { return deepCopyPartitions(filterHook.filterPartitions(client.get_partitions_ps_with_auth(db_name, - tbl_name, part_vals, max_parts, user_name, group_names))); + tbl_name, part_vals, max_parts, user_name, group_names))); } /** @@ -1113,7 +1113,7 @@ public PartitionSpecProxy listPartitionSpecsByFilter(String db_name, String tbl_ String filter, int max_parts) throws MetaException, NoSuchObjectException, TException { return PartitionSpecProxy.Factory.get(filterHook.filterPartitionSpecs( - client.get_part_specs_by_filter(db_name, tbl_name, filter, max_parts))); + client.get_part_specs_by_filter(db_name, tbl_name, filter, max_parts))); } @Override @@ -1147,7 +1147,6 @@ public boolean listPartitionsByExpr(String db_name, String tbl_name, byte[] expr return !r.isSetHasUnknownPartitions() || r.isHasUnknownPartitions(); // Assume the worst. } - /** * @param name * @return the database @@ -1303,6 +1302,27 @@ public boolean tableExists(String tableName) throws MetaException, client.get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)); } + /** + * Get number of partitions matching specified filter + * @param db_name the database name + * @param tbl_name the table name + * @param filter the filter string, + * for example "part1 = \"p1_abc\" and part2 <= "\p2_test\"". Filtering can + * be done only on string partition keys. + * @param max_parts the maximum number of partitions to return, + * all partitions are returned if -1 is passed + * @return number of partitions + * @throws MetaException + * @throws NoSuchObjectException + * @throws TException + */ + public int getNumPartitionsByFilter(String db_name, String tbl_name, + String filter, short max_parts) throws MetaException, + NoSuchObjectException, TException { +// return client.get_num_partitions_by_filter(db_name, tbl_name, filter, max_parts); + return 0; + } + @Override public void alter_partition(String dbName, String tblName, Partition newPart) throws InvalidOperationException, MetaException, TException { 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 5fde6d3..e6b2dcb 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -497,7 +497,25 @@ public PartitionSpecProxy listPartitionSpecs(String dbName, String tableName, in List part_vals, short max_parts) throws MetaException, TException, NoSuchObjectException; - /** + /** + * Get number of partitions matching specified filter + * @param db_name the database name + * @param tbl_name the table name + * @param filter the filter string, + * for example "part1 = \"p1_abc\" and part2 <= "\p2_test\"". Filtering can + * be done only on string partition keys. + * @param max_parts the maximum number of partitions to return, + * all partitions are returned if -1 is passed + * @return number of partitions + * @throws MetaException + * @throws NoSuchObjectException + * @throws TException + */ + public int getNumPartitionsByFilter(String dbName, String tableName, + String filter, short s) throws MetaException, NoSuchObjectException, TException; + + + /** * Get list of partitions matching specified filter * @param db_name the database name * @param tbl_name the table name diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java index 5776ec6..2c911c0 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java @@ -69,6 +69,7 @@ import org.apache.hadoop.hive.metastore.parser.ExpressionTree.Operator; import org.apache.hadoop.hive.metastore.parser.ExpressionTree.TreeNode; import org.apache.hadoop.hive.metastore.parser.ExpressionTree.TreeVisitor; +import org.apache.hadoop.hive.metastore.parser.FilterParser; import org.apache.hadoop.hive.serde.serdeConstants; import org.apache.hive.common.util.BloomFilter; import org.datanucleus.store.rdbms.query.ForwardQueryResult; @@ -398,6 +399,19 @@ public Database getDatabase(String dbName) throws MetaException{ isViewTable, sqlFilter, params, joins, max); } + public int getNumPartitionsViaSqlFilter(Table table, FilterParser parser, + Integer max) throws MetaException { + List params = new ArrayList(); + Listjoins = new ArrayList(); + // Derby and Oracle do not interpret filters ANSI-properly in some cases and need a workaround. + boolean dbHasJoinCastBug = (dbType == DB.DERBY || dbType == DB.ORACLE); + String sqlFilter = (parser == null) ? null + : PartitionFilterGenerator.generateSqlFilter(table, parser.tree, params, joins, dbHasJoinCastBug); + return getNumPartitionsViaSqlFilterInternal(table.getDbName(), table.getTableName(), + isViewTable(table), sqlFilter, params, joins, max); + } + + /** * Gets all partitions of a table by using direct SQL queries. * @param dbName Metastore db name. @@ -408,7 +422,7 @@ public Database getDatabase(String dbName) throws MetaException{ public List getPartitions( String dbName, String tblName, Integer max) throws MetaException { return getPartitionsViaSqlFilterInternal(dbName, tblName, null, - null, new ArrayList(), new ArrayList(), max); + null, new ArrayList(), new ArrayList(), max); } private static Boolean isViewTable(Table t) { @@ -812,6 +826,47 @@ public void apply(SerDeInfo t, Object[] fields) { return orderedResult; } + private int getNumPartitionsViaSqlFilterInternal(String dbName, String tblName, + Boolean isView, String sqlFilter, List paramsForFilter, + List joinsForFilter, Integer max) throws MetaException { + boolean doTrace = LOG.isDebugEnabled(); + dbName = dbName.toLowerCase(); + tblName = tblName.toLowerCase(); + + // Get all simple fields for partitions and related objects, which we can map one-on-one. + // We will do this in 2 queries to use different existing indices for each one. + // We do not get table and DB name, assuming they are the same as we are using to filter. + // TODO: We might want to tune the indexes instead. With current ones MySQL performs + // poorly, esp. with 'order by' w/o index on large tables, even if the number of actual + // results is small (query that returns 8 out of 32k partitions can go 4sec. to 0sec. by + // just adding a PART_ID IN (...) filter that doesn't alter the results to it, probably + // causing it to not sort the entire table due to not knowing how selective the filter is. + String queryText = + "select PARTITIONS.PART_ID from PARTITIONS" + + " inner join TBLS on PARTITIONS.TBL_ID = TBLS.TBL_ID " + + " inner join DBS on TBLS.DB_ID = DBS.DB_ID " + + join(joinsForFilter, ' ') + " where TBLS.TBL_NAME = ? and DBS.NAME = ?" + + ((sqlFilter == null) ? "" : " " + sqlFilter); + Object[] params = new Object[paramsForFilter.size() + 2]; + params[0] = tblName; + params[1] = dbName; + for (int i = 0; i < paramsForFilter.size(); ++i) { + params[i + 2] = paramsForFilter.get(i); + } + + long start = doTrace ? System.nanoTime() : 0; + Query query = pm.newQuery("javax.jdo.query.SQL", queryText); + if (max != null) { + query.setRange(0, max.shortValue()); + } + @SuppressWarnings("unchecked") + List sqlResult = (List)query.executeWithArray(params); + long queryTime = doTrace ? System.nanoTime() : 0; + timingTrace(doTrace, queryText, start, queryTime); + return sqlResult.size(); + } + + private void timingTrace(boolean doTrace, String queryText, long start, long queryTime) { if (!doTrace) return; LOG.debug("Direct SQL query in " + (queryTime - start) / 1000000.0 + "ms + " + diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index d165fc8..a605e0e 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -2569,6 +2569,39 @@ protected String describeResult() { } } + @Override + public int getNumPartitionsByFilter(String dbName, String tblName, + String filter, short maxParts) throws MetaException, NoSuchObjectException { + return getNumPartitionsByFilterInternal(dbName, tblName, filter, maxParts, + true, true); + } + + protected int getNumPartitionsByFilterInternal(String dbName, String tblName, + String filter, final short maxParts, boolean allowSql, boolean allowJdo) + throws MetaException, NoSuchObjectException { + final ExpressionTree tree = (filter != null && !filter.isEmpty()) + ? getFilterParser(filter).tree : ExpressionTree.EMPTY_TREE; + return new GetListHelper(dbName, tblName, allowSql, allowJdo) { + @Override + protected List getSqlResult(GetHelper> ctx) throws MetaException { + List parts = directSql.getPartitionsViaSqlFilter( + ctx.getTable(), tree, (maxParts < 0) ? null : (int)maxParts); + if (parts == null) { + // Cannot push down SQL filter. The message has been logged internally. + // This is not an error so don't roll back, just go to JDO. + ctx.disableDirectSql(); + } + return parts; + } + @Override + protected List getJdoResult( + GetHelper> ctx) throws MetaException, NoSuchObjectException { + return getPartitionsViaOrmFilter(ctx.getTable(), tree, maxParts, true); + } + }.run(true).size(); + } + + protected List getPartitionsByFilterInternal(String dbName, String tblName, String filter, final short maxParts, boolean allowSql, boolean allowJdo) throws MetaException, NoSuchObjectException { diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java index 7c85eea..9ed0e56 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java @@ -225,6 +225,9 @@ public abstract boolean getPartitionsByExpr(String dbName, String tblName, byte[] expr, String defaultPartitionName, short maxParts, List result) throws TException; + public abstract int getNumPartitionsByFilter(String dbName, String tblName, String filter, short maxParts) + throws MetaException, NoSuchObjectException; + public abstract List getPartitionsByNames( String dbName, String tblName, List partNames) throws MetaException, NoSuchObjectException; diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java index f184c56..08b51bc 100644 --- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java +++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java @@ -311,6 +311,12 @@ public void alterIndex(String dbName, String baseTblName, String name, Index new } @Override + public int getNumPartitionsByFilter(String dbName, String tblName, + String filter, short maxParts) throws MetaException, NoSuchObjectException { + return objectStore.getNumPartitionsByFilter(dbName, tblName, filter, maxParts); + } + + @Override public List getPartitionsByNames(String dbName, String tblName, List partNames) throws MetaException, NoSuchObjectException { return objectStore.getPartitionsByNames(dbName, tblName, partNames); diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java index 83fb4bb..a5b28e1 100644 --- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java +++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java @@ -325,6 +325,13 @@ public void alterIndex(String dbname, String baseTblName, String name, Index new } @Override + public int getNumPartitionsByFilter(String dbName, String tblName, String filter, + short maxParts) throws MetaException, NoSuchObjectException { + + return -1; + } + + @Override public List getPartitionsByNames(String dbName, String tblName, List partNames) throws MetaException, NoSuchObjectException { diff --git a/ql/src/gen/thrift/gen-cpp/queryplan_constants.cpp b/ql/src/gen/thrift/gen-cpp/queryplan_constants.cpp index 280edbe..4f9aeaf 100644 --- a/ql/src/gen/thrift/gen-cpp/queryplan_constants.cpp +++ b/ql/src/gen/thrift/gen-cpp/queryplan_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-cpp/queryplan_constants.h b/ql/src/gen/thrift/gen-cpp/queryplan_constants.h index 6bee48d..5dce5dd 100644 --- a/ql/src/gen/thrift/gen-cpp/queryplan_constants.h +++ b/ql/src/gen/thrift/gen-cpp/queryplan_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-cpp/queryplan_types.cpp b/ql/src/gen/thrift/gen-cpp/queryplan_types.cpp index a1fb60b..e36299a 100644 --- a/ql/src/gen/thrift/gen-cpp/queryplan_types.cpp +++ b/ql/src/gen/thrift/gen-cpp/queryplan_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,9 +7,6 @@ #include "queryplan_types.h" #include -#include - -#include namespace Apache { namespace Hadoop { namespace Hive { @@ -133,23 +130,6 @@ const char* _kStageTypeNames[] = { }; const std::map _StageType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(12, _kStageTypeValues, _kStageTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -Adjacency::~Adjacency() throw() { -} - - -void Adjacency::__set_node(const std::string& val) { - this->node = val; -} - -void Adjacency::__set_children(const std::vector & val) { - this->children = val; -} - -void Adjacency::__set_adjacencyType(const AdjacencyType::type val) { - this->adjacencyType = val; -} - const char* Adjacency::ascii_fingerprint = "BC4F8C394677A1003AA9F56ED26D8204"; const uint8_t Adjacency::binary_fingerprint[16] = {0xBC,0x4F,0x8C,0x39,0x46,0x77,0xA1,0x00,0x3A,0xA9,0xF5,0x6E,0xD2,0x6D,0x82,0x04}; @@ -225,7 +205,6 @@ uint32_t Adjacency::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Adjacency::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Adjacency"); xfer += oprot->writeFieldBegin("node", ::apache::thrift::protocol::T_STRING, 1); @@ -250,7 +229,6 @@ uint32_t Adjacency::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -262,46 +240,6 @@ void swap(Adjacency &a, Adjacency &b) { swap(a.__isset, b.__isset); } -Adjacency::Adjacency(const Adjacency& other7) { - node = other7.node; - children = other7.children; - adjacencyType = other7.adjacencyType; - __isset = other7.__isset; -} -Adjacency& Adjacency::operator=(const Adjacency& other8) { - node = other8.node; - children = other8.children; - adjacencyType = other8.adjacencyType; - __isset = other8.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Adjacency& obj) { - using apache::thrift::to_string; - out << "Adjacency("; - out << "node=" << to_string(obj.node); - out << ", " << "children=" << to_string(obj.children); - out << ", " << "adjacencyType=" << to_string(obj.adjacencyType); - out << ")"; - return out; -} - - -Graph::~Graph() throw() { -} - - -void Graph::__set_nodeType(const NodeType::type val) { - this->nodeType = val; -} - -void Graph::__set_roots(const std::vector & val) { - this->roots = val; -} - -void Graph::__set_adjacencyList(const std::vector & val) { - this->adjacencyList = val; -} - const char* Graph::ascii_fingerprint = "1F7FB604B3EF8F7AFB5DEAD15F2FC0B5"; const uint8_t Graph::binary_fingerprint[16] = {0x1F,0x7F,0xB6,0x04,0xB3,0xEF,0x8F,0x7A,0xFB,0x5D,0xEA,0xD1,0x5F,0x2F,0xC0,0xB5}; @@ -327,9 +265,9 @@ uint32_t Graph::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast9; - xfer += iprot->readI32(ecast9); - this->nodeType = (NodeType::type)ecast9; + int32_t ecast7; + xfer += iprot->readI32(ecast7); + this->nodeType = (NodeType::type)ecast7; this->__isset.nodeType = true; } else { xfer += iprot->skip(ftype); @@ -339,14 +277,14 @@ uint32_t Graph::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->roots.clear(); - uint32_t _size10; - ::apache::thrift::protocol::TType _etype13; - xfer += iprot->readListBegin(_etype13, _size10); - this->roots.resize(_size10); - uint32_t _i14; - for (_i14 = 0; _i14 < _size10; ++_i14) + uint32_t _size8; + ::apache::thrift::protocol::TType _etype11; + xfer += iprot->readListBegin(_etype11, _size8); + this->roots.resize(_size8); + uint32_t _i12; + for (_i12 = 0; _i12 < _size8; ++_i12) { - xfer += iprot->readString(this->roots[_i14]); + xfer += iprot->readString(this->roots[_i12]); } xfer += iprot->readListEnd(); } @@ -359,14 +297,14 @@ uint32_t Graph::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->adjacencyList.clear(); - uint32_t _size15; - ::apache::thrift::protocol::TType _etype18; - xfer += iprot->readListBegin(_etype18, _size15); - this->adjacencyList.resize(_size15); - uint32_t _i19; - for (_i19 = 0; _i19 < _size15; ++_i19) + uint32_t _size13; + ::apache::thrift::protocol::TType _etype16; + xfer += iprot->readListBegin(_etype16, _size13); + this->adjacencyList.resize(_size13); + uint32_t _i17; + for (_i17 = 0; _i17 < _size13; ++_i17) { - xfer += this->adjacencyList[_i19].read(iprot); + xfer += this->adjacencyList[_i17].read(iprot); } xfer += iprot->readListEnd(); } @@ -389,7 +327,6 @@ uint32_t Graph::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Graph::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Graph"); xfer += oprot->writeFieldBegin("nodeType", ::apache::thrift::protocol::T_I32, 1); @@ -399,10 +336,10 @@ uint32_t Graph::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("roots", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->roots.size())); - std::vector ::const_iterator _iter20; - for (_iter20 = this->roots.begin(); _iter20 != this->roots.end(); ++_iter20) + std::vector ::const_iterator _iter18; + for (_iter18 = this->roots.begin(); _iter18 != this->roots.end(); ++_iter18) { - xfer += oprot->writeString((*_iter20)); + xfer += oprot->writeString((*_iter18)); } xfer += oprot->writeListEnd(); } @@ -411,10 +348,10 @@ uint32_t Graph::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("adjacencyList", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->adjacencyList.size())); - std::vector ::const_iterator _iter21; - for (_iter21 = this->adjacencyList.begin(); _iter21 != this->adjacencyList.end(); ++_iter21) + std::vector ::const_iterator _iter19; + for (_iter19 = this->adjacencyList.begin(); _iter19 != this->adjacencyList.end(); ++_iter19) { - xfer += (*_iter21).write(oprot); + xfer += (*_iter19).write(oprot); } xfer += oprot->writeListEnd(); } @@ -422,7 +359,6 @@ uint32_t Graph::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -434,58 +370,6 @@ void swap(Graph &a, Graph &b) { swap(a.__isset, b.__isset); } -Graph::Graph(const Graph& other22) { - nodeType = other22.nodeType; - roots = other22.roots; - adjacencyList = other22.adjacencyList; - __isset = other22.__isset; -} -Graph& Graph::operator=(const Graph& other23) { - nodeType = other23.nodeType; - roots = other23.roots; - adjacencyList = other23.adjacencyList; - __isset = other23.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Graph& obj) { - using apache::thrift::to_string; - out << "Graph("; - out << "nodeType=" << to_string(obj.nodeType); - out << ", " << "roots=" << to_string(obj.roots); - out << ", " << "adjacencyList=" << to_string(obj.adjacencyList); - out << ")"; - return out; -} - - -Operator::~Operator() throw() { -} - - -void Operator::__set_operatorId(const std::string& val) { - this->operatorId = val; -} - -void Operator::__set_operatorType(const OperatorType::type val) { - this->operatorType = val; -} - -void Operator::__set_operatorAttributes(const std::map & val) { - this->operatorAttributes = val; -} - -void Operator::__set_operatorCounters(const std::map & val) { - this->operatorCounters = val; -} - -void Operator::__set_done(const bool val) { - this->done = val; -} - -void Operator::__set_started(const bool val) { - this->started = val; -} - const char* Operator::ascii_fingerprint = "30917C758A752485AF223B697479DE6C"; const uint8_t Operator::binary_fingerprint[16] = {0x30,0x91,0x7C,0x75,0x8A,0x75,0x24,0x85,0xAF,0x22,0x3B,0x69,0x74,0x79,0xDE,0x6C}; @@ -519,9 +403,9 @@ uint32_t Operator::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast24; - xfer += iprot->readI32(ecast24); - this->operatorType = (OperatorType::type)ecast24; + int32_t ecast20; + xfer += iprot->readI32(ecast20); + this->operatorType = (OperatorType::type)ecast20; this->__isset.operatorType = true; } else { xfer += iprot->skip(ftype); @@ -531,17 +415,17 @@ uint32_t Operator::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->operatorAttributes.clear(); - uint32_t _size25; - ::apache::thrift::protocol::TType _ktype26; - ::apache::thrift::protocol::TType _vtype27; - xfer += iprot->readMapBegin(_ktype26, _vtype27, _size25); - uint32_t _i29; - for (_i29 = 0; _i29 < _size25; ++_i29) + uint32_t _size21; + ::apache::thrift::protocol::TType _ktype22; + ::apache::thrift::protocol::TType _vtype23; + xfer += iprot->readMapBegin(_ktype22, _vtype23, _size21); + uint32_t _i25; + for (_i25 = 0; _i25 < _size21; ++_i25) { - std::string _key30; - xfer += iprot->readString(_key30); - std::string& _val31 = this->operatorAttributes[_key30]; - xfer += iprot->readString(_val31); + std::string _key26; + xfer += iprot->readString(_key26); + std::string& _val27 = this->operatorAttributes[_key26]; + xfer += iprot->readString(_val27); } xfer += iprot->readMapEnd(); } @@ -554,17 +438,17 @@ uint32_t Operator::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->operatorCounters.clear(); - uint32_t _size32; - ::apache::thrift::protocol::TType _ktype33; - ::apache::thrift::protocol::TType _vtype34; - xfer += iprot->readMapBegin(_ktype33, _vtype34, _size32); - uint32_t _i36; - for (_i36 = 0; _i36 < _size32; ++_i36) + uint32_t _size28; + ::apache::thrift::protocol::TType _ktype29; + ::apache::thrift::protocol::TType _vtype30; + xfer += iprot->readMapBegin(_ktype29, _vtype30, _size28); + uint32_t _i32; + for (_i32 = 0; _i32 < _size28; ++_i32) { - std::string _key37; - xfer += iprot->readString(_key37); - int64_t& _val38 = this->operatorCounters[_key37]; - xfer += iprot->readI64(_val38); + std::string _key33; + xfer += iprot->readString(_key33); + int64_t& _val34 = this->operatorCounters[_key33]; + xfer += iprot->readI64(_val34); } xfer += iprot->readMapEnd(); } @@ -603,7 +487,6 @@ uint32_t Operator::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Operator::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Operator"); xfer += oprot->writeFieldBegin("operatorId", ::apache::thrift::protocol::T_STRING, 1); @@ -617,11 +500,11 @@ uint32_t Operator::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("operatorAttributes", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->operatorAttributes.size())); - std::map ::const_iterator _iter39; - for (_iter39 = this->operatorAttributes.begin(); _iter39 != this->operatorAttributes.end(); ++_iter39) + std::map ::const_iterator _iter35; + for (_iter35 = this->operatorAttributes.begin(); _iter35 != this->operatorAttributes.end(); ++_iter35) { - xfer += oprot->writeString(_iter39->first); - xfer += oprot->writeString(_iter39->second); + xfer += oprot->writeString(_iter35->first); + xfer += oprot->writeString(_iter35->second); } xfer += oprot->writeMapEnd(); } @@ -630,11 +513,11 @@ uint32_t Operator::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("operatorCounters", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, static_cast(this->operatorCounters.size())); - std::map ::const_iterator _iter40; - for (_iter40 = this->operatorCounters.begin(); _iter40 != this->operatorCounters.end(); ++_iter40) + std::map ::const_iterator _iter36; + for (_iter36 = this->operatorCounters.begin(); _iter36 != this->operatorCounters.end(); ++_iter36) { - xfer += oprot->writeString(_iter40->first); - xfer += oprot->writeI64(_iter40->second); + xfer += oprot->writeString(_iter36->first); + xfer += oprot->writeI64(_iter36->second); } xfer += oprot->writeMapEnd(); } @@ -650,7 +533,6 @@ uint32_t Operator::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -665,77 +547,6 @@ void swap(Operator &a, Operator &b) { swap(a.__isset, b.__isset); } -Operator::Operator(const Operator& other41) { - operatorId = other41.operatorId; - operatorType = other41.operatorType; - operatorAttributes = other41.operatorAttributes; - operatorCounters = other41.operatorCounters; - done = other41.done; - started = other41.started; - __isset = other41.__isset; -} -Operator& Operator::operator=(const Operator& other42) { - operatorId = other42.operatorId; - operatorType = other42.operatorType; - operatorAttributes = other42.operatorAttributes; - operatorCounters = other42.operatorCounters; - done = other42.done; - started = other42.started; - __isset = other42.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Operator& obj) { - using apache::thrift::to_string; - out << "Operator("; - out << "operatorId=" << to_string(obj.operatorId); - out << ", " << "operatorType=" << to_string(obj.operatorType); - out << ", " << "operatorAttributes=" << to_string(obj.operatorAttributes); - out << ", " << "operatorCounters=" << to_string(obj.operatorCounters); - out << ", " << "done=" << to_string(obj.done); - out << ", " << "started=" << to_string(obj.started); - out << ")"; - return out; -} - - -Task::~Task() throw() { -} - - -void Task::__set_taskId(const std::string& val) { - this->taskId = val; -} - -void Task::__set_taskType(const TaskType::type val) { - this->taskType = val; -} - -void Task::__set_taskAttributes(const std::map & val) { - this->taskAttributes = val; -} - -void Task::__set_taskCounters(const std::map & val) { - this->taskCounters = val; -} - -void Task::__set_operatorGraph(const Graph& val) { - this->operatorGraph = val; -__isset.operatorGraph = true; -} - -void Task::__set_operatorList(const std::vector & val) { - this->operatorList = val; -__isset.operatorList = true; -} - -void Task::__set_done(const bool val) { - this->done = val; -} - -void Task::__set_started(const bool val) { - this->started = val; -} - const char* Task::ascii_fingerprint = "AC741A136EFA51843AFC3A12F6A793D1"; const uint8_t Task::binary_fingerprint[16] = {0xAC,0x74,0x1A,0x13,0x6E,0xFA,0x51,0x84,0x3A,0xFC,0x3A,0x12,0xF6,0xA7,0x93,0xD1}; @@ -769,9 +580,9 @@ uint32_t Task::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast43; - xfer += iprot->readI32(ecast43); - this->taskType = (TaskType::type)ecast43; + int32_t ecast37; + xfer += iprot->readI32(ecast37); + this->taskType = (TaskType::type)ecast37; this->__isset.taskType = true; } else { xfer += iprot->skip(ftype); @@ -781,17 +592,17 @@ uint32_t Task::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->taskAttributes.clear(); - uint32_t _size44; - ::apache::thrift::protocol::TType _ktype45; - ::apache::thrift::protocol::TType _vtype46; - xfer += iprot->readMapBegin(_ktype45, _vtype46, _size44); - uint32_t _i48; - for (_i48 = 0; _i48 < _size44; ++_i48) + uint32_t _size38; + ::apache::thrift::protocol::TType _ktype39; + ::apache::thrift::protocol::TType _vtype40; + xfer += iprot->readMapBegin(_ktype39, _vtype40, _size38); + uint32_t _i42; + for (_i42 = 0; _i42 < _size38; ++_i42) { - std::string _key49; - xfer += iprot->readString(_key49); - std::string& _val50 = this->taskAttributes[_key49]; - xfer += iprot->readString(_val50); + std::string _key43; + xfer += iprot->readString(_key43); + std::string& _val44 = this->taskAttributes[_key43]; + xfer += iprot->readString(_val44); } xfer += iprot->readMapEnd(); } @@ -804,17 +615,17 @@ uint32_t Task::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->taskCounters.clear(); - 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) + uint32_t _size45; + ::apache::thrift::protocol::TType _ktype46; + ::apache::thrift::protocol::TType _vtype47; + xfer += iprot->readMapBegin(_ktype46, _vtype47, _size45); + uint32_t _i49; + for (_i49 = 0; _i49 < _size45; ++_i49) { - std::string _key56; - xfer += iprot->readString(_key56); - int64_t& _val57 = this->taskCounters[_key56]; - xfer += iprot->readI64(_val57); + std::string _key50; + xfer += iprot->readString(_key50); + int64_t& _val51 = this->taskCounters[_key50]; + xfer += iprot->readI64(_val51); } xfer += iprot->readMapEnd(); } @@ -835,14 +646,14 @@ uint32_t Task::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->operatorList.clear(); - uint32_t _size58; - ::apache::thrift::protocol::TType _etype61; - xfer += iprot->readListBegin(_etype61, _size58); - this->operatorList.resize(_size58); - uint32_t _i62; - for (_i62 = 0; _i62 < _size58; ++_i62) + uint32_t _size52; + ::apache::thrift::protocol::TType _etype55; + xfer += iprot->readListBegin(_etype55, _size52); + this->operatorList.resize(_size52); + uint32_t _i56; + for (_i56 = 0; _i56 < _size52; ++_i56) { - xfer += this->operatorList[_i62].read(iprot); + xfer += this->operatorList[_i56].read(iprot); } xfer += iprot->readListEnd(); } @@ -881,7 +692,6 @@ uint32_t Task::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Task::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Task"); xfer += oprot->writeFieldBegin("taskId", ::apache::thrift::protocol::T_STRING, 1); @@ -895,11 +705,11 @@ uint32_t Task::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("taskAttributes", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->taskAttributes.size())); - std::map ::const_iterator _iter63; - for (_iter63 = this->taskAttributes.begin(); _iter63 != this->taskAttributes.end(); ++_iter63) + std::map ::const_iterator _iter57; + for (_iter57 = this->taskAttributes.begin(); _iter57 != this->taskAttributes.end(); ++_iter57) { - xfer += oprot->writeString(_iter63->first); - xfer += oprot->writeString(_iter63->second); + xfer += oprot->writeString(_iter57->first); + xfer += oprot->writeString(_iter57->second); } xfer += oprot->writeMapEnd(); } @@ -908,11 +718,11 @@ uint32_t Task::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("taskCounters", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, static_cast(this->taskCounters.size())); - std::map ::const_iterator _iter64; - for (_iter64 = this->taskCounters.begin(); _iter64 != this->taskCounters.end(); ++_iter64) + std::map ::const_iterator _iter58; + for (_iter58 = this->taskCounters.begin(); _iter58 != this->taskCounters.end(); ++_iter58) { - xfer += oprot->writeString(_iter64->first); - xfer += oprot->writeI64(_iter64->second); + xfer += oprot->writeString(_iter58->first); + xfer += oprot->writeI64(_iter58->second); } xfer += oprot->writeMapEnd(); } @@ -927,10 +737,10 @@ uint32_t Task::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("operatorList", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->operatorList.size())); - std::vector ::const_iterator _iter65; - for (_iter65 = this->operatorList.begin(); _iter65 != this->operatorList.end(); ++_iter65) + std::vector ::const_iterator _iter59; + for (_iter59 = this->operatorList.begin(); _iter59 != this->operatorList.end(); ++_iter59) { - xfer += (*_iter65).write(oprot); + xfer += (*_iter59).write(oprot); } xfer += oprot->writeListEnd(); } @@ -946,7 +756,6 @@ uint32_t Task::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -963,77 +772,6 @@ void swap(Task &a, Task &b) { swap(a.__isset, b.__isset); } -Task::Task(const Task& other66) { - taskId = other66.taskId; - taskType = other66.taskType; - taskAttributes = other66.taskAttributes; - taskCounters = other66.taskCounters; - operatorGraph = other66.operatorGraph; - operatorList = other66.operatorList; - done = other66.done; - started = other66.started; - __isset = other66.__isset; -} -Task& Task::operator=(const Task& other67) { - taskId = other67.taskId; - taskType = other67.taskType; - taskAttributes = other67.taskAttributes; - taskCounters = other67.taskCounters; - operatorGraph = other67.operatorGraph; - operatorList = other67.operatorList; - done = other67.done; - started = other67.started; - __isset = other67.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Task& obj) { - using apache::thrift::to_string; - out << "Task("; - out << "taskId=" << to_string(obj.taskId); - out << ", " << "taskType=" << to_string(obj.taskType); - out << ", " << "taskAttributes=" << to_string(obj.taskAttributes); - out << ", " << "taskCounters=" << to_string(obj.taskCounters); - out << ", " << "operatorGraph="; (obj.__isset.operatorGraph ? (out << to_string(obj.operatorGraph)) : (out << "")); - out << ", " << "operatorList="; (obj.__isset.operatorList ? (out << to_string(obj.operatorList)) : (out << "")); - out << ", " << "done=" << to_string(obj.done); - out << ", " << "started=" << to_string(obj.started); - out << ")"; - return out; -} - - -Stage::~Stage() throw() { -} - - -void Stage::__set_stageId(const std::string& val) { - this->stageId = val; -} - -void Stage::__set_stageType(const StageType::type val) { - this->stageType = val; -} - -void Stage::__set_stageAttributes(const std::map & val) { - this->stageAttributes = val; -} - -void Stage::__set_stageCounters(const std::map & val) { - this->stageCounters = val; -} - -void Stage::__set_taskList(const std::vector & val) { - this->taskList = val; -} - -void Stage::__set_done(const bool val) { - this->done = val; -} - -void Stage::__set_started(const bool val) { - this->started = val; -} - const char* Stage::ascii_fingerprint = "86EA3C7B0690AFED21A3D479E2B32378"; const uint8_t Stage::binary_fingerprint[16] = {0x86,0xEA,0x3C,0x7B,0x06,0x90,0xAF,0xED,0x21,0xA3,0xD4,0x79,0xE2,0xB3,0x23,0x78}; @@ -1067,9 +805,9 @@ uint32_t Stage::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast68; - xfer += iprot->readI32(ecast68); - this->stageType = (StageType::type)ecast68; + int32_t ecast60; + xfer += iprot->readI32(ecast60); + this->stageType = (StageType::type)ecast60; this->__isset.stageType = true; } else { xfer += iprot->skip(ftype); @@ -1079,17 +817,17 @@ uint32_t Stage::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->stageAttributes.clear(); - uint32_t _size69; - ::apache::thrift::protocol::TType _ktype70; - ::apache::thrift::protocol::TType _vtype71; - xfer += iprot->readMapBegin(_ktype70, _vtype71, _size69); - uint32_t _i73; - for (_i73 = 0; _i73 < _size69; ++_i73) + uint32_t _size61; + ::apache::thrift::protocol::TType _ktype62; + ::apache::thrift::protocol::TType _vtype63; + xfer += iprot->readMapBegin(_ktype62, _vtype63, _size61); + uint32_t _i65; + for (_i65 = 0; _i65 < _size61; ++_i65) { - std::string _key74; - xfer += iprot->readString(_key74); - std::string& _val75 = this->stageAttributes[_key74]; - xfer += iprot->readString(_val75); + std::string _key66; + xfer += iprot->readString(_key66); + std::string& _val67 = this->stageAttributes[_key66]; + xfer += iprot->readString(_val67); } xfer += iprot->readMapEnd(); } @@ -1102,17 +840,17 @@ uint32_t Stage::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->stageCounters.clear(); - uint32_t _size76; - ::apache::thrift::protocol::TType _ktype77; - ::apache::thrift::protocol::TType _vtype78; - xfer += iprot->readMapBegin(_ktype77, _vtype78, _size76); - uint32_t _i80; - for (_i80 = 0; _i80 < _size76; ++_i80) + uint32_t _size68; + ::apache::thrift::protocol::TType _ktype69; + ::apache::thrift::protocol::TType _vtype70; + xfer += iprot->readMapBegin(_ktype69, _vtype70, _size68); + uint32_t _i72; + for (_i72 = 0; _i72 < _size68; ++_i72) { - std::string _key81; - xfer += iprot->readString(_key81); - int64_t& _val82 = this->stageCounters[_key81]; - xfer += iprot->readI64(_val82); + std::string _key73; + xfer += iprot->readString(_key73); + int64_t& _val74 = this->stageCounters[_key73]; + xfer += iprot->readI64(_val74); } xfer += iprot->readMapEnd(); } @@ -1125,14 +863,14 @@ uint32_t Stage::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->taskList.clear(); - uint32_t _size83; - ::apache::thrift::protocol::TType _etype86; - xfer += iprot->readListBegin(_etype86, _size83); - this->taskList.resize(_size83); - uint32_t _i87; - for (_i87 = 0; _i87 < _size83; ++_i87) + uint32_t _size75; + ::apache::thrift::protocol::TType _etype78; + xfer += iprot->readListBegin(_etype78, _size75); + this->taskList.resize(_size75); + uint32_t _i79; + for (_i79 = 0; _i79 < _size75; ++_i79) { - xfer += this->taskList[_i87].read(iprot); + xfer += this->taskList[_i79].read(iprot); } xfer += iprot->readListEnd(); } @@ -1171,7 +909,6 @@ uint32_t Stage::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Stage::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Stage"); xfer += oprot->writeFieldBegin("stageId", ::apache::thrift::protocol::T_STRING, 1); @@ -1185,11 +922,11 @@ uint32_t Stage::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("stageAttributes", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->stageAttributes.size())); - std::map ::const_iterator _iter88; - for (_iter88 = this->stageAttributes.begin(); _iter88 != this->stageAttributes.end(); ++_iter88) + std::map ::const_iterator _iter80; + for (_iter80 = this->stageAttributes.begin(); _iter80 != this->stageAttributes.end(); ++_iter80) { - xfer += oprot->writeString(_iter88->first); - xfer += oprot->writeString(_iter88->second); + xfer += oprot->writeString(_iter80->first); + xfer += oprot->writeString(_iter80->second); } xfer += oprot->writeMapEnd(); } @@ -1198,11 +935,11 @@ uint32_t Stage::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("stageCounters", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, static_cast(this->stageCounters.size())); - std::map ::const_iterator _iter89; - for (_iter89 = this->stageCounters.begin(); _iter89 != this->stageCounters.end(); ++_iter89) + std::map ::const_iterator _iter81; + for (_iter81 = this->stageCounters.begin(); _iter81 != this->stageCounters.end(); ++_iter81) { - xfer += oprot->writeString(_iter89->first); - xfer += oprot->writeI64(_iter89->second); + xfer += oprot->writeString(_iter81->first); + xfer += oprot->writeI64(_iter81->second); } xfer += oprot->writeMapEnd(); } @@ -1211,10 +948,10 @@ uint32_t Stage::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("taskList", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->taskList.size())); - std::vector ::const_iterator _iter90; - for (_iter90 = this->taskList.begin(); _iter90 != this->taskList.end(); ++_iter90) + std::vector ::const_iterator _iter82; + for (_iter82 = this->taskList.begin(); _iter82 != this->taskList.end(); ++_iter82) { - xfer += (*_iter90).write(oprot); + xfer += (*_iter82).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1230,7 +967,6 @@ uint32_t Stage::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1246,78 +982,6 @@ void swap(Stage &a, Stage &b) { swap(a.__isset, b.__isset); } -Stage::Stage(const Stage& other91) { - stageId = other91.stageId; - stageType = other91.stageType; - stageAttributes = other91.stageAttributes; - stageCounters = other91.stageCounters; - taskList = other91.taskList; - done = other91.done; - started = other91.started; - __isset = other91.__isset; -} -Stage& Stage::operator=(const Stage& other92) { - stageId = other92.stageId; - stageType = other92.stageType; - stageAttributes = other92.stageAttributes; - stageCounters = other92.stageCounters; - taskList = other92.taskList; - done = other92.done; - started = other92.started; - __isset = other92.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Stage& obj) { - using apache::thrift::to_string; - out << "Stage("; - out << "stageId=" << to_string(obj.stageId); - out << ", " << "stageType=" << to_string(obj.stageType); - out << ", " << "stageAttributes=" << to_string(obj.stageAttributes); - out << ", " << "stageCounters=" << to_string(obj.stageCounters); - out << ", " << "taskList=" << to_string(obj.taskList); - out << ", " << "done=" << to_string(obj.done); - out << ", " << "started=" << to_string(obj.started); - out << ")"; - return out; -} - - -Query::~Query() throw() { -} - - -void Query::__set_queryId(const std::string& val) { - this->queryId = val; -} - -void Query::__set_queryType(const std::string& val) { - this->queryType = val; -} - -void Query::__set_queryAttributes(const std::map & val) { - this->queryAttributes = val; -} - -void Query::__set_queryCounters(const std::map & val) { - this->queryCounters = val; -} - -void Query::__set_stageGraph(const Graph& val) { - this->stageGraph = val; -} - -void Query::__set_stageList(const std::vector & val) { - this->stageList = val; -} - -void Query::__set_done(const bool val) { - this->done = val; -} - -void Query::__set_started(const bool val) { - this->started = val; -} - const char* Query::ascii_fingerprint = "68300D63A5D40F2D17B9A9440FF626C1"; const uint8_t Query::binary_fingerprint[16] = {0x68,0x30,0x0D,0x63,0xA5,0xD4,0x0F,0x2D,0x17,0xB9,0xA9,0x44,0x0F,0xF6,0x26,0xC1}; @@ -1361,17 +1025,17 @@ uint32_t Query::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->queryAttributes.clear(); - uint32_t _size93; - ::apache::thrift::protocol::TType _ktype94; - ::apache::thrift::protocol::TType _vtype95; - xfer += iprot->readMapBegin(_ktype94, _vtype95, _size93); - uint32_t _i97; - for (_i97 = 0; _i97 < _size93; ++_i97) + uint32_t _size83; + ::apache::thrift::protocol::TType _ktype84; + ::apache::thrift::protocol::TType _vtype85; + xfer += iprot->readMapBegin(_ktype84, _vtype85, _size83); + uint32_t _i87; + for (_i87 = 0; _i87 < _size83; ++_i87) { - std::string _key98; - xfer += iprot->readString(_key98); - std::string& _val99 = this->queryAttributes[_key98]; - xfer += iprot->readString(_val99); + std::string _key88; + xfer += iprot->readString(_key88); + std::string& _val89 = this->queryAttributes[_key88]; + xfer += iprot->readString(_val89); } xfer += iprot->readMapEnd(); } @@ -1384,17 +1048,17 @@ uint32_t Query::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->queryCounters.clear(); - uint32_t _size100; - ::apache::thrift::protocol::TType _ktype101; - ::apache::thrift::protocol::TType _vtype102; - xfer += iprot->readMapBegin(_ktype101, _vtype102, _size100); - uint32_t _i104; - for (_i104 = 0; _i104 < _size100; ++_i104) + uint32_t _size90; + ::apache::thrift::protocol::TType _ktype91; + ::apache::thrift::protocol::TType _vtype92; + xfer += iprot->readMapBegin(_ktype91, _vtype92, _size90); + uint32_t _i94; + for (_i94 = 0; _i94 < _size90; ++_i94) { - std::string _key105; - xfer += iprot->readString(_key105); - int64_t& _val106 = this->queryCounters[_key105]; - xfer += iprot->readI64(_val106); + std::string _key95; + xfer += iprot->readString(_key95); + int64_t& _val96 = this->queryCounters[_key95]; + xfer += iprot->readI64(_val96); } xfer += iprot->readMapEnd(); } @@ -1415,14 +1079,14 @@ uint32_t Query::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->stageList.clear(); - uint32_t _size107; - ::apache::thrift::protocol::TType _etype110; - xfer += iprot->readListBegin(_etype110, _size107); - this->stageList.resize(_size107); - uint32_t _i111; - for (_i111 = 0; _i111 < _size107; ++_i111) + uint32_t _size97; + ::apache::thrift::protocol::TType _etype100; + xfer += iprot->readListBegin(_etype100, _size97); + this->stageList.resize(_size97); + uint32_t _i101; + for (_i101 = 0; _i101 < _size97; ++_i101) { - xfer += this->stageList[_i111].read(iprot); + xfer += this->stageList[_i101].read(iprot); } xfer += iprot->readListEnd(); } @@ -1461,7 +1125,6 @@ uint32_t Query::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Query::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Query"); xfer += oprot->writeFieldBegin("queryId", ::apache::thrift::protocol::T_STRING, 1); @@ -1475,11 +1138,11 @@ uint32_t Query::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("queryAttributes", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->queryAttributes.size())); - std::map ::const_iterator _iter112; - for (_iter112 = this->queryAttributes.begin(); _iter112 != this->queryAttributes.end(); ++_iter112) + std::map ::const_iterator _iter102; + for (_iter102 = this->queryAttributes.begin(); _iter102 != this->queryAttributes.end(); ++_iter102) { - xfer += oprot->writeString(_iter112->first); - xfer += oprot->writeString(_iter112->second); + xfer += oprot->writeString(_iter102->first); + xfer += oprot->writeString(_iter102->second); } xfer += oprot->writeMapEnd(); } @@ -1488,11 +1151,11 @@ uint32_t Query::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("queryCounters", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I64, static_cast(this->queryCounters.size())); - std::map ::const_iterator _iter113; - for (_iter113 = this->queryCounters.begin(); _iter113 != this->queryCounters.end(); ++_iter113) + std::map ::const_iterator _iter103; + for (_iter103 = this->queryCounters.begin(); _iter103 != this->queryCounters.end(); ++_iter103) { - xfer += oprot->writeString(_iter113->first); - xfer += oprot->writeI64(_iter113->second); + xfer += oprot->writeString(_iter103->first); + xfer += oprot->writeI64(_iter103->second); } xfer += oprot->writeMapEnd(); } @@ -1505,10 +1168,10 @@ uint32_t Query::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("stageList", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->stageList.size())); - std::vector ::const_iterator _iter114; - for (_iter114 = this->stageList.begin(); _iter114 != this->stageList.end(); ++_iter114) + std::vector ::const_iterator _iter104; + for (_iter104 = this->stageList.begin(); _iter104 != this->stageList.end(); ++_iter104) { - xfer += (*_iter114).write(oprot); + xfer += (*_iter104).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1524,7 +1187,6 @@ uint32_t Query::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1541,61 +1203,6 @@ void swap(Query &a, Query &b) { swap(a.__isset, b.__isset); } -Query::Query(const Query& other115) { - queryId = other115.queryId; - queryType = other115.queryType; - queryAttributes = other115.queryAttributes; - queryCounters = other115.queryCounters; - stageGraph = other115.stageGraph; - stageList = other115.stageList; - done = other115.done; - started = other115.started; - __isset = other115.__isset; -} -Query& Query::operator=(const Query& other116) { - queryId = other116.queryId; - queryType = other116.queryType; - queryAttributes = other116.queryAttributes; - queryCounters = other116.queryCounters; - stageGraph = other116.stageGraph; - stageList = other116.stageList; - done = other116.done; - started = other116.started; - __isset = other116.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Query& obj) { - using apache::thrift::to_string; - out << "Query("; - out << "queryId=" << to_string(obj.queryId); - out << ", " << "queryType=" << to_string(obj.queryType); - out << ", " << "queryAttributes=" << to_string(obj.queryAttributes); - out << ", " << "queryCounters=" << to_string(obj.queryCounters); - out << ", " << "stageGraph=" << to_string(obj.stageGraph); - out << ", " << "stageList=" << to_string(obj.stageList); - out << ", " << "done=" << to_string(obj.done); - out << ", " << "started=" << to_string(obj.started); - out << ")"; - return out; -} - - -QueryPlan::~QueryPlan() throw() { -} - - -void QueryPlan::__set_queries(const std::vector & val) { - this->queries = val; -} - -void QueryPlan::__set_done(const bool val) { - this->done = val; -} - -void QueryPlan::__set_started(const bool val) { - this->started = val; -} - const char* QueryPlan::ascii_fingerprint = "3418D1B0C20C288C8406186700B772E3"; const uint8_t QueryPlan::binary_fingerprint[16] = {0x34,0x18,0xD1,0xB0,0xC2,0x0C,0x28,0x8C,0x84,0x06,0x18,0x67,0x00,0xB7,0x72,0xE3}; @@ -1623,14 +1230,14 @@ uint32_t QueryPlan::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->queries.clear(); - uint32_t _size117; - ::apache::thrift::protocol::TType _etype120; - xfer += iprot->readListBegin(_etype120, _size117); - this->queries.resize(_size117); - uint32_t _i121; - for (_i121 = 0; _i121 < _size117; ++_i121) + uint32_t _size105; + ::apache::thrift::protocol::TType _etype108; + xfer += iprot->readListBegin(_etype108, _size105); + this->queries.resize(_size105); + uint32_t _i109; + for (_i109 = 0; _i109 < _size105; ++_i109) { - xfer += this->queries[_i121].read(iprot); + xfer += this->queries[_i109].read(iprot); } xfer += iprot->readListEnd(); } @@ -1669,16 +1276,15 @@ uint32_t QueryPlan::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t QueryPlan::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("QueryPlan"); xfer += oprot->writeFieldBegin("queries", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->queries.size())); - std::vector ::const_iterator _iter122; - for (_iter122 = this->queries.begin(); _iter122 != this->queries.end(); ++_iter122) + std::vector ::const_iterator _iter110; + for (_iter110 = this->queries.begin(); _iter110 != this->queries.end(); ++_iter110) { - xfer += (*_iter122).write(oprot); + xfer += (*_iter110).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1694,7 +1300,6 @@ uint32_t QueryPlan::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1706,27 +1311,4 @@ void swap(QueryPlan &a, QueryPlan &b) { swap(a.__isset, b.__isset); } -QueryPlan::QueryPlan(const QueryPlan& other123) { - queries = other123.queries; - done = other123.done; - started = other123.started; - __isset = other123.__isset; -} -QueryPlan& QueryPlan::operator=(const QueryPlan& other124) { - queries = other124.queries; - done = other124.done; - started = other124.started; - __isset = other124.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const QueryPlan& obj) { - using apache::thrift::to_string; - out << "QueryPlan("; - out << "queries=" << to_string(obj.queries); - out << ", " << "done=" << to_string(obj.done); - out << ", " << "started=" << to_string(obj.started); - out << ")"; - return out; -} - }}} // namespace diff --git a/ql/src/gen/thrift/gen-cpp/queryplan_types.h b/ql/src/gen/thrift/gen-cpp/queryplan_types.h index 932804d..e43e42a 100644 --- a/ql/src/gen/thrift/gen-cpp/queryplan_types.h +++ b/ql/src/gen/thrift/gen-cpp/queryplan_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,14 +7,11 @@ #ifndef queryplan_TYPES_H #define queryplan_TYPES_H -#include - #include #include #include #include -#include namespace Apache { namespace Hadoop { namespace Hive { @@ -99,25 +96,11 @@ struct StageType { extern const std::map _StageType_VALUES_TO_NAMES; -class Adjacency; - -class Graph; - -class Operator; - -class Task; - -class Stage; - -class Query; - -class QueryPlan; - typedef struct _Adjacency__isset { _Adjacency__isset() : node(false), children(false), adjacencyType(false) {} - bool node :1; - bool children :1; - bool adjacencyType :1; + bool node; + bool children; + bool adjacencyType; } _Adjacency__isset; class Adjacency { @@ -126,23 +109,28 @@ class Adjacency { static const char* ascii_fingerprint; // = "BC4F8C394677A1003AA9F56ED26D8204"; static const uint8_t binary_fingerprint[16]; // = {0xBC,0x4F,0x8C,0x39,0x46,0x77,0xA1,0x00,0x3A,0xA9,0xF5,0x6E,0xD2,0x6D,0x82,0x04}; - Adjacency(const Adjacency&); - Adjacency& operator=(const Adjacency&); Adjacency() : node(), adjacencyType((AdjacencyType::type)0) { } - virtual ~Adjacency() throw(); + virtual ~Adjacency() throw() {} + std::string node; std::vector children; AdjacencyType::type adjacencyType; _Adjacency__isset __isset; - void __set_node(const std::string& val); + void __set_node(const std::string& val) { + node = val; + } - void __set_children(const std::vector & val); + void __set_children(const std::vector & val) { + children = val; + } - void __set_adjacencyType(const AdjacencyType::type val); + void __set_adjacencyType(const AdjacencyType::type val) { + adjacencyType = val; + } bool operator == (const Adjacency & rhs) const { @@ -163,16 +151,15 @@ class Adjacency { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Adjacency& obj); }; void swap(Adjacency &a, Adjacency &b); typedef struct _Graph__isset { _Graph__isset() : nodeType(false), roots(false), adjacencyList(false) {} - bool nodeType :1; - bool roots :1; - bool adjacencyList :1; + bool nodeType; + bool roots; + bool adjacencyList; } _Graph__isset; class Graph { @@ -181,23 +168,28 @@ class Graph { static const char* ascii_fingerprint; // = "1F7FB604B3EF8F7AFB5DEAD15F2FC0B5"; static const uint8_t binary_fingerprint[16]; // = {0x1F,0x7F,0xB6,0x04,0xB3,0xEF,0x8F,0x7A,0xFB,0x5D,0xEA,0xD1,0x5F,0x2F,0xC0,0xB5}; - Graph(const Graph&); - Graph& operator=(const Graph&); Graph() : nodeType((NodeType::type)0) { } - virtual ~Graph() throw(); + virtual ~Graph() throw() {} + NodeType::type nodeType; std::vector roots; std::vector adjacencyList; _Graph__isset __isset; - void __set_nodeType(const NodeType::type val); + void __set_nodeType(const NodeType::type val) { + nodeType = val; + } - void __set_roots(const std::vector & val); + void __set_roots(const std::vector & val) { + roots = val; + } - void __set_adjacencyList(const std::vector & val); + void __set_adjacencyList(const std::vector & val) { + adjacencyList = val; + } bool operator == (const Graph & rhs) const { @@ -218,19 +210,18 @@ class Graph { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Graph& obj); }; void swap(Graph &a, Graph &b); typedef struct _Operator__isset { _Operator__isset() : operatorId(false), operatorType(false), operatorAttributes(false), operatorCounters(false), done(false), started(false) {} - bool operatorId :1; - bool operatorType :1; - bool operatorAttributes :1; - bool operatorCounters :1; - bool done :1; - bool started :1; + bool operatorId; + bool operatorType; + bool operatorAttributes; + bool operatorCounters; + bool done; + bool started; } _Operator__isset; class Operator { @@ -239,12 +230,11 @@ class Operator { static const char* ascii_fingerprint; // = "30917C758A752485AF223B697479DE6C"; static const uint8_t binary_fingerprint[16]; // = {0x30,0x91,0x7C,0x75,0x8A,0x75,0x24,0x85,0xAF,0x22,0x3B,0x69,0x74,0x79,0xDE,0x6C}; - Operator(const Operator&); - Operator& operator=(const Operator&); Operator() : operatorId(), operatorType((OperatorType::type)0), done(0), started(0) { } - virtual ~Operator() throw(); + virtual ~Operator() throw() {} + std::string operatorId; OperatorType::type operatorType; std::map operatorAttributes; @@ -254,17 +244,29 @@ class Operator { _Operator__isset __isset; - void __set_operatorId(const std::string& val); + void __set_operatorId(const std::string& val) { + operatorId = val; + } - void __set_operatorType(const OperatorType::type val); + void __set_operatorType(const OperatorType::type val) { + operatorType = val; + } - void __set_operatorAttributes(const std::map & val); + void __set_operatorAttributes(const std::map & val) { + operatorAttributes = val; + } - void __set_operatorCounters(const std::map & val); + void __set_operatorCounters(const std::map & val) { + operatorCounters = val; + } - void __set_done(const bool val); + void __set_done(const bool val) { + done = val; + } - void __set_started(const bool val); + void __set_started(const bool val) { + started = val; + } bool operator == (const Operator & rhs) const { @@ -291,21 +293,20 @@ class Operator { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Operator& obj); }; void swap(Operator &a, Operator &b); typedef struct _Task__isset { _Task__isset() : taskId(false), taskType(false), taskAttributes(false), taskCounters(false), operatorGraph(false), operatorList(false), done(false), started(false) {} - bool taskId :1; - bool taskType :1; - bool taskAttributes :1; - bool taskCounters :1; - bool operatorGraph :1; - bool operatorList :1; - bool done :1; - bool started :1; + bool taskId; + bool taskType; + bool taskAttributes; + bool taskCounters; + bool operatorGraph; + bool operatorList; + bool done; + bool started; } _Task__isset; class Task { @@ -314,12 +315,11 @@ class Task { static const char* ascii_fingerprint; // = "AC741A136EFA51843AFC3A12F6A793D1"; static const uint8_t binary_fingerprint[16]; // = {0xAC,0x74,0x1A,0x13,0x6E,0xFA,0x51,0x84,0x3A,0xFC,0x3A,0x12,0xF6,0xA7,0x93,0xD1}; - Task(const Task&); - Task& operator=(const Task&); Task() : taskId(), taskType((TaskType::type)0), done(0), started(0) { } - virtual ~Task() throw(); + virtual ~Task() throw() {} + std::string taskId; TaskType::type taskType; std::map taskAttributes; @@ -331,21 +331,39 @@ class Task { _Task__isset __isset; - void __set_taskId(const std::string& val); + void __set_taskId(const std::string& val) { + taskId = val; + } - void __set_taskType(const TaskType::type val); + void __set_taskType(const TaskType::type val) { + taskType = val; + } - void __set_taskAttributes(const std::map & val); + void __set_taskAttributes(const std::map & val) { + taskAttributes = val; + } - void __set_taskCounters(const std::map & val); + void __set_taskCounters(const std::map & val) { + taskCounters = val; + } - void __set_operatorGraph(const Graph& val); + void __set_operatorGraph(const Graph& val) { + operatorGraph = val; + __isset.operatorGraph = true; + } - void __set_operatorList(const std::vector & val); + void __set_operatorList(const std::vector & val) { + operatorList = val; + __isset.operatorList = true; + } - void __set_done(const bool val); + void __set_done(const bool val) { + done = val; + } - void __set_started(const bool val); + void __set_started(const bool val) { + started = val; + } bool operator == (const Task & rhs) const { @@ -380,20 +398,19 @@ class Task { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Task& obj); }; void swap(Task &a, Task &b); typedef struct _Stage__isset { _Stage__isset() : stageId(false), stageType(false), stageAttributes(false), stageCounters(false), taskList(false), done(false), started(false) {} - bool stageId :1; - bool stageType :1; - bool stageAttributes :1; - bool stageCounters :1; - bool taskList :1; - bool done :1; - bool started :1; + bool stageId; + bool stageType; + bool stageAttributes; + bool stageCounters; + bool taskList; + bool done; + bool started; } _Stage__isset; class Stage { @@ -402,12 +419,11 @@ class Stage { static const char* ascii_fingerprint; // = "86EA3C7B0690AFED21A3D479E2B32378"; static const uint8_t binary_fingerprint[16]; // = {0x86,0xEA,0x3C,0x7B,0x06,0x90,0xAF,0xED,0x21,0xA3,0xD4,0x79,0xE2,0xB3,0x23,0x78}; - Stage(const Stage&); - Stage& operator=(const Stage&); Stage() : stageId(), stageType((StageType::type)0), done(0), started(0) { } - virtual ~Stage() throw(); + virtual ~Stage() throw() {} + std::string stageId; StageType::type stageType; std::map stageAttributes; @@ -418,19 +434,33 @@ class Stage { _Stage__isset __isset; - void __set_stageId(const std::string& val); + void __set_stageId(const std::string& val) { + stageId = val; + } - void __set_stageType(const StageType::type val); + void __set_stageType(const StageType::type val) { + stageType = val; + } - void __set_stageAttributes(const std::map & val); + void __set_stageAttributes(const std::map & val) { + stageAttributes = val; + } - void __set_stageCounters(const std::map & val); + void __set_stageCounters(const std::map & val) { + stageCounters = val; + } - void __set_taskList(const std::vector & val); + void __set_taskList(const std::vector & val) { + taskList = val; + } - void __set_done(const bool val); + void __set_done(const bool val) { + done = val; + } - void __set_started(const bool val); + void __set_started(const bool val) { + started = val; + } bool operator == (const Stage & rhs) const { @@ -459,21 +489,20 @@ class Stage { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Stage& obj); }; void swap(Stage &a, Stage &b); typedef struct _Query__isset { _Query__isset() : queryId(false), queryType(false), queryAttributes(false), queryCounters(false), stageGraph(false), stageList(false), done(false), started(false) {} - bool queryId :1; - bool queryType :1; - bool queryAttributes :1; - bool queryCounters :1; - bool stageGraph :1; - bool stageList :1; - bool done :1; - bool started :1; + bool queryId; + bool queryType; + bool queryAttributes; + bool queryCounters; + bool stageGraph; + bool stageList; + bool done; + bool started; } _Query__isset; class Query { @@ -482,12 +511,11 @@ class Query { static const char* ascii_fingerprint; // = "68300D63A5D40F2D17B9A9440FF626C1"; static const uint8_t binary_fingerprint[16]; // = {0x68,0x30,0x0D,0x63,0xA5,0xD4,0x0F,0x2D,0x17,0xB9,0xA9,0x44,0x0F,0xF6,0x26,0xC1}; - Query(const Query&); - Query& operator=(const Query&); Query() : queryId(), queryType(), done(0), started(0) { } - virtual ~Query() throw(); + virtual ~Query() throw() {} + std::string queryId; std::string queryType; std::map queryAttributes; @@ -499,21 +527,37 @@ class Query { _Query__isset __isset; - void __set_queryId(const std::string& val); + void __set_queryId(const std::string& val) { + queryId = val; + } - void __set_queryType(const std::string& val); + void __set_queryType(const std::string& val) { + queryType = val; + } - void __set_queryAttributes(const std::map & val); + void __set_queryAttributes(const std::map & val) { + queryAttributes = val; + } - void __set_queryCounters(const std::map & val); + void __set_queryCounters(const std::map & val) { + queryCounters = val; + } - void __set_stageGraph(const Graph& val); + void __set_stageGraph(const Graph& val) { + stageGraph = val; + } - void __set_stageList(const std::vector & val); + void __set_stageList(const std::vector & val) { + stageList = val; + } - void __set_done(const bool val); + void __set_done(const bool val) { + done = val; + } - void __set_started(const bool val); + void __set_started(const bool val) { + started = val; + } bool operator == (const Query & rhs) const { @@ -544,16 +588,15 @@ class Query { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Query& obj); }; void swap(Query &a, Query &b); typedef struct _QueryPlan__isset { _QueryPlan__isset() : queries(false), done(false), started(false) {} - bool queries :1; - bool done :1; - bool started :1; + bool queries; + bool done; + bool started; } _QueryPlan__isset; class QueryPlan { @@ -562,23 +605,28 @@ class QueryPlan { static const char* ascii_fingerprint; // = "3418D1B0C20C288C8406186700B772E3"; static const uint8_t binary_fingerprint[16]; // = {0x34,0x18,0xD1,0xB0,0xC2,0x0C,0x28,0x8C,0x84,0x06,0x18,0x67,0x00,0xB7,0x72,0xE3}; - QueryPlan(const QueryPlan&); - QueryPlan& operator=(const QueryPlan&); QueryPlan() : done(0), started(0) { } - virtual ~QueryPlan() throw(); + virtual ~QueryPlan() throw() {} + std::vector queries; bool done; bool started; _QueryPlan__isset __isset; - void __set_queries(const std::vector & val); + void __set_queries(const std::vector & val) { + queries = val; + } - void __set_done(const bool val); + void __set_done(const bool val) { + done = val; + } - void __set_started(const bool val); + void __set_started(const bool val) { + started = val; + } bool operator == (const QueryPlan & rhs) const { @@ -599,7 +647,6 @@ class QueryPlan { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const QueryPlan& obj); }; void swap(QueryPlan &a, QueryPlan &b); diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java index 5ea9b6e..22ca225 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Adjacency.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Adjacency implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Adjacency implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Adjacency"); private static final org.apache.thrift.protocol.TField NODE_FIELD_DESC = new org.apache.thrift.protocol.TField("node", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -157,7 +153,10 @@ public Adjacency(Adjacency other) { this.node = other.node; } if (other.isSetChildren()) { - List __this__children = new ArrayList(other.children); + List __this__children = new ArrayList(); + for (String other_element : other.children) { + __this__children.add(other_element); + } this.children = __this__children; } if (other.isSetAdjacencyType()) { @@ -374,60 +373,60 @@ public boolean equals(Adjacency that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_node = true && (isSetNode()); - list.add(present_node); + builder.append(present_node); if (present_node) - list.add(node); + builder.append(node); boolean present_children = true && (isSetChildren()); - list.add(present_children); + builder.append(present_children); if (present_children) - list.add(children); + builder.append(children); boolean present_adjacencyType = true && (isSetAdjacencyType()); - list.add(present_adjacencyType); + builder.append(present_adjacencyType); if (present_adjacencyType) - list.add(adjacencyType.getValue()); + builder.append(adjacencyType.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Adjacency other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Adjacency typedOther = (Adjacency)other; - lastComparison = Boolean.valueOf(isSetNode()).compareTo(other.isSetNode()); + lastComparison = Boolean.valueOf(isSetNode()).compareTo(typedOther.isSetNode()); if (lastComparison != 0) { return lastComparison; } if (isSetNode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.node, other.node); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.node, typedOther.node); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetChildren()).compareTo(other.isSetChildren()); + lastComparison = Boolean.valueOf(isSetChildren()).compareTo(typedOther.isSetChildren()); if (lastComparison != 0) { return lastComparison; } if (isSetChildren()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.children, other.children); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.children, typedOther.children); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAdjacencyType()).compareTo(other.isSetAdjacencyType()); + lastComparison = Boolean.valueOf(isSetAdjacencyType()).compareTo(typedOther.isSetAdjacencyType()); if (lastComparison != 0) { return lastComparison; } if (isSetAdjacencyType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adjacencyType, other.adjacencyType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adjacencyType, typedOther.adjacencyType); if (lastComparison != 0) { return lastComparison; } @@ -531,11 +530,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Adjacency struct) t { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); struct.children = new ArrayList(_list0.size); - String _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - _elem1 = iprot.readString(); - struct.children.add(_elem1); + String _elem2; // required + _elem2 = iprot.readString(); + struct.children.add(_elem2); } iprot.readListEnd(); } @@ -546,7 +545,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Adjacency struct) t break; case 3: // ADJACENCY_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.adjacencyType = org.apache.hadoop.hive.ql.plan.api.AdjacencyType.findByValue(iprot.readI32()); + struct.adjacencyType = AdjacencyType.findByValue(iprot.readI32()); struct.setAdjacencyTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -644,17 +643,17 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Adjacency struct) th { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.children = new ArrayList(_list5.size); - String _elem6; - for (int _i7 = 0; _i7 < _list5.size; ++_i7) + for (int _i6 = 0; _i6 < _list5.size; ++_i6) { - _elem6 = iprot.readString(); - struct.children.add(_elem6); + String _elem7; // required + _elem7 = iprot.readString(); + struct.children.add(_elem7); } } struct.setChildrenIsSet(true); } if (incoming.get(2)) { - struct.adjacencyType = org.apache.hadoop.hive.ql.plan.api.AdjacencyType.findByValue(iprot.readI32()); + struct.adjacencyType = AdjacencyType.findByValue(iprot.readI32()); struct.setAdjacencyTypeIsSet(true); } } diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/AdjacencyType.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/AdjacencyType.java index 470cad2..7984d4e 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/AdjacencyType.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/AdjacencyType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java index e621cfa..35aa6cb 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Graph.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Graph implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Graph implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Graph"); private static final org.apache.thrift.protocol.TField NODE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("nodeType", org.apache.thrift.protocol.TType.I32, (short)1); @@ -158,11 +154,14 @@ public Graph(Graph other) { this.nodeType = other.nodeType; } if (other.isSetRoots()) { - List __this__roots = new ArrayList(other.roots); + List __this__roots = new ArrayList(); + for (String other_element : other.roots) { + __this__roots.add(other_element); + } this.roots = __this__roots; } if (other.isSetAdjacencyList()) { - List __this__adjacencyList = new ArrayList(other.adjacencyList.size()); + List __this__adjacencyList = new ArrayList(); for (Adjacency other_element : other.adjacencyList) { __this__adjacencyList.add(new Adjacency(other_element)); } @@ -394,60 +393,60 @@ public boolean equals(Graph that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_nodeType = true && (isSetNodeType()); - list.add(present_nodeType); + builder.append(present_nodeType); if (present_nodeType) - list.add(nodeType.getValue()); + builder.append(nodeType.getValue()); boolean present_roots = true && (isSetRoots()); - list.add(present_roots); + builder.append(present_roots); if (present_roots) - list.add(roots); + builder.append(roots); boolean present_adjacencyList = true && (isSetAdjacencyList()); - list.add(present_adjacencyList); + builder.append(present_adjacencyList); if (present_adjacencyList) - list.add(adjacencyList); + builder.append(adjacencyList); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Graph other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Graph typedOther = (Graph)other; - lastComparison = Boolean.valueOf(isSetNodeType()).compareTo(other.isSetNodeType()); + lastComparison = Boolean.valueOf(isSetNodeType()).compareTo(typedOther.isSetNodeType()); if (lastComparison != 0) { return lastComparison; } if (isSetNodeType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nodeType, other.nodeType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nodeType, typedOther.nodeType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRoots()).compareTo(other.isSetRoots()); + lastComparison = Boolean.valueOf(isSetRoots()).compareTo(typedOther.isSetRoots()); if (lastComparison != 0) { return lastComparison; } if (isSetRoots()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roots, other.roots); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roots, typedOther.roots); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAdjacencyList()).compareTo(other.isSetAdjacencyList()); + lastComparison = Boolean.valueOf(isSetAdjacencyList()).compareTo(typedOther.isSetAdjacencyList()); if (lastComparison != 0) { return lastComparison; } if (isSetAdjacencyList()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adjacencyList, other.adjacencyList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.adjacencyList, typedOther.adjacencyList); if (lastComparison != 0) { return lastComparison; } @@ -540,7 +539,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Graph struct) throw switch (schemeField.id) { case 1: // NODE_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.nodeType = org.apache.hadoop.hive.ql.plan.api.NodeType.findByValue(iprot.readI32()); + struct.nodeType = NodeType.findByValue(iprot.readI32()); struct.setNodeTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -551,11 +550,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Graph struct) throw { org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); struct.roots = new ArrayList(_list8.size); - String _elem9; - for (int _i10 = 0; _i10 < _list8.size; ++_i10) + for (int _i9 = 0; _i9 < _list8.size; ++_i9) { - _elem9 = iprot.readString(); - struct.roots.add(_elem9); + String _elem10; // required + _elem10 = iprot.readString(); + struct.roots.add(_elem10); } iprot.readListEnd(); } @@ -569,12 +568,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Graph struct) throw { org.apache.thrift.protocol.TList _list11 = iprot.readListBegin(); struct.adjacencyList = new ArrayList(_list11.size); - Adjacency _elem12; - for (int _i13 = 0; _i13 < _list11.size; ++_i13) + for (int _i12 = 0; _i12 < _list11.size; ++_i12) { - _elem12 = new Adjacency(); - _elem12.read(iprot); - struct.adjacencyList.add(_elem12); + Adjacency _elem13; // required + _elem13 = new Adjacency(); + _elem13.read(iprot); + struct.adjacencyList.add(_elem13); } iprot.readListEnd(); } @@ -681,18 +680,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Graph struct) throws TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.nodeType = org.apache.hadoop.hive.ql.plan.api.NodeType.findByValue(iprot.readI32()); + struct.nodeType = NodeType.findByValue(iprot.readI32()); struct.setNodeTypeIsSet(true); } if (incoming.get(1)) { { org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.roots = new ArrayList(_list18.size); - String _elem19; - for (int _i20 = 0; _i20 < _list18.size; ++_i20) + for (int _i19 = 0; _i19 < _list18.size; ++_i19) { - _elem19 = iprot.readString(); - struct.roots.add(_elem19); + String _elem20; // required + _elem20 = iprot.readString(); + struct.roots.add(_elem20); } } struct.setRootsIsSet(true); @@ -701,12 +700,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Graph struct) throws { org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.adjacencyList = new ArrayList(_list21.size); - Adjacency _elem22; - for (int _i23 = 0; _i23 < _list21.size; ++_i23) + for (int _i22 = 0; _i22 < _list21.size; ++_i22) { - _elem22 = new Adjacency(); - _elem22.read(iprot); - struct.adjacencyList.add(_elem22); + Adjacency _elem23; // required + _elem23 = new Adjacency(); + _elem23.read(iprot); + struct.adjacencyList.add(_elem23); } } struct.setAdjacencyListIsSet(true); diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/NodeType.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/NodeType.java index 5fdbfa3..1126049 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/NodeType.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/NodeType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java index 1b18aab..f1c9e2d 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Operator.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Operator implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Operator implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Operator"); private static final org.apache.thrift.protocol.TField OPERATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorId", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -196,11 +192,33 @@ public Operator(Operator other) { this.operatorType = other.operatorType; } if (other.isSetOperatorAttributes()) { - Map __this__operatorAttributes = new HashMap(other.operatorAttributes); + Map __this__operatorAttributes = new HashMap(); + for (Map.Entry other_element : other.operatorAttributes.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__operatorAttributes_copy_key = other_element_key; + + String __this__operatorAttributes_copy_value = other_element_value; + + __this__operatorAttributes.put(__this__operatorAttributes_copy_key, __this__operatorAttributes_copy_value); + } this.operatorAttributes = __this__operatorAttributes; } if (other.isSetOperatorCounters()) { - Map __this__operatorCounters = new HashMap(other.operatorCounters); + Map __this__operatorCounters = new HashMap(); + for (Map.Entry other_element : other.operatorCounters.entrySet()) { + + String other_element_key = other_element.getKey(); + Long other_element_value = other_element.getValue(); + + String __this__operatorCounters_copy_key = other_element_key; + + Long __this__operatorCounters_copy_value = other_element_value; + + __this__operatorCounters.put(__this__operatorCounters_copy_key, __this__operatorCounters_copy_value); + } this.operatorCounters = __this__operatorCounters; } this.done = other.done; @@ -561,105 +579,105 @@ public boolean equals(Operator that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operatorId = true && (isSetOperatorId()); - list.add(present_operatorId); + builder.append(present_operatorId); if (present_operatorId) - list.add(operatorId); + builder.append(operatorId); boolean present_operatorType = true && (isSetOperatorType()); - list.add(present_operatorType); + builder.append(present_operatorType); if (present_operatorType) - list.add(operatorType.getValue()); + builder.append(operatorType.getValue()); boolean present_operatorAttributes = true && (isSetOperatorAttributes()); - list.add(present_operatorAttributes); + builder.append(present_operatorAttributes); if (present_operatorAttributes) - list.add(operatorAttributes); + builder.append(operatorAttributes); boolean present_operatorCounters = true && (isSetOperatorCounters()); - list.add(present_operatorCounters); + builder.append(present_operatorCounters); if (present_operatorCounters) - list.add(operatorCounters); + builder.append(operatorCounters); boolean present_done = true; - list.add(present_done); + builder.append(present_done); if (present_done) - list.add(done); + builder.append(done); boolean present_started = true; - list.add(present_started); + builder.append(present_started); if (present_started) - list.add(started); + builder.append(started); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Operator other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Operator typedOther = (Operator)other; - lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(other.isSetOperatorId()); + lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(typedOther.isSetOperatorId()); if (lastComparison != 0) { return lastComparison; } if (isSetOperatorId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, other.operatorId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, typedOther.operatorId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperatorType()).compareTo(other.isSetOperatorType()); + lastComparison = Boolean.valueOf(isSetOperatorType()).compareTo(typedOther.isSetOperatorType()); if (lastComparison != 0) { return lastComparison; } if (isSetOperatorType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorType, other.operatorType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorType, typedOther.operatorType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperatorAttributes()).compareTo(other.isSetOperatorAttributes()); + lastComparison = Boolean.valueOf(isSetOperatorAttributes()).compareTo(typedOther.isSetOperatorAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetOperatorAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorAttributes, other.operatorAttributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorAttributes, typedOther.operatorAttributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperatorCounters()).compareTo(other.isSetOperatorCounters()); + lastComparison = Boolean.valueOf(isSetOperatorCounters()).compareTo(typedOther.isSetOperatorCounters()); if (lastComparison != 0) { return lastComparison; } if (isSetOperatorCounters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorCounters, other.operatorCounters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorCounters, typedOther.operatorCounters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDone()).compareTo(other.isSetDone()); + lastComparison = Boolean.valueOf(isSetDone()).compareTo(typedOther.isSetDone()); if (lastComparison != 0) { return lastComparison; } if (isSetDone()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, other.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStarted()).compareTo(other.isSetStarted()); + lastComparison = Boolean.valueOf(isSetStarted()).compareTo(typedOther.isSetStarted()); if (lastComparison != 0) { return lastComparison; } if (isSetStarted()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, other.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -778,7 +796,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Operator struct) th break; case 2: // OPERATOR_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.operatorType = org.apache.hadoop.hive.ql.plan.api.OperatorType.findByValue(iprot.readI32()); + struct.operatorType = OperatorType.findByValue(iprot.readI32()); struct.setOperatorTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -789,13 +807,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Operator struct) th { org.apache.thrift.protocol.TMap _map24 = iprot.readMapBegin(); struct.operatorAttributes = new HashMap(2*_map24.size); - String _key25; - String _val26; - for (int _i27 = 0; _i27 < _map24.size; ++_i27) + for (int _i25 = 0; _i25 < _map24.size; ++_i25) { - _key25 = iprot.readString(); - _val26 = iprot.readString(); - struct.operatorAttributes.put(_key25, _val26); + String _key26; // required + String _val27; // required + _key26 = iprot.readString(); + _val27 = iprot.readString(); + struct.operatorAttributes.put(_key26, _val27); } iprot.readMapEnd(); } @@ -809,13 +827,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Operator struct) th { org.apache.thrift.protocol.TMap _map28 = iprot.readMapBegin(); struct.operatorCounters = new HashMap(2*_map28.size); - String _key29; - long _val30; - for (int _i31 = 0; _i31 < _map28.size; ++_i31) + for (int _i29 = 0; _i29 < _map28.size; ++_i29) { - _key29 = iprot.readString(); - _val30 = iprot.readI64(); - struct.operatorCounters.put(_key29, _val30); + String _key30; // required + long _val31; // required + _key30 = iprot.readString(); + _val31 = iprot.readI64(); + struct.operatorCounters.put(_key30, _val31); } iprot.readMapEnd(); } @@ -975,20 +993,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Operator struct) thr struct.setOperatorIdIsSet(true); } if (incoming.get(1)) { - struct.operatorType = org.apache.hadoop.hive.ql.plan.api.OperatorType.findByValue(iprot.readI32()); + struct.operatorType = OperatorType.findByValue(iprot.readI32()); struct.setOperatorTypeIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TMap _map36 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.operatorAttributes = new HashMap(2*_map36.size); - String _key37; - String _val38; - for (int _i39 = 0; _i39 < _map36.size; ++_i39) + for (int _i37 = 0; _i37 < _map36.size; ++_i37) { - _key37 = iprot.readString(); - _val38 = iprot.readString(); - struct.operatorAttributes.put(_key37, _val38); + String _key38; // required + String _val39; // required + _key38 = iprot.readString(); + _val39 = iprot.readString(); + struct.operatorAttributes.put(_key38, _val39); } } struct.setOperatorAttributesIsSet(true); @@ -997,13 +1015,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Operator struct) thr { org.apache.thrift.protocol.TMap _map40 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.operatorCounters = new HashMap(2*_map40.size); - String _key41; - long _val42; - for (int _i43 = 0; _i43 < _map40.size; ++_i43) + for (int _i41 = 0; _i41 < _map40.size; ++_i41) { - _key41 = iprot.readString(); - _val42 = iprot.readI64(); - struct.operatorCounters.put(_key41, _val42); + String _key42; // required + long _val43; // required + _key42 = iprot.readString(); + _val43 = iprot.readI64(); + struct.operatorCounters.put(_key42, _val43); } } struct.setOperatorCountersIsSet(true); diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/OperatorType.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/OperatorType.java index 1d17dcb..4dfaa22 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/OperatorType.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/OperatorType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java index 5c5e0f8..e0d77e8 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Query.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Query implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Query implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Query"); private static final org.apache.thrift.protocol.TField QUERY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("queryId", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -211,18 +207,40 @@ public Query(Query other) { this.queryType = other.queryType; } if (other.isSetQueryAttributes()) { - Map __this__queryAttributes = new HashMap(other.queryAttributes); + Map __this__queryAttributes = new HashMap(); + for (Map.Entry other_element : other.queryAttributes.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__queryAttributes_copy_key = other_element_key; + + String __this__queryAttributes_copy_value = other_element_value; + + __this__queryAttributes.put(__this__queryAttributes_copy_key, __this__queryAttributes_copy_value); + } this.queryAttributes = __this__queryAttributes; } if (other.isSetQueryCounters()) { - Map __this__queryCounters = new HashMap(other.queryCounters); + Map __this__queryCounters = new HashMap(); + for (Map.Entry other_element : other.queryCounters.entrySet()) { + + String other_element_key = other_element.getKey(); + Long other_element_value = other_element.getValue(); + + String __this__queryCounters_copy_key = other_element_key; + + Long __this__queryCounters_copy_value = other_element_value; + + __this__queryCounters.put(__this__queryCounters_copy_key, __this__queryCounters_copy_value); + } this.queryCounters = __this__queryCounters; } if (other.isSetStageGraph()) { this.stageGraph = new Graph(other.stageGraph); } if (other.isSetStageList()) { - List __this__stageList = new ArrayList(other.stageList.size()); + List __this__stageList = new ArrayList(); for (Stage other_element : other.stageList) { __this__stageList.add(new Stage(other_element)); } @@ -685,135 +703,135 @@ public boolean equals(Query that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_queryId = true && (isSetQueryId()); - list.add(present_queryId); + builder.append(present_queryId); if (present_queryId) - list.add(queryId); + builder.append(queryId); boolean present_queryType = true && (isSetQueryType()); - list.add(present_queryType); + builder.append(present_queryType); if (present_queryType) - list.add(queryType); + builder.append(queryType); boolean present_queryAttributes = true && (isSetQueryAttributes()); - list.add(present_queryAttributes); + builder.append(present_queryAttributes); if (present_queryAttributes) - list.add(queryAttributes); + builder.append(queryAttributes); boolean present_queryCounters = true && (isSetQueryCounters()); - list.add(present_queryCounters); + builder.append(present_queryCounters); if (present_queryCounters) - list.add(queryCounters); + builder.append(queryCounters); boolean present_stageGraph = true && (isSetStageGraph()); - list.add(present_stageGraph); + builder.append(present_stageGraph); if (present_stageGraph) - list.add(stageGraph); + builder.append(stageGraph); boolean present_stageList = true && (isSetStageList()); - list.add(present_stageList); + builder.append(present_stageList); if (present_stageList) - list.add(stageList); + builder.append(stageList); boolean present_done = true; - list.add(present_done); + builder.append(present_done); if (present_done) - list.add(done); + builder.append(done); boolean present_started = true; - list.add(present_started); + builder.append(present_started); if (present_started) - list.add(started); + builder.append(started); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Query other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Query typedOther = (Query)other; - lastComparison = Boolean.valueOf(isSetQueryId()).compareTo(other.isSetQueryId()); + lastComparison = Boolean.valueOf(isSetQueryId()).compareTo(typedOther.isSetQueryId()); if (lastComparison != 0) { return lastComparison; } if (isSetQueryId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryId, other.queryId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryId, typedOther.queryId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQueryType()).compareTo(other.isSetQueryType()); + lastComparison = Boolean.valueOf(isSetQueryType()).compareTo(typedOther.isSetQueryType()); if (lastComparison != 0) { return lastComparison; } if (isSetQueryType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryType, other.queryType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryType, typedOther.queryType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQueryAttributes()).compareTo(other.isSetQueryAttributes()); + lastComparison = Boolean.valueOf(isSetQueryAttributes()).compareTo(typedOther.isSetQueryAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetQueryAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryAttributes, other.queryAttributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryAttributes, typedOther.queryAttributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetQueryCounters()).compareTo(other.isSetQueryCounters()); + lastComparison = Boolean.valueOf(isSetQueryCounters()).compareTo(typedOther.isSetQueryCounters()); if (lastComparison != 0) { return lastComparison; } if (isSetQueryCounters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryCounters, other.queryCounters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryCounters, typedOther.queryCounters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStageGraph()).compareTo(other.isSetStageGraph()); + lastComparison = Boolean.valueOf(isSetStageGraph()).compareTo(typedOther.isSetStageGraph()); if (lastComparison != 0) { return lastComparison; } if (isSetStageGraph()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageGraph, other.stageGraph); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageGraph, typedOther.stageGraph); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStageList()).compareTo(other.isSetStageList()); + lastComparison = Boolean.valueOf(isSetStageList()).compareTo(typedOther.isSetStageList()); if (lastComparison != 0) { return lastComparison; } if (isSetStageList()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageList, other.stageList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageList, typedOther.stageList); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDone()).compareTo(other.isSetDone()); + lastComparison = Boolean.valueOf(isSetDone()).compareTo(typedOther.isSetDone()); if (lastComparison != 0) { return lastComparison; } if (isSetDone()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, other.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStarted()).compareTo(other.isSetStarted()); + lastComparison = Boolean.valueOf(isSetStarted()).compareTo(typedOther.isSetStarted()); if (lastComparison != 0) { return lastComparison; } if (isSetStarted()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, other.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -962,13 +980,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Query struct) throw { org.apache.thrift.protocol.TMap _map100 = iprot.readMapBegin(); struct.queryAttributes = new HashMap(2*_map100.size); - String _key101; - String _val102; - for (int _i103 = 0; _i103 < _map100.size; ++_i103) + for (int _i101 = 0; _i101 < _map100.size; ++_i101) { - _key101 = iprot.readString(); - _val102 = iprot.readString(); - struct.queryAttributes.put(_key101, _val102); + String _key102; // required + String _val103; // required + _key102 = iprot.readString(); + _val103 = iprot.readString(); + struct.queryAttributes.put(_key102, _val103); } iprot.readMapEnd(); } @@ -982,13 +1000,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Query struct) throw { org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(); struct.queryCounters = new HashMap(2*_map104.size); - String _key105; - long _val106; - for (int _i107 = 0; _i107 < _map104.size; ++_i107) + for (int _i105 = 0; _i105 < _map104.size; ++_i105) { - _key105 = iprot.readString(); - _val106 = iprot.readI64(); - struct.queryCounters.put(_key105, _val106); + String _key106; // required + long _val107; // required + _key106 = iprot.readString(); + _val107 = iprot.readI64(); + struct.queryCounters.put(_key106, _val107); } iprot.readMapEnd(); } @@ -1011,12 +1029,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Query struct) throw { org.apache.thrift.protocol.TList _list108 = iprot.readListBegin(); struct.stageList = new ArrayList(_list108.size); - Stage _elem109; - for (int _i110 = 0; _i110 < _list108.size; ++_i110) + for (int _i109 = 0; _i109 < _list108.size; ++_i109) { - _elem109 = new Stage(); - _elem109.read(iprot); - struct.stageList.add(_elem109); + Stage _elem110; // required + _elem110 = new Stage(); + _elem110.read(iprot); + struct.stageList.add(_elem110); } iprot.readListEnd(); } @@ -1218,13 +1236,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Query struct) throws { org.apache.thrift.protocol.TMap _map117 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.queryAttributes = new HashMap(2*_map117.size); - String _key118; - String _val119; - for (int _i120 = 0; _i120 < _map117.size; ++_i120) + for (int _i118 = 0; _i118 < _map117.size; ++_i118) { - _key118 = iprot.readString(); - _val119 = iprot.readString(); - struct.queryAttributes.put(_key118, _val119); + String _key119; // required + String _val120; // required + _key119 = iprot.readString(); + _val120 = iprot.readString(); + struct.queryAttributes.put(_key119, _val120); } } struct.setQueryAttributesIsSet(true); @@ -1233,13 +1251,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Query struct) throws { org.apache.thrift.protocol.TMap _map121 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.queryCounters = new HashMap(2*_map121.size); - String _key122; - long _val123; - for (int _i124 = 0; _i124 < _map121.size; ++_i124) + for (int _i122 = 0; _i122 < _map121.size; ++_i122) { - _key122 = iprot.readString(); - _val123 = iprot.readI64(); - struct.queryCounters.put(_key122, _val123); + String _key123; // required + long _val124; // required + _key123 = iprot.readString(); + _val124 = iprot.readI64(); + struct.queryCounters.put(_key123, _val124); } } struct.setQueryCountersIsSet(true); @@ -1253,12 +1271,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Query struct) throws { org.apache.thrift.protocol.TList _list125 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.stageList = new ArrayList(_list125.size); - Stage _elem126; - for (int _i127 = 0; _i127 < _list125.size; ++_i127) + for (int _i126 = 0; _i126 < _list125.size; ++_i126) { - _elem126 = new Stage(); - _elem126.read(iprot); - struct.stageList.add(_elem126); + Stage _elem127; // required + _elem127 = new Stage(); + _elem127.read(iprot); + struct.stageList.add(_elem127); } } struct.setStageListIsSet(true); diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java index d340d58..e8566a5 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/QueryPlan.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class QueryPlan implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class QueryPlan implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("QueryPlan"); private static final org.apache.thrift.protocol.TField QUERIES_FIELD_DESC = new org.apache.thrift.protocol.TField("queries", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -156,7 +152,7 @@ public QueryPlan( public QueryPlan(QueryPlan other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetQueries()) { - List __this__queries = new ArrayList(other.queries.size()); + List __this__queries = new ArrayList(); for (Query other_element : other.queries) { __this__queries.add(new Query(other_element)); } @@ -367,60 +363,60 @@ public boolean equals(QueryPlan that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_queries = true && (isSetQueries()); - list.add(present_queries); + builder.append(present_queries); if (present_queries) - list.add(queries); + builder.append(queries); boolean present_done = true; - list.add(present_done); + builder.append(present_done); if (present_done) - list.add(done); + builder.append(done); boolean present_started = true; - list.add(present_started); + builder.append(present_started); if (present_started) - list.add(started); + builder.append(started); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(QueryPlan other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + QueryPlan typedOther = (QueryPlan)other; - lastComparison = Boolean.valueOf(isSetQueries()).compareTo(other.isSetQueries()); + lastComparison = Boolean.valueOf(isSetQueries()).compareTo(typedOther.isSetQueries()); if (lastComparison != 0) { return lastComparison; } if (isSetQueries()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queries, other.queries); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queries, typedOther.queries); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDone()).compareTo(other.isSetDone()); + lastComparison = Boolean.valueOf(isSetDone()).compareTo(typedOther.isSetDone()); if (lastComparison != 0) { return lastComparison; } if (isSetDone()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, other.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStarted()).compareTo(other.isSetStarted()); + lastComparison = Boolean.valueOf(isSetStarted()).compareTo(typedOther.isSetStarted()); if (lastComparison != 0) { return lastComparison; } if (isSetStarted()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, other.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -510,12 +506,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, QueryPlan struct) t { org.apache.thrift.protocol.TList _list128 = iprot.readListBegin(); struct.queries = new ArrayList(_list128.size); - Query _elem129; - for (int _i130 = 0; _i130 < _list128.size; ++_i130) + for (int _i129 = 0; _i129 < _list128.size; ++_i129) { - _elem129 = new Query(); - _elem129.read(iprot); - struct.queries.add(_elem129); + Query _elem130; // required + _elem130 = new Query(); + _elem130.read(iprot); + struct.queries.add(_elem130); } iprot.readListEnd(); } @@ -624,12 +620,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, QueryPlan struct) th { org.apache.thrift.protocol.TList _list133 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.queries = new ArrayList(_list133.size); - Query _elem134; - for (int _i135 = 0; _i135 < _list133.size; ++_i135) + for (int _i134 = 0; _i134 < _list133.size; ++_i134) { - _elem134 = new Query(); - _elem134.read(iprot); - struct.queries.add(_elem134); + Query _elem135; // required + _elem135 = new Query(); + _elem135.read(iprot); + struct.queries.add(_elem135); } } struct.setQueriesIsSet(true); diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java index 7353933..c341db2 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Stage.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Stage implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Stage implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Stage"); private static final org.apache.thrift.protocol.TField STAGE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stageId", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -206,15 +202,37 @@ public Stage(Stage other) { this.stageType = other.stageType; } if (other.isSetStageAttributes()) { - Map __this__stageAttributes = new HashMap(other.stageAttributes); + Map __this__stageAttributes = new HashMap(); + for (Map.Entry other_element : other.stageAttributes.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__stageAttributes_copy_key = other_element_key; + + String __this__stageAttributes_copy_value = other_element_value; + + __this__stageAttributes.put(__this__stageAttributes_copy_key, __this__stageAttributes_copy_value); + } this.stageAttributes = __this__stageAttributes; } if (other.isSetStageCounters()) { - Map __this__stageCounters = new HashMap(other.stageCounters); + Map __this__stageCounters = new HashMap(); + for (Map.Entry other_element : other.stageCounters.entrySet()) { + + String other_element_key = other_element.getKey(); + Long other_element_value = other_element.getValue(); + + String __this__stageCounters_copy_key = other_element_key; + + Long __this__stageCounters_copy_value = other_element_value; + + __this__stageCounters.put(__this__stageCounters_copy_key, __this__stageCounters_copy_value); + } this.stageCounters = __this__stageCounters; } if (other.isSetTaskList()) { - List __this__taskList = new ArrayList(other.taskList.size()); + List __this__taskList = new ArrayList(); for (Task other_element : other.taskList) { __this__taskList.add(new Task(other_element)); } @@ -639,120 +657,120 @@ public boolean equals(Stage that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_stageId = true && (isSetStageId()); - list.add(present_stageId); + builder.append(present_stageId); if (present_stageId) - list.add(stageId); + builder.append(stageId); boolean present_stageType = true && (isSetStageType()); - list.add(present_stageType); + builder.append(present_stageType); if (present_stageType) - list.add(stageType.getValue()); + builder.append(stageType.getValue()); boolean present_stageAttributes = true && (isSetStageAttributes()); - list.add(present_stageAttributes); + builder.append(present_stageAttributes); if (present_stageAttributes) - list.add(stageAttributes); + builder.append(stageAttributes); boolean present_stageCounters = true && (isSetStageCounters()); - list.add(present_stageCounters); + builder.append(present_stageCounters); if (present_stageCounters) - list.add(stageCounters); + builder.append(stageCounters); boolean present_taskList = true && (isSetTaskList()); - list.add(present_taskList); + builder.append(present_taskList); if (present_taskList) - list.add(taskList); + builder.append(taskList); boolean present_done = true; - list.add(present_done); + builder.append(present_done); if (present_done) - list.add(done); + builder.append(done); boolean present_started = true; - list.add(present_started); + builder.append(present_started); if (present_started) - list.add(started); + builder.append(started); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Stage other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Stage typedOther = (Stage)other; - lastComparison = Boolean.valueOf(isSetStageId()).compareTo(other.isSetStageId()); + lastComparison = Boolean.valueOf(isSetStageId()).compareTo(typedOther.isSetStageId()); if (lastComparison != 0) { return lastComparison; } if (isSetStageId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageId, other.stageId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageId, typedOther.stageId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStageType()).compareTo(other.isSetStageType()); + lastComparison = Boolean.valueOf(isSetStageType()).compareTo(typedOther.isSetStageType()); if (lastComparison != 0) { return lastComparison; } if (isSetStageType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageType, other.stageType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageType, typedOther.stageType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStageAttributes()).compareTo(other.isSetStageAttributes()); + lastComparison = Boolean.valueOf(isSetStageAttributes()).compareTo(typedOther.isSetStageAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetStageAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageAttributes, other.stageAttributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageAttributes, typedOther.stageAttributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStageCounters()).compareTo(other.isSetStageCounters()); + lastComparison = Boolean.valueOf(isSetStageCounters()).compareTo(typedOther.isSetStageCounters()); if (lastComparison != 0) { return lastComparison; } if (isSetStageCounters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageCounters, other.stageCounters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stageCounters, typedOther.stageCounters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTaskList()).compareTo(other.isSetTaskList()); + lastComparison = Boolean.valueOf(isSetTaskList()).compareTo(typedOther.isSetTaskList()); if (lastComparison != 0) { return lastComparison; } if (isSetTaskList()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskList, other.taskList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskList, typedOther.taskList); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDone()).compareTo(other.isSetDone()); + lastComparison = Boolean.valueOf(isSetDone()).compareTo(typedOther.isSetDone()); if (lastComparison != 0) { return lastComparison; } if (isSetDone()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, other.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStarted()).compareTo(other.isSetStarted()); + lastComparison = Boolean.valueOf(isSetStarted()).compareTo(typedOther.isSetStarted()); if (lastComparison != 0) { return lastComparison; } if (isSetStarted()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, other.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -879,7 +897,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Stage struct) throw break; case 2: // STAGE_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.stageType = org.apache.hadoop.hive.ql.plan.api.StageType.findByValue(iprot.readI32()); + struct.stageType = StageType.findByValue(iprot.readI32()); struct.setStageTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -890,13 +908,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Stage struct) throw { org.apache.thrift.protocol.TMap _map72 = iprot.readMapBegin(); struct.stageAttributes = new HashMap(2*_map72.size); - String _key73; - String _val74; - for (int _i75 = 0; _i75 < _map72.size; ++_i75) + for (int _i73 = 0; _i73 < _map72.size; ++_i73) { - _key73 = iprot.readString(); - _val74 = iprot.readString(); - struct.stageAttributes.put(_key73, _val74); + String _key74; // required + String _val75; // required + _key74 = iprot.readString(); + _val75 = iprot.readString(); + struct.stageAttributes.put(_key74, _val75); } iprot.readMapEnd(); } @@ -910,13 +928,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Stage struct) throw { org.apache.thrift.protocol.TMap _map76 = iprot.readMapBegin(); struct.stageCounters = new HashMap(2*_map76.size); - String _key77; - long _val78; - for (int _i79 = 0; _i79 < _map76.size; ++_i79) + for (int _i77 = 0; _i77 < _map76.size; ++_i77) { - _key77 = iprot.readString(); - _val78 = iprot.readI64(); - struct.stageCounters.put(_key77, _val78); + String _key78; // required + long _val79; // required + _key78 = iprot.readString(); + _val79 = iprot.readI64(); + struct.stageCounters.put(_key78, _val79); } iprot.readMapEnd(); } @@ -930,12 +948,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Stage struct) throw { org.apache.thrift.protocol.TList _list80 = iprot.readListBegin(); struct.taskList = new ArrayList(_list80.size); - Task _elem81; - for (int _i82 = 0; _i82 < _list80.size; ++_i82) + for (int _i81 = 0; _i81 < _list80.size; ++_i81) { - _elem81 = new Task(); - _elem81.read(iprot); - struct.taskList.add(_elem81); + Task _elem82; // required + _elem82 = new Task(); + _elem82.read(iprot); + struct.taskList.add(_elem82); } iprot.readListEnd(); } @@ -1119,20 +1137,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Stage struct) throws struct.setStageIdIsSet(true); } if (incoming.get(1)) { - struct.stageType = org.apache.hadoop.hive.ql.plan.api.StageType.findByValue(iprot.readI32()); + struct.stageType = StageType.findByValue(iprot.readI32()); struct.setStageTypeIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TMap _map89 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.stageAttributes = new HashMap(2*_map89.size); - String _key90; - String _val91; - for (int _i92 = 0; _i92 < _map89.size; ++_i92) + for (int _i90 = 0; _i90 < _map89.size; ++_i90) { - _key90 = iprot.readString(); - _val91 = iprot.readString(); - struct.stageAttributes.put(_key90, _val91); + String _key91; // required + String _val92; // required + _key91 = iprot.readString(); + _val92 = iprot.readString(); + struct.stageAttributes.put(_key91, _val92); } } struct.setStageAttributesIsSet(true); @@ -1141,13 +1159,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Stage struct) throws { org.apache.thrift.protocol.TMap _map93 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.stageCounters = new HashMap(2*_map93.size); - String _key94; - long _val95; - for (int _i96 = 0; _i96 < _map93.size; ++_i96) + for (int _i94 = 0; _i94 < _map93.size; ++_i94) { - _key94 = iprot.readString(); - _val95 = iprot.readI64(); - struct.stageCounters.put(_key94, _val95); + String _key95; // required + long _val96; // required + _key95 = iprot.readString(); + _val96 = iprot.readI64(); + struct.stageCounters.put(_key95, _val96); } } struct.setStageCountersIsSet(true); @@ -1156,12 +1174,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Stage struct) throws { org.apache.thrift.protocol.TList _list97 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.taskList = new ArrayList(_list97.size); - Task _elem98; - for (int _i99 = 0; _i99 < _list97.size; ++_i99) + for (int _i98 = 0; _i98 < _list97.size; ++_i98) { - _elem98 = new Task(); - _elem98.read(iprot); - struct.taskList.add(_elem98); + Task _elem99; // required + _elem99 = new Task(); + _elem99.read(iprot); + struct.taskList.add(_elem99); } } struct.setTaskListIsSet(true); diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java index c7b0ff7..3648273 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java index 09a2e7f..fc4313f 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/Task.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.ql.plan.api; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Task implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Task implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Task"); private static final org.apache.thrift.protocol.TField TASK_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("taskId", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -149,7 +145,7 @@ public String getFieldName() { private static final int __DONE_ISSET_ID = 0; private static final int __STARTED_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.OPERATOR_GRAPH,_Fields.OPERATOR_LIST}; + private _Fields optionals[] = {_Fields.OPERATOR_GRAPH,_Fields.OPERATOR_LIST}; 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); @@ -212,18 +208,40 @@ public Task(Task other) { this.taskType = other.taskType; } if (other.isSetTaskAttributes()) { - Map __this__taskAttributes = new HashMap(other.taskAttributes); + Map __this__taskAttributes = new HashMap(); + for (Map.Entry other_element : other.taskAttributes.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__taskAttributes_copy_key = other_element_key; + + String __this__taskAttributes_copy_value = other_element_value; + + __this__taskAttributes.put(__this__taskAttributes_copy_key, __this__taskAttributes_copy_value); + } this.taskAttributes = __this__taskAttributes; } if (other.isSetTaskCounters()) { - Map __this__taskCounters = new HashMap(other.taskCounters); + Map __this__taskCounters = new HashMap(); + for (Map.Entry other_element : other.taskCounters.entrySet()) { + + String other_element_key = other_element.getKey(); + Long other_element_value = other_element.getValue(); + + String __this__taskCounters_copy_key = other_element_key; + + Long __this__taskCounters_copy_value = other_element_value; + + __this__taskCounters.put(__this__taskCounters_copy_key, __this__taskCounters_copy_value); + } this.taskCounters = __this__taskCounters; } if (other.isSetOperatorGraph()) { this.operatorGraph = new Graph(other.operatorGraph); } if (other.isSetOperatorList()) { - List __this__operatorList = new ArrayList(other.operatorList.size()); + List __this__operatorList = new ArrayList(); for (Operator other_element : other.operatorList) { __this__operatorList.add(new Operator(other_element)); } @@ -694,135 +712,135 @@ public boolean equals(Task that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_taskId = true && (isSetTaskId()); - list.add(present_taskId); + builder.append(present_taskId); if (present_taskId) - list.add(taskId); + builder.append(taskId); boolean present_taskType = true && (isSetTaskType()); - list.add(present_taskType); + builder.append(present_taskType); if (present_taskType) - list.add(taskType.getValue()); + builder.append(taskType.getValue()); boolean present_taskAttributes = true && (isSetTaskAttributes()); - list.add(present_taskAttributes); + builder.append(present_taskAttributes); if (present_taskAttributes) - list.add(taskAttributes); + builder.append(taskAttributes); boolean present_taskCounters = true && (isSetTaskCounters()); - list.add(present_taskCounters); + builder.append(present_taskCounters); if (present_taskCounters) - list.add(taskCounters); + builder.append(taskCounters); boolean present_operatorGraph = true && (isSetOperatorGraph()); - list.add(present_operatorGraph); + builder.append(present_operatorGraph); if (present_operatorGraph) - list.add(operatorGraph); + builder.append(operatorGraph); boolean present_operatorList = true && (isSetOperatorList()); - list.add(present_operatorList); + builder.append(present_operatorList); if (present_operatorList) - list.add(operatorList); + builder.append(operatorList); boolean present_done = true; - list.add(present_done); + builder.append(present_done); if (present_done) - list.add(done); + builder.append(done); boolean present_started = true; - list.add(present_started); + builder.append(present_started); if (present_started) - list.add(started); + builder.append(started); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Task other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Task typedOther = (Task)other; - lastComparison = Boolean.valueOf(isSetTaskId()).compareTo(other.isSetTaskId()); + lastComparison = Boolean.valueOf(isSetTaskId()).compareTo(typedOther.isSetTaskId()); if (lastComparison != 0) { return lastComparison; } if (isSetTaskId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskId, other.taskId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskId, typedOther.taskId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTaskType()).compareTo(other.isSetTaskType()); + lastComparison = Boolean.valueOf(isSetTaskType()).compareTo(typedOther.isSetTaskType()); if (lastComparison != 0) { return lastComparison; } if (isSetTaskType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskType, other.taskType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskType, typedOther.taskType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTaskAttributes()).compareTo(other.isSetTaskAttributes()); + lastComparison = Boolean.valueOf(isSetTaskAttributes()).compareTo(typedOther.isSetTaskAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetTaskAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskAttributes, other.taskAttributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskAttributes, typedOther.taskAttributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTaskCounters()).compareTo(other.isSetTaskCounters()); + lastComparison = Boolean.valueOf(isSetTaskCounters()).compareTo(typedOther.isSetTaskCounters()); if (lastComparison != 0) { return lastComparison; } if (isSetTaskCounters()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskCounters, other.taskCounters); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskCounters, typedOther.taskCounters); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperatorGraph()).compareTo(other.isSetOperatorGraph()); + lastComparison = Boolean.valueOf(isSetOperatorGraph()).compareTo(typedOther.isSetOperatorGraph()); if (lastComparison != 0) { return lastComparison; } if (isSetOperatorGraph()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorGraph, other.operatorGraph); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorGraph, typedOther.operatorGraph); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperatorList()).compareTo(other.isSetOperatorList()); + lastComparison = Boolean.valueOf(isSetOperatorList()).compareTo(typedOther.isSetOperatorList()); if (lastComparison != 0) { return lastComparison; } if (isSetOperatorList()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorList, other.operatorList); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorList, typedOther.operatorList); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDone()).compareTo(other.isSetDone()); + lastComparison = Boolean.valueOf(isSetDone()).compareTo(typedOther.isSetDone()); if (lastComparison != 0) { return lastComparison; } if (isSetDone()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, other.done); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.done, typedOther.done); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStarted()).compareTo(other.isSetStarted()); + lastComparison = Boolean.valueOf(isSetStarted()).compareTo(typedOther.isSetStarted()); if (lastComparison != 0) { return lastComparison; } if (isSetStarted()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, other.started); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.started, typedOther.started); if (lastComparison != 0) { return lastComparison; } @@ -964,7 +982,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Task struct) throws break; case 2: // TASK_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.taskType = org.apache.hadoop.hive.ql.plan.api.TaskType.findByValue(iprot.readI32()); + struct.taskType = TaskType.findByValue(iprot.readI32()); struct.setTaskTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -975,13 +993,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Task struct) throws { org.apache.thrift.protocol.TMap _map44 = iprot.readMapBegin(); struct.taskAttributes = new HashMap(2*_map44.size); - String _key45; - String _val46; - for (int _i47 = 0; _i47 < _map44.size; ++_i47) + for (int _i45 = 0; _i45 < _map44.size; ++_i45) { - _key45 = iprot.readString(); - _val46 = iprot.readString(); - struct.taskAttributes.put(_key45, _val46); + String _key46; // required + String _val47; // required + _key46 = iprot.readString(); + _val47 = iprot.readString(); + struct.taskAttributes.put(_key46, _val47); } iprot.readMapEnd(); } @@ -995,13 +1013,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Task struct) throws { org.apache.thrift.protocol.TMap _map48 = iprot.readMapBegin(); struct.taskCounters = new HashMap(2*_map48.size); - String _key49; - long _val50; - for (int _i51 = 0; _i51 < _map48.size; ++_i51) + for (int _i49 = 0; _i49 < _map48.size; ++_i49) { - _key49 = iprot.readString(); - _val50 = iprot.readI64(); - struct.taskCounters.put(_key49, _val50); + String _key50; // required + long _val51; // required + _key50 = iprot.readString(); + _val51 = iprot.readI64(); + struct.taskCounters.put(_key50, _val51); } iprot.readMapEnd(); } @@ -1024,12 +1042,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Task struct) throws { org.apache.thrift.protocol.TList _list52 = iprot.readListBegin(); struct.operatorList = new ArrayList(_list52.size); - Operator _elem53; - for (int _i54 = 0; _i54 < _list52.size; ++_i54) + for (int _i53 = 0; _i53 < _list52.size; ++_i53) { - _elem53 = new Operator(); - _elem53.read(iprot); - struct.operatorList.add(_elem53); + Operator _elem54; // required + _elem54 = new Operator(); + _elem54.read(iprot); + struct.operatorList.add(_elem54); } iprot.readListEnd(); } @@ -1228,20 +1246,20 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Task struct) throws struct.setTaskIdIsSet(true); } if (incoming.get(1)) { - struct.taskType = org.apache.hadoop.hive.ql.plan.api.TaskType.findByValue(iprot.readI32()); + struct.taskType = TaskType.findByValue(iprot.readI32()); struct.setTaskTypeIsSet(true); } if (incoming.get(2)) { { org.apache.thrift.protocol.TMap _map61 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.taskAttributes = new HashMap(2*_map61.size); - String _key62; - String _val63; - for (int _i64 = 0; _i64 < _map61.size; ++_i64) + for (int _i62 = 0; _i62 < _map61.size; ++_i62) { - _key62 = iprot.readString(); - _val63 = iprot.readString(); - struct.taskAttributes.put(_key62, _val63); + String _key63; // required + String _val64; // required + _key63 = iprot.readString(); + _val64 = iprot.readString(); + struct.taskAttributes.put(_key63, _val64); } } struct.setTaskAttributesIsSet(true); @@ -1250,13 +1268,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Task struct) throws { org.apache.thrift.protocol.TMap _map65 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.taskCounters = new HashMap(2*_map65.size); - String _key66; - long _val67; - for (int _i68 = 0; _i68 < _map65.size; ++_i68) + for (int _i66 = 0; _i66 < _map65.size; ++_i66) { - _key66 = iprot.readString(); - _val67 = iprot.readI64(); - struct.taskCounters.put(_key66, _val67); + String _key67; // required + long _val68; // required + _key67 = iprot.readString(); + _val68 = iprot.readI64(); + struct.taskCounters.put(_key67, _val68); } } struct.setTaskCountersIsSet(true); @@ -1270,12 +1288,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Task struct) throws { org.apache.thrift.protocol.TList _list69 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.operatorList = new ArrayList(_list69.size); - Operator _elem70; - for (int _i71 = 0; _i71 < _list69.size; ++_i71) + for (int _i70 = 0; _i70 < _list69.size; ++_i70) { - _elem70 = new Operator(); - _elem70.read(iprot); - struct.operatorList.add(_elem70); + Operator _elem71; // required + _elem71 = new Operator(); + _elem71.read(iprot); + struct.operatorList.add(_elem71); } } struct.setOperatorListIsSet(true); diff --git a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/TaskType.java b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/TaskType.java index 8aad073..7df0029 100644 --- a/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/TaskType.java +++ b/ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/TaskType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/ql/src/gen/thrift/gen-php/Types.php b/ql/src/gen/thrift/gen-php/Types.php index 3dfff1d..eec85eb 100644 --- a/ql/src/gen/thrift/gen-php/Types.php +++ b/ql/src/gen/thrift/gen-php/Types.php @@ -2,7 +2,7 @@ namespace ; /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -13,7 +13,6 @@ use Thrift\Type\TMessageType; use Thrift\Exception\TException; use Thrift\Exception\TProtocolException; use Thrift\Protocol\TProtocol; -use Thrift\Protocol\TBinaryProtocolAccelerated; use Thrift\Exception\TApplicationException; @@ -135,17 +134,8 @@ final class StageType { class Adjacency { static $_TSPEC; - /** - * @var string - */ public $node = null; - /** - * @var string[] - */ public $children = null; - /** - * @var int - */ public $adjacencyType = null; public function __construct($vals=null) { @@ -282,17 +272,8 @@ class Adjacency { class Graph { static $_TSPEC; - /** - * @var int - */ public $nodeType = null; - /** - * @var string[] - */ public $roots = null; - /** - * @var \Adjacency[] - */ public $adjacencyList = null; public function __construct($vals=null) { @@ -457,29 +438,11 @@ class Graph { class Operator { static $_TSPEC; - /** - * @var string - */ public $operatorId = null; - /** - * @var int - */ public $operatorType = null; - /** - * @var array - */ public $operatorAttributes = null; - /** - * @var array - */ public $operatorCounters = null; - /** - * @var bool - */ public $done = null; - /** - * @var bool - */ public $started = null; public function __construct($vals=null) { @@ -715,37 +678,13 @@ class Operator { class Task { static $_TSPEC; - /** - * @var string - */ public $taskId = null; - /** - * @var int - */ public $taskType = null; - /** - * @var array - */ public $taskAttributes = null; - /** - * @var array - */ public $taskCounters = null; - /** - * @var \Graph - */ public $operatorGraph = null; - /** - * @var \Operator[] - */ public $operatorList = null; - /** - * @var bool - */ public $done = null; - /** - * @var bool - */ public $started = null; public function __construct($vals=null) { @@ -1052,33 +991,12 @@ class Task { class Stage { static $_TSPEC; - /** - * @var string - */ public $stageId = null; - /** - * @var int - */ public $stageType = null; - /** - * @var array - */ public $stageAttributes = null; - /** - * @var array - */ public $stageCounters = null; - /** - * @var \Task[] - */ public $taskList = null; - /** - * @var bool - */ public $done = null; - /** - * @var bool - */ public $started = null; public function __construct($vals=null) { @@ -1361,37 +1279,13 @@ class Stage { class Query { static $_TSPEC; - /** - * @var string - */ public $queryId = null; - /** - * @var string - */ public $queryType = null; - /** - * @var array - */ public $queryAttributes = null; - /** - * @var array - */ public $queryCounters = null; - /** - * @var \Graph - */ public $stageGraph = null; - /** - * @var \Stage[] - */ public $stageList = null; - /** - * @var bool - */ public $done = null; - /** - * @var bool - */ public $started = null; public function __construct($vals=null) { @@ -1698,17 +1592,8 @@ class Query { class QueryPlan { static $_TSPEC; - /** - * @var \Query[] - */ public $queries = null; - /** - * @var bool - */ public $done = null; - /** - * @var bool - */ public $started = null; public function __construct($vals=null) { diff --git a/ql/src/gen/thrift/gen-py/queryplan/constants.py b/ql/src/gen/thrift/gen-py/queryplan/constants.py index 99717a9..a236326 100644 --- a/ql/src/gen/thrift/gen-py/queryplan/constants.py +++ b/ql/src/gen/thrift/gen-py/queryplan/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/ql/src/gen/thrift/gen-py/queryplan/ttypes.py b/ql/src/gen/thrift/gen-py/queryplan/ttypes.py index 6deb850..a10335a 100644 --- a/ql/src/gen/thrift/gen-py/queryplan/ttypes.py +++ b/ql/src/gen/thrift/gen-py/queryplan/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -273,13 +273,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.node) - value = (value * 31) ^ hash(self.children) - value = (value * 31) ^ hash(self.adjacencyType) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -381,13 +374,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.nodeType) - value = (value * 31) ^ hash(self.roots) - value = (value * 31) ^ hash(self.adjacencyList) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -450,7 +436,7 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.operatorAttributes = {} - (_ktype22, _vtype23, _size21 ) = iprot.readMapBegin() + (_ktype22, _vtype23, _size21 ) = iprot.readMapBegin() for _i25 in xrange(_size21): _key26 = iprot.readString(); _val27 = iprot.readString(); @@ -461,7 +447,7 @@ def read(self, iprot): elif fid == 4: if ftype == TType.MAP: self.operatorCounters = {} - (_ktype29, _vtype30, _size28 ) = iprot.readMapBegin() + (_ktype29, _vtype30, _size28 ) = iprot.readMapBegin() for _i32 in xrange(_size28): _key33 = iprot.readString(); _val34 = iprot.readI64(); @@ -528,16 +514,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.operatorId) - value = (value * 31) ^ hash(self.operatorType) - value = (value * 31) ^ hash(self.operatorAttributes) - value = (value * 31) ^ hash(self.operatorCounters) - value = (value * 31) ^ hash(self.done) - value = (value * 31) ^ hash(self.started) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -606,7 +582,7 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.taskAttributes = {} - (_ktype40, _vtype41, _size39 ) = iprot.readMapBegin() + (_ktype40, _vtype41, _size39 ) = iprot.readMapBegin() for _i43 in xrange(_size39): _key44 = iprot.readString(); _val45 = iprot.readString(); @@ -617,7 +593,7 @@ def read(self, iprot): elif fid == 4: if ftype == TType.MAP: self.taskCounters = {} - (_ktype47, _vtype48, _size46 ) = iprot.readMapBegin() + (_ktype47, _vtype48, _size46 ) = iprot.readMapBegin() for _i50 in xrange(_size46): _key51 = iprot.readString(); _val52 = iprot.readI64(); @@ -712,18 +688,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.taskId) - value = (value * 31) ^ hash(self.taskType) - value = (value * 31) ^ hash(self.taskAttributes) - value = (value * 31) ^ hash(self.taskCounters) - value = (value * 31) ^ hash(self.operatorGraph) - value = (value * 31) ^ hash(self.operatorList) - value = (value * 31) ^ hash(self.done) - value = (value * 31) ^ hash(self.started) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -789,7 +753,7 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.stageAttributes = {} - (_ktype65, _vtype66, _size64 ) = iprot.readMapBegin() + (_ktype65, _vtype66, _size64 ) = iprot.readMapBegin() for _i68 in xrange(_size64): _key69 = iprot.readString(); _val70 = iprot.readString(); @@ -800,7 +764,7 @@ def read(self, iprot): elif fid == 4: if ftype == TType.MAP: self.stageCounters = {} - (_ktype72, _vtype73, _size71 ) = iprot.readMapBegin() + (_ktype72, _vtype73, _size71 ) = iprot.readMapBegin() for _i75 in xrange(_size71): _key76 = iprot.readString(); _val77 = iprot.readI64(); @@ -885,17 +849,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.stageId) - value = (value * 31) ^ hash(self.stageType) - value = (value * 31) ^ hash(self.stageAttributes) - value = (value * 31) ^ hash(self.stageCounters) - value = (value * 31) ^ hash(self.taskList) - value = (value * 31) ^ hash(self.done) - value = (value * 31) ^ hash(self.started) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -964,7 +917,7 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.queryAttributes = {} - (_ktype90, _vtype91, _size89 ) = iprot.readMapBegin() + (_ktype90, _vtype91, _size89 ) = iprot.readMapBegin() for _i93 in xrange(_size89): _key94 = iprot.readString(); _val95 = iprot.readString(); @@ -975,7 +928,7 @@ def read(self, iprot): elif fid == 4: if ftype == TType.MAP: self.queryCounters = {} - (_ktype97, _vtype98, _size96 ) = iprot.readMapBegin() + (_ktype97, _vtype98, _size96 ) = iprot.readMapBegin() for _i100 in xrange(_size96): _key101 = iprot.readString(); _val102 = iprot.readI64(); @@ -1070,18 +1023,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.queryId) - value = (value * 31) ^ hash(self.queryType) - value = (value * 31) ^ hash(self.queryAttributes) - value = (value * 31) ^ hash(self.queryCounters) - value = (value * 31) ^ hash(self.stageGraph) - value = (value * 31) ^ hash(self.stageList) - value = (value * 31) ^ hash(self.done) - value = (value * 31) ^ hash(self.started) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1175,13 +1116,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.queries) - value = (value * 31) ^ hash(self.done) - value = (value * 31) ^ hash(self.started) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/ql/src/gen/thrift/gen-rb/queryplan_constants.rb b/ql/src/gen/thrift/gen-rb/queryplan_constants.rb index 428185e..8080b3f 100644 --- a/ql/src/gen/thrift/gen-rb/queryplan_constants.rb +++ b/ql/src/gen/thrift/gen-rb/queryplan_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/ql/src/gen/thrift/gen-rb/queryplan_types.rb b/ql/src/gen/thrift/gen-rb/queryplan_types.rb index 1a22f07..a17cbbc 100644 --- a/ql/src/gen/thrift/gen-rb/queryplan_types.rb +++ b/ql/src/gen/thrift/gen-rb/queryplan_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java index 396c070..521896e 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -2292,6 +2292,30 @@ public boolean getPartitionsByExpr(Table tbl, ExprNodeGenericFuncDesc expr, Hive return hasUnknownParts; } + /** + * Get a number of Partitions by filter. + * @param tbl The table containing the partitions. + * @param filter A string represent partition predicates. + * @return the number of partitions satisfying the partition predicates. + * @throws HiveException + * @throws MetaException + * @throws NoSuchObjectException + * @throws TException + */ + public int getNumPartitionsByFilter(Table tbl, String filter) + throws HiveException, MetaException, NoSuchObjectException, TException { + + if (!tbl.isPartitioned()) { + throw new HiveException("Partition spec should only be supplied for a " + + "partitioned table"); + } + + int numParts = getMSC().getNumPartitionsByFilter( + tbl.getDbName(), tbl.getTableName(), filter, (short)-1); + + return numParts; + } + public void validatePartitionNameCharacters(List partVals) throws HiveException { try { getMSC().validatePartitionNameCharacters(partVals); diff --git a/serde/src/gen/thrift/gen-cpp/complex_constants.cpp b/serde/src/gen/thrift/gen-cpp/complex_constants.cpp index aa146c6..768fc38 100644 --- a/serde/src/gen/thrift/gen-cpp/complex_constants.cpp +++ b/serde/src/gen/thrift/gen-cpp/complex_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/complex_constants.h b/serde/src/gen/thrift/gen-cpp/complex_constants.h index 971cd2c..6b115df 100644 --- a/serde/src/gen/thrift/gen-cpp/complex_constants.h +++ b/serde/src/gen/thrift/gen-cpp/complex_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/complex_types.cpp b/serde/src/gen/thrift/gen-cpp/complex_types.cpp index fb6fe25..411e1b0 100644 --- a/serde/src/gen/thrift/gen-cpp/complex_types.cpp +++ b/serde/src/gen/thrift/gen-cpp/complex_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,50 +7,9 @@ #include "complex_types.h" #include -#include -#include - - -PropValueUnion::~PropValueUnion() throw() { -} - - -void PropValueUnion::__set_intValue(const int32_t val) { - this->intValue = val; -__isset.intValue = true; -} - -void PropValueUnion::__set_longValue(const int64_t val) { - this->longValue = val; -__isset.longValue = true; -} - -void PropValueUnion::__set_stringValue(const std::string& val) { - this->stringValue = val; -__isset.stringValue = true; -} - -void PropValueUnion::__set_doubleValue(const double val) { - this->doubleValue = val; -__isset.doubleValue = true; -} - -void PropValueUnion::__set_flag(const bool val) { - this->flag = val; -__isset.flag = true; -} - -void PropValueUnion::__set_lString(const std::vector & val) { - this->lString = val; -} - -void PropValueUnion::__set_unionMStringString(const std::map & val) { - this->unionMStringString = val; -} - const char* PropValueUnion::ascii_fingerprint = "123CD9D82D5B5054B5054EFD63FC8590"; const uint8_t PropValueUnion::binary_fingerprint[16] = {0x12,0x3C,0xD9,0xD8,0x2D,0x5B,0x50,0x54,0xB5,0x05,0x4E,0xFD,0x63,0xFC,0x85,0x90}; @@ -171,7 +130,6 @@ uint32_t PropValueUnion::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t PropValueUnion::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("PropValueUnion"); if (this->__isset.intValue) { @@ -226,7 +184,6 @@ uint32_t PropValueUnion::write(::apache::thrift::protocol::TProtocol* oprot) con xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -242,58 +199,6 @@ void swap(PropValueUnion &a, PropValueUnion &b) { swap(a.__isset, b.__isset); } -PropValueUnion::PropValueUnion(const PropValueUnion& other14) { - intValue = other14.intValue; - longValue = other14.longValue; - stringValue = other14.stringValue; - doubleValue = other14.doubleValue; - flag = other14.flag; - lString = other14.lString; - unionMStringString = other14.unionMStringString; - __isset = other14.__isset; -} -PropValueUnion& PropValueUnion::operator=(const PropValueUnion& other15) { - intValue = other15.intValue; - longValue = other15.longValue; - stringValue = other15.stringValue; - doubleValue = other15.doubleValue; - flag = other15.flag; - lString = other15.lString; - unionMStringString = other15.unionMStringString; - __isset = other15.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const PropValueUnion& obj) { - using apache::thrift::to_string; - out << "PropValueUnion("; - out << "intValue="; (obj.__isset.intValue ? (out << to_string(obj.intValue)) : (out << "")); - out << ", " << "longValue="; (obj.__isset.longValue ? (out << to_string(obj.longValue)) : (out << "")); - out << ", " << "stringValue="; (obj.__isset.stringValue ? (out << to_string(obj.stringValue)) : (out << "")); - out << ", " << "doubleValue="; (obj.__isset.doubleValue ? (out << to_string(obj.doubleValue)) : (out << "")); - out << ", " << "flag="; (obj.__isset.flag ? (out << to_string(obj.flag)) : (out << "")); - out << ", " << "lString=" << to_string(obj.lString); - out << ", " << "unionMStringString=" << to_string(obj.unionMStringString); - out << ")"; - return out; -} - - -IntString::~IntString() throw() { -} - - -void IntString::__set_myint(const int32_t val) { - this->myint = val; -} - -void IntString::__set_myString(const std::string& val) { - this->myString = val; -} - -void IntString::__set_underscore_int(const int32_t val) { - this->underscore_int = val; -} - const char* IntString::ascii_fingerprint = "52C6DAB6CF51AF617111F6D3964C6503"; const uint8_t IntString::binary_fingerprint[16] = {0x52,0xC6,0xDA,0xB6,0xCF,0x51,0xAF,0x61,0x71,0x11,0xF6,0xD3,0x96,0x4C,0x65,0x03}; @@ -355,7 +260,6 @@ uint32_t IntString::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t IntString::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("IntString"); xfer += oprot->writeFieldBegin("myint", ::apache::thrift::protocol::T_I32, 1); @@ -372,7 +276,6 @@ uint32_t IntString::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -384,74 +287,6 @@ void swap(IntString &a, IntString &b) { swap(a.__isset, b.__isset); } -IntString::IntString(const IntString& other16) { - myint = other16.myint; - myString = other16.myString; - underscore_int = other16.underscore_int; - __isset = other16.__isset; -} -IntString& IntString::operator=(const IntString& other17) { - myint = other17.myint; - myString = other17.myString; - underscore_int = other17.underscore_int; - __isset = other17.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const IntString& obj) { - using apache::thrift::to_string; - out << "IntString("; - out << "myint=" << to_string(obj.myint); - out << ", " << "myString=" << to_string(obj.myString); - out << ", " << "underscore_int=" << to_string(obj.underscore_int); - out << ")"; - return out; -} - - -Complex::~Complex() throw() { -} - - -void Complex::__set_aint(const int32_t val) { - this->aint = val; -} - -void Complex::__set_aString(const std::string& val) { - this->aString = val; -} - -void Complex::__set_lint(const std::vector & val) { - this->lint = val; -} - -void Complex::__set_lString(const std::vector & val) { - this->lString = val; -} - -void Complex::__set_lintString(const std::vector & val) { - this->lintString = val; -} - -void Complex::__set_mStringString(const std::map & val) { - this->mStringString = val; -} - -void Complex::__set_attributes(const std::map > > & val) { - this->attributes = val; -} - -void Complex::__set_unionField1(const PropValueUnion& val) { - this->unionField1 = val; -} - -void Complex::__set_unionField2(const PropValueUnion& val) { - this->unionField2 = val; -} - -void Complex::__set_unionField3(const PropValueUnion& val) { - this->unionField3 = val; -} - const char* Complex::ascii_fingerprint = "FFA84FEA7037F5858F2BFEDA73AD679A"; const uint8_t Complex::binary_fingerprint[16] = {0xFF,0xA8,0x4F,0xEA,0x70,0x37,0xF5,0x85,0x8F,0x2B,0xFE,0xDA,0x73,0xAD,0x67,0x9A}; @@ -495,14 +330,14 @@ uint32_t Complex::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->lint.clear(); - uint32_t _size18; - ::apache::thrift::protocol::TType _etype21; - xfer += iprot->readListBegin(_etype21, _size18); - this->lint.resize(_size18); - uint32_t _i22; - for (_i22 = 0; _i22 < _size18; ++_i22) + uint32_t _size14; + ::apache::thrift::protocol::TType _etype17; + xfer += iprot->readListBegin(_etype17, _size14); + this->lint.resize(_size14); + uint32_t _i18; + for (_i18 = 0; _i18 < _size14; ++_i18) { - xfer += iprot->readI32(this->lint[_i22]); + xfer += iprot->readI32(this->lint[_i18]); } xfer += iprot->readListEnd(); } @@ -515,14 +350,14 @@ uint32_t Complex::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->lString.clear(); - uint32_t _size23; - ::apache::thrift::protocol::TType _etype26; - xfer += iprot->readListBegin(_etype26, _size23); - this->lString.resize(_size23); - uint32_t _i27; - for (_i27 = 0; _i27 < _size23; ++_i27) + uint32_t _size19; + ::apache::thrift::protocol::TType _etype22; + xfer += iprot->readListBegin(_etype22, _size19); + this->lString.resize(_size19); + uint32_t _i23; + for (_i23 = 0; _i23 < _size19; ++_i23) { - xfer += iprot->readString(this->lString[_i27]); + xfer += iprot->readString(this->lString[_i23]); } xfer += iprot->readListEnd(); } @@ -535,14 +370,14 @@ uint32_t Complex::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->lintString.clear(); - uint32_t _size28; - ::apache::thrift::protocol::TType _etype31; - xfer += iprot->readListBegin(_etype31, _size28); - this->lintString.resize(_size28); - uint32_t _i32; - for (_i32 = 0; _i32 < _size28; ++_i32) + uint32_t _size24; + ::apache::thrift::protocol::TType _etype27; + xfer += iprot->readListBegin(_etype27, _size24); + this->lintString.resize(_size24); + uint32_t _i28; + for (_i28 = 0; _i28 < _size24; ++_i28) { - xfer += this->lintString[_i32].read(iprot); + xfer += this->lintString[_i28].read(iprot); } xfer += iprot->readListEnd(); } @@ -555,17 +390,17 @@ uint32_t Complex::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->mStringString.clear(); - uint32_t _size33; - ::apache::thrift::protocol::TType _ktype34; - ::apache::thrift::protocol::TType _vtype35; - xfer += iprot->readMapBegin(_ktype34, _vtype35, _size33); - uint32_t _i37; - for (_i37 = 0; _i37 < _size33; ++_i37) + uint32_t _size29; + ::apache::thrift::protocol::TType _ktype30; + ::apache::thrift::protocol::TType _vtype31; + xfer += iprot->readMapBegin(_ktype30, _vtype31, _size29); + uint32_t _i33; + for (_i33 = 0; _i33 < _size29; ++_i33) { - std::string _key38; - xfer += iprot->readString(_key38); - std::string& _val39 = this->mStringString[_key38]; - xfer += iprot->readString(_val39); + std::string _key34; + xfer += iprot->readString(_key34); + std::string& _val35 = this->mStringString[_key34]; + xfer += iprot->readString(_val35); } xfer += iprot->readMapEnd(); } @@ -578,41 +413,41 @@ uint32_t Complex::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->attributes.clear(); - uint32_t _size40; - ::apache::thrift::protocol::TType _ktype41; - ::apache::thrift::protocol::TType _vtype42; - xfer += iprot->readMapBegin(_ktype41, _vtype42, _size40); - uint32_t _i44; - for (_i44 = 0; _i44 < _size40; ++_i44) + uint32_t _size36; + ::apache::thrift::protocol::TType _ktype37; + ::apache::thrift::protocol::TType _vtype38; + xfer += iprot->readMapBegin(_ktype37, _vtype38, _size36); + uint32_t _i40; + for (_i40 = 0; _i40 < _size36; ++_i40) { - std::string _key45; - xfer += iprot->readString(_key45); - std::map > & _val46 = this->attributes[_key45]; + std::string _key41; + xfer += iprot->readString(_key41); + std::map > & _val42 = this->attributes[_key41]; { - _val46.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) + _val42.clear(); + uint32_t _size43; + ::apache::thrift::protocol::TType _ktype44; + ::apache::thrift::protocol::TType _vtype45; + xfer += iprot->readMapBegin(_ktype44, _vtype45, _size43); + uint32_t _i47; + for (_i47 = 0; _i47 < _size43; ++_i47) { - std::string _key52; - xfer += iprot->readString(_key52); - std::map & _val53 = _val46[_key52]; + std::string _key48; + xfer += iprot->readString(_key48); + std::map & _val49 = _val42[_key48]; { - _val53.clear(); - uint32_t _size54; - ::apache::thrift::protocol::TType _ktype55; - ::apache::thrift::protocol::TType _vtype56; - xfer += iprot->readMapBegin(_ktype55, _vtype56, _size54); - uint32_t _i58; - for (_i58 = 0; _i58 < _size54; ++_i58) + _val49.clear(); + uint32_t _size50; + ::apache::thrift::protocol::TType _ktype51; + ::apache::thrift::protocol::TType _vtype52; + xfer += iprot->readMapBegin(_ktype51, _vtype52, _size50); + uint32_t _i54; + for (_i54 = 0; _i54 < _size50; ++_i54) { - std::string _key59; - xfer += iprot->readString(_key59); - PropValueUnion& _val60 = _val53[_key59]; - xfer += _val60.read(iprot); + std::string _key55; + xfer += iprot->readString(_key55); + PropValueUnion& _val56 = _val49[_key55]; + xfer += _val56.read(iprot); } xfer += iprot->readMapEnd(); } @@ -665,7 +500,6 @@ uint32_t Complex::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("Complex"); xfer += oprot->writeFieldBegin("aint", ::apache::thrift::protocol::T_I32, 1); @@ -679,10 +513,10 @@ uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("lint", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->lint.size())); - std::vector ::const_iterator _iter61; - for (_iter61 = this->lint.begin(); _iter61 != this->lint.end(); ++_iter61) + std::vector ::const_iterator _iter57; + for (_iter57 = this->lint.begin(); _iter57 != this->lint.end(); ++_iter57) { - xfer += oprot->writeI32((*_iter61)); + xfer += oprot->writeI32((*_iter57)); } xfer += oprot->writeListEnd(); } @@ -691,10 +525,10 @@ uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("lString", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->lString.size())); - std::vector ::const_iterator _iter62; - for (_iter62 = this->lString.begin(); _iter62 != this->lString.end(); ++_iter62) + std::vector ::const_iterator _iter58; + for (_iter58 = this->lString.begin(); _iter58 != this->lString.end(); ++_iter58) { - xfer += oprot->writeString((*_iter62)); + xfer += oprot->writeString((*_iter58)); } xfer += oprot->writeListEnd(); } @@ -703,10 +537,10 @@ uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("lintString", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->lintString.size())); - std::vector ::const_iterator _iter63; - for (_iter63 = this->lintString.begin(); _iter63 != this->lintString.end(); ++_iter63) + std::vector ::const_iterator _iter59; + for (_iter59 = this->lintString.begin(); _iter59 != this->lintString.end(); ++_iter59) { - xfer += (*_iter63).write(oprot); + xfer += (*_iter59).write(oprot); } xfer += oprot->writeListEnd(); } @@ -715,11 +549,11 @@ uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("mStringString", ::apache::thrift::protocol::T_MAP, 6); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->mStringString.size())); - std::map ::const_iterator _iter64; - for (_iter64 = this->mStringString.begin(); _iter64 != this->mStringString.end(); ++_iter64) + std::map ::const_iterator _iter60; + for (_iter60 = this->mStringString.begin(); _iter60 != this->mStringString.end(); ++_iter60) { - xfer += oprot->writeString(_iter64->first); - xfer += oprot->writeString(_iter64->second); + xfer += oprot->writeString(_iter60->first); + xfer += oprot->writeString(_iter60->second); } xfer += oprot->writeMapEnd(); } @@ -728,23 +562,23 @@ uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("attributes", ::apache::thrift::protocol::T_MAP, 7); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_MAP, static_cast(this->attributes.size())); - std::map > > ::const_iterator _iter65; - for (_iter65 = this->attributes.begin(); _iter65 != this->attributes.end(); ++_iter65) + std::map > > ::const_iterator _iter61; + for (_iter61 = this->attributes.begin(); _iter61 != this->attributes.end(); ++_iter61) { - xfer += oprot->writeString(_iter65->first); + xfer += oprot->writeString(_iter61->first); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_MAP, static_cast(_iter65->second.size())); - std::map > ::const_iterator _iter66; - for (_iter66 = _iter65->second.begin(); _iter66 != _iter65->second.end(); ++_iter66) + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_MAP, static_cast(_iter61->second.size())); + std::map > ::const_iterator _iter62; + for (_iter62 = _iter61->second.begin(); _iter62 != _iter61->second.end(); ++_iter62) { - xfer += oprot->writeString(_iter66->first); + xfer += oprot->writeString(_iter62->first); { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(_iter66->second.size())); - std::map ::const_iterator _iter67; - for (_iter67 = _iter66->second.begin(); _iter67 != _iter66->second.end(); ++_iter67) + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(_iter62->second.size())); + std::map ::const_iterator _iter63; + for (_iter63 = _iter62->second.begin(); _iter63 != _iter62->second.end(); ++_iter63) { - xfer += oprot->writeString(_iter67->first); - xfer += _iter67->second.write(oprot); + xfer += oprot->writeString(_iter63->first); + xfer += _iter63->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -770,7 +604,6 @@ uint32_t Complex::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -789,63 +622,6 @@ void swap(Complex &a, Complex &b) { swap(a.__isset, b.__isset); } -Complex::Complex(const Complex& other68) { - aint = other68.aint; - aString = other68.aString; - lint = other68.lint; - lString = other68.lString; - lintString = other68.lintString; - mStringString = other68.mStringString; - attributes = other68.attributes; - unionField1 = other68.unionField1; - unionField2 = other68.unionField2; - unionField3 = other68.unionField3; - __isset = other68.__isset; -} -Complex& Complex::operator=(const Complex& other69) { - aint = other69.aint; - aString = other69.aString; - lint = other69.lint; - lString = other69.lString; - lintString = other69.lintString; - mStringString = other69.mStringString; - attributes = other69.attributes; - unionField1 = other69.unionField1; - unionField2 = other69.unionField2; - unionField3 = other69.unionField3; - __isset = other69.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const Complex& obj) { - using apache::thrift::to_string; - out << "Complex("; - out << "aint=" << to_string(obj.aint); - out << ", " << "aString=" << to_string(obj.aString); - out << ", " << "lint=" << to_string(obj.lint); - out << ", " << "lString=" << to_string(obj.lString); - out << ", " << "lintString=" << to_string(obj.lintString); - out << ", " << "mStringString=" << to_string(obj.mStringString); - out << ", " << "attributes=" << to_string(obj.attributes); - out << ", " << "unionField1=" << to_string(obj.unionField1); - out << ", " << "unionField2=" << to_string(obj.unionField2); - out << ", " << "unionField3=" << to_string(obj.unionField3); - out << ")"; - return out; -} - - -SetIntString::~SetIntString() throw() { -} - - -void SetIntString::__set_sIntString(const std::set & val) { - this->sIntString = val; -} - -void SetIntString::__set_aString(const std::string& val) { - this->aString = val; -} - const char* SetIntString::ascii_fingerprint = "842B41C940D05DFB16183142A90DFC54"; const uint8_t SetIntString::binary_fingerprint[16] = {0x84,0x2B,0x41,0xC9,0x40,0xD0,0x5D,0xFB,0x16,0x18,0x31,0x42,0xA9,0x0D,0xFC,0x54}; @@ -873,15 +649,15 @@ uint32_t SetIntString::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->sIntString.clear(); - uint32_t _size70; - ::apache::thrift::protocol::TType _etype73; - xfer += iprot->readSetBegin(_etype73, _size70); - uint32_t _i74; - for (_i74 = 0; _i74 < _size70; ++_i74) + uint32_t _size64; + ::apache::thrift::protocol::TType _etype67; + xfer += iprot->readSetBegin(_etype67, _size64); + uint32_t _i68; + for (_i68 = 0; _i68 < _size64; ++_i68) { - IntString _elem75; - xfer += _elem75.read(iprot); - this->sIntString.insert(_elem75); + IntString _elem69; + xfer += _elem69.read(iprot); + this->sIntString.insert(_elem69); } xfer += iprot->readSetEnd(); } @@ -912,16 +688,15 @@ uint32_t SetIntString::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t SetIntString::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("SetIntString"); xfer += oprot->writeFieldBegin("sIntString", ::apache::thrift::protocol::T_SET, 1); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->sIntString.size())); - std::set ::const_iterator _iter76; - for (_iter76 = this->sIntString.begin(); _iter76 != this->sIntString.end(); ++_iter76) + std::set ::const_iterator _iter70; + for (_iter70 = this->sIntString.begin(); _iter70 != this->sIntString.end(); ++_iter70) { - xfer += (*_iter76).write(oprot); + xfer += (*_iter70).write(oprot); } xfer += oprot->writeSetEnd(); } @@ -933,7 +708,6 @@ uint32_t SetIntString::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -944,24 +718,4 @@ void swap(SetIntString &a, SetIntString &b) { swap(a.__isset, b.__isset); } -SetIntString::SetIntString(const SetIntString& other77) { - sIntString = other77.sIntString; - aString = other77.aString; - __isset = other77.__isset; -} -SetIntString& SetIntString::operator=(const SetIntString& other78) { - sIntString = other78.sIntString; - aString = other78.aString; - __isset = other78.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const SetIntString& obj) { - using apache::thrift::to_string; - out << "SetIntString("; - out << "sIntString=" << to_string(obj.sIntString); - out << ", " << "aString=" << to_string(obj.aString); - out << ")"; - return out; -} - diff --git a/serde/src/gen/thrift/gen-cpp/complex_types.h b/serde/src/gen/thrift/gen-cpp/complex_types.h index 2637720..3f4c760 100644 --- a/serde/src/gen/thrift/gen-cpp/complex_types.h +++ b/serde/src/gen/thrift/gen-cpp/complex_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,35 +7,24 @@ #ifndef complex_TYPES_H #define complex_TYPES_H -#include - #include #include #include #include -#include - - - -class PropValueUnion; -class IntString; -class Complex; - -class SetIntString; typedef struct _PropValueUnion__isset { _PropValueUnion__isset() : intValue(false), longValue(false), stringValue(false), doubleValue(false), flag(false), lString(false), unionMStringString(false) {} - bool intValue :1; - bool longValue :1; - bool stringValue :1; - bool doubleValue :1; - bool flag :1; - bool lString :1; - bool unionMStringString :1; + bool intValue; + bool longValue; + bool stringValue; + bool doubleValue; + bool flag; + bool lString; + bool unionMStringString; } _PropValueUnion__isset; class PropValueUnion { @@ -44,12 +33,11 @@ class PropValueUnion { static const char* ascii_fingerprint; // = "123CD9D82D5B5054B5054EFD63FC8590"; static const uint8_t binary_fingerprint[16]; // = {0x12,0x3C,0xD9,0xD8,0x2D,0x5B,0x50,0x54,0xB5,0x05,0x4E,0xFD,0x63,0xFC,0x85,0x90}; - PropValueUnion(const PropValueUnion&); - PropValueUnion& operator=(const PropValueUnion&); PropValueUnion() : intValue(0), longValue(0), stringValue(), doubleValue(0), flag(0) { } - virtual ~PropValueUnion() throw(); + virtual ~PropValueUnion() throw() {} + int32_t intValue; int64_t longValue; std::string stringValue; @@ -60,19 +48,38 @@ class PropValueUnion { _PropValueUnion__isset __isset; - void __set_intValue(const int32_t val); + void __set_intValue(const int32_t val) { + intValue = val; + __isset.intValue = true; + } - void __set_longValue(const int64_t val); + void __set_longValue(const int64_t val) { + longValue = val; + __isset.longValue = true; + } - void __set_stringValue(const std::string& val); + void __set_stringValue(const std::string& val) { + stringValue = val; + __isset.stringValue = true; + } - void __set_doubleValue(const double val); + void __set_doubleValue(const double val) { + doubleValue = val; + __isset.doubleValue = true; + } - void __set_flag(const bool val); + void __set_flag(const bool val) { + flag = val; + __isset.flag = true; + } - void __set_lString(const std::vector & val); + void __set_lString(const std::vector & val) { + lString = val; + } - void __set_unionMStringString(const std::map & val); + void __set_unionMStringString(const std::map & val) { + unionMStringString = val; + } bool operator == (const PropValueUnion & rhs) const { @@ -111,16 +118,15 @@ class PropValueUnion { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const PropValueUnion& obj); }; void swap(PropValueUnion &a, PropValueUnion &b); typedef struct _IntString__isset { _IntString__isset() : myint(false), myString(false), underscore_int(false) {} - bool myint :1; - bool myString :1; - bool underscore_int :1; + bool myint; + bool myString; + bool underscore_int; } _IntString__isset; class IntString { @@ -129,23 +135,28 @@ class IntString { static const char* ascii_fingerprint; // = "52C6DAB6CF51AF617111F6D3964C6503"; static const uint8_t binary_fingerprint[16]; // = {0x52,0xC6,0xDA,0xB6,0xCF,0x51,0xAF,0x61,0x71,0x11,0xF6,0xD3,0x96,0x4C,0x65,0x03}; - IntString(const IntString&); - IntString& operator=(const IntString&); IntString() : myint(0), myString(), underscore_int(0) { } - virtual ~IntString() throw(); + virtual ~IntString() throw() {} + int32_t myint; std::string myString; int32_t underscore_int; _IntString__isset __isset; - void __set_myint(const int32_t val); + void __set_myint(const int32_t val) { + myint = val; + } - void __set_myString(const std::string& val); + void __set_myString(const std::string& val) { + myString = val; + } - void __set_underscore_int(const int32_t val); + void __set_underscore_int(const int32_t val) { + underscore_int = val; + } bool operator == (const IntString & rhs) const { @@ -166,23 +177,22 @@ class IntString { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const IntString& obj); }; void swap(IntString &a, IntString &b); typedef struct _Complex__isset { _Complex__isset() : aint(false), aString(false), lint(false), lString(false), lintString(false), mStringString(false), attributes(false), unionField1(false), unionField2(false), unionField3(false) {} - bool aint :1; - bool aString :1; - bool lint :1; - bool lString :1; - bool lintString :1; - bool mStringString :1; - bool attributes :1; - bool unionField1 :1; - bool unionField2 :1; - bool unionField3 :1; + bool aint; + bool aString; + bool lint; + bool lString; + bool lintString; + bool mStringString; + bool attributes; + bool unionField1; + bool unionField2; + bool unionField3; } _Complex__isset; class Complex { @@ -191,12 +201,11 @@ class Complex { static const char* ascii_fingerprint; // = "FFA84FEA7037F5858F2BFEDA73AD679A"; static const uint8_t binary_fingerprint[16]; // = {0xFF,0xA8,0x4F,0xEA,0x70,0x37,0xF5,0x85,0x8F,0x2B,0xFE,0xDA,0x73,0xAD,0x67,0x9A}; - Complex(const Complex&); - Complex& operator=(const Complex&); Complex() : aint(0), aString() { } - virtual ~Complex() throw(); + virtual ~Complex() throw() {} + int32_t aint; std::string aString; std::vector lint; @@ -210,25 +219,45 @@ class Complex { _Complex__isset __isset; - void __set_aint(const int32_t val); + void __set_aint(const int32_t val) { + aint = val; + } - void __set_aString(const std::string& val); + void __set_aString(const std::string& val) { + aString = val; + } - void __set_lint(const std::vector & val); + void __set_lint(const std::vector & val) { + lint = val; + } - void __set_lString(const std::vector & val); + void __set_lString(const std::vector & val) { + lString = val; + } - void __set_lintString(const std::vector & val); + void __set_lintString(const std::vector & val) { + lintString = val; + } - void __set_mStringString(const std::map & val); + void __set_mStringString(const std::map & val) { + mStringString = val; + } - void __set_attributes(const std::map > > & val); + void __set_attributes(const std::map > > & val) { + attributes = val; + } - void __set_unionField1(const PropValueUnion& val); + void __set_unionField1(const PropValueUnion& val) { + unionField1 = val; + } - void __set_unionField2(const PropValueUnion& val); + void __set_unionField2(const PropValueUnion& val) { + unionField2 = val; + } - void __set_unionField3(const PropValueUnion& val); + void __set_unionField3(const PropValueUnion& val) { + unionField3 = val; + } bool operator == (const Complex & rhs) const { @@ -263,15 +292,14 @@ class Complex { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const Complex& obj); }; void swap(Complex &a, Complex &b); typedef struct _SetIntString__isset { _SetIntString__isset() : sIntString(false), aString(false) {} - bool sIntString :1; - bool aString :1; + bool sIntString; + bool aString; } _SetIntString__isset; class SetIntString { @@ -280,20 +308,23 @@ class SetIntString { static const char* ascii_fingerprint; // = "842B41C940D05DFB16183142A90DFC54"; static const uint8_t binary_fingerprint[16]; // = {0x84,0x2B,0x41,0xC9,0x40,0xD0,0x5D,0xFB,0x16,0x18,0x31,0x42,0xA9,0x0D,0xFC,0x54}; - SetIntString(const SetIntString&); - SetIntString& operator=(const SetIntString&); SetIntString() : aString() { } - virtual ~SetIntString() throw(); + virtual ~SetIntString() throw() {} + std::set sIntString; std::string aString; _SetIntString__isset __isset; - void __set_sIntString(const std::set & val); + void __set_sIntString(const std::set & val) { + sIntString = val; + } - void __set_aString(const std::string& val); + void __set_aString(const std::string& val) { + aString = val; + } bool operator == (const SetIntString & rhs) const { @@ -312,7 +343,6 @@ class SetIntString { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const SetIntString& obj); }; void swap(SetIntString &a, SetIntString &b); diff --git a/serde/src/gen/thrift/gen-cpp/megastruct_constants.cpp b/serde/src/gen/thrift/gen-cpp/megastruct_constants.cpp index 9a18a48..4bd82a1 100644 --- a/serde/src/gen/thrift/gen-cpp/megastruct_constants.cpp +++ b/serde/src/gen/thrift/gen-cpp/megastruct_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/megastruct_constants.h b/serde/src/gen/thrift/gen-cpp/megastruct_constants.h index 1b0558f..9897f8f 100644 --- a/serde/src/gen/thrift/gen-cpp/megastruct_constants.h +++ b/serde/src/gen/thrift/gen-cpp/megastruct_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/megastruct_types.cpp b/serde/src/gen/thrift/gen-cpp/megastruct_types.cpp index 6123f7d..2d46b7f 100644 --- a/serde/src/gen/thrift/gen-cpp/megastruct_types.cpp +++ b/serde/src/gen/thrift/gen-cpp/megastruct_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,9 +7,6 @@ #include "megastruct_types.h" #include -#include - -#include @@ -23,21 +20,6 @@ const char* _kMyEnumNames[] = { }; const std::map _MyEnum_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kMyEnumValues, _kMyEnumNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -MiniStruct::~MiniStruct() throw() { -} - - -void MiniStruct::__set_my_string(const std::string& val) { - this->my_string = val; -__isset.my_string = true; -} - -void MiniStruct::__set_my_enum(const MyEnum::type val) { - this->my_enum = val; -__isset.my_enum = true; -} - const char* MiniStruct::ascii_fingerprint = "4ED2B10931906B61ED0B1592EE860A37"; const uint8_t MiniStruct::binary_fingerprint[16] = {0x4E,0xD2,0xB1,0x09,0x31,0x90,0x6B,0x61,0xED,0x0B,0x15,0x92,0xEE,0x86,0x0A,0x37}; @@ -93,7 +75,6 @@ uint32_t MiniStruct::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t MiniStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("MiniStruct"); if (this->__isset.my_string) { @@ -108,7 +89,6 @@ uint32_t MiniStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -119,131 +99,6 @@ void swap(MiniStruct &a, MiniStruct &b) { swap(a.__isset, b.__isset); } -MiniStruct::MiniStruct(const MiniStruct& other1) { - my_string = other1.my_string; - my_enum = other1.my_enum; - __isset = other1.__isset; -} -MiniStruct& MiniStruct::operator=(const MiniStruct& other2) { - my_string = other2.my_string; - my_enum = other2.my_enum; - __isset = other2.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const MiniStruct& obj) { - using apache::thrift::to_string; - out << "MiniStruct("; - out << "my_string="; (obj.__isset.my_string ? (out << to_string(obj.my_string)) : (out << "")); - out << ", " << "my_enum="; (obj.__isset.my_enum ? (out << to_string(obj.my_enum)) : (out << "")); - out << ")"; - return out; -} - - -MegaStruct::~MegaStruct() throw() { -} - - -void MegaStruct::__set_my_bool(const bool val) { - this->my_bool = val; -__isset.my_bool = true; -} - -void MegaStruct::__set_my_byte(const int8_t val) { - this->my_byte = val; -__isset.my_byte = true; -} - -void MegaStruct::__set_my_16bit_int(const int16_t val) { - this->my_16bit_int = val; -__isset.my_16bit_int = true; -} - -void MegaStruct::__set_my_32bit_int(const int32_t val) { - this->my_32bit_int = val; -__isset.my_32bit_int = true; -} - -void MegaStruct::__set_my_64bit_int(const int64_t val) { - this->my_64bit_int = val; -__isset.my_64bit_int = true; -} - -void MegaStruct::__set_my_double(const double val) { - this->my_double = val; -__isset.my_double = true; -} - -void MegaStruct::__set_my_string(const std::string& val) { - this->my_string = val; -__isset.my_string = true; -} - -void MegaStruct::__set_my_binary(const std::string& val) { - this->my_binary = val; -__isset.my_binary = true; -} - -void MegaStruct::__set_my_string_string_map(const std::map & val) { - this->my_string_string_map = val; -__isset.my_string_string_map = true; -} - -void MegaStruct::__set_my_string_enum_map(const std::map & val) { - this->my_string_enum_map = val; -__isset.my_string_enum_map = true; -} - -void MegaStruct::__set_my_enum_string_map(const std::map & val) { - this->my_enum_string_map = val; -__isset.my_enum_string_map = true; -} - -void MegaStruct::__set_my_enum_struct_map(const std::map & val) { - this->my_enum_struct_map = val; -__isset.my_enum_struct_map = true; -} - -void MegaStruct::__set_my_enum_stringlist_map(const std::map > & val) { - this->my_enum_stringlist_map = val; -__isset.my_enum_stringlist_map = true; -} - -void MegaStruct::__set_my_enum_structlist_map(const std::map > & val) { - this->my_enum_structlist_map = val; -__isset.my_enum_structlist_map = true; -} - -void MegaStruct::__set_my_stringlist(const std::vector & val) { - this->my_stringlist = val; -__isset.my_stringlist = true; -} - -void MegaStruct::__set_my_structlist(const std::vector & val) { - this->my_structlist = val; -__isset.my_structlist = true; -} - -void MegaStruct::__set_my_enumlist(const std::vector & val) { - this->my_enumlist = val; -__isset.my_enumlist = true; -} - -void MegaStruct::__set_my_stringset(const std::set & val) { - this->my_stringset = val; -__isset.my_stringset = true; -} - -void MegaStruct::__set_my_enumset(const std::set & val) { - this->my_enumset = val; -__isset.my_enumset = true; -} - -void MegaStruct::__set_my_structset(const std::set & val) { - this->my_structset = val; -__isset.my_structset = true; -} - const char* MegaStruct::ascii_fingerprint = "9979EEF0CA19988228E64220A3AA9120"; const uint8_t MegaStruct::binary_fingerprint[16] = {0x99,0x79,0xEE,0xF0,0xCA,0x19,0x98,0x82,0x28,0xE6,0x42,0x20,0xA3,0xAA,0x91,0x20}; @@ -335,17 +190,17 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->my_string_string_map.clear(); - uint32_t _size3; - ::apache::thrift::protocol::TType _ktype4; - ::apache::thrift::protocol::TType _vtype5; - xfer += iprot->readMapBegin(_ktype4, _vtype5, _size3); - uint32_t _i7; - for (_i7 = 0; _i7 < _size3; ++_i7) + uint32_t _size1; + ::apache::thrift::protocol::TType _ktype2; + ::apache::thrift::protocol::TType _vtype3; + xfer += iprot->readMapBegin(_ktype2, _vtype3, _size1); + uint32_t _i5; + for (_i5 = 0; _i5 < _size1; ++_i5) { - std::string _key8; - xfer += iprot->readString(_key8); - std::string& _val9 = this->my_string_string_map[_key8]; - xfer += iprot->readString(_val9); + std::string _key6; + xfer += iprot->readString(_key6); + std::string& _val7 = this->my_string_string_map[_key6]; + xfer += iprot->readString(_val7); } xfer += iprot->readMapEnd(); } @@ -358,19 +213,19 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->my_string_enum_map.clear(); - uint32_t _size10; - ::apache::thrift::protocol::TType _ktype11; - ::apache::thrift::protocol::TType _vtype12; - xfer += iprot->readMapBegin(_ktype11, _vtype12, _size10); - uint32_t _i14; - for (_i14 = 0; _i14 < _size10; ++_i14) + uint32_t _size8; + ::apache::thrift::protocol::TType _ktype9; + ::apache::thrift::protocol::TType _vtype10; + xfer += iprot->readMapBegin(_ktype9, _vtype10, _size8); + uint32_t _i12; + for (_i12 = 0; _i12 < _size8; ++_i12) { - std::string _key15; - xfer += iprot->readString(_key15); - MyEnum::type& _val16 = this->my_string_enum_map[_key15]; - int32_t ecast17; - xfer += iprot->readI32(ecast17); - _val16 = (MyEnum::type)ecast17; + std::string _key13; + xfer += iprot->readString(_key13); + MyEnum::type& _val14 = this->my_string_enum_map[_key13]; + int32_t ecast15; + xfer += iprot->readI32(ecast15); + _val14 = (MyEnum::type)ecast15; } xfer += iprot->readMapEnd(); } @@ -383,19 +238,19 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->my_enum_string_map.clear(); - uint32_t _size18; - ::apache::thrift::protocol::TType _ktype19; - ::apache::thrift::protocol::TType _vtype20; - xfer += iprot->readMapBegin(_ktype19, _vtype20, _size18); - uint32_t _i22; - for (_i22 = 0; _i22 < _size18; ++_i22) + uint32_t _size16; + ::apache::thrift::protocol::TType _ktype17; + ::apache::thrift::protocol::TType _vtype18; + xfer += iprot->readMapBegin(_ktype17, _vtype18, _size16); + uint32_t _i20; + for (_i20 = 0; _i20 < _size16; ++_i20) { - MyEnum::type _key23; - int32_t ecast25; - xfer += iprot->readI32(ecast25); - _key23 = (MyEnum::type)ecast25; - std::string& _val24 = this->my_enum_string_map[_key23]; - xfer += iprot->readString(_val24); + MyEnum::type _key21; + int32_t ecast23; + xfer += iprot->readI32(ecast23); + _key21 = (MyEnum::type)ecast23; + std::string& _val22 = this->my_enum_string_map[_key21]; + xfer += iprot->readString(_val22); } xfer += iprot->readMapEnd(); } @@ -408,19 +263,19 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->my_enum_struct_map.clear(); - uint32_t _size26; - ::apache::thrift::protocol::TType _ktype27; - ::apache::thrift::protocol::TType _vtype28; - xfer += iprot->readMapBegin(_ktype27, _vtype28, _size26); - uint32_t _i30; - for (_i30 = 0; _i30 < _size26; ++_i30) + uint32_t _size24; + ::apache::thrift::protocol::TType _ktype25; + ::apache::thrift::protocol::TType _vtype26; + xfer += iprot->readMapBegin(_ktype25, _vtype26, _size24); + uint32_t _i28; + for (_i28 = 0; _i28 < _size24; ++_i28) { - MyEnum::type _key31; - int32_t ecast33; - xfer += iprot->readI32(ecast33); - _key31 = (MyEnum::type)ecast33; - MiniStruct& _val32 = this->my_enum_struct_map[_key31]; - xfer += _val32.read(iprot); + MyEnum::type _key29; + int32_t ecast31; + xfer += iprot->readI32(ecast31); + _key29 = (MyEnum::type)ecast31; + MiniStruct& _val30 = this->my_enum_struct_map[_key29]; + xfer += _val30.read(iprot); } xfer += iprot->readMapEnd(); } @@ -433,28 +288,28 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->my_enum_stringlist_map.clear(); - uint32_t _size34; - ::apache::thrift::protocol::TType _ktype35; - ::apache::thrift::protocol::TType _vtype36; - xfer += iprot->readMapBegin(_ktype35, _vtype36, _size34); - uint32_t _i38; - for (_i38 = 0; _i38 < _size34; ++_i38) + uint32_t _size32; + ::apache::thrift::protocol::TType _ktype33; + ::apache::thrift::protocol::TType _vtype34; + xfer += iprot->readMapBegin(_ktype33, _vtype34, _size32); + uint32_t _i36; + for (_i36 = 0; _i36 < _size32; ++_i36) { - MyEnum::type _key39; - int32_t ecast41; - xfer += iprot->readI32(ecast41); - _key39 = (MyEnum::type)ecast41; - std::vector & _val40 = this->my_enum_stringlist_map[_key39]; + MyEnum::type _key37; + int32_t ecast39; + xfer += iprot->readI32(ecast39); + _key37 = (MyEnum::type)ecast39; + std::vector & _val38 = this->my_enum_stringlist_map[_key37]; { - _val40.clear(); - uint32_t _size42; - ::apache::thrift::protocol::TType _etype45; - xfer += iprot->readListBegin(_etype45, _size42); - _val40.resize(_size42); - uint32_t _i46; - for (_i46 = 0; _i46 < _size42; ++_i46) + _val38.clear(); + uint32_t _size40; + ::apache::thrift::protocol::TType _etype43; + xfer += iprot->readListBegin(_etype43, _size40); + _val38.resize(_size40); + uint32_t _i44; + for (_i44 = 0; _i44 < _size40; ++_i44) { - xfer += iprot->readString(_val40[_i46]); + xfer += iprot->readString(_val38[_i44]); } xfer += iprot->readListEnd(); } @@ -470,28 +325,28 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->my_enum_structlist_map.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 _size45; + ::apache::thrift::protocol::TType _ktype46; + ::apache::thrift::protocol::TType _vtype47; + xfer += iprot->readMapBegin(_ktype46, _vtype47, _size45); + uint32_t _i49; + for (_i49 = 0; _i49 < _size45; ++_i49) { - MyEnum::type _key52; - int32_t ecast54; - xfer += iprot->readI32(ecast54); - _key52 = (MyEnum::type)ecast54; - std::vector & _val53 = this->my_enum_structlist_map[_key52]; + MyEnum::type _key50; + int32_t ecast52; + xfer += iprot->readI32(ecast52); + _key50 = (MyEnum::type)ecast52; + std::vector & _val51 = this->my_enum_structlist_map[_key50]; { - _val53.clear(); - uint32_t _size55; - ::apache::thrift::protocol::TType _etype58; - xfer += iprot->readListBegin(_etype58, _size55); - _val53.resize(_size55); - uint32_t _i59; - for (_i59 = 0; _i59 < _size55; ++_i59) + _val51.clear(); + uint32_t _size53; + ::apache::thrift::protocol::TType _etype56; + xfer += iprot->readListBegin(_etype56, _size53); + _val51.resize(_size53); + uint32_t _i57; + for (_i57 = 0; _i57 < _size53; ++_i57) { - xfer += _val53[_i59].read(iprot); + xfer += _val51[_i57].read(iprot); } xfer += iprot->readListEnd(); } @@ -507,14 +362,14 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->my_stringlist.clear(); - uint32_t _size60; - ::apache::thrift::protocol::TType _etype63; - xfer += iprot->readListBegin(_etype63, _size60); - this->my_stringlist.resize(_size60); - uint32_t _i64; - for (_i64 = 0; _i64 < _size60; ++_i64) + uint32_t _size58; + ::apache::thrift::protocol::TType _etype61; + xfer += iprot->readListBegin(_etype61, _size58); + this->my_stringlist.resize(_size58); + uint32_t _i62; + for (_i62 = 0; _i62 < _size58; ++_i62) { - xfer += iprot->readString(this->my_stringlist[_i64]); + xfer += iprot->readString(this->my_stringlist[_i62]); } xfer += iprot->readListEnd(); } @@ -527,14 +382,14 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->my_structlist.clear(); - uint32_t _size65; - ::apache::thrift::protocol::TType _etype68; - xfer += iprot->readListBegin(_etype68, _size65); - this->my_structlist.resize(_size65); - uint32_t _i69; - for (_i69 = 0; _i69 < _size65; ++_i69) + uint32_t _size63; + ::apache::thrift::protocol::TType _etype66; + xfer += iprot->readListBegin(_etype66, _size63); + this->my_structlist.resize(_size63); + uint32_t _i67; + for (_i67 = 0; _i67 < _size63; ++_i67) { - xfer += this->my_structlist[_i69].read(iprot); + xfer += this->my_structlist[_i67].read(iprot); } xfer += iprot->readListEnd(); } @@ -547,16 +402,16 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->my_enumlist.clear(); - uint32_t _size70; - ::apache::thrift::protocol::TType _etype73; - xfer += iprot->readListBegin(_etype73, _size70); - this->my_enumlist.resize(_size70); - uint32_t _i74; - for (_i74 = 0; _i74 < _size70; ++_i74) + uint32_t _size68; + ::apache::thrift::protocol::TType _etype71; + xfer += iprot->readListBegin(_etype71, _size68); + this->my_enumlist.resize(_size68); + uint32_t _i72; + for (_i72 = 0; _i72 < _size68; ++_i72) { - int32_t ecast75; - xfer += iprot->readI32(ecast75); - this->my_enumlist[_i74] = (MyEnum::type)ecast75; + int32_t ecast73; + xfer += iprot->readI32(ecast73); + this->my_enumlist[_i72] = (MyEnum::type)ecast73; } xfer += iprot->readListEnd(); } @@ -569,15 +424,15 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->my_stringset.clear(); - uint32_t _size76; - ::apache::thrift::protocol::TType _etype79; - xfer += iprot->readSetBegin(_etype79, _size76); - uint32_t _i80; - for (_i80 = 0; _i80 < _size76; ++_i80) + uint32_t _size74; + ::apache::thrift::protocol::TType _etype77; + xfer += iprot->readSetBegin(_etype77, _size74); + uint32_t _i78; + for (_i78 = 0; _i78 < _size74; ++_i78) { - std::string _elem81; - xfer += iprot->readString(_elem81); - this->my_stringset.insert(_elem81); + std::string _elem79; + xfer += iprot->readString(_elem79); + this->my_stringset.insert(_elem79); } xfer += iprot->readSetEnd(); } @@ -590,17 +445,17 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->my_enumset.clear(); - uint32_t _size82; - ::apache::thrift::protocol::TType _etype85; - xfer += iprot->readSetBegin(_etype85, _size82); - uint32_t _i86; - for (_i86 = 0; _i86 < _size82; ++_i86) + uint32_t _size80; + ::apache::thrift::protocol::TType _etype83; + xfer += iprot->readSetBegin(_etype83, _size80); + uint32_t _i84; + for (_i84 = 0; _i84 < _size80; ++_i84) { - MyEnum::type _elem87; - int32_t ecast88; - xfer += iprot->readI32(ecast88); - _elem87 = (MyEnum::type)ecast88; - this->my_enumset.insert(_elem87); + MyEnum::type _elem85; + int32_t ecast86; + xfer += iprot->readI32(ecast86); + _elem85 = (MyEnum::type)ecast86; + this->my_enumset.insert(_elem85); } xfer += iprot->readSetEnd(); } @@ -613,15 +468,15 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_SET) { { this->my_structset.clear(); - uint32_t _size89; - ::apache::thrift::protocol::TType _etype92; - xfer += iprot->readSetBegin(_etype92, _size89); - uint32_t _i93; - for (_i93 = 0; _i93 < _size89; ++_i93) + uint32_t _size87; + ::apache::thrift::protocol::TType _etype90; + xfer += iprot->readSetBegin(_etype90, _size87); + uint32_t _i91; + for (_i91 = 0; _i91 < _size87; ++_i91) { - MiniStruct _elem94; - xfer += _elem94.read(iprot); - this->my_structset.insert(_elem94); + MiniStruct _elem92; + xfer += _elem92.read(iprot); + this->my_structset.insert(_elem92); } xfer += iprot->readSetEnd(); } @@ -644,7 +499,6 @@ uint32_t MegaStruct::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("MegaStruct"); if (this->__isset.my_bool) { @@ -691,11 +545,11 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_string_string_map", ::apache::thrift::protocol::T_MAP, 9); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->my_string_string_map.size())); - std::map ::const_iterator _iter95; - for (_iter95 = this->my_string_string_map.begin(); _iter95 != this->my_string_string_map.end(); ++_iter95) + std::map ::const_iterator _iter93; + for (_iter93 = this->my_string_string_map.begin(); _iter93 != this->my_string_string_map.end(); ++_iter93) { - xfer += oprot->writeString(_iter95->first); - xfer += oprot->writeString(_iter95->second); + xfer += oprot->writeString(_iter93->first); + xfer += oprot->writeString(_iter93->second); } xfer += oprot->writeMapEnd(); } @@ -705,11 +559,11 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_string_enum_map", ::apache::thrift::protocol::T_MAP, 10); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->my_string_enum_map.size())); - std::map ::const_iterator _iter96; - for (_iter96 = this->my_string_enum_map.begin(); _iter96 != this->my_string_enum_map.end(); ++_iter96) + std::map ::const_iterator _iter94; + for (_iter94 = this->my_string_enum_map.begin(); _iter94 != this->my_string_enum_map.end(); ++_iter94) { - xfer += oprot->writeString(_iter96->first); - xfer += oprot->writeI32((int32_t)_iter96->second); + xfer += oprot->writeString(_iter94->first); + xfer += oprot->writeI32((int32_t)_iter94->second); } xfer += oprot->writeMapEnd(); } @@ -719,11 +573,11 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_enum_string_map", ::apache::thrift::protocol::T_MAP, 11); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_STRING, static_cast(this->my_enum_string_map.size())); - std::map ::const_iterator _iter97; - for (_iter97 = this->my_enum_string_map.begin(); _iter97 != this->my_enum_string_map.end(); ++_iter97) + std::map ::const_iterator _iter95; + for (_iter95 = this->my_enum_string_map.begin(); _iter95 != this->my_enum_string_map.end(); ++_iter95) { - xfer += oprot->writeI32((int32_t)_iter97->first); - xfer += oprot->writeString(_iter97->second); + xfer += oprot->writeI32((int32_t)_iter95->first); + xfer += oprot->writeString(_iter95->second); } xfer += oprot->writeMapEnd(); } @@ -733,11 +587,11 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_enum_struct_map", ::apache::thrift::protocol::T_MAP, 12); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_STRUCT, static_cast(this->my_enum_struct_map.size())); - std::map ::const_iterator _iter98; - for (_iter98 = this->my_enum_struct_map.begin(); _iter98 != this->my_enum_struct_map.end(); ++_iter98) + std::map ::const_iterator _iter96; + for (_iter96 = this->my_enum_struct_map.begin(); _iter96 != this->my_enum_struct_map.end(); ++_iter96) { - xfer += oprot->writeI32((int32_t)_iter98->first); - xfer += _iter98->second.write(oprot); + xfer += oprot->writeI32((int32_t)_iter96->first); + xfer += _iter96->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -747,16 +601,16 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_enum_stringlist_map", ::apache::thrift::protocol::T_MAP, 13); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_LIST, static_cast(this->my_enum_stringlist_map.size())); - std::map > ::const_iterator _iter99; - for (_iter99 = this->my_enum_stringlist_map.begin(); _iter99 != this->my_enum_stringlist_map.end(); ++_iter99) + std::map > ::const_iterator _iter97; + for (_iter97 = this->my_enum_stringlist_map.begin(); _iter97 != this->my_enum_stringlist_map.end(); ++_iter97) { - xfer += oprot->writeI32((int32_t)_iter99->first); + xfer += oprot->writeI32((int32_t)_iter97->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter99->second.size())); - std::vector ::const_iterator _iter100; - for (_iter100 = _iter99->second.begin(); _iter100 != _iter99->second.end(); ++_iter100) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter97->second.size())); + std::vector ::const_iterator _iter98; + for (_iter98 = _iter97->second.begin(); _iter98 != _iter97->second.end(); ++_iter98) { - xfer += oprot->writeString((*_iter100)); + xfer += oprot->writeString((*_iter98)); } xfer += oprot->writeListEnd(); } @@ -769,16 +623,16 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_enum_structlist_map", ::apache::thrift::protocol::T_MAP, 14); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I32, ::apache::thrift::protocol::T_LIST, static_cast(this->my_enum_structlist_map.size())); - std::map > ::const_iterator _iter101; - for (_iter101 = this->my_enum_structlist_map.begin(); _iter101 != this->my_enum_structlist_map.end(); ++_iter101) + std::map > ::const_iterator _iter99; + for (_iter99 = this->my_enum_structlist_map.begin(); _iter99 != this->my_enum_structlist_map.end(); ++_iter99) { - xfer += oprot->writeI32((int32_t)_iter101->first); + xfer += oprot->writeI32((int32_t)_iter99->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter101->second.size())); - std::vector ::const_iterator _iter102; - for (_iter102 = _iter101->second.begin(); _iter102 != _iter101->second.end(); ++_iter102) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter99->second.size())); + std::vector ::const_iterator _iter100; + for (_iter100 = _iter99->second.begin(); _iter100 != _iter99->second.end(); ++_iter100) { - xfer += (*_iter102).write(oprot); + xfer += (*_iter100).write(oprot); } xfer += oprot->writeListEnd(); } @@ -791,10 +645,10 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_stringlist", ::apache::thrift::protocol::T_LIST, 15); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->my_stringlist.size())); - std::vector ::const_iterator _iter103; - for (_iter103 = this->my_stringlist.begin(); _iter103 != this->my_stringlist.end(); ++_iter103) + std::vector ::const_iterator _iter101; + for (_iter101 = this->my_stringlist.begin(); _iter101 != this->my_stringlist.end(); ++_iter101) { - xfer += oprot->writeString((*_iter103)); + xfer += oprot->writeString((*_iter101)); } xfer += oprot->writeListEnd(); } @@ -804,10 +658,10 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_structlist", ::apache::thrift::protocol::T_LIST, 16); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->my_structlist.size())); - std::vector ::const_iterator _iter104; - for (_iter104 = this->my_structlist.begin(); _iter104 != this->my_structlist.end(); ++_iter104) + std::vector ::const_iterator _iter102; + for (_iter102 = this->my_structlist.begin(); _iter102 != this->my_structlist.end(); ++_iter102) { - xfer += (*_iter104).write(oprot); + xfer += (*_iter102).write(oprot); } xfer += oprot->writeListEnd(); } @@ -817,10 +671,10 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_enumlist", ::apache::thrift::protocol::T_LIST, 17); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->my_enumlist.size())); - std::vector ::const_iterator _iter105; - for (_iter105 = this->my_enumlist.begin(); _iter105 != this->my_enumlist.end(); ++_iter105) + std::vector ::const_iterator _iter103; + for (_iter103 = this->my_enumlist.begin(); _iter103 != this->my_enumlist.end(); ++_iter103) { - xfer += oprot->writeI32((int32_t)(*_iter105)); + xfer += oprot->writeI32((int32_t)(*_iter103)); } xfer += oprot->writeListEnd(); } @@ -830,10 +684,10 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_stringset", ::apache::thrift::protocol::T_SET, 18); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRING, static_cast(this->my_stringset.size())); - std::set ::const_iterator _iter106; - for (_iter106 = this->my_stringset.begin(); _iter106 != this->my_stringset.end(); ++_iter106) + std::set ::const_iterator _iter104; + for (_iter104 = this->my_stringset.begin(); _iter104 != this->my_stringset.end(); ++_iter104) { - xfer += oprot->writeString((*_iter106)); + xfer += oprot->writeString((*_iter104)); } xfer += oprot->writeSetEnd(); } @@ -843,10 +697,10 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_enumset", ::apache::thrift::protocol::T_SET, 19); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I32, static_cast(this->my_enumset.size())); - std::set ::const_iterator _iter107; - for (_iter107 = this->my_enumset.begin(); _iter107 != this->my_enumset.end(); ++_iter107) + std::set ::const_iterator _iter105; + for (_iter105 = this->my_enumset.begin(); _iter105 != this->my_enumset.end(); ++_iter105) { - xfer += oprot->writeI32((int32_t)(*_iter107)); + xfer += oprot->writeI32((int32_t)(*_iter105)); } xfer += oprot->writeSetEnd(); } @@ -856,10 +710,10 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("my_structset", ::apache::thrift::protocol::T_SET, 20); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->my_structset.size())); - std::set ::const_iterator _iter108; - for (_iter108 = this->my_structset.begin(); _iter108 != this->my_structset.end(); ++_iter108) + std::set ::const_iterator _iter106; + for (_iter106 = this->my_structset.begin(); _iter106 != this->my_structset.end(); ++_iter106) { - xfer += (*_iter108).write(oprot); + xfer += (*_iter106).write(oprot); } xfer += oprot->writeSetEnd(); } @@ -867,7 +721,6 @@ uint32_t MegaStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -896,78 +749,4 @@ void swap(MegaStruct &a, MegaStruct &b) { swap(a.__isset, b.__isset); } -MegaStruct::MegaStruct(const MegaStruct& other109) { - my_bool = other109.my_bool; - my_byte = other109.my_byte; - my_16bit_int = other109.my_16bit_int; - my_32bit_int = other109.my_32bit_int; - my_64bit_int = other109.my_64bit_int; - my_double = other109.my_double; - my_string = other109.my_string; - my_binary = other109.my_binary; - my_string_string_map = other109.my_string_string_map; - my_string_enum_map = other109.my_string_enum_map; - my_enum_string_map = other109.my_enum_string_map; - my_enum_struct_map = other109.my_enum_struct_map; - my_enum_stringlist_map = other109.my_enum_stringlist_map; - my_enum_structlist_map = other109.my_enum_structlist_map; - my_stringlist = other109.my_stringlist; - my_structlist = other109.my_structlist; - my_enumlist = other109.my_enumlist; - my_stringset = other109.my_stringset; - my_enumset = other109.my_enumset; - my_structset = other109.my_structset; - __isset = other109.__isset; -} -MegaStruct& MegaStruct::operator=(const MegaStruct& other110) { - my_bool = other110.my_bool; - my_byte = other110.my_byte; - my_16bit_int = other110.my_16bit_int; - my_32bit_int = other110.my_32bit_int; - my_64bit_int = other110.my_64bit_int; - my_double = other110.my_double; - my_string = other110.my_string; - my_binary = other110.my_binary; - my_string_string_map = other110.my_string_string_map; - my_string_enum_map = other110.my_string_enum_map; - my_enum_string_map = other110.my_enum_string_map; - my_enum_struct_map = other110.my_enum_struct_map; - my_enum_stringlist_map = other110.my_enum_stringlist_map; - my_enum_structlist_map = other110.my_enum_structlist_map; - my_stringlist = other110.my_stringlist; - my_structlist = other110.my_structlist; - my_enumlist = other110.my_enumlist; - my_stringset = other110.my_stringset; - my_enumset = other110.my_enumset; - my_structset = other110.my_structset; - __isset = other110.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const MegaStruct& obj) { - using apache::thrift::to_string; - out << "MegaStruct("; - out << "my_bool="; (obj.__isset.my_bool ? (out << to_string(obj.my_bool)) : (out << "")); - out << ", " << "my_byte="; (obj.__isset.my_byte ? (out << to_string(obj.my_byte)) : (out << "")); - out << ", " << "my_16bit_int="; (obj.__isset.my_16bit_int ? (out << to_string(obj.my_16bit_int)) : (out << "")); - out << ", " << "my_32bit_int="; (obj.__isset.my_32bit_int ? (out << to_string(obj.my_32bit_int)) : (out << "")); - out << ", " << "my_64bit_int="; (obj.__isset.my_64bit_int ? (out << to_string(obj.my_64bit_int)) : (out << "")); - out << ", " << "my_double="; (obj.__isset.my_double ? (out << to_string(obj.my_double)) : (out << "")); - out << ", " << "my_string="; (obj.__isset.my_string ? (out << to_string(obj.my_string)) : (out << "")); - out << ", " << "my_binary="; (obj.__isset.my_binary ? (out << to_string(obj.my_binary)) : (out << "")); - out << ", " << "my_string_string_map="; (obj.__isset.my_string_string_map ? (out << to_string(obj.my_string_string_map)) : (out << "")); - out << ", " << "my_string_enum_map="; (obj.__isset.my_string_enum_map ? (out << to_string(obj.my_string_enum_map)) : (out << "")); - out << ", " << "my_enum_string_map="; (obj.__isset.my_enum_string_map ? (out << to_string(obj.my_enum_string_map)) : (out << "")); - out << ", " << "my_enum_struct_map="; (obj.__isset.my_enum_struct_map ? (out << to_string(obj.my_enum_struct_map)) : (out << "")); - out << ", " << "my_enum_stringlist_map="; (obj.__isset.my_enum_stringlist_map ? (out << to_string(obj.my_enum_stringlist_map)) : (out << "")); - out << ", " << "my_enum_structlist_map="; (obj.__isset.my_enum_structlist_map ? (out << to_string(obj.my_enum_structlist_map)) : (out << "")); - out << ", " << "my_stringlist="; (obj.__isset.my_stringlist ? (out << to_string(obj.my_stringlist)) : (out << "")); - out << ", " << "my_structlist="; (obj.__isset.my_structlist ? (out << to_string(obj.my_structlist)) : (out << "")); - out << ", " << "my_enumlist="; (obj.__isset.my_enumlist ? (out << to_string(obj.my_enumlist)) : (out << "")); - out << ", " << "my_stringset="; (obj.__isset.my_stringset ? (out << to_string(obj.my_stringset)) : (out << "")); - out << ", " << "my_enumset="; (obj.__isset.my_enumset ? (out << to_string(obj.my_enumset)) : (out << "")); - out << ", " << "my_structset="; (obj.__isset.my_structset ? (out << to_string(obj.my_structset)) : (out << "")); - out << ")"; - return out; -} - diff --git a/serde/src/gen/thrift/gen-cpp/megastruct_types.h b/serde/src/gen/thrift/gen-cpp/megastruct_types.h index e4985dc..b5a8295 100644 --- a/serde/src/gen/thrift/gen-cpp/megastruct_types.h +++ b/serde/src/gen/thrift/gen-cpp/megastruct_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,14 +7,11 @@ #ifndef megastruct_TYPES_H #define megastruct_TYPES_H -#include - #include #include #include #include -#include @@ -28,14 +25,10 @@ struct MyEnum { extern const std::map _MyEnum_VALUES_TO_NAMES; -class MiniStruct; - -class MegaStruct; - typedef struct _MiniStruct__isset { _MiniStruct__isset() : my_string(false), my_enum(false) {} - bool my_string :1; - bool my_enum :1; + bool my_string; + bool my_enum; } _MiniStruct__isset; class MiniStruct { @@ -44,20 +37,25 @@ class MiniStruct { static const char* ascii_fingerprint; // = "4ED2B10931906B61ED0B1592EE860A37"; static const uint8_t binary_fingerprint[16]; // = {0x4E,0xD2,0xB1,0x09,0x31,0x90,0x6B,0x61,0xED,0x0B,0x15,0x92,0xEE,0x86,0x0A,0x37}; - MiniStruct(const MiniStruct&); - MiniStruct& operator=(const MiniStruct&); MiniStruct() : my_string(), my_enum((MyEnum::type)0) { } - virtual ~MiniStruct() throw(); + virtual ~MiniStruct() throw() {} + std::string my_string; MyEnum::type my_enum; _MiniStruct__isset __isset; - void __set_my_string(const std::string& val); + void __set_my_string(const std::string& val) { + my_string = val; + __isset.my_string = true; + } - void __set_my_enum(const MyEnum::type val); + void __set_my_enum(const MyEnum::type val) { + my_enum = val; + __isset.my_enum = true; + } bool operator == (const MiniStruct & rhs) const { @@ -80,33 +78,32 @@ class MiniStruct { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const MiniStruct& obj); }; void swap(MiniStruct &a, MiniStruct &b); typedef struct _MegaStruct__isset { _MegaStruct__isset() : my_bool(false), my_byte(false), my_16bit_int(false), my_32bit_int(false), my_64bit_int(false), my_double(false), my_string(false), my_binary(false), my_string_string_map(false), my_string_enum_map(false), my_enum_string_map(false), my_enum_struct_map(false), my_enum_stringlist_map(false), my_enum_structlist_map(false), my_stringlist(false), my_structlist(false), my_enumlist(false), my_stringset(false), my_enumset(false), my_structset(false) {} - bool my_bool :1; - bool my_byte :1; - bool my_16bit_int :1; - bool my_32bit_int :1; - bool my_64bit_int :1; - bool my_double :1; - bool my_string :1; - bool my_binary :1; - bool my_string_string_map :1; - bool my_string_enum_map :1; - bool my_enum_string_map :1; - bool my_enum_struct_map :1; - bool my_enum_stringlist_map :1; - bool my_enum_structlist_map :1; - bool my_stringlist :1; - bool my_structlist :1; - bool my_enumlist :1; - bool my_stringset :1; - bool my_enumset :1; - bool my_structset :1; + bool my_bool; + bool my_byte; + bool my_16bit_int; + bool my_32bit_int; + bool my_64bit_int; + bool my_double; + bool my_string; + bool my_binary; + bool my_string_string_map; + bool my_string_enum_map; + bool my_enum_string_map; + bool my_enum_struct_map; + bool my_enum_stringlist_map; + bool my_enum_structlist_map; + bool my_stringlist; + bool my_structlist; + bool my_enumlist; + bool my_stringset; + bool my_enumset; + bool my_structset; } _MegaStruct__isset; class MegaStruct { @@ -115,12 +112,11 @@ class MegaStruct { static const char* ascii_fingerprint; // = "9979EEF0CA19988228E64220A3AA9120"; static const uint8_t binary_fingerprint[16]; // = {0x99,0x79,0xEE,0xF0,0xCA,0x19,0x98,0x82,0x28,0xE6,0x42,0x20,0xA3,0xAA,0x91,0x20}; - MegaStruct(const MegaStruct&); - MegaStruct& operator=(const MegaStruct&); MegaStruct() : my_bool(0), my_byte(0), my_16bit_int(0), my_32bit_int(0), my_64bit_int(0), my_double(0), my_string(), my_binary() { } - virtual ~MegaStruct() throw(); + virtual ~MegaStruct() throw() {} + bool my_bool; int8_t my_byte; int16_t my_16bit_int; @@ -144,45 +140,105 @@ class MegaStruct { _MegaStruct__isset __isset; - void __set_my_bool(const bool val); + void __set_my_bool(const bool val) { + my_bool = val; + __isset.my_bool = true; + } - void __set_my_byte(const int8_t val); + void __set_my_byte(const int8_t val) { + my_byte = val; + __isset.my_byte = true; + } - void __set_my_16bit_int(const int16_t val); + void __set_my_16bit_int(const int16_t val) { + my_16bit_int = val; + __isset.my_16bit_int = true; + } - void __set_my_32bit_int(const int32_t val); + void __set_my_32bit_int(const int32_t val) { + my_32bit_int = val; + __isset.my_32bit_int = true; + } - void __set_my_64bit_int(const int64_t val); + void __set_my_64bit_int(const int64_t val) { + my_64bit_int = val; + __isset.my_64bit_int = true; + } - void __set_my_double(const double val); + void __set_my_double(const double val) { + my_double = val; + __isset.my_double = true; + } - void __set_my_string(const std::string& val); + void __set_my_string(const std::string& val) { + my_string = val; + __isset.my_string = true; + } - void __set_my_binary(const std::string& val); + void __set_my_binary(const std::string& val) { + my_binary = val; + __isset.my_binary = true; + } - void __set_my_string_string_map(const std::map & val); + void __set_my_string_string_map(const std::map & val) { + my_string_string_map = val; + __isset.my_string_string_map = true; + } - void __set_my_string_enum_map(const std::map & val); + void __set_my_string_enum_map(const std::map & val) { + my_string_enum_map = val; + __isset.my_string_enum_map = true; + } - void __set_my_enum_string_map(const std::map & val); + void __set_my_enum_string_map(const std::map & val) { + my_enum_string_map = val; + __isset.my_enum_string_map = true; + } - void __set_my_enum_struct_map(const std::map & val); + void __set_my_enum_struct_map(const std::map & val) { + my_enum_struct_map = val; + __isset.my_enum_struct_map = true; + } - void __set_my_enum_stringlist_map(const std::map > & val); + void __set_my_enum_stringlist_map(const std::map > & val) { + my_enum_stringlist_map = val; + __isset.my_enum_stringlist_map = true; + } - void __set_my_enum_structlist_map(const std::map > & val); + void __set_my_enum_structlist_map(const std::map > & val) { + my_enum_structlist_map = val; + __isset.my_enum_structlist_map = true; + } - void __set_my_stringlist(const std::vector & val); + void __set_my_stringlist(const std::vector & val) { + my_stringlist = val; + __isset.my_stringlist = true; + } - void __set_my_structlist(const std::vector & val); + void __set_my_structlist(const std::vector & val) { + my_structlist = val; + __isset.my_structlist = true; + } - void __set_my_enumlist(const std::vector & val); + void __set_my_enumlist(const std::vector & val) { + my_enumlist = val; + __isset.my_enumlist = true; + } - void __set_my_stringset(const std::set & val); + void __set_my_stringset(const std::set & val) { + my_stringset = val; + __isset.my_stringset = true; + } - void __set_my_enumset(const std::set & val); + void __set_my_enumset(const std::set & val) { + my_enumset = val; + __isset.my_enumset = true; + } - void __set_my_structset(const std::set & val); + void __set_my_structset(const std::set & val) { + my_structset = val; + __isset.my_structset = true; + } bool operator == (const MegaStruct & rhs) const { @@ -277,7 +333,6 @@ class MegaStruct { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const MegaStruct& obj); }; void swap(MegaStruct &a, MegaStruct &b); diff --git a/serde/src/gen/thrift/gen-cpp/serde_constants.cpp b/serde/src/gen/thrift/gen-cpp/serde_constants.cpp index 196a46f..5f8873b 100644 --- a/serde/src/gen/thrift/gen-cpp/serde_constants.cpp +++ b/serde/src/gen/thrift/gen-cpp/serde_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/serde_constants.h b/serde/src/gen/thrift/gen-cpp/serde_constants.h index 36bd175..4f2018b 100644 --- a/serde/src/gen/thrift/gen-cpp/serde_constants.h +++ b/serde/src/gen/thrift/gen-cpp/serde_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/serde_types.cpp b/serde/src/gen/thrift/gen-cpp/serde_types.cpp index a37ff7c..20d1fbd 100644 --- a/serde/src/gen/thrift/gen-cpp/serde_types.cpp +++ b/serde/src/gen/thrift/gen-cpp/serde_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,9 +7,6 @@ #include "serde_types.h" #include -#include - -#include namespace Hive { diff --git a/serde/src/gen/thrift/gen-cpp/serde_types.h b/serde/src/gen/thrift/gen-cpp/serde_types.h index eb7659a..7fafa7d 100644 --- a/serde/src/gen/thrift/gen-cpp/serde_types.h +++ b/serde/src/gen/thrift/gen-cpp/serde_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,14 +7,11 @@ #ifndef serde_TYPES_H #define serde_TYPES_H -#include - #include #include #include #include -#include namespace Hive { diff --git a/serde/src/gen/thrift/gen-cpp/testthrift_constants.cpp b/serde/src/gen/thrift/gen-cpp/testthrift_constants.cpp index 0fa57e7..3dbbf1b 100644 --- a/serde/src/gen/thrift/gen-cpp/testthrift_constants.cpp +++ b/serde/src/gen/thrift/gen-cpp/testthrift_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/testthrift_constants.h b/serde/src/gen/thrift/gen-cpp/testthrift_constants.h index cba3296..76e5f0c 100644 --- a/serde/src/gen/thrift/gen-cpp/testthrift_constants.h +++ b/serde/src/gen/thrift/gen-cpp/testthrift_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-cpp/testthrift_types.cpp b/serde/src/gen/thrift/gen-cpp/testthrift_types.cpp index 0cd19b9..7949f23 100644 --- a/serde/src/gen/thrift/gen-cpp/testthrift_types.cpp +++ b/serde/src/gen/thrift/gen-cpp/testthrift_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,21 +7,9 @@ #include "testthrift_types.h" #include -#include -#include - - -InnerStruct::~InnerStruct() throw() { -} - - -void InnerStruct::__set_field0(const int32_t val) { - this->field0 = val; -} - const char* InnerStruct::ascii_fingerprint = "E86CACEB22240450EDCBEFC3A83970E4"; const uint8_t InnerStruct::binary_fingerprint[16] = {0xE8,0x6C,0xAC,0xEB,0x22,0x24,0x04,0x50,0xED,0xCB,0xEF,0xC3,0xA8,0x39,0x70,0xE4}; @@ -67,7 +55,6 @@ uint32_t InnerStruct::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t InnerStruct::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("InnerStruct"); xfer += oprot->writeFieldBegin("field0", ::apache::thrift::protocol::T_I32, 1); @@ -76,7 +63,6 @@ uint32_t InnerStruct::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -86,40 +72,6 @@ void swap(InnerStruct &a, InnerStruct &b) { swap(a.__isset, b.__isset); } -InnerStruct::InnerStruct(const InnerStruct& other0) { - field0 = other0.field0; - __isset = other0.__isset; -} -InnerStruct& InnerStruct::operator=(const InnerStruct& other1) { - field0 = other1.field0; - __isset = other1.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const InnerStruct& obj) { - using apache::thrift::to_string; - out << "InnerStruct("; - out << "field0=" << to_string(obj.field0); - out << ")"; - return out; -} - - -ThriftTestObj::~ThriftTestObj() throw() { -} - - -void ThriftTestObj::__set_field1(const int32_t val) { - this->field1 = val; -} - -void ThriftTestObj::__set_field2(const std::string& val) { - this->field2 = val; -} - -void ThriftTestObj::__set_field3(const std::vector & val) { - this->field3 = val; -} - const char* ThriftTestObj::ascii_fingerprint = "2BA5D8DAACFBBE6599779830A6185706"; const uint8_t ThriftTestObj::binary_fingerprint[16] = {0x2B,0xA5,0xD8,0xDA,0xAC,0xFB,0xBE,0x65,0x99,0x77,0x98,0x30,0xA6,0x18,0x57,0x06}; @@ -163,14 +115,14 @@ uint32_t ThriftTestObj::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->field3.clear(); - uint32_t _size2; - ::apache::thrift::protocol::TType _etype5; - xfer += iprot->readListBegin(_etype5, _size2); - this->field3.resize(_size2); - uint32_t _i6; - for (_i6 = 0; _i6 < _size2; ++_i6) + uint32_t _size0; + ::apache::thrift::protocol::TType _etype3; + xfer += iprot->readListBegin(_etype3, _size0); + this->field3.resize(_size0); + uint32_t _i4; + for (_i4 = 0; _i4 < _size0; ++_i4) { - xfer += this->field3[_i6].read(iprot); + xfer += this->field3[_i4].read(iprot); } xfer += iprot->readListEnd(); } @@ -193,7 +145,6 @@ uint32_t ThriftTestObj::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t ThriftTestObj::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftTestObj"); xfer += oprot->writeFieldBegin("field1", ::apache::thrift::protocol::T_I32, 1); @@ -207,10 +158,10 @@ uint32_t ThriftTestObj::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldBegin("field3", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->field3.size())); - std::vector ::const_iterator _iter7; - for (_iter7 = this->field3.begin(); _iter7 != this->field3.end(); ++_iter7) + std::vector ::const_iterator _iter5; + for (_iter5 = this->field3.begin(); _iter5 != this->field3.end(); ++_iter5) { - xfer += (*_iter7).write(oprot); + xfer += (*_iter5).write(oprot); } xfer += oprot->writeListEnd(); } @@ -218,7 +169,6 @@ uint32_t ThriftTestObj::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -230,27 +180,4 @@ void swap(ThriftTestObj &a, ThriftTestObj &b) { swap(a.__isset, b.__isset); } -ThriftTestObj::ThriftTestObj(const ThriftTestObj& other8) { - field1 = other8.field1; - field2 = other8.field2; - field3 = other8.field3; - __isset = other8.__isset; -} -ThriftTestObj& ThriftTestObj::operator=(const ThriftTestObj& other9) { - field1 = other9.field1; - field2 = other9.field2; - field3 = other9.field3; - __isset = other9.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const ThriftTestObj& obj) { - using apache::thrift::to_string; - out << "ThriftTestObj("; - out << "field1=" << to_string(obj.field1); - out << ", " << "field2=" << to_string(obj.field2); - out << ", " << "field3=" << to_string(obj.field3); - out << ")"; - return out; -} - diff --git a/serde/src/gen/thrift/gen-cpp/testthrift_types.h b/serde/src/gen/thrift/gen-cpp/testthrift_types.h index 8c57e48..6c84b9f 100644 --- a/serde/src/gen/thrift/gen-cpp/testthrift_types.h +++ b/serde/src/gen/thrift/gen-cpp/testthrift_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,25 +7,18 @@ #ifndef testthrift_TYPES_H #define testthrift_TYPES_H -#include - #include #include #include #include -#include - - -class InnerStruct; -class ThriftTestObj; typedef struct _InnerStruct__isset { _InnerStruct__isset() : field0(false) {} - bool field0 :1; + bool field0; } _InnerStruct__isset; class InnerStruct { @@ -34,17 +27,18 @@ class InnerStruct { static const char* ascii_fingerprint; // = "E86CACEB22240450EDCBEFC3A83970E4"; static const uint8_t binary_fingerprint[16]; // = {0xE8,0x6C,0xAC,0xEB,0x22,0x24,0x04,0x50,0xED,0xCB,0xEF,0xC3,0xA8,0x39,0x70,0xE4}; - InnerStruct(const InnerStruct&); - InnerStruct& operator=(const InnerStruct&); InnerStruct() : field0(0) { } - virtual ~InnerStruct() throw(); + virtual ~InnerStruct() throw() {} + int32_t field0; _InnerStruct__isset __isset; - void __set_field0(const int32_t val); + void __set_field0(const int32_t val) { + field0 = val; + } bool operator == (const InnerStruct & rhs) const { @@ -61,16 +55,15 @@ class InnerStruct { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const InnerStruct& obj); }; void swap(InnerStruct &a, InnerStruct &b); typedef struct _ThriftTestObj__isset { _ThriftTestObj__isset() : field1(false), field2(false), field3(false) {} - bool field1 :1; - bool field2 :1; - bool field3 :1; + bool field1; + bool field2; + bool field3; } _ThriftTestObj__isset; class ThriftTestObj { @@ -79,23 +72,28 @@ class ThriftTestObj { static const char* ascii_fingerprint; // = "2BA5D8DAACFBBE6599779830A6185706"; static const uint8_t binary_fingerprint[16]; // = {0x2B,0xA5,0xD8,0xDA,0xAC,0xFB,0xBE,0x65,0x99,0x77,0x98,0x30,0xA6,0x18,0x57,0x06}; - ThriftTestObj(const ThriftTestObj&); - ThriftTestObj& operator=(const ThriftTestObj&); ThriftTestObj() : field1(0), field2() { } - virtual ~ThriftTestObj() throw(); + virtual ~ThriftTestObj() throw() {} + int32_t field1; std::string field2; std::vector field3; _ThriftTestObj__isset __isset; - void __set_field1(const int32_t val); + void __set_field1(const int32_t val) { + field1 = val; + } - void __set_field2(const std::string& val); + void __set_field2(const std::string& val) { + field2 = val; + } - void __set_field3(const std::vector & val); + void __set_field3(const std::vector & val) { + field3 = val; + } bool operator == (const ThriftTestObj & rhs) const { @@ -116,7 +114,6 @@ class ThriftTestObj { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftTestObj& obj); }; void swap(ThriftTestObj &a, ThriftTestObj &b); diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/serdeConstants.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/serdeConstants.java index f12d4c7..5f3001d 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/serdeConstants.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/serdeConstants.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,11 +28,9 @@ 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"}) public class serdeConstants { public static final String SERIALIZATION_LIB = "serialization.lib"; diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java index db325af..72a28ae 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/InnerStruct.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class InnerStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class InnerStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InnerStruct"); private static final org.apache.thrift.protocol.TField FIELD0_FIELD_DESC = new org.apache.thrift.protocol.TField("field0", org.apache.thrift.protocol.TType.I32, (short)1); @@ -231,30 +227,30 @@ public boolean equals(InnerStruct that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_field0 = true; - list.add(present_field0); + builder.append(present_field0); if (present_field0) - list.add(field0); + builder.append(field0); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(InnerStruct other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + InnerStruct typedOther = (InnerStruct)other; - lastComparison = Boolean.valueOf(isSetField0()).compareTo(other.isSetField0()); + lastComparison = Boolean.valueOf(isSetField0()).compareTo(typedOther.isSetField0()); if (lastComparison != 0) { return lastComparison; } if (isSetField0()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field0, other.field0); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field0, typedOther.field0); if (lastComparison != 0) { return lastComparison; } diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java index 1232ff9..1b708dd 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde/test/ThriftTestObj.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class ThriftTestObj implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class ThriftTestObj implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ThriftTestObj"); private static final org.apache.thrift.protocol.TField FIELD1_FIELD_DESC = new org.apache.thrift.protocol.TField("field1", org.apache.thrift.protocol.TType.I32, (short)1); @@ -158,7 +154,7 @@ public ThriftTestObj(ThriftTestObj other) { this.field2 = other.field2; } if (other.isSetField3()) { - List __this__field3 = new ArrayList(other.field3.size()); + List __this__field3 = new ArrayList(); for (InnerStruct other_element : other.field3) { __this__field3.add(new InnerStruct(other_element)); } @@ -367,60 +363,60 @@ public boolean equals(ThriftTestObj that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_field1 = true; - list.add(present_field1); + builder.append(present_field1); if (present_field1) - list.add(field1); + builder.append(field1); boolean present_field2 = true && (isSetField2()); - list.add(present_field2); + builder.append(present_field2); if (present_field2) - list.add(field2); + builder.append(field2); boolean present_field3 = true && (isSetField3()); - list.add(present_field3); + builder.append(present_field3); if (present_field3) - list.add(field3); + builder.append(field3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ThriftTestObj other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ThriftTestObj typedOther = (ThriftTestObj)other; - lastComparison = Boolean.valueOf(isSetField1()).compareTo(other.isSetField1()); + lastComparison = Boolean.valueOf(isSetField1()).compareTo(typedOther.isSetField1()); if (lastComparison != 0) { return lastComparison; } if (isSetField1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field1, other.field1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field1, typedOther.field1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetField2()).compareTo(other.isSetField2()); + lastComparison = Boolean.valueOf(isSetField2()).compareTo(typedOther.isSetField2()); if (lastComparison != 0) { return lastComparison; } if (isSetField2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field2, other.field2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field2, typedOther.field2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetField3()).compareTo(other.isSetField3()); + lastComparison = Boolean.valueOf(isSetField3()).compareTo(typedOther.isSetField3()); if (lastComparison != 0) { return lastComparison; } if (isSetField3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field3, other.field3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field3, typedOther.field3); if (lastComparison != 0) { return lastComparison; } @@ -530,12 +526,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ThriftTestObj struc { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); struct.field3 = new ArrayList(_list0.size); - InnerStruct _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - _elem1 = new InnerStruct(); - _elem1.read(iprot); - struct.field3.add(_elem1); + InnerStruct _elem2; // required + _elem2 = new InnerStruct(); + _elem2.read(iprot); + struct.field3.add(_elem2); } iprot.readListEnd(); } @@ -638,12 +634,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ThriftTestObj struct { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.field3 = new ArrayList(_list5.size); - InnerStruct _elem6; - for (int _i7 = 0; _i7 < _list5.size; ++_i7) + for (int _i6 = 0; _i6 < _list5.size; ++_i6) { - _elem6 = new InnerStruct(); - _elem6.read(iprot); - struct.field3.add(_elem6); + InnerStruct _elem7; // required + _elem7 = new InnerStruct(); + _elem7.read(iprot); + struct.field3.add(_elem7); } } struct.setField3IsSet(true); diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java index 4d2f5bf..07ea8b9 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/Complex.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde2.thrift.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class Complex implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class Complex implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Complex"); private static final org.apache.thrift.protocol.TField AINT_FIELD_DESC = new org.apache.thrift.protocol.TField("aint", org.apache.thrift.protocol.TType.I32, (short)1); @@ -231,26 +227,43 @@ public Complex(Complex other) { this.aString = other.aString; } if (other.isSetLint()) { - List __this__lint = new ArrayList(other.lint); + List __this__lint = new ArrayList(); + for (Integer other_element : other.lint) { + __this__lint.add(other_element); + } this.lint = __this__lint; } if (other.isSetLString()) { - List __this__lString = new ArrayList(other.lString); + List __this__lString = new ArrayList(); + for (String other_element : other.lString) { + __this__lString.add(other_element); + } this.lString = __this__lString; } if (other.isSetLintString()) { - List __this__lintString = new ArrayList(other.lintString.size()); + List __this__lintString = new ArrayList(); for (IntString other_element : other.lintString) { __this__lintString.add(new IntString(other_element)); } this.lintString = __this__lintString; } if (other.isSetMStringString()) { - Map __this__mStringString = new HashMap(other.mStringString); + Map __this__mStringString = new HashMap(); + for (Map.Entry other_element : other.mStringString.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__mStringString_copy_key = other_element_key; + + String __this__mStringString_copy_value = other_element_value; + + __this__mStringString.put(__this__mStringString_copy_key, __this__mStringString_copy_value); + } this.mStringString = __this__mStringString; } if (other.isSetAttributes()) { - Map>> __this__attributes = new HashMap>>(other.attributes.size()); + Map>> __this__attributes = new HashMap>>(); for (Map.Entry>> other_element : other.attributes.entrySet()) { String other_element_key = other_element.getKey(); @@ -258,7 +271,7 @@ public Complex(Complex other) { String __this__attributes_copy_key = other_element_key; - Map> __this__attributes_copy_value = new HashMap>(other_element_value.size()); + Map> __this__attributes_copy_value = new HashMap>(); for (Map.Entry> other_element_value_element : other_element_value.entrySet()) { String other_element_value_element_key = other_element_value_element.getKey(); @@ -266,7 +279,7 @@ public Complex(Complex other) { String __this__attributes_copy_value_copy_key = other_element_value_element_key; - Map __this__attributes_copy_value_copy_value = new HashMap(other_element_value_element_value.size()); + Map __this__attributes_copy_value_copy_value = new HashMap(); for (Map.Entry other_element_value_element_value_element : other_element_value_element_value.entrySet()) { String other_element_value_element_value_element_key = other_element_value_element_value_element.getKey(); @@ -872,165 +885,165 @@ public boolean equals(Complex that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_aint = true; - list.add(present_aint); + builder.append(present_aint); if (present_aint) - list.add(aint); + builder.append(aint); boolean present_aString = true && (isSetAString()); - list.add(present_aString); + builder.append(present_aString); if (present_aString) - list.add(aString); + builder.append(aString); boolean present_lint = true && (isSetLint()); - list.add(present_lint); + builder.append(present_lint); if (present_lint) - list.add(lint); + builder.append(lint); boolean present_lString = true && (isSetLString()); - list.add(present_lString); + builder.append(present_lString); if (present_lString) - list.add(lString); + builder.append(lString); boolean present_lintString = true && (isSetLintString()); - list.add(present_lintString); + builder.append(present_lintString); if (present_lintString) - list.add(lintString); + builder.append(lintString); boolean present_mStringString = true && (isSetMStringString()); - list.add(present_mStringString); + builder.append(present_mStringString); if (present_mStringString) - list.add(mStringString); + builder.append(mStringString); boolean present_attributes = true && (isSetAttributes()); - list.add(present_attributes); + builder.append(present_attributes); if (present_attributes) - list.add(attributes); + builder.append(attributes); boolean present_unionField1 = true && (isSetUnionField1()); - list.add(present_unionField1); + builder.append(present_unionField1); if (present_unionField1) - list.add(unionField1); + builder.append(unionField1); boolean present_unionField2 = true && (isSetUnionField2()); - list.add(present_unionField2); + builder.append(present_unionField2); if (present_unionField2) - list.add(unionField2); + builder.append(unionField2); boolean present_unionField3 = true && (isSetUnionField3()); - list.add(present_unionField3); + builder.append(present_unionField3); if (present_unionField3) - list.add(unionField3); + builder.append(unionField3); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(Complex other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + Complex typedOther = (Complex)other; - lastComparison = Boolean.valueOf(isSetAint()).compareTo(other.isSetAint()); + lastComparison = Boolean.valueOf(isSetAint()).compareTo(typedOther.isSetAint()); if (lastComparison != 0) { return lastComparison; } if (isSetAint()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aint, other.aint); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aint, typedOther.aint); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAString()).compareTo(other.isSetAString()); + lastComparison = Boolean.valueOf(isSetAString()).compareTo(typedOther.isSetAString()); if (lastComparison != 0) { return lastComparison; } if (isSetAString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aString, other.aString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aString, typedOther.aString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLint()).compareTo(other.isSetLint()); + lastComparison = Boolean.valueOf(isSetLint()).compareTo(typedOther.isSetLint()); if (lastComparison != 0) { return lastComparison; } if (isSetLint()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lint, other.lint); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lint, typedOther.lint); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLString()).compareTo(other.isSetLString()); + lastComparison = Boolean.valueOf(isSetLString()).compareTo(typedOther.isSetLString()); if (lastComparison != 0) { return lastComparison; } if (isSetLString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lString, other.lString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lString, typedOther.lString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetLintString()).compareTo(other.isSetLintString()); + lastComparison = Boolean.valueOf(isSetLintString()).compareTo(typedOther.isSetLintString()); if (lastComparison != 0) { return lastComparison; } if (isSetLintString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lintString, other.lintString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lintString, typedOther.lintString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMStringString()).compareTo(other.isSetMStringString()); + lastComparison = Boolean.valueOf(isSetMStringString()).compareTo(typedOther.isSetMStringString()); if (lastComparison != 0) { return lastComparison; } if (isSetMStringString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mStringString, other.mStringString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mStringString, typedOther.mStringString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(other.isSetAttributes()); + lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes()); if (lastComparison != 0) { return lastComparison; } if (isSetAttributes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, other.attributes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUnionField1()).compareTo(other.isSetUnionField1()); + lastComparison = Boolean.valueOf(isSetUnionField1()).compareTo(typedOther.isSetUnionField1()); if (lastComparison != 0) { return lastComparison; } if (isSetUnionField1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unionField1, other.unionField1); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unionField1, typedOther.unionField1); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUnionField2()).compareTo(other.isSetUnionField2()); + lastComparison = Boolean.valueOf(isSetUnionField2()).compareTo(typedOther.isSetUnionField2()); if (lastComparison != 0) { return lastComparison; } if (isSetUnionField2()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unionField2, other.unionField2); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unionField2, typedOther.unionField2); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUnionField3()).compareTo(other.isSetUnionField3()); + lastComparison = Boolean.valueOf(isSetUnionField3()).compareTo(typedOther.isSetUnionField3()); if (lastComparison != 0) { return lastComparison; } if (isSetUnionField3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unionField3, other.unionField3); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unionField3, typedOther.unionField3); if (lastComparison != 0) { return lastComparison; } @@ -1196,11 +1209,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Complex struct) thr { org.apache.thrift.protocol.TList _list18 = iprot.readListBegin(); struct.lint = new ArrayList(_list18.size); - int _elem19; - for (int _i20 = 0; _i20 < _list18.size; ++_i20) + for (int _i19 = 0; _i19 < _list18.size; ++_i19) { - _elem19 = iprot.readI32(); - struct.lint.add(_elem19); + int _elem20; // required + _elem20 = iprot.readI32(); + struct.lint.add(_elem20); } iprot.readListEnd(); } @@ -1214,11 +1227,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Complex struct) thr { org.apache.thrift.protocol.TList _list21 = iprot.readListBegin(); struct.lString = new ArrayList(_list21.size); - String _elem22; - for (int _i23 = 0; _i23 < _list21.size; ++_i23) + for (int _i22 = 0; _i22 < _list21.size; ++_i22) { - _elem22 = iprot.readString(); - struct.lString.add(_elem22); + String _elem23; // required + _elem23 = iprot.readString(); + struct.lString.add(_elem23); } iprot.readListEnd(); } @@ -1232,12 +1245,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Complex struct) thr { org.apache.thrift.protocol.TList _list24 = iprot.readListBegin(); struct.lintString = new ArrayList(_list24.size); - IntString _elem25; - for (int _i26 = 0; _i26 < _list24.size; ++_i26) + for (int _i25 = 0; _i25 < _list24.size; ++_i25) { - _elem25 = new IntString(); - _elem25.read(iprot); - struct.lintString.add(_elem25); + IntString _elem26; // required + _elem26 = new IntString(); + _elem26.read(iprot); + struct.lintString.add(_elem26); } iprot.readListEnd(); } @@ -1251,13 +1264,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Complex struct) thr { org.apache.thrift.protocol.TMap _map27 = iprot.readMapBegin(); struct.mStringString = new HashMap(2*_map27.size); - String _key28; - String _val29; - for (int _i30 = 0; _i30 < _map27.size; ++_i30) + for (int _i28 = 0; _i28 < _map27.size; ++_i28) { - _key28 = iprot.readString(); - _val29 = iprot.readString(); - struct.mStringString.put(_key28, _val29); + String _key29; // required + String _val30; // required + _key29 = iprot.readString(); + _val30 = iprot.readString(); + struct.mStringString.put(_key29, _val30); } iprot.readMapEnd(); } @@ -1271,38 +1284,38 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Complex struct) thr { org.apache.thrift.protocol.TMap _map31 = iprot.readMapBegin(); struct.attributes = new HashMap>>(2*_map31.size); - String _key32; - Map> _val33; - for (int _i34 = 0; _i34 < _map31.size; ++_i34) + for (int _i32 = 0; _i32 < _map31.size; ++_i32) { - _key32 = iprot.readString(); + String _key33; // required + Map> _val34; // required + _key33 = iprot.readString(); { org.apache.thrift.protocol.TMap _map35 = iprot.readMapBegin(); - _val33 = new HashMap>(2*_map35.size); - String _key36; - Map _val37; - for (int _i38 = 0; _i38 < _map35.size; ++_i38) + _val34 = new HashMap>(2*_map35.size); + for (int _i36 = 0; _i36 < _map35.size; ++_i36) { - _key36 = iprot.readString(); + String _key37; // required + Map _val38; // required + _key37 = iprot.readString(); { org.apache.thrift.protocol.TMap _map39 = iprot.readMapBegin(); - _val37 = new HashMap(2*_map39.size); - String _key40; - PropValueUnion _val41; - for (int _i42 = 0; _i42 < _map39.size; ++_i42) + _val38 = new HashMap(2*_map39.size); + for (int _i40 = 0; _i40 < _map39.size; ++_i40) { - _key40 = iprot.readString(); - _val41 = new PropValueUnion(); - _val41.read(iprot); - _val37.put(_key40, _val41); + String _key41; // required + PropValueUnion _val42; // required + _key41 = iprot.readString(); + _val42 = new PropValueUnion(); + _val42.read(iprot); + _val38.put(_key41, _val42); } iprot.readMapEnd(); } - _val33.put(_key36, _val37); + _val34.put(_key37, _val38); } iprot.readMapEnd(); } - struct.attributes.put(_key32, _val33); + struct.attributes.put(_key33, _val34); } iprot.readMapEnd(); } @@ -1595,11 +1608,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Complex struct) thro { org.apache.thrift.protocol.TList _list57 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.lint = new ArrayList(_list57.size); - int _elem58; - for (int _i59 = 0; _i59 < _list57.size; ++_i59) + for (int _i58 = 0; _i58 < _list57.size; ++_i58) { - _elem58 = iprot.readI32(); - struct.lint.add(_elem58); + int _elem59; // required + _elem59 = iprot.readI32(); + struct.lint.add(_elem59); } } struct.setLintIsSet(true); @@ -1608,11 +1621,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Complex struct) thro { org.apache.thrift.protocol.TList _list60 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.lString = new ArrayList(_list60.size); - String _elem61; - for (int _i62 = 0; _i62 < _list60.size; ++_i62) + for (int _i61 = 0; _i61 < _list60.size; ++_i61) { - _elem61 = iprot.readString(); - struct.lString.add(_elem61); + String _elem62; // required + _elem62 = iprot.readString(); + struct.lString.add(_elem62); } } struct.setLStringIsSet(true); @@ -1621,12 +1634,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Complex struct) thro { org.apache.thrift.protocol.TList _list63 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.lintString = new ArrayList(_list63.size); - IntString _elem64; - for (int _i65 = 0; _i65 < _list63.size; ++_i65) + for (int _i64 = 0; _i64 < _list63.size; ++_i64) { - _elem64 = new IntString(); - _elem64.read(iprot); - struct.lintString.add(_elem64); + IntString _elem65; // required + _elem65 = new IntString(); + _elem65.read(iprot); + struct.lintString.add(_elem65); } } struct.setLintStringIsSet(true); @@ -1635,13 +1648,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Complex struct) thro { org.apache.thrift.protocol.TMap _map66 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.mStringString = new HashMap(2*_map66.size); - String _key67; - String _val68; - for (int _i69 = 0; _i69 < _map66.size; ++_i69) + for (int _i67 = 0; _i67 < _map66.size; ++_i67) { - _key67 = iprot.readString(); - _val68 = iprot.readString(); - struct.mStringString.put(_key67, _val68); + String _key68; // required + String _val69; // required + _key68 = iprot.readString(); + _val69 = iprot.readString(); + struct.mStringString.put(_key68, _val69); } } struct.setMStringStringIsSet(true); @@ -1650,36 +1663,36 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Complex struct) thro { org.apache.thrift.protocol.TMap _map70 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); struct.attributes = new HashMap>>(2*_map70.size); - String _key71; - Map> _val72; - for (int _i73 = 0; _i73 < _map70.size; ++_i73) + for (int _i71 = 0; _i71 < _map70.size; ++_i71) { - _key71 = iprot.readString(); + String _key72; // required + Map> _val73; // required + _key72 = iprot.readString(); { org.apache.thrift.protocol.TMap _map74 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32()); - _val72 = new HashMap>(2*_map74.size); - String _key75; - Map _val76; - for (int _i77 = 0; _i77 < _map74.size; ++_i77) + _val73 = new HashMap>(2*_map74.size); + for (int _i75 = 0; _i75 < _map74.size; ++_i75) { - _key75 = iprot.readString(); + String _key76; // required + Map _val77; // required + _key76 = iprot.readString(); { org.apache.thrift.protocol.TMap _map78 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val76 = new HashMap(2*_map78.size); - String _key79; - PropValueUnion _val80; - for (int _i81 = 0; _i81 < _map78.size; ++_i81) + _val77 = new HashMap(2*_map78.size); + for (int _i79 = 0; _i79 < _map78.size; ++_i79) { - _key79 = iprot.readString(); - _val80 = new PropValueUnion(); - _val80.read(iprot); - _val76.put(_key79, _val80); + String _key80; // required + PropValueUnion _val81; // required + _key80 = iprot.readString(); + _val81 = new PropValueUnion(); + _val81.read(iprot); + _val77.put(_key80, _val81); } } - _val72.put(_key75, _val76); + _val73.put(_key76, _val77); } } - struct.attributes.put(_key71, _val72); + struct.attributes.put(_key72, _val73); } } struct.setAttributesIsSet(true); diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java index 23d7363..bd580ad 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/IntString.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde2.thrift.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class IntString implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class IntString implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("IntString"); private static final org.apache.thrift.protocol.TField MYINT_FIELD_DESC = new org.apache.thrift.protocol.TField("myint", org.apache.thrift.protocol.TType.I32, (short)1); @@ -347,60 +343,60 @@ public boolean equals(IntString that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_myint = true; - list.add(present_myint); + builder.append(present_myint); if (present_myint) - list.add(myint); + builder.append(myint); boolean present_myString = true && (isSetMyString()); - list.add(present_myString); + builder.append(present_myString); if (present_myString) - list.add(myString); + builder.append(myString); boolean present_underscore_int = true; - list.add(present_underscore_int); + builder.append(present_underscore_int); if (present_underscore_int) - list.add(underscore_int); + builder.append(underscore_int); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(IntString other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + IntString typedOther = (IntString)other; - lastComparison = Boolean.valueOf(isSetMyint()).compareTo(other.isSetMyint()); + lastComparison = Boolean.valueOf(isSetMyint()).compareTo(typedOther.isSetMyint()); if (lastComparison != 0) { return lastComparison; } if (isSetMyint()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.myint, other.myint); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.myint, typedOther.myint); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMyString()).compareTo(other.isSetMyString()); + lastComparison = Boolean.valueOf(isSetMyString()).compareTo(typedOther.isSetMyString()); if (lastComparison != 0) { return lastComparison; } if (isSetMyString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.myString, other.myString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.myString, typedOther.myString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUnderscore_int()).compareTo(other.isSetUnderscore_int()); + lastComparison = Boolean.valueOf(isSetUnderscore_int()).compareTo(typedOther.isSetUnderscore_int()); if (lastComparison != 0) { return lastComparison; } if (isSetUnderscore_int()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.underscore_int, other.underscore_int); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.underscore_int, typedOther.underscore_int); if (lastComparison != 0) { return lastComparison; } diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java index 9447708..386fef9 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MegaStruct.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde2.thrift.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class MegaStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class MegaStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MegaStruct"); private static final org.apache.thrift.protocol.TField MY_BOOL_FIELD_DESC = new org.apache.thrift.protocol.TField("my_bool", org.apache.thrift.protocol.TType.BOOL, (short)1); @@ -209,7 +205,7 @@ public String getFieldName() { private static final int __MY_64BIT_INT_ISSET_ID = 4; private static final int __MY_DOUBLE_ISSET_ID = 5; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.MY_BOOL,_Fields.MY_BYTE,_Fields.MY_16BIT_INT,_Fields.MY_32BIT_INT,_Fields.MY_64BIT_INT,_Fields.MY_DOUBLE,_Fields.MY_STRING,_Fields.MY_BINARY,_Fields.MY_STRING_STRING_MAP,_Fields.MY_STRING_ENUM_MAP,_Fields.MY_ENUM_STRING_MAP,_Fields.MY_ENUM_STRUCT_MAP,_Fields.MY_ENUM_STRINGLIST_MAP,_Fields.MY_ENUM_STRUCTLIST_MAP,_Fields.MY_STRINGLIST,_Fields.MY_STRUCTLIST,_Fields.MY_ENUMLIST,_Fields.MY_STRINGSET,_Fields.MY_ENUMSET,_Fields.MY_STRUCTSET}; + private _Fields optionals[] = {_Fields.MY_BOOL,_Fields.MY_BYTE,_Fields.MY_16BIT_INT,_Fields.MY_32BIT_INT,_Fields.MY_64BIT_INT,_Fields.MY_DOUBLE,_Fields.MY_STRING,_Fields.MY_BINARY,_Fields.MY_STRING_STRING_MAP,_Fields.MY_STRING_ENUM_MAP,_Fields.MY_ENUM_STRING_MAP,_Fields.MY_ENUM_STRUCT_MAP,_Fields.MY_ENUM_STRINGLIST_MAP,_Fields.MY_ENUM_STRUCTLIST_MAP,_Fields.MY_STRINGLIST,_Fields.MY_STRUCTLIST,_Fields.MY_ENUMLIST,_Fields.MY_STRINGSET,_Fields.MY_ENUMSET,_Fields.MY_STRUCTSET}; 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); @@ -296,13 +292,25 @@ public MegaStruct(MegaStruct other) { } if (other.isSetMy_binary()) { this.my_binary = org.apache.thrift.TBaseHelper.copyBinary(other.my_binary); +; } if (other.isSetMy_string_string_map()) { - Map __this__my_string_string_map = new HashMap(other.my_string_string_map); + Map __this__my_string_string_map = new HashMap(); + for (Map.Entry other_element : other.my_string_string_map.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__my_string_string_map_copy_key = other_element_key; + + String __this__my_string_string_map_copy_value = other_element_value; + + __this__my_string_string_map.put(__this__my_string_string_map_copy_key, __this__my_string_string_map_copy_value); + } this.my_string_string_map = __this__my_string_string_map; } if (other.isSetMy_string_enum_map()) { - Map __this__my_string_enum_map = new HashMap(other.my_string_enum_map.size()); + Map __this__my_string_enum_map = new HashMap(); for (Map.Entry other_element : other.my_string_enum_map.entrySet()) { String other_element_key = other_element.getKey(); @@ -317,7 +325,7 @@ public MegaStruct(MegaStruct other) { this.my_string_enum_map = __this__my_string_enum_map; } if (other.isSetMy_enum_string_map()) { - Map __this__my_enum_string_map = new HashMap(other.my_enum_string_map.size()); + Map __this__my_enum_string_map = new HashMap(); for (Map.Entry other_element : other.my_enum_string_map.entrySet()) { MyEnum other_element_key = other_element.getKey(); @@ -332,7 +340,7 @@ public MegaStruct(MegaStruct other) { this.my_enum_string_map = __this__my_enum_string_map; } if (other.isSetMy_enum_struct_map()) { - Map __this__my_enum_struct_map = new HashMap(other.my_enum_struct_map.size()); + Map __this__my_enum_struct_map = new HashMap(); for (Map.Entry other_element : other.my_enum_struct_map.entrySet()) { MyEnum other_element_key = other_element.getKey(); @@ -347,7 +355,7 @@ public MegaStruct(MegaStruct other) { this.my_enum_struct_map = __this__my_enum_struct_map; } if (other.isSetMy_enum_stringlist_map()) { - Map> __this__my_enum_stringlist_map = new HashMap>(other.my_enum_stringlist_map.size()); + Map> __this__my_enum_stringlist_map = new HashMap>(); for (Map.Entry> other_element : other.my_enum_stringlist_map.entrySet()) { MyEnum other_element_key = other_element.getKey(); @@ -355,14 +363,17 @@ public MegaStruct(MegaStruct other) { MyEnum __this__my_enum_stringlist_map_copy_key = other_element_key; - List __this__my_enum_stringlist_map_copy_value = new ArrayList(other_element_value); + List __this__my_enum_stringlist_map_copy_value = new ArrayList(); + for (String other_element_value_element : other_element_value) { + __this__my_enum_stringlist_map_copy_value.add(other_element_value_element); + } __this__my_enum_stringlist_map.put(__this__my_enum_stringlist_map_copy_key, __this__my_enum_stringlist_map_copy_value); } this.my_enum_stringlist_map = __this__my_enum_stringlist_map; } if (other.isSetMy_enum_structlist_map()) { - Map> __this__my_enum_structlist_map = new HashMap>(other.my_enum_structlist_map.size()); + Map> __this__my_enum_structlist_map = new HashMap>(); for (Map.Entry> other_element : other.my_enum_structlist_map.entrySet()) { MyEnum other_element_key = other_element.getKey(); @@ -370,7 +381,7 @@ public MegaStruct(MegaStruct other) { MyEnum __this__my_enum_structlist_map_copy_key = other_element_key; - List __this__my_enum_structlist_map_copy_value = new ArrayList(other_element_value.size()); + List __this__my_enum_structlist_map_copy_value = new ArrayList(); for (MiniStruct other_element_value_element : other_element_value) { __this__my_enum_structlist_map_copy_value.add(new MiniStruct(other_element_value_element)); } @@ -380,36 +391,42 @@ public MegaStruct(MegaStruct other) { this.my_enum_structlist_map = __this__my_enum_structlist_map; } if (other.isSetMy_stringlist()) { - List __this__my_stringlist = new ArrayList(other.my_stringlist); + List __this__my_stringlist = new ArrayList(); + for (String other_element : other.my_stringlist) { + __this__my_stringlist.add(other_element); + } this.my_stringlist = __this__my_stringlist; } if (other.isSetMy_structlist()) { - List __this__my_structlist = new ArrayList(other.my_structlist.size()); + List __this__my_structlist = new ArrayList(); for (MiniStruct other_element : other.my_structlist) { __this__my_structlist.add(new MiniStruct(other_element)); } this.my_structlist = __this__my_structlist; } if (other.isSetMy_enumlist()) { - List __this__my_enumlist = new ArrayList(other.my_enumlist.size()); + List __this__my_enumlist = new ArrayList(); for (MyEnum other_element : other.my_enumlist) { __this__my_enumlist.add(other_element); } this.my_enumlist = __this__my_enumlist; } if (other.isSetMy_stringset()) { - Set __this__my_stringset = new HashSet(other.my_stringset); + Set __this__my_stringset = new HashSet(); + for (String other_element : other.my_stringset) { + __this__my_stringset.add(other_element); + } this.my_stringset = __this__my_stringset; } if (other.isSetMy_enumset()) { - Set __this__my_enumset = new HashSet(other.my_enumset.size()); + Set __this__my_enumset = new HashSet(); for (MyEnum other_element : other.my_enumset) { __this__my_enumset.add(other_element); } this.my_enumset = __this__my_enumset; } if (other.isSetMy_structset()) { - Set __this__my_structset = new HashSet(other.my_structset.size()); + Set __this__my_structset = new HashSet(); for (MiniStruct other_element : other.my_structset) { __this__my_structset.add(new MiniStruct(other_element)); } @@ -612,15 +629,15 @@ public void setMy_stringIsSet(boolean value) { } public ByteBuffer bufferForMy_binary() { - return org.apache.thrift.TBaseHelper.copyBinary(my_binary); + return my_binary; } public void setMy_binary(byte[] my_binary) { - this.my_binary = my_binary == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(my_binary, my_binary.length)); + setMy_binary(my_binary == null ? (ByteBuffer)null : ByteBuffer.wrap(my_binary)); } public void setMy_binary(ByteBuffer my_binary) { - this.my_binary = org.apache.thrift.TBaseHelper.copyBinary(my_binary); + this.my_binary = my_binary; } public void unsetMy_binary() { @@ -1550,315 +1567,315 @@ public boolean equals(MegaStruct that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_my_bool = true && (isSetMy_bool()); - list.add(present_my_bool); + builder.append(present_my_bool); if (present_my_bool) - list.add(my_bool); + builder.append(my_bool); boolean present_my_byte = true && (isSetMy_byte()); - list.add(present_my_byte); + builder.append(present_my_byte); if (present_my_byte) - list.add(my_byte); + builder.append(my_byte); boolean present_my_16bit_int = true && (isSetMy_16bit_int()); - list.add(present_my_16bit_int); + builder.append(present_my_16bit_int); if (present_my_16bit_int) - list.add(my_16bit_int); + builder.append(my_16bit_int); boolean present_my_32bit_int = true && (isSetMy_32bit_int()); - list.add(present_my_32bit_int); + builder.append(present_my_32bit_int); if (present_my_32bit_int) - list.add(my_32bit_int); + builder.append(my_32bit_int); boolean present_my_64bit_int = true && (isSetMy_64bit_int()); - list.add(present_my_64bit_int); + builder.append(present_my_64bit_int); if (present_my_64bit_int) - list.add(my_64bit_int); + builder.append(my_64bit_int); boolean present_my_double = true && (isSetMy_double()); - list.add(present_my_double); + builder.append(present_my_double); if (present_my_double) - list.add(my_double); + builder.append(my_double); boolean present_my_string = true && (isSetMy_string()); - list.add(present_my_string); + builder.append(present_my_string); if (present_my_string) - list.add(my_string); + builder.append(my_string); boolean present_my_binary = true && (isSetMy_binary()); - list.add(present_my_binary); + builder.append(present_my_binary); if (present_my_binary) - list.add(my_binary); + builder.append(my_binary); boolean present_my_string_string_map = true && (isSetMy_string_string_map()); - list.add(present_my_string_string_map); + builder.append(present_my_string_string_map); if (present_my_string_string_map) - list.add(my_string_string_map); + builder.append(my_string_string_map); boolean present_my_string_enum_map = true && (isSetMy_string_enum_map()); - list.add(present_my_string_enum_map); + builder.append(present_my_string_enum_map); if (present_my_string_enum_map) - list.add(my_string_enum_map); + builder.append(my_string_enum_map); boolean present_my_enum_string_map = true && (isSetMy_enum_string_map()); - list.add(present_my_enum_string_map); + builder.append(present_my_enum_string_map); if (present_my_enum_string_map) - list.add(my_enum_string_map); + builder.append(my_enum_string_map); boolean present_my_enum_struct_map = true && (isSetMy_enum_struct_map()); - list.add(present_my_enum_struct_map); + builder.append(present_my_enum_struct_map); if (present_my_enum_struct_map) - list.add(my_enum_struct_map); + builder.append(my_enum_struct_map); boolean present_my_enum_stringlist_map = true && (isSetMy_enum_stringlist_map()); - list.add(present_my_enum_stringlist_map); + builder.append(present_my_enum_stringlist_map); if (present_my_enum_stringlist_map) - list.add(my_enum_stringlist_map); + builder.append(my_enum_stringlist_map); boolean present_my_enum_structlist_map = true && (isSetMy_enum_structlist_map()); - list.add(present_my_enum_structlist_map); + builder.append(present_my_enum_structlist_map); if (present_my_enum_structlist_map) - list.add(my_enum_structlist_map); + builder.append(my_enum_structlist_map); boolean present_my_stringlist = true && (isSetMy_stringlist()); - list.add(present_my_stringlist); + builder.append(present_my_stringlist); if (present_my_stringlist) - list.add(my_stringlist); + builder.append(my_stringlist); boolean present_my_structlist = true && (isSetMy_structlist()); - list.add(present_my_structlist); + builder.append(present_my_structlist); if (present_my_structlist) - list.add(my_structlist); + builder.append(my_structlist); boolean present_my_enumlist = true && (isSetMy_enumlist()); - list.add(present_my_enumlist); + builder.append(present_my_enumlist); if (present_my_enumlist) - list.add(my_enumlist); + builder.append(my_enumlist); boolean present_my_stringset = true && (isSetMy_stringset()); - list.add(present_my_stringset); + builder.append(present_my_stringset); if (present_my_stringset) - list.add(my_stringset); + builder.append(my_stringset); boolean present_my_enumset = true && (isSetMy_enumset()); - list.add(present_my_enumset); + builder.append(present_my_enumset); if (present_my_enumset) - list.add(my_enumset); + builder.append(my_enumset); boolean present_my_structset = true && (isSetMy_structset()); - list.add(present_my_structset); + builder.append(present_my_structset); if (present_my_structset) - list.add(my_structset); + builder.append(my_structset); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(MegaStruct other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + MegaStruct typedOther = (MegaStruct)other; - lastComparison = Boolean.valueOf(isSetMy_bool()).compareTo(other.isSetMy_bool()); + lastComparison = Boolean.valueOf(isSetMy_bool()).compareTo(typedOther.isSetMy_bool()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_bool()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_bool, other.my_bool); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_bool, typedOther.my_bool); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_byte()).compareTo(other.isSetMy_byte()); + lastComparison = Boolean.valueOf(isSetMy_byte()).compareTo(typedOther.isSetMy_byte()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_byte()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_byte, other.my_byte); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_byte, typedOther.my_byte); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_16bit_int()).compareTo(other.isSetMy_16bit_int()); + lastComparison = Boolean.valueOf(isSetMy_16bit_int()).compareTo(typedOther.isSetMy_16bit_int()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_16bit_int()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_16bit_int, other.my_16bit_int); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_16bit_int, typedOther.my_16bit_int); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_32bit_int()).compareTo(other.isSetMy_32bit_int()); + lastComparison = Boolean.valueOf(isSetMy_32bit_int()).compareTo(typedOther.isSetMy_32bit_int()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_32bit_int()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_32bit_int, other.my_32bit_int); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_32bit_int, typedOther.my_32bit_int); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_64bit_int()).compareTo(other.isSetMy_64bit_int()); + lastComparison = Boolean.valueOf(isSetMy_64bit_int()).compareTo(typedOther.isSetMy_64bit_int()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_64bit_int()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_64bit_int, other.my_64bit_int); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_64bit_int, typedOther.my_64bit_int); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_double()).compareTo(other.isSetMy_double()); + lastComparison = Boolean.valueOf(isSetMy_double()).compareTo(typedOther.isSetMy_double()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_double()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_double, other.my_double); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_double, typedOther.my_double); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_string()).compareTo(other.isSetMy_string()); + lastComparison = Boolean.valueOf(isSetMy_string()).compareTo(typedOther.isSetMy_string()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_string()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string, other.my_string); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string, typedOther.my_string); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_binary()).compareTo(other.isSetMy_binary()); + lastComparison = Boolean.valueOf(isSetMy_binary()).compareTo(typedOther.isSetMy_binary()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_binary()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_binary, other.my_binary); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_binary, typedOther.my_binary); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_string_string_map()).compareTo(other.isSetMy_string_string_map()); + lastComparison = Boolean.valueOf(isSetMy_string_string_map()).compareTo(typedOther.isSetMy_string_string_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_string_string_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string_string_map, other.my_string_string_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string_string_map, typedOther.my_string_string_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_string_enum_map()).compareTo(other.isSetMy_string_enum_map()); + lastComparison = Boolean.valueOf(isSetMy_string_enum_map()).compareTo(typedOther.isSetMy_string_enum_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_string_enum_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string_enum_map, other.my_string_enum_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string_enum_map, typedOther.my_string_enum_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enum_string_map()).compareTo(other.isSetMy_enum_string_map()); + lastComparison = Boolean.valueOf(isSetMy_enum_string_map()).compareTo(typedOther.isSetMy_enum_string_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enum_string_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_string_map, other.my_enum_string_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_string_map, typedOther.my_enum_string_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enum_struct_map()).compareTo(other.isSetMy_enum_struct_map()); + lastComparison = Boolean.valueOf(isSetMy_enum_struct_map()).compareTo(typedOther.isSetMy_enum_struct_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enum_struct_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_struct_map, other.my_enum_struct_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_struct_map, typedOther.my_enum_struct_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enum_stringlist_map()).compareTo(other.isSetMy_enum_stringlist_map()); + lastComparison = Boolean.valueOf(isSetMy_enum_stringlist_map()).compareTo(typedOther.isSetMy_enum_stringlist_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enum_stringlist_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_stringlist_map, other.my_enum_stringlist_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_stringlist_map, typedOther.my_enum_stringlist_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enum_structlist_map()).compareTo(other.isSetMy_enum_structlist_map()); + lastComparison = Boolean.valueOf(isSetMy_enum_structlist_map()).compareTo(typedOther.isSetMy_enum_structlist_map()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enum_structlist_map()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_structlist_map, other.my_enum_structlist_map); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum_structlist_map, typedOther.my_enum_structlist_map); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_stringlist()).compareTo(other.isSetMy_stringlist()); + lastComparison = Boolean.valueOf(isSetMy_stringlist()).compareTo(typedOther.isSetMy_stringlist()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_stringlist()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_stringlist, other.my_stringlist); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_stringlist, typedOther.my_stringlist); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_structlist()).compareTo(other.isSetMy_structlist()); + lastComparison = Boolean.valueOf(isSetMy_structlist()).compareTo(typedOther.isSetMy_structlist()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_structlist()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_structlist, other.my_structlist); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_structlist, typedOther.my_structlist); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enumlist()).compareTo(other.isSetMy_enumlist()); + lastComparison = Boolean.valueOf(isSetMy_enumlist()).compareTo(typedOther.isSetMy_enumlist()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enumlist()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enumlist, other.my_enumlist); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enumlist, typedOther.my_enumlist); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_stringset()).compareTo(other.isSetMy_stringset()); + lastComparison = Boolean.valueOf(isSetMy_stringset()).compareTo(typedOther.isSetMy_stringset()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_stringset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_stringset, other.my_stringset); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_stringset, typedOther.my_stringset); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enumset()).compareTo(other.isSetMy_enumset()); + lastComparison = Boolean.valueOf(isSetMy_enumset()).compareTo(typedOther.isSetMy_enumset()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enumset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enumset, other.my_enumset); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enumset, typedOther.my_enumset); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_structset()).compareTo(other.isSetMy_structset()); + lastComparison = Boolean.valueOf(isSetMy_structset()).compareTo(typedOther.isSetMy_structset()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_structset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_structset, other.my_structset); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_structset, typedOther.my_structset); if (lastComparison != 0) { return lastComparison; } @@ -2172,13 +2189,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin(); struct.my_string_string_map = new HashMap(2*_map0.size); - String _key1; - String _val2; - for (int _i3 = 0; _i3 < _map0.size; ++_i3) + for (int _i1 = 0; _i1 < _map0.size; ++_i1) { - _key1 = iprot.readString(); - _val2 = iprot.readString(); - struct.my_string_string_map.put(_key1, _val2); + String _key2; // required + String _val3; // required + _key2 = iprot.readString(); + _val3 = iprot.readString(); + struct.my_string_string_map.put(_key2, _val3); } iprot.readMapEnd(); } @@ -2192,13 +2209,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TMap _map4 = iprot.readMapBegin(); struct.my_string_enum_map = new HashMap(2*_map4.size); - String _key5; - MyEnum _val6; - for (int _i7 = 0; _i7 < _map4.size; ++_i7) + for (int _i5 = 0; _i5 < _map4.size; ++_i5) { - _key5 = iprot.readString(); - _val6 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - struct.my_string_enum_map.put(_key5, _val6); + String _key6; // required + MyEnum _val7; // required + _key6 = iprot.readString(); + _val7 = MyEnum.findByValue(iprot.readI32()); + struct.my_string_enum_map.put(_key6, _val7); } iprot.readMapEnd(); } @@ -2212,13 +2229,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TMap _map8 = iprot.readMapBegin(); struct.my_enum_string_map = new HashMap(2*_map8.size); - MyEnum _key9; - String _val10; - for (int _i11 = 0; _i11 < _map8.size; ++_i11) + for (int _i9 = 0; _i9 < _map8.size; ++_i9) { - _key9 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - _val10 = iprot.readString(); - struct.my_enum_string_map.put(_key9, _val10); + MyEnum _key10; // required + String _val11; // required + _key10 = MyEnum.findByValue(iprot.readI32()); + _val11 = iprot.readString(); + struct.my_enum_string_map.put(_key10, _val11); } iprot.readMapEnd(); } @@ -2232,14 +2249,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin(); struct.my_enum_struct_map = new HashMap(2*_map12.size); - MyEnum _key13; - MiniStruct _val14; - for (int _i15 = 0; _i15 < _map12.size; ++_i15) + for (int _i13 = 0; _i13 < _map12.size; ++_i13) { - _key13 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - _val14 = new MiniStruct(); - _val14.read(iprot); - struct.my_enum_struct_map.put(_key13, _val14); + MyEnum _key14; // required + MiniStruct _val15; // required + _key14 = MyEnum.findByValue(iprot.readI32()); + _val15 = new MiniStruct(); + _val15.read(iprot); + struct.my_enum_struct_map.put(_key14, _val15); } iprot.readMapEnd(); } @@ -2253,23 +2270,23 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TMap _map16 = iprot.readMapBegin(); struct.my_enum_stringlist_map = new HashMap>(2*_map16.size); - MyEnum _key17; - List _val18; - for (int _i19 = 0; _i19 < _map16.size; ++_i19) + for (int _i17 = 0; _i17 < _map16.size; ++_i17) { - _key17 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); + MyEnum _key18; // required + List _val19; // required + _key18 = MyEnum.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TList _list20 = iprot.readListBegin(); - _val18 = new ArrayList(_list20.size); - String _elem21; - for (int _i22 = 0; _i22 < _list20.size; ++_i22) + _val19 = new ArrayList(_list20.size); + for (int _i21 = 0; _i21 < _list20.size; ++_i21) { - _elem21 = iprot.readString(); - _val18.add(_elem21); + String _elem22; // required + _elem22 = iprot.readString(); + _val19.add(_elem22); } iprot.readListEnd(); } - struct.my_enum_stringlist_map.put(_key17, _val18); + struct.my_enum_stringlist_map.put(_key18, _val19); } iprot.readMapEnd(); } @@ -2283,24 +2300,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TMap _map23 = iprot.readMapBegin(); struct.my_enum_structlist_map = new HashMap>(2*_map23.size); - MyEnum _key24; - List _val25; - for (int _i26 = 0; _i26 < _map23.size; ++_i26) + for (int _i24 = 0; _i24 < _map23.size; ++_i24) { - _key24 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); + MyEnum _key25; // required + List _val26; // required + _key25 = MyEnum.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TList _list27 = iprot.readListBegin(); - _val25 = new ArrayList(_list27.size); - MiniStruct _elem28; - for (int _i29 = 0; _i29 < _list27.size; ++_i29) + _val26 = new ArrayList(_list27.size); + for (int _i28 = 0; _i28 < _list27.size; ++_i28) { - _elem28 = new MiniStruct(); - _elem28.read(iprot); - _val25.add(_elem28); + MiniStruct _elem29; // required + _elem29 = new MiniStruct(); + _elem29.read(iprot); + _val26.add(_elem29); } iprot.readListEnd(); } - struct.my_enum_structlist_map.put(_key24, _val25); + struct.my_enum_structlist_map.put(_key25, _val26); } iprot.readMapEnd(); } @@ -2314,11 +2331,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TList _list30 = iprot.readListBegin(); struct.my_stringlist = new ArrayList(_list30.size); - String _elem31; - for (int _i32 = 0; _i32 < _list30.size; ++_i32) + for (int _i31 = 0; _i31 < _list30.size; ++_i31) { - _elem31 = iprot.readString(); - struct.my_stringlist.add(_elem31); + String _elem32; // required + _elem32 = iprot.readString(); + struct.my_stringlist.add(_elem32); } iprot.readListEnd(); } @@ -2332,12 +2349,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TList _list33 = iprot.readListBegin(); struct.my_structlist = new ArrayList(_list33.size); - MiniStruct _elem34; - for (int _i35 = 0; _i35 < _list33.size; ++_i35) + for (int _i34 = 0; _i34 < _list33.size; ++_i34) { - _elem34 = new MiniStruct(); - _elem34.read(iprot); - struct.my_structlist.add(_elem34); + MiniStruct _elem35; // required + _elem35 = new MiniStruct(); + _elem35.read(iprot); + struct.my_structlist.add(_elem35); } iprot.readListEnd(); } @@ -2351,11 +2368,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TList _list36 = iprot.readListBegin(); struct.my_enumlist = new ArrayList(_list36.size); - MyEnum _elem37; - for (int _i38 = 0; _i38 < _list36.size; ++_i38) + for (int _i37 = 0; _i37 < _list36.size; ++_i37) { - _elem37 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - struct.my_enumlist.add(_elem37); + MyEnum _elem38; // required + _elem38 = MyEnum.findByValue(iprot.readI32()); + struct.my_enumlist.add(_elem38); } iprot.readListEnd(); } @@ -2369,11 +2386,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TSet _set39 = iprot.readSetBegin(); struct.my_stringset = new HashSet(2*_set39.size); - String _elem40; - for (int _i41 = 0; _i41 < _set39.size; ++_i41) + for (int _i40 = 0; _i40 < _set39.size; ++_i40) { - _elem40 = iprot.readString(); - struct.my_stringset.add(_elem40); + String _elem41; // required + _elem41 = iprot.readString(); + struct.my_stringset.add(_elem41); } iprot.readSetEnd(); } @@ -2387,11 +2404,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TSet _set42 = iprot.readSetBegin(); struct.my_enumset = new HashSet(2*_set42.size); - MyEnum _elem43; - for (int _i44 = 0; _i44 < _set42.size; ++_i44) + for (int _i43 = 0; _i43 < _set42.size; ++_i43) { - _elem43 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - struct.my_enumset.add(_elem43); + MyEnum _elem44; // required + _elem44 = MyEnum.findByValue(iprot.readI32()); + struct.my_enumset.add(_elem44); } iprot.readSetEnd(); } @@ -2405,12 +2422,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MegaStruct struct) { org.apache.thrift.protocol.TSet _set45 = iprot.readSetBegin(); struct.my_structset = new HashSet(2*_set45.size); - MiniStruct _elem46; - for (int _i47 = 0; _i47 < _set45.size; ++_i47) + for (int _i46 = 0; _i46 < _set45.size; ++_i46) { - _elem46 = new MiniStruct(); - _elem46.read(iprot); - struct.my_structset.add(_elem46); + MiniStruct _elem47; // required + _elem47 = new MiniStruct(); + _elem47.read(iprot); + struct.my_structset.add(_elem47); } iprot.readSetEnd(); } @@ -2935,13 +2952,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TMap _map76 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.my_string_string_map = new HashMap(2*_map76.size); - String _key77; - String _val78; - for (int _i79 = 0; _i79 < _map76.size; ++_i79) + for (int _i77 = 0; _i77 < _map76.size; ++_i77) { - _key77 = iprot.readString(); - _val78 = iprot.readString(); - struct.my_string_string_map.put(_key77, _val78); + String _key78; // required + String _val79; // required + _key78 = iprot.readString(); + _val79 = iprot.readString(); + struct.my_string_string_map.put(_key78, _val79); } } struct.setMy_string_string_mapIsSet(true); @@ -2950,13 +2967,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TMap _map80 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.my_string_enum_map = new HashMap(2*_map80.size); - String _key81; - MyEnum _val82; - for (int _i83 = 0; _i83 < _map80.size; ++_i83) + for (int _i81 = 0; _i81 < _map80.size; ++_i81) { - _key81 = iprot.readString(); - _val82 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - struct.my_string_enum_map.put(_key81, _val82); + String _key82; // required + MyEnum _val83; // required + _key82 = iprot.readString(); + _val83 = MyEnum.findByValue(iprot.readI32()); + struct.my_string_enum_map.put(_key82, _val83); } } struct.setMy_string_enum_mapIsSet(true); @@ -2965,13 +2982,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TMap _map84 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.my_enum_string_map = new HashMap(2*_map84.size); - MyEnum _key85; - String _val86; - for (int _i87 = 0; _i87 < _map84.size; ++_i87) + for (int _i85 = 0; _i85 < _map84.size; ++_i85) { - _key85 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - _val86 = iprot.readString(); - struct.my_enum_string_map.put(_key85, _val86); + MyEnum _key86; // required + String _val87; // required + _key86 = MyEnum.findByValue(iprot.readI32()); + _val87 = iprot.readString(); + struct.my_enum_string_map.put(_key86, _val87); } } struct.setMy_enum_string_mapIsSet(true); @@ -2980,14 +2997,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TMap _map88 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.my_enum_struct_map = new HashMap(2*_map88.size); - MyEnum _key89; - MiniStruct _val90; - for (int _i91 = 0; _i91 < _map88.size; ++_i91) + for (int _i89 = 0; _i89 < _map88.size; ++_i89) { - _key89 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - _val90 = new MiniStruct(); - _val90.read(iprot); - struct.my_enum_struct_map.put(_key89, _val90); + MyEnum _key90; // required + MiniStruct _val91; // required + _key90 = MyEnum.findByValue(iprot.readI32()); + _val91 = new MiniStruct(); + _val91.read(iprot); + struct.my_enum_struct_map.put(_key90, _val91); } } struct.setMy_enum_struct_mapIsSet(true); @@ -2996,22 +3013,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TMap _map92 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.my_enum_stringlist_map = new HashMap>(2*_map92.size); - MyEnum _key93; - List _val94; - for (int _i95 = 0; _i95 < _map92.size; ++_i95) + for (int _i93 = 0; _i93 < _map92.size; ++_i93) { - _key93 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); + MyEnum _key94; // required + List _val95; // required + _key94 = MyEnum.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TList _list96 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - _val94 = new ArrayList(_list96.size); - String _elem97; - for (int _i98 = 0; _i98 < _list96.size; ++_i98) + _val95 = new ArrayList(_list96.size); + for (int _i97 = 0; _i97 < _list96.size; ++_i97) { - _elem97 = iprot.readString(); - _val94.add(_elem97); + String _elem98; // required + _elem98 = iprot.readString(); + _val95.add(_elem98); } } - struct.my_enum_stringlist_map.put(_key93, _val94); + struct.my_enum_stringlist_map.put(_key94, _val95); } } struct.setMy_enum_stringlist_mapIsSet(true); @@ -3020,23 +3037,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TMap _map99 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); struct.my_enum_structlist_map = new HashMap>(2*_map99.size); - MyEnum _key100; - List _val101; - for (int _i102 = 0; _i102 < _map99.size; ++_i102) + for (int _i100 = 0; _i100 < _map99.size; ++_i100) { - _key100 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); + MyEnum _key101; // required + List _val102; // required + _key101 = MyEnum.findByValue(iprot.readI32()); { org.apache.thrift.protocol.TList _list103 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val101 = new ArrayList(_list103.size); - MiniStruct _elem104; - for (int _i105 = 0; _i105 < _list103.size; ++_i105) + _val102 = new ArrayList(_list103.size); + for (int _i104 = 0; _i104 < _list103.size; ++_i104) { - _elem104 = new MiniStruct(); - _elem104.read(iprot); - _val101.add(_elem104); + MiniStruct _elem105; // required + _elem105 = new MiniStruct(); + _elem105.read(iprot); + _val102.add(_elem105); } } - struct.my_enum_structlist_map.put(_key100, _val101); + struct.my_enum_structlist_map.put(_key101, _val102); } } struct.setMy_enum_structlist_mapIsSet(true); @@ -3045,11 +3062,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TList _list106 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.my_stringlist = new ArrayList(_list106.size); - String _elem107; - for (int _i108 = 0; _i108 < _list106.size; ++_i108) + for (int _i107 = 0; _i107 < _list106.size; ++_i107) { - _elem107 = iprot.readString(); - struct.my_stringlist.add(_elem107); + String _elem108; // required + _elem108 = iprot.readString(); + struct.my_stringlist.add(_elem108); } } struct.setMy_stringlistIsSet(true); @@ -3058,12 +3075,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TList _list109 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.my_structlist = new ArrayList(_list109.size); - MiniStruct _elem110; - for (int _i111 = 0; _i111 < _list109.size; ++_i111) + for (int _i110 = 0; _i110 < _list109.size; ++_i110) { - _elem110 = new MiniStruct(); - _elem110.read(iprot); - struct.my_structlist.add(_elem110); + MiniStruct _elem111; // required + _elem111 = new MiniStruct(); + _elem111.read(iprot); + struct.my_structlist.add(_elem111); } } struct.setMy_structlistIsSet(true); @@ -3072,11 +3089,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TList _list112 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.my_enumlist = new ArrayList(_list112.size); - MyEnum _elem113; - for (int _i114 = 0; _i114 < _list112.size; ++_i114) + for (int _i113 = 0; _i113 < _list112.size; ++_i113) { - _elem113 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - struct.my_enumlist.add(_elem113); + MyEnum _elem114; // required + _elem114 = MyEnum.findByValue(iprot.readI32()); + struct.my_enumlist.add(_elem114); } } struct.setMy_enumlistIsSet(true); @@ -3085,11 +3102,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TSet _set115 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.my_stringset = new HashSet(2*_set115.size); - String _elem116; - for (int _i117 = 0; _i117 < _set115.size; ++_i117) + for (int _i116 = 0; _i116 < _set115.size; ++_i116) { - _elem116 = iprot.readString(); - struct.my_stringset.add(_elem116); + String _elem117; // required + _elem117 = iprot.readString(); + struct.my_stringset.add(_elem117); } } struct.setMy_stringsetIsSet(true); @@ -3098,11 +3115,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TSet _set118 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.my_enumset = new HashSet(2*_set118.size); - MyEnum _elem119; - for (int _i120 = 0; _i120 < _set118.size; ++_i120) + for (int _i119 = 0; _i119 < _set118.size; ++_i119) { - _elem119 = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); - struct.my_enumset.add(_elem119); + MyEnum _elem120; // required + _elem120 = MyEnum.findByValue(iprot.readI32()); + struct.my_enumset.add(_elem120); } } struct.setMy_enumsetIsSet(true); @@ -3111,12 +3128,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MegaStruct struct) t { org.apache.thrift.protocol.TSet _set121 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.my_structset = new HashSet(2*_set121.size); - MiniStruct _elem122; - for (int _i123 = 0; _i123 < _set121.size; ++_i123) + for (int _i122 = 0; _i122 < _set121.size; ++_i122) { - _elem122 = new MiniStruct(); - _elem122.read(iprot); - struct.my_structset.add(_elem122); + MiniStruct _elem123; // required + _elem123 = new MiniStruct(); + _elem123.read(iprot); + struct.my_structset.add(_elem123); } } struct.setMy_structsetIsSet(true); diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java index d8c46f4..b1d3946 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MiniStruct.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde2.thrift.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class MiniStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class MiniStruct implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("MiniStruct"); private static final org.apache.thrift.protocol.TField MY_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("my_string", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -116,7 +112,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.MY_STRING,_Fields.MY_ENUM}; + private _Fields optionals[] = {_Fields.MY_STRING,_Fields.MY_ENUM}; 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); @@ -291,45 +287,45 @@ public boolean equals(MiniStruct that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_my_string = true && (isSetMy_string()); - list.add(present_my_string); + builder.append(present_my_string); if (present_my_string) - list.add(my_string); + builder.append(my_string); boolean present_my_enum = true && (isSetMy_enum()); - list.add(present_my_enum); + builder.append(present_my_enum); if (present_my_enum) - list.add(my_enum.getValue()); + builder.append(my_enum.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(MiniStruct other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + MiniStruct typedOther = (MiniStruct)other; - lastComparison = Boolean.valueOf(isSetMy_string()).compareTo(other.isSetMy_string()); + lastComparison = Boolean.valueOf(isSetMy_string()).compareTo(typedOther.isSetMy_string()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_string()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string, other.my_string); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_string, typedOther.my_string); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMy_enum()).compareTo(other.isSetMy_enum()); + lastComparison = Boolean.valueOf(isSetMy_enum()).compareTo(typedOther.isSetMy_enum()); if (lastComparison != 0) { return lastComparison; } if (isSetMy_enum()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum, other.my_enum); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.my_enum, typedOther.my_enum); if (lastComparison != 0) { return lastComparison; } @@ -426,7 +422,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, MiniStruct struct) break; case 2: // MY_ENUM if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.my_enum = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); + struct.my_enum = MyEnum.findByValue(iprot.readI32()); struct.setMy_enumIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -501,7 +497,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, MiniStruct struct) t struct.setMy_stringIsSet(true); } if (incoming.get(1)) { - struct.my_enum = org.apache.hadoop.hive.serde2.thrift.test.MyEnum.findByValue(iprot.readI32()); + struct.my_enum = MyEnum.findByValue(iprot.readI32()); struct.setMy_enumIsSet(true); } } diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java index 03f88c5..5bda9cc 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/MyEnum.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java index 2a70482..aa56dc9 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/PropValueUnion.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde2.thrift.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,11 +28,9 @@ 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"}) public class PropValueUnion extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PropValueUnion"); private static final org.apache.thrift.protocol.TField INT_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("intValue", org.apache.thrift.protocol.TType.I32, (short)1); @@ -301,11 +298,11 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); lString = new ArrayList(_list0.size); - String _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - _elem1 = iprot.readString(); - lString.add(_elem1); + String _elem2; // required + _elem2 = iprot.readString(); + lString.add(_elem2); } iprot.readListEnd(); } @@ -320,13 +317,13 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip { org.apache.thrift.protocol.TMap _map3 = iprot.readMapBegin(); unionMStringString = new HashMap(2*_map3.size); - String _key4; - String _val5; - for (int _i6 = 0; _i6 < _map3.size; ++_i6) + for (int _i4 = 0; _i4 < _map3.size; ++_i4) { - _key4 = iprot.readString(); - _val5 = iprot.readString(); - unionMStringString.put(_key4, _val5); + String _key5; // required + String _val6; // required + _key5 = iprot.readString(); + _val6 = iprot.readString(); + unionMStringString.put(_key5, _val6); } iprot.readMapEnd(); } @@ -339,7 +336,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -425,11 +421,11 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot { org.apache.thrift.protocol.TList _list9 = iprot.readListBegin(); lString = new ArrayList(_list9.size); - String _elem10; - for (int _i11 = 0; _i11 < _list9.size; ++_i11) + for (int _i10 = 0; _i10 < _list9.size; ++_i10) { - _elem10 = iprot.readString(); - lString.add(_elem10); + String _elem11; // required + _elem11 = iprot.readString(); + lString.add(_elem11); } iprot.readListEnd(); } @@ -439,13 +435,13 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot { org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin(); unionMStringString = new HashMap(2*_map12.size); - String _key13; - String _val14; - for (int _i15 = 0; _i15 < _map12.size; ++_i15) + for (int _i13 = 0; _i13 < _map12.size; ++_i13) { - _key13 = iprot.readString(); - _val14 = iprot.readString(); - unionMStringString.put(_key13, _val14); + String _key14; // required + String _val15; // required + _key14 = iprot.readString(); + _val15 = iprot.readString(); + unionMStringString.put(_key14, _val15); } iprot.readMapEnd(); } @@ -699,19 +695,19 @@ public int compareTo(PropValueUnion other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java index 58498b0..676f2b2 100644 --- a/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java +++ b/serde/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/serde2/thrift/test/SetIntString.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.serde2.thrift.test; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class SetIntString implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class SetIntString implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("SetIntString"); private static final org.apache.thrift.protocol.TField S_INT_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("sIntString", org.apache.thrift.protocol.TType.SET, (short)1); @@ -141,7 +137,7 @@ public SetIntString( */ public SetIntString(SetIntString other) { if (other.isSetSIntString()) { - Set __this__sIntString = new HashSet(other.sIntString.size()); + Set __this__sIntString = new HashSet(); for (IntString other_element : other.sIntString) { __this__sIntString.add(new IntString(other_element)); } @@ -307,45 +303,45 @@ public boolean equals(SetIntString that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sIntString = true && (isSetSIntString()); - list.add(present_sIntString); + builder.append(present_sIntString); if (present_sIntString) - list.add(sIntString); + builder.append(sIntString); boolean present_aString = true && (isSetAString()); - list.add(present_aString); + builder.append(present_aString); if (present_aString) - list.add(aString); + builder.append(aString); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(SetIntString other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + SetIntString typedOther = (SetIntString)other; - lastComparison = Boolean.valueOf(isSetSIntString()).compareTo(other.isSetSIntString()); + lastComparison = Boolean.valueOf(isSetSIntString()).compareTo(typedOther.isSetSIntString()); if (lastComparison != 0) { return lastComparison; } if (isSetSIntString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sIntString, other.sIntString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sIntString, typedOther.sIntString); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetAString()).compareTo(other.isSetAString()); + lastComparison = Boolean.valueOf(isSetAString()).compareTo(typedOther.isSetAString()); if (lastComparison != 0) { return lastComparison; } if (isSetAString()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aString, other.aString); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.aString, typedOther.aString); if (lastComparison != 0) { return lastComparison; } @@ -433,12 +429,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SetIntString struct { org.apache.thrift.protocol.TSet _set82 = iprot.readSetBegin(); struct.sIntString = new HashSet(2*_set82.size); - IntString _elem83; - for (int _i84 = 0; _i84 < _set82.size; ++_i84) + for (int _i83 = 0; _i83 < _set82.size; ++_i83) { - _elem83 = new IntString(); - _elem83.read(iprot); - struct.sIntString.add(_elem83); + IntString _elem84; // required + _elem84 = new IntString(); + _elem84.read(iprot); + struct.sIntString.add(_elem84); } iprot.readSetEnd(); } @@ -532,12 +528,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SetIntString struct) { org.apache.thrift.protocol.TSet _set87 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.sIntString = new HashSet(2*_set87.size); - IntString _elem88; - for (int _i89 = 0; _i89 < _set87.size; ++_i89) + for (int _i88 = 0; _i88 < _set87.size; ++_i88) { - _elem88 = new IntString(); - _elem88.read(iprot); - struct.sIntString.add(_elem88); + IntString _elem89; // required + _elem89 = new IntString(); + _elem89.read(iprot); + struct.sIntString.add(_elem89); } } struct.setSIntStringIsSet(true); diff --git a/serde/src/gen/thrift/gen-php/Types.php b/serde/src/gen/thrift/gen-php/Types.php index 8bb2fe3..8c2cea6 100644 --- a/serde/src/gen/thrift/gen-php/Types.php +++ b/serde/src/gen/thrift/gen-php/Types.php @@ -2,7 +2,7 @@ namespace ; /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -13,16 +13,12 @@ use Thrift\Type\TMessageType; use Thrift\Exception\TException; use Thrift\Exception\TProtocolException; use Thrift\Protocol\TProtocol; -use Thrift\Protocol\TBinaryProtocolAccelerated; use Thrift\Exception\TApplicationException; class InnerStruct { static $_TSPEC; - /** - * @var int - */ public $field0 = null; public function __construct($vals=null) { @@ -95,17 +91,8 @@ class InnerStruct { class ThriftTestObj { static $_TSPEC; - /** - * @var int - */ public $field1 = null; - /** - * @var string - */ public $field2 = null; - /** - * @var \InnerStruct[] - */ public $field3 = null; public function __construct($vals=null) { diff --git a/serde/src/gen/thrift/gen-php/org/apache/hadoop/hive/serde/Types.php b/serde/src/gen/thrift/gen-php/org/apache/hadoop/hive/serde/Types.php index 2475cc8..653662a 100644 --- a/serde/src/gen/thrift/gen-php/org/apache/hadoop/hive/serde/Types.php +++ b/serde/src/gen/thrift/gen-php/org/apache/hadoop/hive/serde/Types.php @@ -2,7 +2,7 @@ namespace org\apache\hadoop\hive\serde; /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -13,263 +13,124 @@ use Thrift\Type\TMessageType; use Thrift\Exception\TException; use Thrift\Exception\TProtocolException; use Thrift\Protocol\TProtocol; -use Thrift\Protocol\TBinaryProtocolAccelerated; use Thrift\Exception\TApplicationException; -final class Constant extends \Thrift\Type\TConstant { - static protected $SERIALIZATION_LIB; - static protected $SERIALIZATION_CLASS; - static protected $SERIALIZATION_FORMAT; - static protected $SERIALIZATION_DDL; - static protected $SERIALIZATION_NULL_FORMAT; - static protected $SERIALIZATION_LAST_COLUMN_TAKES_REST; - static protected $SERIALIZATION_SORT_ORDER; - static protected $SERIALIZATION_USE_JSON_OBJECTS; - static protected $SERIALIZATION_ENCODING; - static protected $FIELD_DELIM; - static protected $COLLECTION_DELIM; - static protected $LINE_DELIM; - static protected $MAPKEY_DELIM; - static protected $QUOTE_CHAR; - static protected $ESCAPE_CHAR; - static protected $HEADER_COUNT; - static protected $FOOTER_COUNT; - static protected $VOID_TYPE_NAME; - static protected $BOOLEAN_TYPE_NAME; - static protected $TINYINT_TYPE_NAME; - static protected $SMALLINT_TYPE_NAME; - static protected $INT_TYPE_NAME; - static protected $BIGINT_TYPE_NAME; - static protected $FLOAT_TYPE_NAME; - static protected $DOUBLE_TYPE_NAME; - static protected $STRING_TYPE_NAME; - static protected $CHAR_TYPE_NAME; - static protected $VARCHAR_TYPE_NAME; - static protected $DATE_TYPE_NAME; - static protected $DATETIME_TYPE_NAME; - static protected $TIMESTAMP_TYPE_NAME; - static protected $DECIMAL_TYPE_NAME; - static protected $BINARY_TYPE_NAME; - static protected $INTERVAL_YEAR_MONTH_TYPE_NAME; - static protected $INTERVAL_DAY_TIME_TYPE_NAME; - static protected $LIST_TYPE_NAME; - static protected $MAP_TYPE_NAME; - static protected $STRUCT_TYPE_NAME; - static protected $UNION_TYPE_NAME; - static protected $LIST_COLUMNS; - static protected $LIST_COLUMN_TYPES; - static protected $TIMESTAMP_FORMATS; - static protected $PrimitiveTypes; - static protected $CollectionTypes; - static protected $IntegralTypes; - - static protected function init_SERIALIZATION_LIB() { - return "serialization.lib"; - } - - static protected function init_SERIALIZATION_CLASS() { - return "serialization.class"; - } - - static protected function init_SERIALIZATION_FORMAT() { - return "serialization.format"; - } - - static protected function init_SERIALIZATION_DDL() { - return "serialization.ddl"; - } - - static protected function init_SERIALIZATION_NULL_FORMAT() { - return "serialization.null.format"; - } - - static protected function init_SERIALIZATION_LAST_COLUMN_TAKES_REST() { - return "serialization.last.column.takes.rest"; - } - - static protected function init_SERIALIZATION_SORT_ORDER() { - return "serialization.sort.order"; - } - - static protected function init_SERIALIZATION_USE_JSON_OBJECTS() { - return "serialization.use.json.object"; - } - - static protected function init_SERIALIZATION_ENCODING() { - return "serialization.encoding"; - } - - static protected function init_FIELD_DELIM() { - return "field.delim"; - } - - static protected function init_COLLECTION_DELIM() { - return "colelction.delim"; - } - - static protected function init_LINE_DELIM() { - return "line.delim"; - } - - static protected function init_MAPKEY_DELIM() { - return "mapkey.delim"; - } - - static protected function init_QUOTE_CHAR() { - return "quote.delim"; - } - - static protected function init_ESCAPE_CHAR() { - return "escape.delim"; - } - - static protected function init_HEADER_COUNT() { - return "skip.header.line.count"; - } - - static protected function init_FOOTER_COUNT() { - return "skip.footer.line.count"; - } - - static protected function init_VOID_TYPE_NAME() { - return "void"; - } - - static protected function init_BOOLEAN_TYPE_NAME() { - return "boolean"; - } - - static protected function init_TINYINT_TYPE_NAME() { - return "tinyint"; - } - - static protected function init_SMALLINT_TYPE_NAME() { - return "smallint"; - } - - static protected function init_INT_TYPE_NAME() { - return "int"; - } - - static protected function init_BIGINT_TYPE_NAME() { - return "bigint"; - } - - static protected function init_FLOAT_TYPE_NAME() { - return "float"; - } - - static protected function init_DOUBLE_TYPE_NAME() { - return "double"; - } - - static protected function init_STRING_TYPE_NAME() { - return "string"; - } - - static protected function init_CHAR_TYPE_NAME() { - return "char"; - } - - static protected function init_VARCHAR_TYPE_NAME() { - return "varchar"; - } - - static protected function init_DATE_TYPE_NAME() { - return "date"; - } - - static protected function init_DATETIME_TYPE_NAME() { - return "datetime"; - } - - static protected function init_TIMESTAMP_TYPE_NAME() { - return "timestamp"; - } - - static protected function init_DECIMAL_TYPE_NAME() { - return "decimal"; - } - - static protected function init_BINARY_TYPE_NAME() { - return "binary"; - } - - static protected function init_INTERVAL_YEAR_MONTH_TYPE_NAME() { - return "interval_year_month"; - } - - static protected function init_INTERVAL_DAY_TIME_TYPE_NAME() { - return "interval_day_time"; - } - - static protected function init_LIST_TYPE_NAME() { - return "array"; - } - - static protected function init_MAP_TYPE_NAME() { - return "map"; - } - - static protected function init_STRUCT_TYPE_NAME() { - return "struct"; - } - - static protected function init_UNION_TYPE_NAME() { - return "uniontype"; - } - - static protected function init_LIST_COLUMNS() { - return "columns"; - } - - static protected function init_LIST_COLUMN_TYPES() { - return "columns.types"; - } - - static protected function init_TIMESTAMP_FORMATS() { - return "timestamp.formats"; - } - - static protected function init_PrimitiveTypes() { - return array( - "void" => true, - "boolean" => true, - "tinyint" => true, - "smallint" => true, - "int" => true, - "bigint" => true, - "float" => true, - "double" => true, - "string" => true, - "varchar" => true, - "char" => true, - "date" => true, - "datetime" => true, - "timestamp" => true, - "interval_year_month" => true, - "interval_day_time" => true, - "decimal" => true, - "binary" => true, - ); - } - - static protected function init_CollectionTypes() { - return array( - "array" => true, - "map" => true, - ); - } - - static protected function init_IntegralTypes() { - return array( - "tinyint" => true, - "smallint" => true, - "int" => true, - "bigint" => true, - ); - } -} +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_LIB'] = "serialization.lib"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_CLASS'] = "serialization.class"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_FORMAT'] = "serialization.format"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_DDL'] = "serialization.ddl"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_NULL_FORMAT'] = "serialization.null.format"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_LAST_COLUMN_TAKES_REST'] = "serialization.last.column.takes.rest"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_SORT_ORDER'] = "serialization.sort.order"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_USE_JSON_OBJECTS'] = "serialization.use.json.object"; + +$GLOBALS['serde_CONSTANTS']['SERIALIZATION_ENCODING'] = "serialization.encoding"; + +$GLOBALS['serde_CONSTANTS']['FIELD_DELIM'] = "field.delim"; + +$GLOBALS['serde_CONSTANTS']['COLLECTION_DELIM'] = "colelction.delim"; + +$GLOBALS['serde_CONSTANTS']['LINE_DELIM'] = "line.delim"; + +$GLOBALS['serde_CONSTANTS']['MAPKEY_DELIM'] = "mapkey.delim"; + +$GLOBALS['serde_CONSTANTS']['QUOTE_CHAR'] = "quote.delim"; + +$GLOBALS['serde_CONSTANTS']['ESCAPE_CHAR'] = "escape.delim"; + +$GLOBALS['serde_CONSTANTS']['HEADER_COUNT'] = "skip.header.line.count"; + +$GLOBALS['serde_CONSTANTS']['FOOTER_COUNT'] = "skip.footer.line.count"; + +$GLOBALS['serde_CONSTANTS']['VOID_TYPE_NAME'] = "void"; + +$GLOBALS['serde_CONSTANTS']['BOOLEAN_TYPE_NAME'] = "boolean"; + +$GLOBALS['serde_CONSTANTS']['TINYINT_TYPE_NAME'] = "tinyint"; + +$GLOBALS['serde_CONSTANTS']['SMALLINT_TYPE_NAME'] = "smallint"; + +$GLOBALS['serde_CONSTANTS']['INT_TYPE_NAME'] = "int"; + +$GLOBALS['serde_CONSTANTS']['BIGINT_TYPE_NAME'] = "bigint"; + +$GLOBALS['serde_CONSTANTS']['FLOAT_TYPE_NAME'] = "float"; + +$GLOBALS['serde_CONSTANTS']['DOUBLE_TYPE_NAME'] = "double"; + +$GLOBALS['serde_CONSTANTS']['STRING_TYPE_NAME'] = "string"; + +$GLOBALS['serde_CONSTANTS']['CHAR_TYPE_NAME'] = "char"; + +$GLOBALS['serde_CONSTANTS']['VARCHAR_TYPE_NAME'] = "varchar"; + +$GLOBALS['serde_CONSTANTS']['DATE_TYPE_NAME'] = "date"; + +$GLOBALS['serde_CONSTANTS']['DATETIME_TYPE_NAME'] = "datetime"; + +$GLOBALS['serde_CONSTANTS']['TIMESTAMP_TYPE_NAME'] = "timestamp"; + +$GLOBALS['serde_CONSTANTS']['DECIMAL_TYPE_NAME'] = "decimal"; + +$GLOBALS['serde_CONSTANTS']['BINARY_TYPE_NAME'] = "binary"; + +$GLOBALS['serde_CONSTANTS']['INTERVAL_YEAR_MONTH_TYPE_NAME'] = "interval_year_month"; + +$GLOBALS['serde_CONSTANTS']['INTERVAL_DAY_TIME_TYPE_NAME'] = "interval_day_time"; + +$GLOBALS['serde_CONSTANTS']['LIST_TYPE_NAME'] = "array"; + +$GLOBALS['serde_CONSTANTS']['MAP_TYPE_NAME'] = "map"; + +$GLOBALS['serde_CONSTANTS']['STRUCT_TYPE_NAME'] = "struct"; + +$GLOBALS['serde_CONSTANTS']['UNION_TYPE_NAME'] = "uniontype"; + +$GLOBALS['serde_CONSTANTS']['LIST_COLUMNS'] = "columns"; + +$GLOBALS['serde_CONSTANTS']['LIST_COLUMN_TYPES'] = "columns.types"; + +$GLOBALS['serde_CONSTANTS']['TIMESTAMP_FORMATS'] = "timestamp.formats"; + +$GLOBALS['serde_CONSTANTS']['PrimitiveTypes'] = array( + "void" => true, + "boolean" => true, + "tinyint" => true, + "smallint" => true, + "int" => true, + "bigint" => true, + "float" => true, + "double" => true, + "string" => true, + "varchar" => true, + "char" => true, + "date" => true, + "datetime" => true, + "timestamp" => true, + "interval_year_month" => true, + "interval_day_time" => true, + "decimal" => true, + "binary" => true, +); + +$GLOBALS['serde_CONSTANTS']['CollectionTypes'] = array( + "array" => true, + "map" => true, +); + +$GLOBALS['serde_CONSTANTS']['IntegralTypes'] = array( + "tinyint" => true, + "smallint" => true, + "int" => true, + "bigint" => true, +); diff --git a/serde/src/gen/thrift/gen-py/complex/constants.py b/serde/src/gen/thrift/gen-py/complex/constants.py index 99717a9..a236326 100644 --- a/serde/src/gen/thrift/gen-py/complex/constants.py +++ b/serde/src/gen/thrift/gen-py/complex/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-py/complex/ttypes.py b/serde/src/gen/thrift/gen-py/complex/ttypes.py index 7f757da..c2748d0 100644 --- a/serde/src/gen/thrift/gen-py/complex/ttypes.py +++ b/serde/src/gen/thrift/gen-py/complex/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -96,7 +96,7 @@ def read(self, iprot): elif fid == 7: if ftype == TType.MAP: self.unionMStringString = {} - (_ktype7, _vtype8, _size6 ) = iprot.readMapBegin() + (_ktype7, _vtype8, _size6 ) = iprot.readMapBegin() for _i10 in xrange(_size6): _key11 = iprot.readString(); _val12 = iprot.readString(); @@ -156,17 +156,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.intValue) - value = (value * 31) ^ hash(self.longValue) - value = (value * 31) ^ hash(self.stringValue) - value = (value * 31) ^ hash(self.doubleValue) - value = (value * 31) ^ hash(self.flag) - value = (value * 31) ^ hash(self.lString) - value = (value * 31) ^ hash(self.unionMStringString) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -251,13 +240,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.myint) - value = (value * 31) ^ hash(self.myString) - value = (value * 31) ^ hash(self.underscore_int) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -363,7 +345,7 @@ def read(self, iprot): elif fid == 6: if ftype == TType.MAP: self.mStringString = {} - (_ktype35, _vtype36, _size34 ) = iprot.readMapBegin() + (_ktype35, _vtype36, _size34 ) = iprot.readMapBegin() for _i38 in xrange(_size34): _key39 = iprot.readString(); _val40 = iprot.readString(); @@ -374,15 +356,15 @@ def read(self, iprot): elif fid == 7: if ftype == TType.MAP: self.attributes = {} - (_ktype42, _vtype43, _size41 ) = iprot.readMapBegin() + (_ktype42, _vtype43, _size41 ) = iprot.readMapBegin() for _i45 in xrange(_size41): _key46 = iprot.readString(); _val47 = {} - (_ktype49, _vtype50, _size48 ) = iprot.readMapBegin() + (_ktype49, _vtype50, _size48 ) = iprot.readMapBegin() for _i52 in xrange(_size48): _key53 = iprot.readString(); _val54 = {} - (_ktype56, _vtype57, _size55 ) = iprot.readMapBegin() + (_ktype56, _vtype57, _size55 ) = iprot.readMapBegin() for _i59 in xrange(_size55): _key60 = iprot.readString(); _val61 = PropValueUnion() @@ -495,20 +477,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.aint) - value = (value * 31) ^ hash(self.aString) - value = (value * 31) ^ hash(self.lint) - value = (value * 31) ^ hash(self.lString) - value = (value * 31) ^ hash(self.lintString) - value = (value * 31) ^ hash(self.mStringString) - value = (value * 31) ^ hash(self.attributes) - value = (value * 31) ^ hash(self.unionField1) - value = (value * 31) ^ hash(self.unionField2) - value = (value * 31) ^ hash(self.unionField3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -590,12 +558,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sIntString) - value = (value * 31) ^ hash(self.aString) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/serde/src/gen/thrift/gen-py/megastruct/constants.py b/serde/src/gen/thrift/gen-py/megastruct/constants.py index 99717a9..a236326 100644 --- a/serde/src/gen/thrift/gen-py/megastruct/constants.py +++ b/serde/src/gen/thrift/gen-py/megastruct/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-py/megastruct/ttypes.py b/serde/src/gen/thrift/gen-py/megastruct/ttypes.py index c4c5a7f..de516b2 100644 --- a/serde/src/gen/thrift/gen-py/megastruct/ttypes.py +++ b/serde/src/gen/thrift/gen-py/megastruct/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -92,12 +92,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.my_string) - value = (value * 31) ^ hash(self.my_enum) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -232,7 +226,7 @@ def read(self, iprot): elif fid == 9: if ftype == TType.MAP: self.my_string_string_map = {} - (_ktype1, _vtype2, _size0 ) = iprot.readMapBegin() + (_ktype1, _vtype2, _size0 ) = iprot.readMapBegin() for _i4 in xrange(_size0): _key5 = iprot.readString(); _val6 = iprot.readString(); @@ -243,7 +237,7 @@ def read(self, iprot): elif fid == 10: if ftype == TType.MAP: self.my_string_enum_map = {} - (_ktype8, _vtype9, _size7 ) = iprot.readMapBegin() + (_ktype8, _vtype9, _size7 ) = iprot.readMapBegin() for _i11 in xrange(_size7): _key12 = iprot.readString(); _val13 = iprot.readI32(); @@ -254,7 +248,7 @@ def read(self, iprot): elif fid == 11: if ftype == TType.MAP: self.my_enum_string_map = {} - (_ktype15, _vtype16, _size14 ) = iprot.readMapBegin() + (_ktype15, _vtype16, _size14 ) = iprot.readMapBegin() for _i18 in xrange(_size14): _key19 = iprot.readI32(); _val20 = iprot.readString(); @@ -265,7 +259,7 @@ def read(self, iprot): elif fid == 12: if ftype == TType.MAP: self.my_enum_struct_map = {} - (_ktype22, _vtype23, _size21 ) = iprot.readMapBegin() + (_ktype22, _vtype23, _size21 ) = iprot.readMapBegin() for _i25 in xrange(_size21): _key26 = iprot.readI32(); _val27 = MiniStruct() @@ -277,7 +271,7 @@ def read(self, iprot): elif fid == 13: if ftype == TType.MAP: self.my_enum_stringlist_map = {} - (_ktype29, _vtype30, _size28 ) = iprot.readMapBegin() + (_ktype29, _vtype30, _size28 ) = iprot.readMapBegin() for _i32 in xrange(_size28): _key33 = iprot.readI32(); _val34 = [] @@ -293,7 +287,7 @@ def read(self, iprot): elif fid == 14: if ftype == TType.MAP: self.my_enum_structlist_map = {} - (_ktype42, _vtype43, _size41 ) = iprot.readMapBegin() + (_ktype42, _vtype43, _size41 ) = iprot.readMapBegin() for _i45 in xrange(_size41): _key46 = iprot.readI32(); _val47 = [] @@ -514,30 +508,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.my_bool) - value = (value * 31) ^ hash(self.my_byte) - value = (value * 31) ^ hash(self.my_16bit_int) - value = (value * 31) ^ hash(self.my_32bit_int) - value = (value * 31) ^ hash(self.my_64bit_int) - value = (value * 31) ^ hash(self.my_double) - value = (value * 31) ^ hash(self.my_string) - value = (value * 31) ^ hash(self.my_binary) - value = (value * 31) ^ hash(self.my_string_string_map) - value = (value * 31) ^ hash(self.my_string_enum_map) - value = (value * 31) ^ hash(self.my_enum_string_map) - value = (value * 31) ^ hash(self.my_enum_struct_map) - value = (value * 31) ^ hash(self.my_enum_stringlist_map) - value = (value * 31) ^ hash(self.my_enum_structlist_map) - value = (value * 31) ^ hash(self.my_stringlist) - value = (value * 31) ^ hash(self.my_structlist) - value = (value * 31) ^ hash(self.my_enumlist) - value = (value * 31) ^ hash(self.my_stringset) - value = (value * 31) ^ hash(self.my_enumset) - value = (value * 31) ^ hash(self.my_structset) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/constants.py b/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/constants.py index 27a6cdb..fa0edc7 100644 --- a/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/constants.py +++ b/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/ttypes.py b/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/ttypes.py index daa619e..ad3e280 100644 --- a/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/ttypes.py +++ b/serde/src/gen/thrift/gen-py/org_apache_hadoop_hive_serde/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-py/testthrift/constants.py b/serde/src/gen/thrift/gen-py/testthrift/constants.py index 99717a9..a236326 100644 --- a/serde/src/gen/thrift/gen-py/testthrift/constants.py +++ b/serde/src/gen/thrift/gen-py/testthrift/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-py/testthrift/ttypes.py b/serde/src/gen/thrift/gen-py/testthrift/ttypes.py index 1b64a7d..a8b2224 100644 --- a/serde/src/gen/thrift/gen-py/testthrift/ttypes.py +++ b/serde/src/gen/thrift/gen-py/testthrift/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -66,11 +66,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.field0) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -164,13 +159,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.field1) - value = (value * 31) ^ hash(self.field2) - value = (value * 31) ^ hash(self.field3) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/serde/src/gen/thrift/gen-rb/complex_constants.rb b/serde/src/gen/thrift/gen-rb/complex_constants.rb index 3df0b7a..00ee2e8 100644 --- a/serde/src/gen/thrift/gen-rb/complex_constants.rb +++ b/serde/src/gen/thrift/gen-rb/complex_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/complex_types.rb b/serde/src/gen/thrift/gen-rb/complex_types.rb index 13d981f..ffbd4d7 100644 --- a/serde/src/gen/thrift/gen-rb/complex_types.rb +++ b/serde/src/gen/thrift/gen-rb/complex_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/megastruct_constants.rb b/serde/src/gen/thrift/gen-rb/megastruct_constants.rb index 6eb3f07..91193eb 100644 --- a/serde/src/gen/thrift/gen-rb/megastruct_constants.rb +++ b/serde/src/gen/thrift/gen-rb/megastruct_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/megastruct_types.rb b/serde/src/gen/thrift/gen-rb/megastruct_types.rb index 7d425af..c299cf3 100644 --- a/serde/src/gen/thrift/gen-rb/megastruct_types.rb +++ b/serde/src/gen/thrift/gen-rb/megastruct_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/serde_constants.rb b/serde/src/gen/thrift/gen-rb/serde_constants.rb index 2eb4754..1c893c1 100644 --- a/serde/src/gen/thrift/gen-rb/serde_constants.rb +++ b/serde/src/gen/thrift/gen-rb/serde_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/serde_types.rb b/serde/src/gen/thrift/gen-rb/serde_types.rb index b3143d1..d426047 100644 --- a/serde/src/gen/thrift/gen-rb/serde_types.rb +++ b/serde/src/gen/thrift/gen-rb/serde_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/testthrift_constants.rb b/serde/src/gen/thrift/gen-rb/testthrift_constants.rb index 1f9473e..13616ee 100644 --- a/serde/src/gen/thrift/gen-rb/testthrift_constants.rb +++ b/serde/src/gen/thrift/gen-rb/testthrift_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/serde/src/gen/thrift/gen-rb/testthrift_types.rb b/serde/src/gen/thrift/gen-rb/testthrift_types.rb index 80d5572..3f76ae6 100644 --- a/serde/src/gen/thrift/gen-rb/testthrift_types.rb +++ b/serde/src/gen/thrift/gen-rb/testthrift_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/service/src/gen/thrift/gen-cpp/TCLIService.cpp b/service/src/gen/thrift/gen-cpp/TCLIService.cpp index 7dae2f8..209ce63 100644 --- a/service/src/gen/thrift/gen-cpp/TCLIService.cpp +++ b/service/src/gen/thrift/gen-cpp/TCLIService.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -8,11 +8,6 @@ namespace apache { namespace hive { namespace service { namespace cli { namespace thrift { - -TCLIService_OpenSession_args::~TCLIService_OpenSession_args() throw() { -} - - uint32_t TCLIService_OpenSession_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -55,7 +50,6 @@ uint32_t TCLIService_OpenSession_args::read(::apache::thrift::protocol::TProtoco uint32_t TCLIService_OpenSession_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_OpenSession_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -64,18 +58,11 @@ uint32_t TCLIService_OpenSession_args::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_OpenSession_pargs::~TCLIService_OpenSession_pargs() throw() { -} - - uint32_t TCLIService_OpenSession_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_OpenSession_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -84,15 +71,9 @@ uint32_t TCLIService_OpenSession_pargs::write(::apache::thrift::protocol::TProto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_OpenSession_result::~TCLIService_OpenSession_result() throw() { -} - - uint32_t TCLIService_OpenSession_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -149,11 +130,6 @@ uint32_t TCLIService_OpenSession_result::write(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_OpenSession_presult::~TCLIService_OpenSession_presult() throw() { -} - - uint32_t TCLIService_OpenSession_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -194,11 +170,6 @@ uint32_t TCLIService_OpenSession_presult::read(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_CloseSession_args::~TCLIService_CloseSession_args() throw() { -} - - uint32_t TCLIService_CloseSession_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -241,7 +212,6 @@ uint32_t TCLIService_CloseSession_args::read(::apache::thrift::protocol::TProtoc uint32_t TCLIService_CloseSession_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_CloseSession_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -250,18 +220,11 @@ uint32_t TCLIService_CloseSession_args::write(::apache::thrift::protocol::TProto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_CloseSession_pargs::~TCLIService_CloseSession_pargs() throw() { -} - - uint32_t TCLIService_CloseSession_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_CloseSession_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -270,15 +233,9 @@ uint32_t TCLIService_CloseSession_pargs::write(::apache::thrift::protocol::TProt xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_CloseSession_result::~TCLIService_CloseSession_result() throw() { -} - - uint32_t TCLIService_CloseSession_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -335,11 +292,6 @@ uint32_t TCLIService_CloseSession_result::write(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_CloseSession_presult::~TCLIService_CloseSession_presult() throw() { -} - - uint32_t TCLIService_CloseSession_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -380,11 +332,6 @@ uint32_t TCLIService_CloseSession_presult::read(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_GetInfo_args::~TCLIService_GetInfo_args() throw() { -} - - uint32_t TCLIService_GetInfo_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -427,7 +374,6 @@ uint32_t TCLIService_GetInfo_args::read(::apache::thrift::protocol::TProtocol* i uint32_t TCLIService_GetInfo_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetInfo_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -436,18 +382,11 @@ uint32_t TCLIService_GetInfo_args::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetInfo_pargs::~TCLIService_GetInfo_pargs() throw() { -} - - uint32_t TCLIService_GetInfo_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetInfo_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -456,15 +395,9 @@ uint32_t TCLIService_GetInfo_pargs::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetInfo_result::~TCLIService_GetInfo_result() throw() { -} - - uint32_t TCLIService_GetInfo_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -521,11 +454,6 @@ uint32_t TCLIService_GetInfo_result::write(::apache::thrift::protocol::TProtocol return xfer; } - -TCLIService_GetInfo_presult::~TCLIService_GetInfo_presult() throw() { -} - - uint32_t TCLIService_GetInfo_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -566,11 +494,6 @@ uint32_t TCLIService_GetInfo_presult::read(::apache::thrift::protocol::TProtocol return xfer; } - -TCLIService_ExecuteStatement_args::~TCLIService_ExecuteStatement_args() throw() { -} - - uint32_t TCLIService_ExecuteStatement_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -613,7 +536,6 @@ uint32_t TCLIService_ExecuteStatement_args::read(::apache::thrift::protocol::TPr uint32_t TCLIService_ExecuteStatement_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_ExecuteStatement_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -622,18 +544,11 @@ uint32_t TCLIService_ExecuteStatement_args::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_ExecuteStatement_pargs::~TCLIService_ExecuteStatement_pargs() throw() { -} - - uint32_t TCLIService_ExecuteStatement_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_ExecuteStatement_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -642,15 +557,9 @@ uint32_t TCLIService_ExecuteStatement_pargs::write(::apache::thrift::protocol::T xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_ExecuteStatement_result::~TCLIService_ExecuteStatement_result() throw() { -} - - uint32_t TCLIService_ExecuteStatement_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -707,11 +616,6 @@ uint32_t TCLIService_ExecuteStatement_result::write(::apache::thrift::protocol:: return xfer; } - -TCLIService_ExecuteStatement_presult::~TCLIService_ExecuteStatement_presult() throw() { -} - - uint32_t TCLIService_ExecuteStatement_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -752,11 +656,6 @@ uint32_t TCLIService_ExecuteStatement_presult::read(::apache::thrift::protocol:: return xfer; } - -TCLIService_GetTypeInfo_args::~TCLIService_GetTypeInfo_args() throw() { -} - - uint32_t TCLIService_GetTypeInfo_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -799,7 +698,6 @@ uint32_t TCLIService_GetTypeInfo_args::read(::apache::thrift::protocol::TProtoco uint32_t TCLIService_GetTypeInfo_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetTypeInfo_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -808,18 +706,11 @@ uint32_t TCLIService_GetTypeInfo_args::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetTypeInfo_pargs::~TCLIService_GetTypeInfo_pargs() throw() { -} - - uint32_t TCLIService_GetTypeInfo_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetTypeInfo_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -828,15 +719,9 @@ uint32_t TCLIService_GetTypeInfo_pargs::write(::apache::thrift::protocol::TProto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetTypeInfo_result::~TCLIService_GetTypeInfo_result() throw() { -} - - uint32_t TCLIService_GetTypeInfo_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -893,11 +778,6 @@ uint32_t TCLIService_GetTypeInfo_result::write(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_GetTypeInfo_presult::~TCLIService_GetTypeInfo_presult() throw() { -} - - uint32_t TCLIService_GetTypeInfo_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -938,11 +818,6 @@ uint32_t TCLIService_GetTypeInfo_presult::read(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_GetCatalogs_args::~TCLIService_GetCatalogs_args() throw() { -} - - uint32_t TCLIService_GetCatalogs_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -985,7 +860,6 @@ uint32_t TCLIService_GetCatalogs_args::read(::apache::thrift::protocol::TProtoco uint32_t TCLIService_GetCatalogs_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetCatalogs_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -994,18 +868,11 @@ uint32_t TCLIService_GetCatalogs_args::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetCatalogs_pargs::~TCLIService_GetCatalogs_pargs() throw() { -} - - uint32_t TCLIService_GetCatalogs_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetCatalogs_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1014,15 +881,9 @@ uint32_t TCLIService_GetCatalogs_pargs::write(::apache::thrift::protocol::TProto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetCatalogs_result::~TCLIService_GetCatalogs_result() throw() { -} - - uint32_t TCLIService_GetCatalogs_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1079,11 +940,6 @@ uint32_t TCLIService_GetCatalogs_result::write(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_GetCatalogs_presult::~TCLIService_GetCatalogs_presult() throw() { -} - - uint32_t TCLIService_GetCatalogs_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1124,11 +980,6 @@ uint32_t TCLIService_GetCatalogs_presult::read(::apache::thrift::protocol::TProt return xfer; } - -TCLIService_GetSchemas_args::~TCLIService_GetSchemas_args() throw() { -} - - uint32_t TCLIService_GetSchemas_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1171,7 +1022,6 @@ uint32_t TCLIService_GetSchemas_args::read(::apache::thrift::protocol::TProtocol uint32_t TCLIService_GetSchemas_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetSchemas_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1180,18 +1030,11 @@ uint32_t TCLIService_GetSchemas_args::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetSchemas_pargs::~TCLIService_GetSchemas_pargs() throw() { -} - - uint32_t TCLIService_GetSchemas_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetSchemas_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1200,15 +1043,9 @@ uint32_t TCLIService_GetSchemas_pargs::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetSchemas_result::~TCLIService_GetSchemas_result() throw() { -} - - uint32_t TCLIService_GetSchemas_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1265,11 +1102,6 @@ uint32_t TCLIService_GetSchemas_result::write(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_GetSchemas_presult::~TCLIService_GetSchemas_presult() throw() { -} - - uint32_t TCLIService_GetSchemas_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1310,11 +1142,6 @@ uint32_t TCLIService_GetSchemas_presult::read(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_GetTables_args::~TCLIService_GetTables_args() throw() { -} - - uint32_t TCLIService_GetTables_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1357,7 +1184,6 @@ uint32_t TCLIService_GetTables_args::read(::apache::thrift::protocol::TProtocol* uint32_t TCLIService_GetTables_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetTables_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1366,18 +1192,11 @@ uint32_t TCLIService_GetTables_args::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetTables_pargs::~TCLIService_GetTables_pargs() throw() { -} - - uint32_t TCLIService_GetTables_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetTables_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1386,15 +1205,9 @@ uint32_t TCLIService_GetTables_pargs::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetTables_result::~TCLIService_GetTables_result() throw() { -} - - uint32_t TCLIService_GetTables_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1451,11 +1264,6 @@ uint32_t TCLIService_GetTables_result::write(::apache::thrift::protocol::TProtoc return xfer; } - -TCLIService_GetTables_presult::~TCLIService_GetTables_presult() throw() { -} - - uint32_t TCLIService_GetTables_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1496,11 +1304,6 @@ uint32_t TCLIService_GetTables_presult::read(::apache::thrift::protocol::TProtoc return xfer; } - -TCLIService_GetTableTypes_args::~TCLIService_GetTableTypes_args() throw() { -} - - uint32_t TCLIService_GetTableTypes_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1543,7 +1346,6 @@ uint32_t TCLIService_GetTableTypes_args::read(::apache::thrift::protocol::TProto uint32_t TCLIService_GetTableTypes_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetTableTypes_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1552,18 +1354,11 @@ uint32_t TCLIService_GetTableTypes_args::write(::apache::thrift::protocol::TProt xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetTableTypes_pargs::~TCLIService_GetTableTypes_pargs() throw() { -} - - uint32_t TCLIService_GetTableTypes_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetTableTypes_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1572,15 +1367,9 @@ uint32_t TCLIService_GetTableTypes_pargs::write(::apache::thrift::protocol::TPro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetTableTypes_result::~TCLIService_GetTableTypes_result() throw() { -} - - uint32_t TCLIService_GetTableTypes_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1637,11 +1426,6 @@ uint32_t TCLIService_GetTableTypes_result::write(::apache::thrift::protocol::TPr return xfer; } - -TCLIService_GetTableTypes_presult::~TCLIService_GetTableTypes_presult() throw() { -} - - uint32_t TCLIService_GetTableTypes_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1682,11 +1466,6 @@ uint32_t TCLIService_GetTableTypes_presult::read(::apache::thrift::protocol::TPr return xfer; } - -TCLIService_GetColumns_args::~TCLIService_GetColumns_args() throw() { -} - - uint32_t TCLIService_GetColumns_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1729,7 +1508,6 @@ uint32_t TCLIService_GetColumns_args::read(::apache::thrift::protocol::TProtocol uint32_t TCLIService_GetColumns_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetColumns_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1738,18 +1516,11 @@ uint32_t TCLIService_GetColumns_args::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetColumns_pargs::~TCLIService_GetColumns_pargs() throw() { -} - - uint32_t TCLIService_GetColumns_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetColumns_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1758,15 +1529,9 @@ uint32_t TCLIService_GetColumns_pargs::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetColumns_result::~TCLIService_GetColumns_result() throw() { -} - - uint32_t TCLIService_GetColumns_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1823,11 +1588,6 @@ uint32_t TCLIService_GetColumns_result::write(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_GetColumns_presult::~TCLIService_GetColumns_presult() throw() { -} - - uint32_t TCLIService_GetColumns_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1868,11 +1628,6 @@ uint32_t TCLIService_GetColumns_presult::read(::apache::thrift::protocol::TProto return xfer; } - -TCLIService_GetFunctions_args::~TCLIService_GetFunctions_args() throw() { -} - - uint32_t TCLIService_GetFunctions_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1915,7 +1670,6 @@ uint32_t TCLIService_GetFunctions_args::read(::apache::thrift::protocol::TProtoc uint32_t TCLIService_GetFunctions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetFunctions_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1924,18 +1678,11 @@ uint32_t TCLIService_GetFunctions_args::write(::apache::thrift::protocol::TProto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetFunctions_pargs::~TCLIService_GetFunctions_pargs() throw() { -} - - uint32_t TCLIService_GetFunctions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetFunctions_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1944,15 +1691,9 @@ uint32_t TCLIService_GetFunctions_pargs::write(::apache::thrift::protocol::TProt xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetFunctions_result::~TCLIService_GetFunctions_result() throw() { -} - - uint32_t TCLIService_GetFunctions_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2009,11 +1750,6 @@ uint32_t TCLIService_GetFunctions_result::write(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_GetFunctions_presult::~TCLIService_GetFunctions_presult() throw() { -} - - uint32_t TCLIService_GetFunctions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2054,11 +1790,6 @@ uint32_t TCLIService_GetFunctions_presult::read(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_GetOperationStatus_args::~TCLIService_GetOperationStatus_args() throw() { -} - - uint32_t TCLIService_GetOperationStatus_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2101,7 +1832,6 @@ uint32_t TCLIService_GetOperationStatus_args::read(::apache::thrift::protocol::T uint32_t TCLIService_GetOperationStatus_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetOperationStatus_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2110,18 +1840,11 @@ uint32_t TCLIService_GetOperationStatus_args::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetOperationStatus_pargs::~TCLIService_GetOperationStatus_pargs() throw() { -} - - uint32_t TCLIService_GetOperationStatus_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetOperationStatus_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2130,15 +1853,9 @@ uint32_t TCLIService_GetOperationStatus_pargs::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetOperationStatus_result::~TCLIService_GetOperationStatus_result() throw() { -} - - uint32_t TCLIService_GetOperationStatus_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2195,11 +1912,6 @@ uint32_t TCLIService_GetOperationStatus_result::write(::apache::thrift::protocol return xfer; } - -TCLIService_GetOperationStatus_presult::~TCLIService_GetOperationStatus_presult() throw() { -} - - uint32_t TCLIService_GetOperationStatus_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2240,11 +1952,6 @@ uint32_t TCLIService_GetOperationStatus_presult::read(::apache::thrift::protocol return xfer; } - -TCLIService_CancelOperation_args::~TCLIService_CancelOperation_args() throw() { -} - - uint32_t TCLIService_CancelOperation_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2287,7 +1994,6 @@ uint32_t TCLIService_CancelOperation_args::read(::apache::thrift::protocol::TPro uint32_t TCLIService_CancelOperation_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_CancelOperation_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2296,18 +2002,11 @@ uint32_t TCLIService_CancelOperation_args::write(::apache::thrift::protocol::TPr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_CancelOperation_pargs::~TCLIService_CancelOperation_pargs() throw() { -} - - uint32_t TCLIService_CancelOperation_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_CancelOperation_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2316,15 +2015,9 @@ uint32_t TCLIService_CancelOperation_pargs::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_CancelOperation_result::~TCLIService_CancelOperation_result() throw() { -} - - uint32_t TCLIService_CancelOperation_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2381,11 +2074,6 @@ uint32_t TCLIService_CancelOperation_result::write(::apache::thrift::protocol::T return xfer; } - -TCLIService_CancelOperation_presult::~TCLIService_CancelOperation_presult() throw() { -} - - uint32_t TCLIService_CancelOperation_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2426,11 +2114,6 @@ uint32_t TCLIService_CancelOperation_presult::read(::apache::thrift::protocol::T return xfer; } - -TCLIService_CloseOperation_args::~TCLIService_CloseOperation_args() throw() { -} - - uint32_t TCLIService_CloseOperation_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2473,7 +2156,6 @@ uint32_t TCLIService_CloseOperation_args::read(::apache::thrift::protocol::TProt uint32_t TCLIService_CloseOperation_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_CloseOperation_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2482,18 +2164,11 @@ uint32_t TCLIService_CloseOperation_args::write(::apache::thrift::protocol::TPro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_CloseOperation_pargs::~TCLIService_CloseOperation_pargs() throw() { -} - - uint32_t TCLIService_CloseOperation_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_CloseOperation_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2502,15 +2177,9 @@ uint32_t TCLIService_CloseOperation_pargs::write(::apache::thrift::protocol::TPr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_CloseOperation_result::~TCLIService_CloseOperation_result() throw() { -} - - uint32_t TCLIService_CloseOperation_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2567,11 +2236,6 @@ uint32_t TCLIService_CloseOperation_result::write(::apache::thrift::protocol::TP return xfer; } - -TCLIService_CloseOperation_presult::~TCLIService_CloseOperation_presult() throw() { -} - - uint32_t TCLIService_CloseOperation_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2612,11 +2276,6 @@ uint32_t TCLIService_CloseOperation_presult::read(::apache::thrift::protocol::TP return xfer; } - -TCLIService_GetResultSetMetadata_args::~TCLIService_GetResultSetMetadata_args() throw() { -} - - uint32_t TCLIService_GetResultSetMetadata_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2659,7 +2318,6 @@ uint32_t TCLIService_GetResultSetMetadata_args::read(::apache::thrift::protocol: uint32_t TCLIService_GetResultSetMetadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetResultSetMetadata_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2668,18 +2326,11 @@ uint32_t TCLIService_GetResultSetMetadata_args::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetResultSetMetadata_pargs::~TCLIService_GetResultSetMetadata_pargs() throw() { -} - - uint32_t TCLIService_GetResultSetMetadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetResultSetMetadata_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2688,15 +2339,9 @@ uint32_t TCLIService_GetResultSetMetadata_pargs::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetResultSetMetadata_result::~TCLIService_GetResultSetMetadata_result() throw() { -} - - uint32_t TCLIService_GetResultSetMetadata_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2753,11 +2398,6 @@ uint32_t TCLIService_GetResultSetMetadata_result::write(::apache::thrift::protoc return xfer; } - -TCLIService_GetResultSetMetadata_presult::~TCLIService_GetResultSetMetadata_presult() throw() { -} - - uint32_t TCLIService_GetResultSetMetadata_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2798,11 +2438,6 @@ uint32_t TCLIService_GetResultSetMetadata_presult::read(::apache::thrift::protoc return xfer; } - -TCLIService_FetchResults_args::~TCLIService_FetchResults_args() throw() { -} - - uint32_t TCLIService_FetchResults_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2845,7 +2480,6 @@ uint32_t TCLIService_FetchResults_args::read(::apache::thrift::protocol::TProtoc uint32_t TCLIService_FetchResults_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_FetchResults_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2854,18 +2488,11 @@ uint32_t TCLIService_FetchResults_args::write(::apache::thrift::protocol::TProto xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_FetchResults_pargs::~TCLIService_FetchResults_pargs() throw() { -} - - uint32_t TCLIService_FetchResults_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_FetchResults_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2874,15 +2501,9 @@ uint32_t TCLIService_FetchResults_pargs::write(::apache::thrift::protocol::TProt xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_FetchResults_result::~TCLIService_FetchResults_result() throw() { -} - - uint32_t TCLIService_FetchResults_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2939,11 +2560,6 @@ uint32_t TCLIService_FetchResults_result::write(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_FetchResults_presult::~TCLIService_FetchResults_presult() throw() { -} - - uint32_t TCLIService_FetchResults_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -2984,11 +2600,6 @@ uint32_t TCLIService_FetchResults_presult::read(::apache::thrift::protocol::TPro return xfer; } - -TCLIService_GetDelegationToken_args::~TCLIService_GetDelegationToken_args() throw() { -} - - uint32_t TCLIService_GetDelegationToken_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3031,7 +2642,6 @@ uint32_t TCLIService_GetDelegationToken_args::read(::apache::thrift::protocol::T uint32_t TCLIService_GetDelegationToken_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetDelegationToken_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3040,18 +2650,11 @@ uint32_t TCLIService_GetDelegationToken_args::write(::apache::thrift::protocol:: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetDelegationToken_pargs::~TCLIService_GetDelegationToken_pargs() throw() { -} - - uint32_t TCLIService_GetDelegationToken_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_GetDelegationToken_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3060,15 +2663,9 @@ uint32_t TCLIService_GetDelegationToken_pargs::write(::apache::thrift::protocol: xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_GetDelegationToken_result::~TCLIService_GetDelegationToken_result() throw() { -} - - uint32_t TCLIService_GetDelegationToken_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3125,11 +2722,6 @@ uint32_t TCLIService_GetDelegationToken_result::write(::apache::thrift::protocol return xfer; } - -TCLIService_GetDelegationToken_presult::~TCLIService_GetDelegationToken_presult() throw() { -} - - uint32_t TCLIService_GetDelegationToken_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3170,11 +2762,6 @@ uint32_t TCLIService_GetDelegationToken_presult::read(::apache::thrift::protocol return xfer; } - -TCLIService_CancelDelegationToken_args::~TCLIService_CancelDelegationToken_args() throw() { -} - - uint32_t TCLIService_CancelDelegationToken_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3217,7 +2804,6 @@ uint32_t TCLIService_CancelDelegationToken_args::read(::apache::thrift::protocol uint32_t TCLIService_CancelDelegationToken_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_CancelDelegationToken_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3226,18 +2812,11 @@ uint32_t TCLIService_CancelDelegationToken_args::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_CancelDelegationToken_pargs::~TCLIService_CancelDelegationToken_pargs() throw() { -} - - uint32_t TCLIService_CancelDelegationToken_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_CancelDelegationToken_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3246,15 +2825,9 @@ uint32_t TCLIService_CancelDelegationToken_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_CancelDelegationToken_result::~TCLIService_CancelDelegationToken_result() throw() { -} - - uint32_t TCLIService_CancelDelegationToken_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3311,11 +2884,6 @@ uint32_t TCLIService_CancelDelegationToken_result::write(::apache::thrift::proto return xfer; } - -TCLIService_CancelDelegationToken_presult::~TCLIService_CancelDelegationToken_presult() throw() { -} - - uint32_t TCLIService_CancelDelegationToken_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3356,11 +2924,6 @@ uint32_t TCLIService_CancelDelegationToken_presult::read(::apache::thrift::proto return xfer; } - -TCLIService_RenewDelegationToken_args::~TCLIService_RenewDelegationToken_args() throw() { -} - - uint32_t TCLIService_RenewDelegationToken_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3403,7 +2966,6 @@ uint32_t TCLIService_RenewDelegationToken_args::read(::apache::thrift::protocol: uint32_t TCLIService_RenewDelegationToken_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_RenewDelegationToken_args"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3412,18 +2974,11 @@ uint32_t TCLIService_RenewDelegationToken_args::write(::apache::thrift::protocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_RenewDelegationToken_pargs::~TCLIService_RenewDelegationToken_pargs() throw() { -} - - uint32_t TCLIService_RenewDelegationToken_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCLIService_RenewDelegationToken_pargs"); xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3432,15 +2987,9 @@ uint32_t TCLIService_RenewDelegationToken_pargs::write(::apache::thrift::protoco xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -TCLIService_RenewDelegationToken_result::~TCLIService_RenewDelegationToken_result() throw() { -} - - uint32_t TCLIService_RenewDelegationToken_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -3497,11 +3046,6 @@ uint32_t TCLIService_RenewDelegationToken_result::write(::apache::thrift::protoc return xfer; } - -TCLIService_RenewDelegationToken_presult::~TCLIService_RenewDelegationToken_presult() throw() { -} - - uint32_t TCLIService_RenewDelegationToken_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; diff --git a/service/src/gen/thrift/gen-cpp/TCLIService.h b/service/src/gen/thrift/gen-cpp/TCLIService.h index 29a9f4a..030475b 100644 --- a/service/src/gen/thrift/gen-cpp/TCLIService.h +++ b/service/src/gen/thrift/gen-cpp/TCLIService.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -124,26 +124,24 @@ class TCLIServiceNull : virtual public TCLIServiceIf { typedef struct _TCLIService_OpenSession_args__isset { _TCLIService_OpenSession_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_OpenSession_args__isset; class TCLIService_OpenSession_args { public: - static const char* ascii_fingerprint; // = "657FF0677838A57698AD9D58A923940A"; - static const uint8_t binary_fingerprint[16]; // = {0x65,0x7F,0xF0,0x67,0x78,0x38,0xA5,0x76,0x98,0xAD,0x9D,0x58,0xA9,0x23,0x94,0x0A}; - - TCLIService_OpenSession_args(const TCLIService_OpenSession_args&); - TCLIService_OpenSession_args& operator=(const TCLIService_OpenSession_args&); TCLIService_OpenSession_args() { } - virtual ~TCLIService_OpenSession_args() throw(); + virtual ~TCLIService_OpenSession_args() throw() {} + TOpenSessionReq req; _TCLIService_OpenSession_args__isset __isset; - void __set_req(const TOpenSessionReq& val); + void __set_req(const TOpenSessionReq& val) { + req = val; + } bool operator == (const TCLIService_OpenSession_args & rhs) const { @@ -160,47 +158,41 @@ class TCLIService_OpenSession_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_OpenSession_args& obj); }; class TCLIService_OpenSession_pargs { public: - static const char* ascii_fingerprint; // = "657FF0677838A57698AD9D58A923940A"; - static const uint8_t binary_fingerprint[16]; // = {0x65,0x7F,0xF0,0x67,0x78,0x38,0xA5,0x76,0x98,0xAD,0x9D,0x58,0xA9,0x23,0x94,0x0A}; + virtual ~TCLIService_OpenSession_pargs() throw() {} - virtual ~TCLIService_OpenSession_pargs() throw(); const TOpenSessionReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_OpenSession_pargs& obj); }; typedef struct _TCLIService_OpenSession_result__isset { _TCLIService_OpenSession_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_OpenSession_result__isset; class TCLIService_OpenSession_result { public: - static const char* ascii_fingerprint; // = "C55268D57D6DC6A256619A7DB419699E"; - static const uint8_t binary_fingerprint[16]; // = {0xC5,0x52,0x68,0xD5,0x7D,0x6D,0xC6,0xA2,0x56,0x61,0x9A,0x7D,0xB4,0x19,0x69,0x9E}; - - TCLIService_OpenSession_result(const TCLIService_OpenSession_result&); - TCLIService_OpenSession_result& operator=(const TCLIService_OpenSession_result&); TCLIService_OpenSession_result() { } - virtual ~TCLIService_OpenSession_result() throw(); + virtual ~TCLIService_OpenSession_result() throw() {} + TOpenSessionResp success; _TCLIService_OpenSession_result__isset __isset; - void __set_success(const TOpenSessionResp& val); + void __set_success(const TOpenSessionResp& val) { + success = val; + } bool operator == (const TCLIService_OpenSession_result & rhs) const { @@ -217,53 +209,47 @@ class TCLIService_OpenSession_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_OpenSession_result& obj); }; typedef struct _TCLIService_OpenSession_presult__isset { _TCLIService_OpenSession_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_OpenSession_presult__isset; class TCLIService_OpenSession_presult { public: - static const char* ascii_fingerprint; // = "C55268D57D6DC6A256619A7DB419699E"; - static const uint8_t binary_fingerprint[16]; // = {0xC5,0x52,0x68,0xD5,0x7D,0x6D,0xC6,0xA2,0x56,0x61,0x9A,0x7D,0xB4,0x19,0x69,0x9E}; + virtual ~TCLIService_OpenSession_presult() throw() {} - virtual ~TCLIService_OpenSession_presult() throw(); TOpenSessionResp* success; _TCLIService_OpenSession_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_OpenSession_presult& obj); }; typedef struct _TCLIService_CloseSession_args__isset { _TCLIService_CloseSession_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_CloseSession_args__isset; class TCLIService_CloseSession_args { public: - static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC"; - static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC}; - - TCLIService_CloseSession_args(const TCLIService_CloseSession_args&); - TCLIService_CloseSession_args& operator=(const TCLIService_CloseSession_args&); TCLIService_CloseSession_args() { } - virtual ~TCLIService_CloseSession_args() throw(); + virtual ~TCLIService_CloseSession_args() throw() {} + TCloseSessionReq req; _TCLIService_CloseSession_args__isset __isset; - void __set_req(const TCloseSessionReq& val); + void __set_req(const TCloseSessionReq& val) { + req = val; + } bool operator == (const TCLIService_CloseSession_args & rhs) const { @@ -280,47 +266,41 @@ class TCLIService_CloseSession_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseSession_args& obj); }; class TCLIService_CloseSession_pargs { public: - static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC"; - static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC}; + virtual ~TCLIService_CloseSession_pargs() throw() {} - virtual ~TCLIService_CloseSession_pargs() throw(); const TCloseSessionReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseSession_pargs& obj); }; typedef struct _TCLIService_CloseSession_result__isset { _TCLIService_CloseSession_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CloseSession_result__isset; class TCLIService_CloseSession_result { public: - static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7}; - - TCLIService_CloseSession_result(const TCLIService_CloseSession_result&); - TCLIService_CloseSession_result& operator=(const TCLIService_CloseSession_result&); TCLIService_CloseSession_result() { } - virtual ~TCLIService_CloseSession_result() throw(); + virtual ~TCLIService_CloseSession_result() throw() {} + TCloseSessionResp success; _TCLIService_CloseSession_result__isset __isset; - void __set_success(const TCloseSessionResp& val); + void __set_success(const TCloseSessionResp& val) { + success = val; + } bool operator == (const TCLIService_CloseSession_result & rhs) const { @@ -337,53 +317,47 @@ class TCLIService_CloseSession_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseSession_result& obj); }; typedef struct _TCLIService_CloseSession_presult__isset { _TCLIService_CloseSession_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CloseSession_presult__isset; class TCLIService_CloseSession_presult { public: - static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7}; + virtual ~TCLIService_CloseSession_presult() throw() {} - virtual ~TCLIService_CloseSession_presult() throw(); TCloseSessionResp* success; _TCLIService_CloseSession_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseSession_presult& obj); }; typedef struct _TCLIService_GetInfo_args__isset { _TCLIService_GetInfo_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetInfo_args__isset; class TCLIService_GetInfo_args { public: - static const char* ascii_fingerprint; // = "482A174DD6064955A19F28C5395E27FA"; - static const uint8_t binary_fingerprint[16]; // = {0x48,0x2A,0x17,0x4D,0xD6,0x06,0x49,0x55,0xA1,0x9F,0x28,0xC5,0x39,0x5E,0x27,0xFA}; - - TCLIService_GetInfo_args(const TCLIService_GetInfo_args&); - TCLIService_GetInfo_args& operator=(const TCLIService_GetInfo_args&); TCLIService_GetInfo_args() { } - virtual ~TCLIService_GetInfo_args() throw(); + virtual ~TCLIService_GetInfo_args() throw() {} + TGetInfoReq req; _TCLIService_GetInfo_args__isset __isset; - void __set_req(const TGetInfoReq& val); + void __set_req(const TGetInfoReq& val) { + req = val; + } bool operator == (const TCLIService_GetInfo_args & rhs) const { @@ -400,47 +374,41 @@ class TCLIService_GetInfo_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetInfo_args& obj); }; class TCLIService_GetInfo_pargs { public: - static const char* ascii_fingerprint; // = "482A174DD6064955A19F28C5395E27FA"; - static const uint8_t binary_fingerprint[16]; // = {0x48,0x2A,0x17,0x4D,0xD6,0x06,0x49,0x55,0xA1,0x9F,0x28,0xC5,0x39,0x5E,0x27,0xFA}; + virtual ~TCLIService_GetInfo_pargs() throw() {} - virtual ~TCLIService_GetInfo_pargs() throw(); const TGetInfoReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetInfo_pargs& obj); }; typedef struct _TCLIService_GetInfo_result__isset { _TCLIService_GetInfo_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetInfo_result__isset; class TCLIService_GetInfo_result { public: - static const char* ascii_fingerprint; // = "95AE9E06990A55202EF5D96DABE20D75"; - static const uint8_t binary_fingerprint[16]; // = {0x95,0xAE,0x9E,0x06,0x99,0x0A,0x55,0x20,0x2E,0xF5,0xD9,0x6D,0xAB,0xE2,0x0D,0x75}; - - TCLIService_GetInfo_result(const TCLIService_GetInfo_result&); - TCLIService_GetInfo_result& operator=(const TCLIService_GetInfo_result&); TCLIService_GetInfo_result() { } - virtual ~TCLIService_GetInfo_result() throw(); + virtual ~TCLIService_GetInfo_result() throw() {} + TGetInfoResp success; _TCLIService_GetInfo_result__isset __isset; - void __set_success(const TGetInfoResp& val); + void __set_success(const TGetInfoResp& val) { + success = val; + } bool operator == (const TCLIService_GetInfo_result & rhs) const { @@ -457,53 +425,47 @@ class TCLIService_GetInfo_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetInfo_result& obj); }; typedef struct _TCLIService_GetInfo_presult__isset { _TCLIService_GetInfo_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetInfo_presult__isset; class TCLIService_GetInfo_presult { public: - static const char* ascii_fingerprint; // = "95AE9E06990A55202EF5D96DABE20D75"; - static const uint8_t binary_fingerprint[16]; // = {0x95,0xAE,0x9E,0x06,0x99,0x0A,0x55,0x20,0x2E,0xF5,0xD9,0x6D,0xAB,0xE2,0x0D,0x75}; + virtual ~TCLIService_GetInfo_presult() throw() {} - virtual ~TCLIService_GetInfo_presult() throw(); TGetInfoResp* success; _TCLIService_GetInfo_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetInfo_presult& obj); }; typedef struct _TCLIService_ExecuteStatement_args__isset { _TCLIService_ExecuteStatement_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_ExecuteStatement_args__isset; class TCLIService_ExecuteStatement_args { public: - static const char* ascii_fingerprint; // = "BD5534ACDA7A523F638927AC476C2173"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0x55,0x34,0xAC,0xDA,0x7A,0x52,0x3F,0x63,0x89,0x27,0xAC,0x47,0x6C,0x21,0x73}; - - TCLIService_ExecuteStatement_args(const TCLIService_ExecuteStatement_args&); - TCLIService_ExecuteStatement_args& operator=(const TCLIService_ExecuteStatement_args&); TCLIService_ExecuteStatement_args() { } - virtual ~TCLIService_ExecuteStatement_args() throw(); + virtual ~TCLIService_ExecuteStatement_args() throw() {} + TExecuteStatementReq req; _TCLIService_ExecuteStatement_args__isset __isset; - void __set_req(const TExecuteStatementReq& val); + void __set_req(const TExecuteStatementReq& val) { + req = val; + } bool operator == (const TCLIService_ExecuteStatement_args & rhs) const { @@ -520,47 +482,41 @@ class TCLIService_ExecuteStatement_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_ExecuteStatement_args& obj); }; class TCLIService_ExecuteStatement_pargs { public: - static const char* ascii_fingerprint; // = "BD5534ACDA7A523F638927AC476C2173"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0x55,0x34,0xAC,0xDA,0x7A,0x52,0x3F,0x63,0x89,0x27,0xAC,0x47,0x6C,0x21,0x73}; + virtual ~TCLIService_ExecuteStatement_pargs() throw() {} - virtual ~TCLIService_ExecuteStatement_pargs() throw(); const TExecuteStatementReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_ExecuteStatement_pargs& obj); }; typedef struct _TCLIService_ExecuteStatement_result__isset { _TCLIService_ExecuteStatement_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_ExecuteStatement_result__isset; class TCLIService_ExecuteStatement_result { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; - - TCLIService_ExecuteStatement_result(const TCLIService_ExecuteStatement_result&); - TCLIService_ExecuteStatement_result& operator=(const TCLIService_ExecuteStatement_result&); TCLIService_ExecuteStatement_result() { } - virtual ~TCLIService_ExecuteStatement_result() throw(); + virtual ~TCLIService_ExecuteStatement_result() throw() {} + TExecuteStatementResp success; _TCLIService_ExecuteStatement_result__isset __isset; - void __set_success(const TExecuteStatementResp& val); + void __set_success(const TExecuteStatementResp& val) { + success = val; + } bool operator == (const TCLIService_ExecuteStatement_result & rhs) const { @@ -577,53 +533,47 @@ class TCLIService_ExecuteStatement_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_ExecuteStatement_result& obj); }; typedef struct _TCLIService_ExecuteStatement_presult__isset { _TCLIService_ExecuteStatement_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_ExecuteStatement_presult__isset; class TCLIService_ExecuteStatement_presult { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; + virtual ~TCLIService_ExecuteStatement_presult() throw() {} - virtual ~TCLIService_ExecuteStatement_presult() throw(); TExecuteStatementResp* success; _TCLIService_ExecuteStatement_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_ExecuteStatement_presult& obj); }; typedef struct _TCLIService_GetTypeInfo_args__isset { _TCLIService_GetTypeInfo_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetTypeInfo_args__isset; class TCLIService_GetTypeInfo_args { public: - static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC"; - static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC}; - - TCLIService_GetTypeInfo_args(const TCLIService_GetTypeInfo_args&); - TCLIService_GetTypeInfo_args& operator=(const TCLIService_GetTypeInfo_args&); TCLIService_GetTypeInfo_args() { } - virtual ~TCLIService_GetTypeInfo_args() throw(); + virtual ~TCLIService_GetTypeInfo_args() throw() {} + TGetTypeInfoReq req; _TCLIService_GetTypeInfo_args__isset __isset; - void __set_req(const TGetTypeInfoReq& val); + void __set_req(const TGetTypeInfoReq& val) { + req = val; + } bool operator == (const TCLIService_GetTypeInfo_args & rhs) const { @@ -640,47 +590,41 @@ class TCLIService_GetTypeInfo_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTypeInfo_args& obj); }; class TCLIService_GetTypeInfo_pargs { public: - static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC"; - static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC}; + virtual ~TCLIService_GetTypeInfo_pargs() throw() {} - virtual ~TCLIService_GetTypeInfo_pargs() throw(); const TGetTypeInfoReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTypeInfo_pargs& obj); }; typedef struct _TCLIService_GetTypeInfo_result__isset { _TCLIService_GetTypeInfo_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetTypeInfo_result__isset; class TCLIService_GetTypeInfo_result { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; - - TCLIService_GetTypeInfo_result(const TCLIService_GetTypeInfo_result&); - TCLIService_GetTypeInfo_result& operator=(const TCLIService_GetTypeInfo_result&); TCLIService_GetTypeInfo_result() { } - virtual ~TCLIService_GetTypeInfo_result() throw(); + virtual ~TCLIService_GetTypeInfo_result() throw() {} + TGetTypeInfoResp success; _TCLIService_GetTypeInfo_result__isset __isset; - void __set_success(const TGetTypeInfoResp& val); + void __set_success(const TGetTypeInfoResp& val) { + success = val; + } bool operator == (const TCLIService_GetTypeInfo_result & rhs) const { @@ -697,53 +641,47 @@ class TCLIService_GetTypeInfo_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTypeInfo_result& obj); }; typedef struct _TCLIService_GetTypeInfo_presult__isset { _TCLIService_GetTypeInfo_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetTypeInfo_presult__isset; class TCLIService_GetTypeInfo_presult { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; + virtual ~TCLIService_GetTypeInfo_presult() throw() {} - virtual ~TCLIService_GetTypeInfo_presult() throw(); TGetTypeInfoResp* success; _TCLIService_GetTypeInfo_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTypeInfo_presult& obj); }; typedef struct _TCLIService_GetCatalogs_args__isset { _TCLIService_GetCatalogs_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetCatalogs_args__isset; class TCLIService_GetCatalogs_args { public: - static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC"; - static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC}; - - TCLIService_GetCatalogs_args(const TCLIService_GetCatalogs_args&); - TCLIService_GetCatalogs_args& operator=(const TCLIService_GetCatalogs_args&); TCLIService_GetCatalogs_args() { } - virtual ~TCLIService_GetCatalogs_args() throw(); + virtual ~TCLIService_GetCatalogs_args() throw() {} + TGetCatalogsReq req; _TCLIService_GetCatalogs_args__isset __isset; - void __set_req(const TGetCatalogsReq& val); + void __set_req(const TGetCatalogsReq& val) { + req = val; + } bool operator == (const TCLIService_GetCatalogs_args & rhs) const { @@ -760,47 +698,41 @@ class TCLIService_GetCatalogs_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetCatalogs_args& obj); }; class TCLIService_GetCatalogs_pargs { public: - static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC"; - static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC}; + virtual ~TCLIService_GetCatalogs_pargs() throw() {} - virtual ~TCLIService_GetCatalogs_pargs() throw(); const TGetCatalogsReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetCatalogs_pargs& obj); }; typedef struct _TCLIService_GetCatalogs_result__isset { _TCLIService_GetCatalogs_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetCatalogs_result__isset; class TCLIService_GetCatalogs_result { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; - - TCLIService_GetCatalogs_result(const TCLIService_GetCatalogs_result&); - TCLIService_GetCatalogs_result& operator=(const TCLIService_GetCatalogs_result&); TCLIService_GetCatalogs_result() { } - virtual ~TCLIService_GetCatalogs_result() throw(); + virtual ~TCLIService_GetCatalogs_result() throw() {} + TGetCatalogsResp success; _TCLIService_GetCatalogs_result__isset __isset; - void __set_success(const TGetCatalogsResp& val); + void __set_success(const TGetCatalogsResp& val) { + success = val; + } bool operator == (const TCLIService_GetCatalogs_result & rhs) const { @@ -817,53 +749,47 @@ class TCLIService_GetCatalogs_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetCatalogs_result& obj); }; typedef struct _TCLIService_GetCatalogs_presult__isset { _TCLIService_GetCatalogs_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetCatalogs_presult__isset; class TCLIService_GetCatalogs_presult { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; + virtual ~TCLIService_GetCatalogs_presult() throw() {} - virtual ~TCLIService_GetCatalogs_presult() throw(); TGetCatalogsResp* success; _TCLIService_GetCatalogs_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetCatalogs_presult& obj); }; typedef struct _TCLIService_GetSchemas_args__isset { _TCLIService_GetSchemas_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetSchemas_args__isset; class TCLIService_GetSchemas_args { public: - static const char* ascii_fingerprint; // = "34B9FACB4B4C34ABAEDCF0A2B60345DE"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0xB9,0xFA,0xCB,0x4B,0x4C,0x34,0xAB,0xAE,0xDC,0xF0,0xA2,0xB6,0x03,0x45,0xDE}; - - TCLIService_GetSchemas_args(const TCLIService_GetSchemas_args&); - TCLIService_GetSchemas_args& operator=(const TCLIService_GetSchemas_args&); TCLIService_GetSchemas_args() { } - virtual ~TCLIService_GetSchemas_args() throw(); + virtual ~TCLIService_GetSchemas_args() throw() {} + TGetSchemasReq req; _TCLIService_GetSchemas_args__isset __isset; - void __set_req(const TGetSchemasReq& val); + void __set_req(const TGetSchemasReq& val) { + req = val; + } bool operator == (const TCLIService_GetSchemas_args & rhs) const { @@ -880,47 +806,41 @@ class TCLIService_GetSchemas_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetSchemas_args& obj); }; class TCLIService_GetSchemas_pargs { public: - static const char* ascii_fingerprint; // = "34B9FACB4B4C34ABAEDCF0A2B60345DE"; - static const uint8_t binary_fingerprint[16]; // = {0x34,0xB9,0xFA,0xCB,0x4B,0x4C,0x34,0xAB,0xAE,0xDC,0xF0,0xA2,0xB6,0x03,0x45,0xDE}; + virtual ~TCLIService_GetSchemas_pargs() throw() {} - virtual ~TCLIService_GetSchemas_pargs() throw(); const TGetSchemasReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetSchemas_pargs& obj); }; typedef struct _TCLIService_GetSchemas_result__isset { _TCLIService_GetSchemas_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetSchemas_result__isset; class TCLIService_GetSchemas_result { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; - - TCLIService_GetSchemas_result(const TCLIService_GetSchemas_result&); - TCLIService_GetSchemas_result& operator=(const TCLIService_GetSchemas_result&); TCLIService_GetSchemas_result() { } - virtual ~TCLIService_GetSchemas_result() throw(); + virtual ~TCLIService_GetSchemas_result() throw() {} + TGetSchemasResp success; _TCLIService_GetSchemas_result__isset __isset; - void __set_success(const TGetSchemasResp& val); + void __set_success(const TGetSchemasResp& val) { + success = val; + } bool operator == (const TCLIService_GetSchemas_result & rhs) const { @@ -937,53 +857,47 @@ class TCLIService_GetSchemas_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetSchemas_result& obj); }; typedef struct _TCLIService_GetSchemas_presult__isset { _TCLIService_GetSchemas_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetSchemas_presult__isset; class TCLIService_GetSchemas_presult { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; + virtual ~TCLIService_GetSchemas_presult() throw() {} - virtual ~TCLIService_GetSchemas_presult() throw(); TGetSchemasResp* success; _TCLIService_GetSchemas_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetSchemas_presult& obj); }; typedef struct _TCLIService_GetTables_args__isset { _TCLIService_GetTables_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetTables_args__isset; class TCLIService_GetTables_args { public: - static const char* ascii_fingerprint; // = "58075D8350502C9B1F3532079C1CF7A6"; - static const uint8_t binary_fingerprint[16]; // = {0x58,0x07,0x5D,0x83,0x50,0x50,0x2C,0x9B,0x1F,0x35,0x32,0x07,0x9C,0x1C,0xF7,0xA6}; - - TCLIService_GetTables_args(const TCLIService_GetTables_args&); - TCLIService_GetTables_args& operator=(const TCLIService_GetTables_args&); TCLIService_GetTables_args() { } - virtual ~TCLIService_GetTables_args() throw(); + virtual ~TCLIService_GetTables_args() throw() {} + TGetTablesReq req; _TCLIService_GetTables_args__isset __isset; - void __set_req(const TGetTablesReq& val); + void __set_req(const TGetTablesReq& val) { + req = val; + } bool operator == (const TCLIService_GetTables_args & rhs) const { @@ -1000,47 +914,41 @@ class TCLIService_GetTables_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTables_args& obj); }; class TCLIService_GetTables_pargs { public: - static const char* ascii_fingerprint; // = "58075D8350502C9B1F3532079C1CF7A6"; - static const uint8_t binary_fingerprint[16]; // = {0x58,0x07,0x5D,0x83,0x50,0x50,0x2C,0x9B,0x1F,0x35,0x32,0x07,0x9C,0x1C,0xF7,0xA6}; + virtual ~TCLIService_GetTables_pargs() throw() {} - virtual ~TCLIService_GetTables_pargs() throw(); const TGetTablesReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTables_pargs& obj); }; typedef struct _TCLIService_GetTables_result__isset { _TCLIService_GetTables_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetTables_result__isset; class TCLIService_GetTables_result { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; - - TCLIService_GetTables_result(const TCLIService_GetTables_result&); - TCLIService_GetTables_result& operator=(const TCLIService_GetTables_result&); TCLIService_GetTables_result() { } - virtual ~TCLIService_GetTables_result() throw(); + virtual ~TCLIService_GetTables_result() throw() {} + TGetTablesResp success; _TCLIService_GetTables_result__isset __isset; - void __set_success(const TGetTablesResp& val); + void __set_success(const TGetTablesResp& val) { + success = val; + } bool operator == (const TCLIService_GetTables_result & rhs) const { @@ -1057,53 +965,47 @@ class TCLIService_GetTables_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTables_result& obj); }; typedef struct _TCLIService_GetTables_presult__isset { _TCLIService_GetTables_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetTables_presult__isset; class TCLIService_GetTables_presult { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; + virtual ~TCLIService_GetTables_presult() throw() {} - virtual ~TCLIService_GetTables_presult() throw(); TGetTablesResp* success; _TCLIService_GetTables_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTables_presult& obj); }; typedef struct _TCLIService_GetTableTypes_args__isset { _TCLIService_GetTableTypes_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetTableTypes_args__isset; class TCLIService_GetTableTypes_args { public: - static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC"; - static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC}; - - TCLIService_GetTableTypes_args(const TCLIService_GetTableTypes_args&); - TCLIService_GetTableTypes_args& operator=(const TCLIService_GetTableTypes_args&); TCLIService_GetTableTypes_args() { } - virtual ~TCLIService_GetTableTypes_args() throw(); + virtual ~TCLIService_GetTableTypes_args() throw() {} + TGetTableTypesReq req; _TCLIService_GetTableTypes_args__isset __isset; - void __set_req(const TGetTableTypesReq& val); + void __set_req(const TGetTableTypesReq& val) { + req = val; + } bool operator == (const TCLIService_GetTableTypes_args & rhs) const { @@ -1120,47 +1022,41 @@ class TCLIService_GetTableTypes_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTableTypes_args& obj); }; class TCLIService_GetTableTypes_pargs { public: - static const char* ascii_fingerprint; // = "FD7076C37D193E2A343D9691B59D94EC"; - static const uint8_t binary_fingerprint[16]; // = {0xFD,0x70,0x76,0xC3,0x7D,0x19,0x3E,0x2A,0x34,0x3D,0x96,0x91,0xB5,0x9D,0x94,0xEC}; + virtual ~TCLIService_GetTableTypes_pargs() throw() {} - virtual ~TCLIService_GetTableTypes_pargs() throw(); const TGetTableTypesReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTableTypes_pargs& obj); }; typedef struct _TCLIService_GetTableTypes_result__isset { _TCLIService_GetTableTypes_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetTableTypes_result__isset; class TCLIService_GetTableTypes_result { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; - - TCLIService_GetTableTypes_result(const TCLIService_GetTableTypes_result&); - TCLIService_GetTableTypes_result& operator=(const TCLIService_GetTableTypes_result&); TCLIService_GetTableTypes_result() { } - virtual ~TCLIService_GetTableTypes_result() throw(); + virtual ~TCLIService_GetTableTypes_result() throw() {} + TGetTableTypesResp success; _TCLIService_GetTableTypes_result__isset __isset; - void __set_success(const TGetTableTypesResp& val); + void __set_success(const TGetTableTypesResp& val) { + success = val; + } bool operator == (const TCLIService_GetTableTypes_result & rhs) const { @@ -1177,53 +1073,47 @@ class TCLIService_GetTableTypes_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTableTypes_result& obj); }; typedef struct _TCLIService_GetTableTypes_presult__isset { _TCLIService_GetTableTypes_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetTableTypes_presult__isset; class TCLIService_GetTableTypes_presult { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; + virtual ~TCLIService_GetTableTypes_presult() throw() {} - virtual ~TCLIService_GetTableTypes_presult() throw(); TGetTableTypesResp* success; _TCLIService_GetTableTypes_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetTableTypes_presult& obj); }; typedef struct _TCLIService_GetColumns_args__isset { _TCLIService_GetColumns_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetColumns_args__isset; class TCLIService_GetColumns_args { public: - static const char* ascii_fingerprint; // = "7894A0356591B039C72040E21BAAC3E3"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x94,0xA0,0x35,0x65,0x91,0xB0,0x39,0xC7,0x20,0x40,0xE2,0x1B,0xAA,0xC3,0xE3}; - - TCLIService_GetColumns_args(const TCLIService_GetColumns_args&); - TCLIService_GetColumns_args& operator=(const TCLIService_GetColumns_args&); TCLIService_GetColumns_args() { } - virtual ~TCLIService_GetColumns_args() throw(); + virtual ~TCLIService_GetColumns_args() throw() {} + TGetColumnsReq req; _TCLIService_GetColumns_args__isset __isset; - void __set_req(const TGetColumnsReq& val); + void __set_req(const TGetColumnsReq& val) { + req = val; + } bool operator == (const TCLIService_GetColumns_args & rhs) const { @@ -1240,47 +1130,41 @@ class TCLIService_GetColumns_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetColumns_args& obj); }; class TCLIService_GetColumns_pargs { public: - static const char* ascii_fingerprint; // = "7894A0356591B039C72040E21BAAC3E3"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x94,0xA0,0x35,0x65,0x91,0xB0,0x39,0xC7,0x20,0x40,0xE2,0x1B,0xAA,0xC3,0xE3}; + virtual ~TCLIService_GetColumns_pargs() throw() {} - virtual ~TCLIService_GetColumns_pargs() throw(); const TGetColumnsReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetColumns_pargs& obj); }; typedef struct _TCLIService_GetColumns_result__isset { _TCLIService_GetColumns_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetColumns_result__isset; class TCLIService_GetColumns_result { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; - - TCLIService_GetColumns_result(const TCLIService_GetColumns_result&); - TCLIService_GetColumns_result& operator=(const TCLIService_GetColumns_result&); TCLIService_GetColumns_result() { } - virtual ~TCLIService_GetColumns_result() throw(); + virtual ~TCLIService_GetColumns_result() throw() {} + TGetColumnsResp success; _TCLIService_GetColumns_result__isset __isset; - void __set_success(const TGetColumnsResp& val); + void __set_success(const TGetColumnsResp& val) { + success = val; + } bool operator == (const TCLIService_GetColumns_result & rhs) const { @@ -1297,53 +1181,47 @@ class TCLIService_GetColumns_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetColumns_result& obj); }; typedef struct _TCLIService_GetColumns_presult__isset { _TCLIService_GetColumns_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetColumns_presult__isset; class TCLIService_GetColumns_presult { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; + virtual ~TCLIService_GetColumns_presult() throw() {} - virtual ~TCLIService_GetColumns_presult() throw(); TGetColumnsResp* success; _TCLIService_GetColumns_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetColumns_presult& obj); }; typedef struct _TCLIService_GetFunctions_args__isset { _TCLIService_GetFunctions_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetFunctions_args__isset; class TCLIService_GetFunctions_args { public: - static const char* ascii_fingerprint; // = "AC28BA383D0EC96F55B7C42FA3E1AF52"; - static const uint8_t binary_fingerprint[16]; // = {0xAC,0x28,0xBA,0x38,0x3D,0x0E,0xC9,0x6F,0x55,0xB7,0xC4,0x2F,0xA3,0xE1,0xAF,0x52}; - - TCLIService_GetFunctions_args(const TCLIService_GetFunctions_args&); - TCLIService_GetFunctions_args& operator=(const TCLIService_GetFunctions_args&); TCLIService_GetFunctions_args() { } - virtual ~TCLIService_GetFunctions_args() throw(); + virtual ~TCLIService_GetFunctions_args() throw() {} + TGetFunctionsReq req; _TCLIService_GetFunctions_args__isset __isset; - void __set_req(const TGetFunctionsReq& val); + void __set_req(const TGetFunctionsReq& val) { + req = val; + } bool operator == (const TCLIService_GetFunctions_args & rhs) const { @@ -1360,47 +1238,41 @@ class TCLIService_GetFunctions_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetFunctions_args& obj); }; class TCLIService_GetFunctions_pargs { public: - static const char* ascii_fingerprint; // = "AC28BA383D0EC96F55B7C42FA3E1AF52"; - static const uint8_t binary_fingerprint[16]; // = {0xAC,0x28,0xBA,0x38,0x3D,0x0E,0xC9,0x6F,0x55,0xB7,0xC4,0x2F,0xA3,0xE1,0xAF,0x52}; + virtual ~TCLIService_GetFunctions_pargs() throw() {} - virtual ~TCLIService_GetFunctions_pargs() throw(); const TGetFunctionsReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetFunctions_pargs& obj); }; typedef struct _TCLIService_GetFunctions_result__isset { _TCLIService_GetFunctions_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetFunctions_result__isset; class TCLIService_GetFunctions_result { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; - - TCLIService_GetFunctions_result(const TCLIService_GetFunctions_result&); - TCLIService_GetFunctions_result& operator=(const TCLIService_GetFunctions_result&); TCLIService_GetFunctions_result() { } - virtual ~TCLIService_GetFunctions_result() throw(); + virtual ~TCLIService_GetFunctions_result() throw() {} + TGetFunctionsResp success; _TCLIService_GetFunctions_result__isset __isset; - void __set_success(const TGetFunctionsResp& val); + void __set_success(const TGetFunctionsResp& val) { + success = val; + } bool operator == (const TCLIService_GetFunctions_result & rhs) const { @@ -1417,53 +1289,47 @@ class TCLIService_GetFunctions_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetFunctions_result& obj); }; typedef struct _TCLIService_GetFunctions_presult__isset { _TCLIService_GetFunctions_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetFunctions_presult__isset; class TCLIService_GetFunctions_presult { public: - static const char* ascii_fingerprint; // = "783BF5EE3B1FEAC8DF5FDAEF1F551CDF"; - static const uint8_t binary_fingerprint[16]; // = {0x78,0x3B,0xF5,0xEE,0x3B,0x1F,0xEA,0xC8,0xDF,0x5F,0xDA,0xEF,0x1F,0x55,0x1C,0xDF}; + virtual ~TCLIService_GetFunctions_presult() throw() {} - virtual ~TCLIService_GetFunctions_presult() throw(); TGetFunctionsResp* success; _TCLIService_GetFunctions_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetFunctions_presult& obj); }; typedef struct _TCLIService_GetOperationStatus_args__isset { _TCLIService_GetOperationStatus_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetOperationStatus_args__isset; class TCLIService_GetOperationStatus_args { public: - static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7"; - static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7}; - - TCLIService_GetOperationStatus_args(const TCLIService_GetOperationStatus_args&); - TCLIService_GetOperationStatus_args& operator=(const TCLIService_GetOperationStatus_args&); TCLIService_GetOperationStatus_args() { } - virtual ~TCLIService_GetOperationStatus_args() throw(); + virtual ~TCLIService_GetOperationStatus_args() throw() {} + TGetOperationStatusReq req; _TCLIService_GetOperationStatus_args__isset __isset; - void __set_req(const TGetOperationStatusReq& val); + void __set_req(const TGetOperationStatusReq& val) { + req = val; + } bool operator == (const TCLIService_GetOperationStatus_args & rhs) const { @@ -1480,47 +1346,41 @@ class TCLIService_GetOperationStatus_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetOperationStatus_args& obj); }; class TCLIService_GetOperationStatus_pargs { public: - static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7"; - static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7}; + virtual ~TCLIService_GetOperationStatus_pargs() throw() {} - virtual ~TCLIService_GetOperationStatus_pargs() throw(); const TGetOperationStatusReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetOperationStatus_pargs& obj); }; typedef struct _TCLIService_GetOperationStatus_result__isset { _TCLIService_GetOperationStatus_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetOperationStatus_result__isset; class TCLIService_GetOperationStatus_result { public: - static const char* ascii_fingerprint; // = "C399947D185D259358E6B922C40ACF85"; - static const uint8_t binary_fingerprint[16]; // = {0xC3,0x99,0x94,0x7D,0x18,0x5D,0x25,0x93,0x58,0xE6,0xB9,0x22,0xC4,0x0A,0xCF,0x85}; - - TCLIService_GetOperationStatus_result(const TCLIService_GetOperationStatus_result&); - TCLIService_GetOperationStatus_result& operator=(const TCLIService_GetOperationStatus_result&); TCLIService_GetOperationStatus_result() { } - virtual ~TCLIService_GetOperationStatus_result() throw(); + virtual ~TCLIService_GetOperationStatus_result() throw() {} + TGetOperationStatusResp success; _TCLIService_GetOperationStatus_result__isset __isset; - void __set_success(const TGetOperationStatusResp& val); + void __set_success(const TGetOperationStatusResp& val) { + success = val; + } bool operator == (const TCLIService_GetOperationStatus_result & rhs) const { @@ -1537,53 +1397,47 @@ class TCLIService_GetOperationStatus_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetOperationStatus_result& obj); }; typedef struct _TCLIService_GetOperationStatus_presult__isset { _TCLIService_GetOperationStatus_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetOperationStatus_presult__isset; class TCLIService_GetOperationStatus_presult { public: - static const char* ascii_fingerprint; // = "C399947D185D259358E6B922C40ACF85"; - static const uint8_t binary_fingerprint[16]; // = {0xC3,0x99,0x94,0x7D,0x18,0x5D,0x25,0x93,0x58,0xE6,0xB9,0x22,0xC4,0x0A,0xCF,0x85}; + virtual ~TCLIService_GetOperationStatus_presult() throw() {} - virtual ~TCLIService_GetOperationStatus_presult() throw(); TGetOperationStatusResp* success; _TCLIService_GetOperationStatus_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetOperationStatus_presult& obj); }; typedef struct _TCLIService_CancelOperation_args__isset { _TCLIService_CancelOperation_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_CancelOperation_args__isset; class TCLIService_CancelOperation_args { public: - static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7"; - static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7}; - - TCLIService_CancelOperation_args(const TCLIService_CancelOperation_args&); - TCLIService_CancelOperation_args& operator=(const TCLIService_CancelOperation_args&); TCLIService_CancelOperation_args() { } - virtual ~TCLIService_CancelOperation_args() throw(); + virtual ~TCLIService_CancelOperation_args() throw() {} + TCancelOperationReq req; _TCLIService_CancelOperation_args__isset __isset; - void __set_req(const TCancelOperationReq& val); + void __set_req(const TCancelOperationReq& val) { + req = val; + } bool operator == (const TCLIService_CancelOperation_args & rhs) const { @@ -1600,47 +1454,41 @@ class TCLIService_CancelOperation_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelOperation_args& obj); }; class TCLIService_CancelOperation_pargs { public: - static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7"; - static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7}; + virtual ~TCLIService_CancelOperation_pargs() throw() {} - virtual ~TCLIService_CancelOperation_pargs() throw(); const TCancelOperationReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelOperation_pargs& obj); }; typedef struct _TCLIService_CancelOperation_result__isset { _TCLIService_CancelOperation_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CancelOperation_result__isset; class TCLIService_CancelOperation_result { public: - static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7}; - - TCLIService_CancelOperation_result(const TCLIService_CancelOperation_result&); - TCLIService_CancelOperation_result& operator=(const TCLIService_CancelOperation_result&); TCLIService_CancelOperation_result() { } - virtual ~TCLIService_CancelOperation_result() throw(); + virtual ~TCLIService_CancelOperation_result() throw() {} + TCancelOperationResp success; _TCLIService_CancelOperation_result__isset __isset; - void __set_success(const TCancelOperationResp& val); + void __set_success(const TCancelOperationResp& val) { + success = val; + } bool operator == (const TCLIService_CancelOperation_result & rhs) const { @@ -1657,53 +1505,47 @@ class TCLIService_CancelOperation_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelOperation_result& obj); }; typedef struct _TCLIService_CancelOperation_presult__isset { _TCLIService_CancelOperation_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CancelOperation_presult__isset; class TCLIService_CancelOperation_presult { public: - static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7}; + virtual ~TCLIService_CancelOperation_presult() throw() {} - virtual ~TCLIService_CancelOperation_presult() throw(); TCancelOperationResp* success; _TCLIService_CancelOperation_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelOperation_presult& obj); }; typedef struct _TCLIService_CloseOperation_args__isset { _TCLIService_CloseOperation_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_CloseOperation_args__isset; class TCLIService_CloseOperation_args { public: - static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7"; - static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7}; - - TCLIService_CloseOperation_args(const TCLIService_CloseOperation_args&); - TCLIService_CloseOperation_args& operator=(const TCLIService_CloseOperation_args&); TCLIService_CloseOperation_args() { } - virtual ~TCLIService_CloseOperation_args() throw(); + virtual ~TCLIService_CloseOperation_args() throw() {} + TCloseOperationReq req; _TCLIService_CloseOperation_args__isset __isset; - void __set_req(const TCloseOperationReq& val); + void __set_req(const TCloseOperationReq& val) { + req = val; + } bool operator == (const TCLIService_CloseOperation_args & rhs) const { @@ -1720,47 +1562,41 @@ class TCLIService_CloseOperation_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseOperation_args& obj); }; class TCLIService_CloseOperation_pargs { public: - static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7"; - static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7}; + virtual ~TCLIService_CloseOperation_pargs() throw() {} - virtual ~TCLIService_CloseOperation_pargs() throw(); const TCloseOperationReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseOperation_pargs& obj); }; typedef struct _TCLIService_CloseOperation_result__isset { _TCLIService_CloseOperation_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CloseOperation_result__isset; class TCLIService_CloseOperation_result { public: - static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7}; - - TCLIService_CloseOperation_result(const TCLIService_CloseOperation_result&); - TCLIService_CloseOperation_result& operator=(const TCLIService_CloseOperation_result&); TCLIService_CloseOperation_result() { } - virtual ~TCLIService_CloseOperation_result() throw(); + virtual ~TCLIService_CloseOperation_result() throw() {} + TCloseOperationResp success; _TCLIService_CloseOperation_result__isset __isset; - void __set_success(const TCloseOperationResp& val); + void __set_success(const TCloseOperationResp& val) { + success = val; + } bool operator == (const TCLIService_CloseOperation_result & rhs) const { @@ -1777,53 +1613,47 @@ class TCLIService_CloseOperation_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseOperation_result& obj); }; typedef struct _TCLIService_CloseOperation_presult__isset { _TCLIService_CloseOperation_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CloseOperation_presult__isset; class TCLIService_CloseOperation_presult { public: - static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7}; + virtual ~TCLIService_CloseOperation_presult() throw() {} - virtual ~TCLIService_CloseOperation_presult() throw(); TCloseOperationResp* success; _TCLIService_CloseOperation_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CloseOperation_presult& obj); }; typedef struct _TCLIService_GetResultSetMetadata_args__isset { _TCLIService_GetResultSetMetadata_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetResultSetMetadata_args__isset; class TCLIService_GetResultSetMetadata_args { public: - static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7"; - static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7}; - - TCLIService_GetResultSetMetadata_args(const TCLIService_GetResultSetMetadata_args&); - TCLIService_GetResultSetMetadata_args& operator=(const TCLIService_GetResultSetMetadata_args&); TCLIService_GetResultSetMetadata_args() { } - virtual ~TCLIService_GetResultSetMetadata_args() throw(); + virtual ~TCLIService_GetResultSetMetadata_args() throw() {} + TGetResultSetMetadataReq req; _TCLIService_GetResultSetMetadata_args__isset __isset; - void __set_req(const TGetResultSetMetadataReq& val); + void __set_req(const TGetResultSetMetadataReq& val) { + req = val; + } bool operator == (const TCLIService_GetResultSetMetadata_args & rhs) const { @@ -1840,47 +1670,41 @@ class TCLIService_GetResultSetMetadata_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetResultSetMetadata_args& obj); }; class TCLIService_GetResultSetMetadata_pargs { public: - static const char* ascii_fingerprint; // = "2A0009415DC2A8A9CDCF3A75C16ADBE7"; - static const uint8_t binary_fingerprint[16]; // = {0x2A,0x00,0x09,0x41,0x5D,0xC2,0xA8,0xA9,0xCD,0xCF,0x3A,0x75,0xC1,0x6A,0xDB,0xE7}; + virtual ~TCLIService_GetResultSetMetadata_pargs() throw() {} - virtual ~TCLIService_GetResultSetMetadata_pargs() throw(); const TGetResultSetMetadataReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetResultSetMetadata_pargs& obj); }; typedef struct _TCLIService_GetResultSetMetadata_result__isset { _TCLIService_GetResultSetMetadata_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetResultSetMetadata_result__isset; class TCLIService_GetResultSetMetadata_result { public: - static const char* ascii_fingerprint; // = "748CA3BE2055D5C1AD7EAAEF01F7C463"; - static const uint8_t binary_fingerprint[16]; // = {0x74,0x8C,0xA3,0xBE,0x20,0x55,0xD5,0xC1,0xAD,0x7E,0xAA,0xEF,0x01,0xF7,0xC4,0x63}; - - TCLIService_GetResultSetMetadata_result(const TCLIService_GetResultSetMetadata_result&); - TCLIService_GetResultSetMetadata_result& operator=(const TCLIService_GetResultSetMetadata_result&); TCLIService_GetResultSetMetadata_result() { } - virtual ~TCLIService_GetResultSetMetadata_result() throw(); + virtual ~TCLIService_GetResultSetMetadata_result() throw() {} + TGetResultSetMetadataResp success; _TCLIService_GetResultSetMetadata_result__isset __isset; - void __set_success(const TGetResultSetMetadataResp& val); + void __set_success(const TGetResultSetMetadataResp& val) { + success = val; + } bool operator == (const TCLIService_GetResultSetMetadata_result & rhs) const { @@ -1897,53 +1721,47 @@ class TCLIService_GetResultSetMetadata_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetResultSetMetadata_result& obj); }; typedef struct _TCLIService_GetResultSetMetadata_presult__isset { _TCLIService_GetResultSetMetadata_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetResultSetMetadata_presult__isset; class TCLIService_GetResultSetMetadata_presult { public: - static const char* ascii_fingerprint; // = "748CA3BE2055D5C1AD7EAAEF01F7C463"; - static const uint8_t binary_fingerprint[16]; // = {0x74,0x8C,0xA3,0xBE,0x20,0x55,0xD5,0xC1,0xAD,0x7E,0xAA,0xEF,0x01,0xF7,0xC4,0x63}; + virtual ~TCLIService_GetResultSetMetadata_presult() throw() {} - virtual ~TCLIService_GetResultSetMetadata_presult() throw(); TGetResultSetMetadataResp* success; _TCLIService_GetResultSetMetadata_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetResultSetMetadata_presult& obj); }; typedef struct _TCLIService_FetchResults_args__isset { _TCLIService_FetchResults_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_FetchResults_args__isset; class TCLIService_FetchResults_args { public: - static const char* ascii_fingerprint; // = "9861C5443566158A1DAEAC80886635C8"; - static const uint8_t binary_fingerprint[16]; // = {0x98,0x61,0xC5,0x44,0x35,0x66,0x15,0x8A,0x1D,0xAE,0xAC,0x80,0x88,0x66,0x35,0xC8}; - - TCLIService_FetchResults_args(const TCLIService_FetchResults_args&); - TCLIService_FetchResults_args& operator=(const TCLIService_FetchResults_args&); TCLIService_FetchResults_args() { } - virtual ~TCLIService_FetchResults_args() throw(); + virtual ~TCLIService_FetchResults_args() throw() {} + TFetchResultsReq req; _TCLIService_FetchResults_args__isset __isset; - void __set_req(const TFetchResultsReq& val); + void __set_req(const TFetchResultsReq& val) { + req = val; + } bool operator == (const TCLIService_FetchResults_args & rhs) const { @@ -1960,47 +1778,41 @@ class TCLIService_FetchResults_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_FetchResults_args& obj); }; class TCLIService_FetchResults_pargs { public: - static const char* ascii_fingerprint; // = "9861C5443566158A1DAEAC80886635C8"; - static const uint8_t binary_fingerprint[16]; // = {0x98,0x61,0xC5,0x44,0x35,0x66,0x15,0x8A,0x1D,0xAE,0xAC,0x80,0x88,0x66,0x35,0xC8}; + virtual ~TCLIService_FetchResults_pargs() throw() {} - virtual ~TCLIService_FetchResults_pargs() throw(); const TFetchResultsReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_FetchResults_pargs& obj); }; typedef struct _TCLIService_FetchResults_result__isset { _TCLIService_FetchResults_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_FetchResults_result__isset; class TCLIService_FetchResults_result { public: - static const char* ascii_fingerprint; // = "CDEF797B9FFCA6B2CD18163A3D78F196"; - static const uint8_t binary_fingerprint[16]; // = {0xCD,0xEF,0x79,0x7B,0x9F,0xFC,0xA6,0xB2,0xCD,0x18,0x16,0x3A,0x3D,0x78,0xF1,0x96}; - - TCLIService_FetchResults_result(const TCLIService_FetchResults_result&); - TCLIService_FetchResults_result& operator=(const TCLIService_FetchResults_result&); TCLIService_FetchResults_result() { } - virtual ~TCLIService_FetchResults_result() throw(); + virtual ~TCLIService_FetchResults_result() throw() {} + TFetchResultsResp success; _TCLIService_FetchResults_result__isset __isset; - void __set_success(const TFetchResultsResp& val); + void __set_success(const TFetchResultsResp& val) { + success = val; + } bool operator == (const TCLIService_FetchResults_result & rhs) const { @@ -2017,53 +1829,47 @@ class TCLIService_FetchResults_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_FetchResults_result& obj); }; typedef struct _TCLIService_FetchResults_presult__isset { _TCLIService_FetchResults_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_FetchResults_presult__isset; class TCLIService_FetchResults_presult { public: - static const char* ascii_fingerprint; // = "CDEF797B9FFCA6B2CD18163A3D78F196"; - static const uint8_t binary_fingerprint[16]; // = {0xCD,0xEF,0x79,0x7B,0x9F,0xFC,0xA6,0xB2,0xCD,0x18,0x16,0x3A,0x3D,0x78,0xF1,0x96}; + virtual ~TCLIService_FetchResults_presult() throw() {} - virtual ~TCLIService_FetchResults_presult() throw(); TFetchResultsResp* success; _TCLIService_FetchResults_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_FetchResults_presult& obj); }; typedef struct _TCLIService_GetDelegationToken_args__isset { _TCLIService_GetDelegationToken_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_GetDelegationToken_args__isset; class TCLIService_GetDelegationToken_args { public: - static const char* ascii_fingerprint; // = "BF8EEEB8C67FB6195D3D9BA5BA2C58A4"; - static const uint8_t binary_fingerprint[16]; // = {0xBF,0x8E,0xEE,0xB8,0xC6,0x7F,0xB6,0x19,0x5D,0x3D,0x9B,0xA5,0xBA,0x2C,0x58,0xA4}; - - TCLIService_GetDelegationToken_args(const TCLIService_GetDelegationToken_args&); - TCLIService_GetDelegationToken_args& operator=(const TCLIService_GetDelegationToken_args&); TCLIService_GetDelegationToken_args() { } - virtual ~TCLIService_GetDelegationToken_args() throw(); + virtual ~TCLIService_GetDelegationToken_args() throw() {} + TGetDelegationTokenReq req; _TCLIService_GetDelegationToken_args__isset __isset; - void __set_req(const TGetDelegationTokenReq& val); + void __set_req(const TGetDelegationTokenReq& val) { + req = val; + } bool operator == (const TCLIService_GetDelegationToken_args & rhs) const { @@ -2080,47 +1886,41 @@ class TCLIService_GetDelegationToken_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetDelegationToken_args& obj); }; class TCLIService_GetDelegationToken_pargs { public: - static const char* ascii_fingerprint; // = "BF8EEEB8C67FB6195D3D9BA5BA2C58A4"; - static const uint8_t binary_fingerprint[16]; // = {0xBF,0x8E,0xEE,0xB8,0xC6,0x7F,0xB6,0x19,0x5D,0x3D,0x9B,0xA5,0xBA,0x2C,0x58,0xA4}; + virtual ~TCLIService_GetDelegationToken_pargs() throw() {} - virtual ~TCLIService_GetDelegationToken_pargs() throw(); const TGetDelegationTokenReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetDelegationToken_pargs& obj); }; typedef struct _TCLIService_GetDelegationToken_result__isset { _TCLIService_GetDelegationToken_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetDelegationToken_result__isset; class TCLIService_GetDelegationToken_result { public: - static const char* ascii_fingerprint; // = "58C1B84BE91071117FFEBB0AFA1636F7"; - static const uint8_t binary_fingerprint[16]; // = {0x58,0xC1,0xB8,0x4B,0xE9,0x10,0x71,0x11,0x7F,0xFE,0xBB,0x0A,0xFA,0x16,0x36,0xF7}; - - TCLIService_GetDelegationToken_result(const TCLIService_GetDelegationToken_result&); - TCLIService_GetDelegationToken_result& operator=(const TCLIService_GetDelegationToken_result&); TCLIService_GetDelegationToken_result() { } - virtual ~TCLIService_GetDelegationToken_result() throw(); + virtual ~TCLIService_GetDelegationToken_result() throw() {} + TGetDelegationTokenResp success; _TCLIService_GetDelegationToken_result__isset __isset; - void __set_success(const TGetDelegationTokenResp& val); + void __set_success(const TGetDelegationTokenResp& val) { + success = val; + } bool operator == (const TCLIService_GetDelegationToken_result & rhs) const { @@ -2137,53 +1937,47 @@ class TCLIService_GetDelegationToken_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetDelegationToken_result& obj); }; typedef struct _TCLIService_GetDelegationToken_presult__isset { _TCLIService_GetDelegationToken_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_GetDelegationToken_presult__isset; class TCLIService_GetDelegationToken_presult { public: - static const char* ascii_fingerprint; // = "58C1B84BE91071117FFEBB0AFA1636F7"; - static const uint8_t binary_fingerprint[16]; // = {0x58,0xC1,0xB8,0x4B,0xE9,0x10,0x71,0x11,0x7F,0xFE,0xBB,0x0A,0xFA,0x16,0x36,0xF7}; + virtual ~TCLIService_GetDelegationToken_presult() throw() {} - virtual ~TCLIService_GetDelegationToken_presult() throw(); TGetDelegationTokenResp* success; _TCLIService_GetDelegationToken_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_GetDelegationToken_presult& obj); }; typedef struct _TCLIService_CancelDelegationToken_args__isset { _TCLIService_CancelDelegationToken_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_CancelDelegationToken_args__isset; class TCLIService_CancelDelegationToken_args { public: - static const char* ascii_fingerprint; // = "9C6A93D9444D84C6B888C2DA30E4CB54"; - static const uint8_t binary_fingerprint[16]; // = {0x9C,0x6A,0x93,0xD9,0x44,0x4D,0x84,0xC6,0xB8,0x88,0xC2,0xDA,0x30,0xE4,0xCB,0x54}; - - TCLIService_CancelDelegationToken_args(const TCLIService_CancelDelegationToken_args&); - TCLIService_CancelDelegationToken_args& operator=(const TCLIService_CancelDelegationToken_args&); TCLIService_CancelDelegationToken_args() { } - virtual ~TCLIService_CancelDelegationToken_args() throw(); + virtual ~TCLIService_CancelDelegationToken_args() throw() {} + TCancelDelegationTokenReq req; _TCLIService_CancelDelegationToken_args__isset __isset; - void __set_req(const TCancelDelegationTokenReq& val); + void __set_req(const TCancelDelegationTokenReq& val) { + req = val; + } bool operator == (const TCLIService_CancelDelegationToken_args & rhs) const { @@ -2200,47 +1994,41 @@ class TCLIService_CancelDelegationToken_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelDelegationToken_args& obj); }; class TCLIService_CancelDelegationToken_pargs { public: - static const char* ascii_fingerprint; // = "9C6A93D9444D84C6B888C2DA30E4CB54"; - static const uint8_t binary_fingerprint[16]; // = {0x9C,0x6A,0x93,0xD9,0x44,0x4D,0x84,0xC6,0xB8,0x88,0xC2,0xDA,0x30,0xE4,0xCB,0x54}; + virtual ~TCLIService_CancelDelegationToken_pargs() throw() {} - virtual ~TCLIService_CancelDelegationToken_pargs() throw(); const TCancelDelegationTokenReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelDelegationToken_pargs& obj); }; typedef struct _TCLIService_CancelDelegationToken_result__isset { _TCLIService_CancelDelegationToken_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CancelDelegationToken_result__isset; class TCLIService_CancelDelegationToken_result { public: - static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7}; - - TCLIService_CancelDelegationToken_result(const TCLIService_CancelDelegationToken_result&); - TCLIService_CancelDelegationToken_result& operator=(const TCLIService_CancelDelegationToken_result&); TCLIService_CancelDelegationToken_result() { } - virtual ~TCLIService_CancelDelegationToken_result() throw(); + virtual ~TCLIService_CancelDelegationToken_result() throw() {} + TCancelDelegationTokenResp success; _TCLIService_CancelDelegationToken_result__isset __isset; - void __set_success(const TCancelDelegationTokenResp& val); + void __set_success(const TCancelDelegationTokenResp& val) { + success = val; + } bool operator == (const TCLIService_CancelDelegationToken_result & rhs) const { @@ -2257,53 +2045,47 @@ class TCLIService_CancelDelegationToken_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelDelegationToken_result& obj); }; typedef struct _TCLIService_CancelDelegationToken_presult__isset { _TCLIService_CancelDelegationToken_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_CancelDelegationToken_presult__isset; class TCLIService_CancelDelegationToken_presult { public: - static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7}; + virtual ~TCLIService_CancelDelegationToken_presult() throw() {} - virtual ~TCLIService_CancelDelegationToken_presult() throw(); TCancelDelegationTokenResp* success; _TCLIService_CancelDelegationToken_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_CancelDelegationToken_presult& obj); }; typedef struct _TCLIService_RenewDelegationToken_args__isset { _TCLIService_RenewDelegationToken_args__isset() : req(false) {} - bool req :1; + bool req; } _TCLIService_RenewDelegationToken_args__isset; class TCLIService_RenewDelegationToken_args { public: - static const char* ascii_fingerprint; // = "9C6A93D9444D84C6B888C2DA30E4CB54"; - static const uint8_t binary_fingerprint[16]; // = {0x9C,0x6A,0x93,0xD9,0x44,0x4D,0x84,0xC6,0xB8,0x88,0xC2,0xDA,0x30,0xE4,0xCB,0x54}; - - TCLIService_RenewDelegationToken_args(const TCLIService_RenewDelegationToken_args&); - TCLIService_RenewDelegationToken_args& operator=(const TCLIService_RenewDelegationToken_args&); TCLIService_RenewDelegationToken_args() { } - virtual ~TCLIService_RenewDelegationToken_args() throw(); + virtual ~TCLIService_RenewDelegationToken_args() throw() {} + TRenewDelegationTokenReq req; _TCLIService_RenewDelegationToken_args__isset __isset; - void __set_req(const TRenewDelegationTokenReq& val); + void __set_req(const TRenewDelegationTokenReq& val) { + req = val; + } bool operator == (const TCLIService_RenewDelegationToken_args & rhs) const { @@ -2320,47 +2102,41 @@ class TCLIService_RenewDelegationToken_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_RenewDelegationToken_args& obj); }; class TCLIService_RenewDelegationToken_pargs { public: - static const char* ascii_fingerprint; // = "9C6A93D9444D84C6B888C2DA30E4CB54"; - static const uint8_t binary_fingerprint[16]; // = {0x9C,0x6A,0x93,0xD9,0x44,0x4D,0x84,0xC6,0xB8,0x88,0xC2,0xDA,0x30,0xE4,0xCB,0x54}; + virtual ~TCLIService_RenewDelegationToken_pargs() throw() {} - virtual ~TCLIService_RenewDelegationToken_pargs() throw(); const TRenewDelegationTokenReq* req; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_RenewDelegationToken_pargs& obj); }; typedef struct _TCLIService_RenewDelegationToken_result__isset { _TCLIService_RenewDelegationToken_result__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_RenewDelegationToken_result__isset; class TCLIService_RenewDelegationToken_result { public: - static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7}; - - TCLIService_RenewDelegationToken_result(const TCLIService_RenewDelegationToken_result&); - TCLIService_RenewDelegationToken_result& operator=(const TCLIService_RenewDelegationToken_result&); TCLIService_RenewDelegationToken_result() { } - virtual ~TCLIService_RenewDelegationToken_result() throw(); + virtual ~TCLIService_RenewDelegationToken_result() throw() {} + TRenewDelegationTokenResp success; _TCLIService_RenewDelegationToken_result__isset __isset; - void __set_success(const TRenewDelegationTokenResp& val); + void __set_success(const TRenewDelegationTokenResp& val) { + success = val; + } bool operator == (const TCLIService_RenewDelegationToken_result & rhs) const { @@ -2377,50 +2153,41 @@ class TCLIService_RenewDelegationToken_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCLIService_RenewDelegationToken_result& obj); }; typedef struct _TCLIService_RenewDelegationToken_presult__isset { _TCLIService_RenewDelegationToken_presult__isset() : success(false) {} - bool success :1; + bool success; } _TCLIService_RenewDelegationToken_presult__isset; class TCLIService_RenewDelegationToken_presult { public: - static const char* ascii_fingerprint; // = "BDB51A479DCD1EB1DB636FA1B4BE02A7"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0xB5,0x1A,0x47,0x9D,0xCD,0x1E,0xB1,0xDB,0x63,0x6F,0xA1,0xB4,0xBE,0x02,0xA7}; + virtual ~TCLIService_RenewDelegationToken_presult() throw() {} - virtual ~TCLIService_RenewDelegationToken_presult() throw(); TRenewDelegationTokenResp* success; _TCLIService_RenewDelegationToken_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const TCLIService_RenewDelegationToken_presult& obj); }; class TCLIServiceClient : virtual public TCLIServiceIf { public: - TCLIServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) { - setProtocol(prot); - } - TCLIServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) { - setProtocol(iprot,oprot); + TCLIServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) : + piprot_(prot), + poprot_(prot) { + iprot_ = prot.get(); + oprot_ = prot.get(); } - private: - void setProtocol(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) { - setProtocol(prot,prot); - } - void setProtocol(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) { - piprot_=iprot; - poprot_=oprot; + TCLIServiceClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : + piprot_(iprot), + poprot_(oprot) { iprot_ = iprot.get(); oprot_ = oprot.get(); } - public: boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() { return piprot_; } diff --git a/service/src/gen/thrift/gen-cpp/TCLIService_constants.cpp b/service/src/gen/thrift/gen-cpp/TCLIService_constants.cpp index dcca5c8..d1551b5 100644 --- a/service/src/gen/thrift/gen-cpp/TCLIService_constants.cpp +++ b/service/src/gen/thrift/gen-cpp/TCLIService_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-cpp/TCLIService_constants.h b/service/src/gen/thrift/gen-cpp/TCLIService_constants.h index 8993394..e5a7a1f 100644 --- a/service/src/gen/thrift/gen-cpp/TCLIService_constants.h +++ b/service/src/gen/thrift/gen-cpp/TCLIService_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-cpp/TCLIService_types.cpp b/service/src/gen/thrift/gen-cpp/TCLIService_types.cpp index 742cfdc..86eeea3 100644 --- a/service/src/gen/thrift/gen-cpp/TCLIService_types.cpp +++ b/service/src/gen/thrift/gen-cpp/TCLIService_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,9 +7,6 @@ #include "TCLIService_types.h" #include -#include - -#include namespace apache { namespace hive { namespace service { namespace cli { namespace thrift { @@ -265,21 +262,6 @@ const char* _kTFetchOrientationNames[] = { }; const std::map _TFetchOrientation_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(6, _kTFetchOrientationValues, _kTFetchOrientationNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -TTypeQualifierValue::~TTypeQualifierValue() throw() { -} - - -void TTypeQualifierValue::__set_i32Value(const int32_t val) { - this->i32Value = val; -__isset.i32Value = true; -} - -void TTypeQualifierValue::__set_stringValue(const std::string& val) { - this->stringValue = val; -__isset.stringValue = true; -} - const char* TTypeQualifierValue::ascii_fingerprint = "A7801670116150C65ACA43E6F679BA79"; const uint8_t TTypeQualifierValue::binary_fingerprint[16] = {0xA7,0x80,0x16,0x70,0x11,0x61,0x50,0xC6,0x5A,0xCA,0x43,0xE6,0xF6,0x79,0xBA,0x79}; @@ -333,7 +315,6 @@ uint32_t TTypeQualifierValue::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TTypeQualifierValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TTypeQualifierValue"); if (this->__isset.i32Value) { @@ -348,7 +329,6 @@ uint32_t TTypeQualifierValue::write(::apache::thrift::protocol::TProtocol* oprot } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -359,35 +339,6 @@ void swap(TTypeQualifierValue &a, TTypeQualifierValue &b) { swap(a.__isset, b.__isset); } -TTypeQualifierValue::TTypeQualifierValue(const TTypeQualifierValue& other0) { - i32Value = other0.i32Value; - stringValue = other0.stringValue; - __isset = other0.__isset; -} -TTypeQualifierValue& TTypeQualifierValue::operator=(const TTypeQualifierValue& other1) { - i32Value = other1.i32Value; - stringValue = other1.stringValue; - __isset = other1.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TTypeQualifierValue& obj) { - using apache::thrift::to_string; - out << "TTypeQualifierValue("; - out << "i32Value="; (obj.__isset.i32Value ? (out << to_string(obj.i32Value)) : (out << "")); - out << ", " << "stringValue="; (obj.__isset.stringValue ? (out << to_string(obj.stringValue)) : (out << "")); - out << ")"; - return out; -} - - -TTypeQualifiers::~TTypeQualifiers() throw() { -} - - -void TTypeQualifiers::__set_qualifiers(const std::map & val) { - this->qualifiers = val; -} - const char* TTypeQualifiers::ascii_fingerprint = "6C72981CFA989214285648FA8C196C47"; const uint8_t TTypeQualifiers::binary_fingerprint[16] = {0x6C,0x72,0x98,0x1C,0xFA,0x98,0x92,0x14,0x28,0x56,0x48,0xFA,0x8C,0x19,0x6C,0x47}; @@ -416,17 +367,17 @@ uint32_t TTypeQualifiers::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->qualifiers.clear(); - uint32_t _size2; - ::apache::thrift::protocol::TType _ktype3; - ::apache::thrift::protocol::TType _vtype4; - xfer += iprot->readMapBegin(_ktype3, _vtype4, _size2); - uint32_t _i6; - for (_i6 = 0; _i6 < _size2; ++_i6) + uint32_t _size0; + ::apache::thrift::protocol::TType _ktype1; + ::apache::thrift::protocol::TType _vtype2; + xfer += iprot->readMapBegin(_ktype1, _vtype2, _size0); + uint32_t _i4; + for (_i4 = 0; _i4 < _size0; ++_i4) { - std::string _key7; - xfer += iprot->readString(_key7); - TTypeQualifierValue& _val8 = this->qualifiers[_key7]; - xfer += _val8.read(iprot); + std::string _key5; + xfer += iprot->readString(_key5); + TTypeQualifierValue& _val6 = this->qualifiers[_key5]; + xfer += _val6.read(iprot); } xfer += iprot->readMapEnd(); } @@ -451,17 +402,16 @@ uint32_t TTypeQualifiers::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TTypeQualifiers::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TTypeQualifiers"); xfer += oprot->writeFieldBegin("qualifiers", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->qualifiers.size())); - std::map ::const_iterator _iter9; - for (_iter9 = this->qualifiers.begin(); _iter9 != this->qualifiers.end(); ++_iter9) + std::map ::const_iterator _iter7; + for (_iter7 = this->qualifiers.begin(); _iter7 != this->qualifiers.end(); ++_iter7) { - xfer += oprot->writeString(_iter9->first); - xfer += _iter9->second.write(oprot); + xfer += oprot->writeString(_iter7->first); + xfer += _iter7->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -469,7 +419,6 @@ uint32_t TTypeQualifiers::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -478,35 +427,6 @@ void swap(TTypeQualifiers &a, TTypeQualifiers &b) { swap(a.qualifiers, b.qualifiers); } -TTypeQualifiers::TTypeQualifiers(const TTypeQualifiers& other10) { - qualifiers = other10.qualifiers; -} -TTypeQualifiers& TTypeQualifiers::operator=(const TTypeQualifiers& other11) { - qualifiers = other11.qualifiers; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TTypeQualifiers& obj) { - using apache::thrift::to_string; - out << "TTypeQualifiers("; - out << "qualifiers=" << to_string(obj.qualifiers); - out << ")"; - return out; -} - - -TPrimitiveTypeEntry::~TPrimitiveTypeEntry() throw() { -} - - -void TPrimitiveTypeEntry::__set_type(const TTypeId::type val) { - this->type = val; -} - -void TPrimitiveTypeEntry::__set_typeQualifiers(const TTypeQualifiers& val) { - this->typeQualifiers = val; -__isset.typeQualifiers = true; -} - const char* TPrimitiveTypeEntry::ascii_fingerprint = "755674F6A5C8EB47868686AE386FBC1C"; const uint8_t TPrimitiveTypeEntry::binary_fingerprint[16] = {0x75,0x56,0x74,0xF6,0xA5,0xC8,0xEB,0x47,0x86,0x86,0x86,0xAE,0x38,0x6F,0xBC,0x1C}; @@ -533,9 +453,9 @@ uint32_t TPrimitiveTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast12; - xfer += iprot->readI32(ecast12); - this->type = (TTypeId::type)ecast12; + int32_t ecast8; + xfer += iprot->readI32(ecast8); + this->type = (TTypeId::type)ecast8; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -565,7 +485,6 @@ uint32_t TPrimitiveTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TPrimitiveTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TPrimitiveTypeEntry"); xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 1); @@ -579,7 +498,6 @@ uint32_t TPrimitiveTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -590,35 +508,6 @@ void swap(TPrimitiveTypeEntry &a, TPrimitiveTypeEntry &b) { swap(a.__isset, b.__isset); } -TPrimitiveTypeEntry::TPrimitiveTypeEntry(const TPrimitiveTypeEntry& other13) { - type = other13.type; - typeQualifiers = other13.typeQualifiers; - __isset = other13.__isset; -} -TPrimitiveTypeEntry& TPrimitiveTypeEntry::operator=(const TPrimitiveTypeEntry& other14) { - type = other14.type; - typeQualifiers = other14.typeQualifiers; - __isset = other14.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TPrimitiveTypeEntry& obj) { - using apache::thrift::to_string; - out << "TPrimitiveTypeEntry("; - out << "type=" << to_string(obj.type); - out << ", " << "typeQualifiers="; (obj.__isset.typeQualifiers ? (out << to_string(obj.typeQualifiers)) : (out << "")); - out << ")"; - return out; -} - - -TArrayTypeEntry::~TArrayTypeEntry() throw() { -} - - -void TArrayTypeEntry::__set_objectTypePtr(const TTypeEntryPtr val) { - this->objectTypePtr = val; -} - const char* TArrayTypeEntry::ascii_fingerprint = "E86CACEB22240450EDCBEFC3A83970E4"; const uint8_t TArrayTypeEntry::binary_fingerprint[16] = {0xE8,0x6C,0xAC,0xEB,0x22,0x24,0x04,0x50,0xED,0xCB,0xEF,0xC3,0xA8,0x39,0x70,0xE4}; @@ -667,7 +556,6 @@ uint32_t TArrayTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TArrayTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TArrayTypeEntry"); xfer += oprot->writeFieldBegin("objectTypePtr", ::apache::thrift::protocol::T_I32, 1); @@ -676,7 +564,6 @@ uint32_t TArrayTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -685,34 +572,6 @@ void swap(TArrayTypeEntry &a, TArrayTypeEntry &b) { swap(a.objectTypePtr, b.objectTypePtr); } -TArrayTypeEntry::TArrayTypeEntry(const TArrayTypeEntry& other15) { - objectTypePtr = other15.objectTypePtr; -} -TArrayTypeEntry& TArrayTypeEntry::operator=(const TArrayTypeEntry& other16) { - objectTypePtr = other16.objectTypePtr; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TArrayTypeEntry& obj) { - using apache::thrift::to_string; - out << "TArrayTypeEntry("; - out << "objectTypePtr=" << to_string(obj.objectTypePtr); - out << ")"; - return out; -} - - -TMapTypeEntry::~TMapTypeEntry() throw() { -} - - -void TMapTypeEntry::__set_keyTypePtr(const TTypeEntryPtr val) { - this->keyTypePtr = val; -} - -void TMapTypeEntry::__set_valueTypePtr(const TTypeEntryPtr val) { - this->valueTypePtr = val; -} - const char* TMapTypeEntry::ascii_fingerprint = "989D1F1AE8D148D5E2119FFEC4BBBEE3"; const uint8_t TMapTypeEntry::binary_fingerprint[16] = {0x98,0x9D,0x1F,0x1A,0xE8,0xD1,0x48,0xD5,0xE2,0x11,0x9F,0xFE,0xC4,0xBB,0xBE,0xE3}; @@ -772,7 +631,6 @@ uint32_t TMapTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TMapTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TMapTypeEntry"); xfer += oprot->writeFieldBegin("keyTypePtr", ::apache::thrift::protocol::T_I32, 1); @@ -785,7 +643,6 @@ uint32_t TMapTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -795,33 +652,6 @@ void swap(TMapTypeEntry &a, TMapTypeEntry &b) { swap(a.valueTypePtr, b.valueTypePtr); } -TMapTypeEntry::TMapTypeEntry(const TMapTypeEntry& other17) { - keyTypePtr = other17.keyTypePtr; - valueTypePtr = other17.valueTypePtr; -} -TMapTypeEntry& TMapTypeEntry::operator=(const TMapTypeEntry& other18) { - keyTypePtr = other18.keyTypePtr; - valueTypePtr = other18.valueTypePtr; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TMapTypeEntry& obj) { - using apache::thrift::to_string; - out << "TMapTypeEntry("; - out << "keyTypePtr=" << to_string(obj.keyTypePtr); - out << ", " << "valueTypePtr=" << to_string(obj.valueTypePtr); - out << ")"; - return out; -} - - -TStructTypeEntry::~TStructTypeEntry() throw() { -} - - -void TStructTypeEntry::__set_nameToTypePtr(const std::map & val) { - this->nameToTypePtr = val; -} - const char* TStructTypeEntry::ascii_fingerprint = "91F548CA159B4AB4291F5741AC161402"; const uint8_t TStructTypeEntry::binary_fingerprint[16] = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02}; @@ -850,17 +680,17 @@ uint32_t TStructTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->nameToTypePtr.clear(); - uint32_t _size19; - ::apache::thrift::protocol::TType _ktype20; - ::apache::thrift::protocol::TType _vtype21; - xfer += iprot->readMapBegin(_ktype20, _vtype21, _size19); - uint32_t _i23; - for (_i23 = 0; _i23 < _size19; ++_i23) + uint32_t _size9; + ::apache::thrift::protocol::TType _ktype10; + ::apache::thrift::protocol::TType _vtype11; + xfer += iprot->readMapBegin(_ktype10, _vtype11, _size9); + uint32_t _i13; + for (_i13 = 0; _i13 < _size9; ++_i13) { - std::string _key24; - xfer += iprot->readString(_key24); - TTypeEntryPtr& _val25 = this->nameToTypePtr[_key24]; - xfer += iprot->readI32(_val25); + std::string _key14; + xfer += iprot->readString(_key14); + TTypeEntryPtr& _val15 = this->nameToTypePtr[_key14]; + xfer += iprot->readI32(_val15); } xfer += iprot->readMapEnd(); } @@ -885,17 +715,16 @@ uint32_t TStructTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TStructTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TStructTypeEntry"); xfer += oprot->writeFieldBegin("nameToTypePtr", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->nameToTypePtr.size())); - std::map ::const_iterator _iter26; - for (_iter26 = this->nameToTypePtr.begin(); _iter26 != this->nameToTypePtr.end(); ++_iter26) + std::map ::const_iterator _iter16; + for (_iter16 = this->nameToTypePtr.begin(); _iter16 != this->nameToTypePtr.end(); ++_iter16) { - xfer += oprot->writeString(_iter26->first); - xfer += oprot->writeI32(_iter26->second); + xfer += oprot->writeString(_iter16->first); + xfer += oprot->writeI32(_iter16->second); } xfer += oprot->writeMapEnd(); } @@ -903,7 +732,6 @@ uint32_t TStructTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -912,30 +740,6 @@ void swap(TStructTypeEntry &a, TStructTypeEntry &b) { swap(a.nameToTypePtr, b.nameToTypePtr); } -TStructTypeEntry::TStructTypeEntry(const TStructTypeEntry& other27) { - nameToTypePtr = other27.nameToTypePtr; -} -TStructTypeEntry& TStructTypeEntry::operator=(const TStructTypeEntry& other28) { - nameToTypePtr = other28.nameToTypePtr; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TStructTypeEntry& obj) { - using apache::thrift::to_string; - out << "TStructTypeEntry("; - out << "nameToTypePtr=" << to_string(obj.nameToTypePtr); - out << ")"; - return out; -} - - -TUnionTypeEntry::~TUnionTypeEntry() throw() { -} - - -void TUnionTypeEntry::__set_nameToTypePtr(const std::map & val) { - this->nameToTypePtr = val; -} - const char* TUnionTypeEntry::ascii_fingerprint = "91F548CA159B4AB4291F5741AC161402"; const uint8_t TUnionTypeEntry::binary_fingerprint[16] = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02}; @@ -964,17 +768,17 @@ uint32_t TUnionTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->nameToTypePtr.clear(); - uint32_t _size29; - ::apache::thrift::protocol::TType _ktype30; - ::apache::thrift::protocol::TType _vtype31; - xfer += iprot->readMapBegin(_ktype30, _vtype31, _size29); - uint32_t _i33; - for (_i33 = 0; _i33 < _size29; ++_i33) + uint32_t _size17; + ::apache::thrift::protocol::TType _ktype18; + ::apache::thrift::protocol::TType _vtype19; + xfer += iprot->readMapBegin(_ktype18, _vtype19, _size17); + uint32_t _i21; + for (_i21 = 0; _i21 < _size17; ++_i21) { - std::string _key34; - xfer += iprot->readString(_key34); - TTypeEntryPtr& _val35 = this->nameToTypePtr[_key34]; - xfer += iprot->readI32(_val35); + std::string _key22; + xfer += iprot->readString(_key22); + TTypeEntryPtr& _val23 = this->nameToTypePtr[_key22]; + xfer += iprot->readI32(_val23); } xfer += iprot->readMapEnd(); } @@ -999,17 +803,16 @@ uint32_t TUnionTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TUnionTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TUnionTypeEntry"); xfer += oprot->writeFieldBegin("nameToTypePtr", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_I32, static_cast(this->nameToTypePtr.size())); - std::map ::const_iterator _iter36; - for (_iter36 = this->nameToTypePtr.begin(); _iter36 != this->nameToTypePtr.end(); ++_iter36) + std::map ::const_iterator _iter24; + for (_iter24 = this->nameToTypePtr.begin(); _iter24 != this->nameToTypePtr.end(); ++_iter24) { - xfer += oprot->writeString(_iter36->first); - xfer += oprot->writeI32(_iter36->second); + xfer += oprot->writeString(_iter24->first); + xfer += oprot->writeI32(_iter24->second); } xfer += oprot->writeMapEnd(); } @@ -1017,7 +820,6 @@ uint32_t TUnionTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1026,30 +828,6 @@ void swap(TUnionTypeEntry &a, TUnionTypeEntry &b) { swap(a.nameToTypePtr, b.nameToTypePtr); } -TUnionTypeEntry::TUnionTypeEntry(const TUnionTypeEntry& other37) { - nameToTypePtr = other37.nameToTypePtr; -} -TUnionTypeEntry& TUnionTypeEntry::operator=(const TUnionTypeEntry& other38) { - nameToTypePtr = other38.nameToTypePtr; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TUnionTypeEntry& obj) { - using apache::thrift::to_string; - out << "TUnionTypeEntry("; - out << "nameToTypePtr=" << to_string(obj.nameToTypePtr); - out << ")"; - return out; -} - - -TUserDefinedTypeEntry::~TUserDefinedTypeEntry() throw() { -} - - -void TUserDefinedTypeEntry::__set_typeClassName(const std::string& val) { - this->typeClassName = val; -} - const char* TUserDefinedTypeEntry::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t TUserDefinedTypeEntry::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -1098,7 +876,6 @@ uint32_t TUserDefinedTypeEntry::read(::apache::thrift::protocol::TProtocol* ipro uint32_t TUserDefinedTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TUserDefinedTypeEntry"); xfer += oprot->writeFieldBegin("typeClassName", ::apache::thrift::protocol::T_STRING, 1); @@ -1107,7 +884,6 @@ uint32_t TUserDefinedTypeEntry::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1116,50 +892,6 @@ void swap(TUserDefinedTypeEntry &a, TUserDefinedTypeEntry &b) { swap(a.typeClassName, b.typeClassName); } -TUserDefinedTypeEntry::TUserDefinedTypeEntry(const TUserDefinedTypeEntry& other39) { - typeClassName = other39.typeClassName; -} -TUserDefinedTypeEntry& TUserDefinedTypeEntry::operator=(const TUserDefinedTypeEntry& other40) { - typeClassName = other40.typeClassName; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TUserDefinedTypeEntry& obj) { - using apache::thrift::to_string; - out << "TUserDefinedTypeEntry("; - out << "typeClassName=" << to_string(obj.typeClassName); - out << ")"; - return out; -} - - -TTypeEntry::~TTypeEntry() throw() { -} - - -void TTypeEntry::__set_primitiveEntry(const TPrimitiveTypeEntry& val) { - this->primitiveEntry = val; -} - -void TTypeEntry::__set_arrayEntry(const TArrayTypeEntry& val) { - this->arrayEntry = val; -} - -void TTypeEntry::__set_mapEntry(const TMapTypeEntry& val) { - this->mapEntry = val; -} - -void TTypeEntry::__set_structEntry(const TStructTypeEntry& val) { - this->structEntry = val; -} - -void TTypeEntry::__set_unionEntry(const TUnionTypeEntry& val) { - this->unionEntry = val; -} - -void TTypeEntry::__set_userDefinedTypeEntry(const TUserDefinedTypeEntry& val) { - this->userDefinedTypeEntry = val; -} - const char* TTypeEntry::ascii_fingerprint = "2FE56D9097E325DAA7E933738C6D325F"; const uint8_t TTypeEntry::binary_fingerprint[16] = {0x2F,0xE5,0x6D,0x90,0x97,0xE3,0x25,0xDA,0xA7,0xE9,0x33,0x73,0x8C,0x6D,0x32,0x5F}; @@ -1245,7 +977,6 @@ uint32_t TTypeEntry::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TTypeEntry"); xfer += oprot->writeFieldBegin("primitiveEntry", ::apache::thrift::protocol::T_STRUCT, 1); @@ -1274,7 +1005,6 @@ uint32_t TTypeEntry::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1289,47 +1019,6 @@ void swap(TTypeEntry &a, TTypeEntry &b) { swap(a.__isset, b.__isset); } -TTypeEntry::TTypeEntry(const TTypeEntry& other41) { - primitiveEntry = other41.primitiveEntry; - arrayEntry = other41.arrayEntry; - mapEntry = other41.mapEntry; - structEntry = other41.structEntry; - unionEntry = other41.unionEntry; - userDefinedTypeEntry = other41.userDefinedTypeEntry; - __isset = other41.__isset; -} -TTypeEntry& TTypeEntry::operator=(const TTypeEntry& other42) { - primitiveEntry = other42.primitiveEntry; - arrayEntry = other42.arrayEntry; - mapEntry = other42.mapEntry; - structEntry = other42.structEntry; - unionEntry = other42.unionEntry; - userDefinedTypeEntry = other42.userDefinedTypeEntry; - __isset = other42.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TTypeEntry& obj) { - using apache::thrift::to_string; - out << "TTypeEntry("; - out << "primitiveEntry=" << to_string(obj.primitiveEntry); - out << ", " << "arrayEntry=" << to_string(obj.arrayEntry); - out << ", " << "mapEntry=" << to_string(obj.mapEntry); - out << ", " << "structEntry=" << to_string(obj.structEntry); - out << ", " << "unionEntry=" << to_string(obj.unionEntry); - out << ", " << "userDefinedTypeEntry=" << to_string(obj.userDefinedTypeEntry); - out << ")"; - return out; -} - - -TTypeDesc::~TTypeDesc() throw() { -} - - -void TTypeDesc::__set_types(const std::vector & val) { - this->types = val; -} - const char* TTypeDesc::ascii_fingerprint = "90B3C5A0B73419A84E85E0E48C452AA5"; const uint8_t TTypeDesc::binary_fingerprint[16] = {0x90,0xB3,0xC5,0xA0,0xB7,0x34,0x19,0xA8,0x4E,0x85,0xE0,0xE4,0x8C,0x45,0x2A,0xA5}; @@ -1358,14 +1047,14 @@ uint32_t TTypeDesc::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->types.clear(); - uint32_t _size43; - ::apache::thrift::protocol::TType _etype46; - xfer += iprot->readListBegin(_etype46, _size43); - this->types.resize(_size43); - uint32_t _i47; - for (_i47 = 0; _i47 < _size43; ++_i47) + uint32_t _size25; + ::apache::thrift::protocol::TType _etype28; + xfer += iprot->readListBegin(_etype28, _size25); + this->types.resize(_size25); + uint32_t _i29; + for (_i29 = 0; _i29 < _size25; ++_i29) { - xfer += this->types[_i47].read(iprot); + xfer += this->types[_i29].read(iprot); } xfer += iprot->readListEnd(); } @@ -1390,16 +1079,15 @@ uint32_t TTypeDesc::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TTypeDesc::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TTypeDesc"); xfer += oprot->writeFieldBegin("types", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->types.size())); - std::vector ::const_iterator _iter48; - for (_iter48 = this->types.begin(); _iter48 != this->types.end(); ++_iter48) + std::vector ::const_iterator _iter30; + for (_iter30 = this->types.begin(); _iter30 != this->types.end(); ++_iter30) { - xfer += (*_iter48).write(oprot); + xfer += (*_iter30).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1407,7 +1095,6 @@ uint32_t TTypeDesc::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1416,43 +1103,6 @@ void swap(TTypeDesc &a, TTypeDesc &b) { swap(a.types, b.types); } -TTypeDesc::TTypeDesc(const TTypeDesc& other49) { - types = other49.types; -} -TTypeDesc& TTypeDesc::operator=(const TTypeDesc& other50) { - types = other50.types; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TTypeDesc& obj) { - using apache::thrift::to_string; - out << "TTypeDesc("; - out << "types=" << to_string(obj.types); - out << ")"; - return out; -} - - -TColumnDesc::~TColumnDesc() throw() { -} - - -void TColumnDesc::__set_columnName(const std::string& val) { - this->columnName = val; -} - -void TColumnDesc::__set_typeDesc(const TTypeDesc& val) { - this->typeDesc = val; -} - -void TColumnDesc::__set_position(const int32_t val) { - this->position = val; -} - -void TColumnDesc::__set_comment(const std::string& val) { - this->comment = val; -__isset.comment = true; -} - const char* TColumnDesc::ascii_fingerprint = "EABED9009D5FCABFCA65612069F2A849"; const uint8_t TColumnDesc::binary_fingerprint[16] = {0xEA,0xBE,0xD9,0x00,0x9D,0x5F,0xCA,0xBF,0xCA,0x65,0x61,0x20,0x69,0xF2,0xA8,0x49}; @@ -1531,7 +1181,6 @@ uint32_t TColumnDesc::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TColumnDesc::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TColumnDesc"); xfer += oprot->writeFieldBegin("columnName", ::apache::thrift::protocol::T_STRING, 1); @@ -1553,7 +1202,6 @@ uint32_t TColumnDesc::write(::apache::thrift::protocol::TProtocol* oprot) const } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1566,41 +1214,6 @@ void swap(TColumnDesc &a, TColumnDesc &b) { swap(a.__isset, b.__isset); } -TColumnDesc::TColumnDesc(const TColumnDesc& other51) { - columnName = other51.columnName; - typeDesc = other51.typeDesc; - position = other51.position; - comment = other51.comment; - __isset = other51.__isset; -} -TColumnDesc& TColumnDesc::operator=(const TColumnDesc& other52) { - columnName = other52.columnName; - typeDesc = other52.typeDesc; - position = other52.position; - comment = other52.comment; - __isset = other52.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TColumnDesc& obj) { - using apache::thrift::to_string; - out << "TColumnDesc("; - out << "columnName=" << to_string(obj.columnName); - out << ", " << "typeDesc=" << to_string(obj.typeDesc); - out << ", " << "position=" << to_string(obj.position); - out << ", " << "comment="; (obj.__isset.comment ? (out << to_string(obj.comment)) : (out << "")); - out << ")"; - return out; -} - - -TTableSchema::~TTableSchema() throw() { -} - - -void TTableSchema::__set_columns(const std::vector & val) { - this->columns = val; -} - const char* TTableSchema::ascii_fingerprint = "7A1811E49313E5977107FC667B20E39D"; const uint8_t TTableSchema::binary_fingerprint[16] = {0x7A,0x18,0x11,0xE4,0x93,0x13,0xE5,0x97,0x71,0x07,0xFC,0x66,0x7B,0x20,0xE3,0x9D}; @@ -1629,14 +1242,14 @@ uint32_t TTableSchema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->columns.clear(); - uint32_t _size53; - ::apache::thrift::protocol::TType _etype56; - xfer += iprot->readListBegin(_etype56, _size53); - this->columns.resize(_size53); - uint32_t _i57; - for (_i57 = 0; _i57 < _size53; ++_i57) + uint32_t _size31; + ::apache::thrift::protocol::TType _etype34; + xfer += iprot->readListBegin(_etype34, _size31); + this->columns.resize(_size31); + uint32_t _i35; + for (_i35 = 0; _i35 < _size31; ++_i35) { - xfer += this->columns[_i57].read(iprot); + xfer += this->columns[_i35].read(iprot); } xfer += iprot->readListEnd(); } @@ -1661,16 +1274,15 @@ uint32_t TTableSchema::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TTableSchema::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TTableSchema"); xfer += oprot->writeFieldBegin("columns", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->columns.size())); - std::vector ::const_iterator _iter58; - for (_iter58 = this->columns.begin(); _iter58 != this->columns.end(); ++_iter58) + std::vector ::const_iterator _iter36; + for (_iter36 = this->columns.begin(); _iter36 != this->columns.end(); ++_iter36) { - xfer += (*_iter58).write(oprot); + xfer += (*_iter36).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1678,7 +1290,6 @@ uint32_t TTableSchema::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1687,31 +1298,6 @@ void swap(TTableSchema &a, TTableSchema &b) { swap(a.columns, b.columns); } -TTableSchema::TTableSchema(const TTableSchema& other59) { - columns = other59.columns; -} -TTableSchema& TTableSchema::operator=(const TTableSchema& other60) { - columns = other60.columns; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TTableSchema& obj) { - using apache::thrift::to_string; - out << "TTableSchema("; - out << "columns=" << to_string(obj.columns); - out << ")"; - return out; -} - - -TBoolValue::~TBoolValue() throw() { -} - - -void TBoolValue::__set_value(const bool val) { - this->value = val; -__isset.value = true; -} - const char* TBoolValue::ascii_fingerprint = "BF054652DEF86253C2BEE7D947F167DD"; const uint8_t TBoolValue::binary_fingerprint[16] = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD}; @@ -1757,7 +1343,6 @@ uint32_t TBoolValue::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TBoolValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TBoolValue"); if (this->__isset.value) { @@ -1767,7 +1352,6 @@ uint32_t TBoolValue::write(::apache::thrift::protocol::TProtocol* oprot) const { } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1777,33 +1361,6 @@ void swap(TBoolValue &a, TBoolValue &b) { swap(a.__isset, b.__isset); } -TBoolValue::TBoolValue(const TBoolValue& other61) { - value = other61.value; - __isset = other61.__isset; -} -TBoolValue& TBoolValue::operator=(const TBoolValue& other62) { - value = other62.value; - __isset = other62.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TBoolValue& obj) { - using apache::thrift::to_string; - out << "TBoolValue("; - out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "")); - out << ")"; - return out; -} - - -TByteValue::~TByteValue() throw() { -} - - -void TByteValue::__set_value(const int8_t val) { - this->value = val; -__isset.value = true; -} - const char* TByteValue::ascii_fingerprint = "9C15298ACB5D04AEA9B52D5DDE6F9208"; const uint8_t TByteValue::binary_fingerprint[16] = {0x9C,0x15,0x29,0x8A,0xCB,0x5D,0x04,0xAE,0xA9,0xB5,0x2D,0x5D,0xDE,0x6F,0x92,0x08}; @@ -1849,7 +1406,6 @@ uint32_t TByteValue::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TByteValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TByteValue"); if (this->__isset.value) { @@ -1859,7 +1415,6 @@ uint32_t TByteValue::write(::apache::thrift::protocol::TProtocol* oprot) const { } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1869,33 +1424,6 @@ void swap(TByteValue &a, TByteValue &b) { swap(a.__isset, b.__isset); } -TByteValue::TByteValue(const TByteValue& other63) { - value = other63.value; - __isset = other63.__isset; -} -TByteValue& TByteValue::operator=(const TByteValue& other64) { - value = other64.value; - __isset = other64.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TByteValue& obj) { - using apache::thrift::to_string; - out << "TByteValue("; - out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "")); - out << ")"; - return out; -} - - -TI16Value::~TI16Value() throw() { -} - - -void TI16Value::__set_value(const int16_t val) { - this->value = val; -__isset.value = true; -} - const char* TI16Value::ascii_fingerprint = "5DAC9C51C7E1106BF936FC71860BE9D5"; const uint8_t TI16Value::binary_fingerprint[16] = {0x5D,0xAC,0x9C,0x51,0xC7,0xE1,0x10,0x6B,0xF9,0x36,0xFC,0x71,0x86,0x0B,0xE9,0xD5}; @@ -1941,7 +1469,6 @@ uint32_t TI16Value::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TI16Value::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TI16Value"); if (this->__isset.value) { @@ -1951,7 +1478,6 @@ uint32_t TI16Value::write(::apache::thrift::protocol::TProtocol* oprot) const { } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -1961,33 +1487,6 @@ void swap(TI16Value &a, TI16Value &b) { swap(a.__isset, b.__isset); } -TI16Value::TI16Value(const TI16Value& other65) { - value = other65.value; - __isset = other65.__isset; -} -TI16Value& TI16Value::operator=(const TI16Value& other66) { - value = other66.value; - __isset = other66.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TI16Value& obj) { - using apache::thrift::to_string; - out << "TI16Value("; - out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "")); - out << ")"; - return out; -} - - -TI32Value::~TI32Value() throw() { -} - - -void TI32Value::__set_value(const int32_t val) { - this->value = val; -__isset.value = true; -} - const char* TI32Value::ascii_fingerprint = "E7A96B151330359E84C0A3AC91BCBACD"; const uint8_t TI32Value::binary_fingerprint[16] = {0xE7,0xA9,0x6B,0x15,0x13,0x30,0x35,0x9E,0x84,0xC0,0xA3,0xAC,0x91,0xBC,0xBA,0xCD}; @@ -2033,7 +1532,6 @@ uint32_t TI32Value::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TI32Value::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TI32Value"); if (this->__isset.value) { @@ -2043,7 +1541,6 @@ uint32_t TI32Value::write(::apache::thrift::protocol::TProtocol* oprot) const { } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2053,33 +1550,6 @@ void swap(TI32Value &a, TI32Value &b) { swap(a.__isset, b.__isset); } -TI32Value::TI32Value(const TI32Value& other67) { - value = other67.value; - __isset = other67.__isset; -} -TI32Value& TI32Value::operator=(const TI32Value& other68) { - value = other68.value; - __isset = other68.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TI32Value& obj) { - using apache::thrift::to_string; - out << "TI32Value("; - out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "")); - out << ")"; - return out; -} - - -TI64Value::~TI64Value() throw() { -} - - -void TI64Value::__set_value(const int64_t val) { - this->value = val; -__isset.value = true; -} - const char* TI64Value::ascii_fingerprint = "148F3AAAC1D9859963D5E800D187BF26"; const uint8_t TI64Value::binary_fingerprint[16] = {0x14,0x8F,0x3A,0xAA,0xC1,0xD9,0x85,0x99,0x63,0xD5,0xE8,0x00,0xD1,0x87,0xBF,0x26}; @@ -2125,7 +1595,6 @@ uint32_t TI64Value::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TI64Value::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TI64Value"); if (this->__isset.value) { @@ -2135,7 +1604,6 @@ uint32_t TI64Value::write(::apache::thrift::protocol::TProtocol* oprot) const { } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2145,33 +1613,6 @@ void swap(TI64Value &a, TI64Value &b) { swap(a.__isset, b.__isset); } -TI64Value::TI64Value(const TI64Value& other69) { - value = other69.value; - __isset = other69.__isset; -} -TI64Value& TI64Value::operator=(const TI64Value& other70) { - value = other70.value; - __isset = other70.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TI64Value& obj) { - using apache::thrift::to_string; - out << "TI64Value("; - out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "")); - out << ")"; - return out; -} - - -TDoubleValue::~TDoubleValue() throw() { -} - - -void TDoubleValue::__set_value(const double val) { - this->value = val; -__isset.value = true; -} - const char* TDoubleValue::ascii_fingerprint = "3586E570A474C4A8603B4FF74903B3A6"; const uint8_t TDoubleValue::binary_fingerprint[16] = {0x35,0x86,0xE5,0x70,0xA4,0x74,0xC4,0xA8,0x60,0x3B,0x4F,0xF7,0x49,0x03,0xB3,0xA6}; @@ -2217,7 +1658,6 @@ uint32_t TDoubleValue::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TDoubleValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TDoubleValue"); if (this->__isset.value) { @@ -2227,7 +1667,6 @@ uint32_t TDoubleValue::write(::apache::thrift::protocol::TProtocol* oprot) const } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2237,33 +1676,6 @@ void swap(TDoubleValue &a, TDoubleValue &b) { swap(a.__isset, b.__isset); } -TDoubleValue::TDoubleValue(const TDoubleValue& other71) { - value = other71.value; - __isset = other71.__isset; -} -TDoubleValue& TDoubleValue::operator=(const TDoubleValue& other72) { - value = other72.value; - __isset = other72.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TDoubleValue& obj) { - using apache::thrift::to_string; - out << "TDoubleValue("; - out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "")); - out << ")"; - return out; -} - - -TStringValue::~TStringValue() throw() { -} - - -void TStringValue::__set_value(const std::string& val) { - this->value = val; -__isset.value = true; -} - const char* TStringValue::ascii_fingerprint = "66E694018C17E5B65A59AE8F55CCA3CD"; const uint8_t TStringValue::binary_fingerprint[16] = {0x66,0xE6,0x94,0x01,0x8C,0x17,0xE5,0xB6,0x5A,0x59,0xAE,0x8F,0x55,0xCC,0xA3,0xCD}; @@ -2309,7 +1721,6 @@ uint32_t TStringValue::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TStringValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TStringValue"); if (this->__isset.value) { @@ -2319,7 +1730,6 @@ uint32_t TStringValue::write(::apache::thrift::protocol::TProtocol* oprot) const } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2329,56 +1739,6 @@ void swap(TStringValue &a, TStringValue &b) { swap(a.__isset, b.__isset); } -TStringValue::TStringValue(const TStringValue& other73) { - value = other73.value; - __isset = other73.__isset; -} -TStringValue& TStringValue::operator=(const TStringValue& other74) { - value = other74.value; - __isset = other74.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TStringValue& obj) { - using apache::thrift::to_string; - out << "TStringValue("; - out << "value="; (obj.__isset.value ? (out << to_string(obj.value)) : (out << "")); - out << ")"; - return out; -} - - -TColumnValue::~TColumnValue() throw() { -} - - -void TColumnValue::__set_boolVal(const TBoolValue& val) { - this->boolVal = val; -} - -void TColumnValue::__set_byteVal(const TByteValue& val) { - this->byteVal = val; -} - -void TColumnValue::__set_i16Val(const TI16Value& val) { - this->i16Val = val; -} - -void TColumnValue::__set_i32Val(const TI32Value& val) { - this->i32Val = val; -} - -void TColumnValue::__set_i64Val(const TI64Value& val) { - this->i64Val = val; -} - -void TColumnValue::__set_doubleVal(const TDoubleValue& val) { - this->doubleVal = val; -} - -void TColumnValue::__set_stringVal(const TStringValue& val) { - this->stringVal = val; -} - const char* TColumnValue::ascii_fingerprint = "C2DDD988447EA7999A8285AA38AAE9AD"; const uint8_t TColumnValue::binary_fingerprint[16] = {0xC2,0xDD,0xD9,0x88,0x44,0x7E,0xA7,0x99,0x9A,0x82,0x85,0xAA,0x38,0xAA,0xE9,0xAD}; @@ -2472,7 +1832,6 @@ uint32_t TColumnValue::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TColumnValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TColumnValue"); xfer += oprot->writeFieldBegin("boolVal", ::apache::thrift::protocol::T_STRUCT, 1); @@ -2505,7 +1864,6 @@ uint32_t TColumnValue::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2521,50 +1879,6 @@ void swap(TColumnValue &a, TColumnValue &b) { swap(a.__isset, b.__isset); } -TColumnValue::TColumnValue(const TColumnValue& other75) { - boolVal = other75.boolVal; - byteVal = other75.byteVal; - i16Val = other75.i16Val; - i32Val = other75.i32Val; - i64Val = other75.i64Val; - doubleVal = other75.doubleVal; - stringVal = other75.stringVal; - __isset = other75.__isset; -} -TColumnValue& TColumnValue::operator=(const TColumnValue& other76) { - boolVal = other76.boolVal; - byteVal = other76.byteVal; - i16Val = other76.i16Val; - i32Val = other76.i32Val; - i64Val = other76.i64Val; - doubleVal = other76.doubleVal; - stringVal = other76.stringVal; - __isset = other76.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TColumnValue& obj) { - using apache::thrift::to_string; - out << "TColumnValue("; - out << "boolVal=" << to_string(obj.boolVal); - out << ", " << "byteVal=" << to_string(obj.byteVal); - out << ", " << "i16Val=" << to_string(obj.i16Val); - out << ", " << "i32Val=" << to_string(obj.i32Val); - out << ", " << "i64Val=" << to_string(obj.i64Val); - out << ", " << "doubleVal=" << to_string(obj.doubleVal); - out << ", " << "stringVal=" << to_string(obj.stringVal); - out << ")"; - return out; -} - - -TRow::~TRow() throw() { -} - - -void TRow::__set_colVals(const std::vector & val) { - this->colVals = val; -} - const char* TRow::ascii_fingerprint = "E73FD1FCA0CA58A669FC3E02FB68D534"; const uint8_t TRow::binary_fingerprint[16] = {0xE7,0x3F,0xD1,0xFC,0xA0,0xCA,0x58,0xA6,0x69,0xFC,0x3E,0x02,0xFB,0x68,0xD5,0x34}; @@ -2593,14 +1907,14 @@ uint32_t TRow::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colVals.clear(); - uint32_t _size77; - ::apache::thrift::protocol::TType _etype80; - xfer += iprot->readListBegin(_etype80, _size77); - this->colVals.resize(_size77); - uint32_t _i81; - for (_i81 = 0; _i81 < _size77; ++_i81) + uint32_t _size37; + ::apache::thrift::protocol::TType _etype40; + xfer += iprot->readListBegin(_etype40, _size37); + this->colVals.resize(_size37); + uint32_t _i41; + for (_i41 = 0; _i41 < _size37; ++_i41) { - xfer += this->colVals[_i81].read(iprot); + xfer += this->colVals[_i41].read(iprot); } xfer += iprot->readListEnd(); } @@ -2625,16 +1939,15 @@ uint32_t TRow::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TRow::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TRow"); xfer += oprot->writeFieldBegin("colVals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colVals.size())); - std::vector ::const_iterator _iter82; - for (_iter82 = this->colVals.begin(); _iter82 != this->colVals.end(); ++_iter82) + std::vector ::const_iterator _iter42; + for (_iter42 = this->colVals.begin(); _iter42 != this->colVals.end(); ++_iter42) { - xfer += (*_iter82).write(oprot); + xfer += (*_iter42).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2642,7 +1955,6 @@ uint32_t TRow::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2651,38 +1963,10 @@ void swap(TRow &a, TRow &b) { swap(a.colVals, b.colVals); } -TRow::TRow(const TRow& other83) { - colVals = other83.colVals; -} -TRow& TRow::operator=(const TRow& other84) { - colVals = other84.colVals; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TRow& obj) { - using apache::thrift::to_string; - out << "TRow("; - out << "colVals=" << to_string(obj.colVals); - out << ")"; - return out; -} - - -TBoolColumn::~TBoolColumn() throw() { -} +const char* TBoolColumn::ascii_fingerprint = "F9058324D96DB7F974D8ACDC01C54219"; +const uint8_t TBoolColumn::binary_fingerprint[16] = {0xF9,0x05,0x83,0x24,0xD9,0x6D,0xB7,0xF9,0x74,0xD8,0xAC,0xDC,0x01,0xC5,0x42,0x19}; - -void TBoolColumn::__set_values(const std::vector & val) { - this->values = val; -} - -void TBoolColumn::__set_nulls(const std::string& val) { - this->nulls = val; -} - -const char* TBoolColumn::ascii_fingerprint = "F9058324D96DB7F974D8ACDC01C54219"; -const uint8_t TBoolColumn::binary_fingerprint[16] = {0xF9,0x05,0x83,0x24,0xD9,0x6D,0xB7,0xF9,0x74,0xD8,0xAC,0xDC,0x01,0xC5,0x42,0x19}; - -uint32_t TBoolColumn::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t TBoolColumn::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -2708,14 +1992,14 @@ uint32_t TBoolColumn::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size85; - ::apache::thrift::protocol::TType _etype88; - xfer += iprot->readListBegin(_etype88, _size85); - this->values.resize(_size85); - uint32_t _i89; - for (_i89 = 0; _i89 < _size85; ++_i89) + uint32_t _size43; + ::apache::thrift::protocol::TType _etype46; + xfer += iprot->readListBegin(_etype46, _size43); + this->values.resize(_size43); + uint32_t _i47; + for (_i47 = 0; _i47 < _size43; ++_i47) { - xfer += iprot->readBool(this->values[_i89]); + xfer += iprot->readBool(this->values[_i47]); } xfer += iprot->readListEnd(); } @@ -2750,16 +2034,15 @@ uint32_t TBoolColumn::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TBoolColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TBoolColumn"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_BOOL, static_cast(this->values.size())); - std::vector ::const_iterator _iter90; - for (_iter90 = this->values.begin(); _iter90 != this->values.end(); ++_iter90) + std::vector ::const_iterator _iter48; + for (_iter48 = this->values.begin(); _iter48 != this->values.end(); ++_iter48) { - xfer += oprot->writeBool((*_iter90)); + xfer += oprot->writeBool((*_iter48)); } xfer += oprot->writeListEnd(); } @@ -2771,7 +2054,6 @@ uint32_t TBoolColumn::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2781,37 +2063,6 @@ void swap(TBoolColumn &a, TBoolColumn &b) { swap(a.nulls, b.nulls); } -TBoolColumn::TBoolColumn(const TBoolColumn& other91) { - values = other91.values; - nulls = other91.nulls; -} -TBoolColumn& TBoolColumn::operator=(const TBoolColumn& other92) { - values = other92.values; - nulls = other92.nulls; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TBoolColumn& obj) { - using apache::thrift::to_string; - out << "TBoolColumn("; - out << "values=" << to_string(obj.values); - out << ", " << "nulls=" << to_string(obj.nulls); - out << ")"; - return out; -} - - -TByteColumn::~TByteColumn() throw() { -} - - -void TByteColumn::__set_values(const std::vector & val) { - this->values = val; -} - -void TByteColumn::__set_nulls(const std::string& val) { - this->nulls = val; -} - const char* TByteColumn::ascii_fingerprint = "1CB300106BAA463A70BB2A2395900F48"; const uint8_t TByteColumn::binary_fingerprint[16] = {0x1C,0xB3,0x00,0x10,0x6B,0xAA,0x46,0x3A,0x70,0xBB,0x2A,0x23,0x95,0x90,0x0F,0x48}; @@ -2841,14 +2092,14 @@ uint32_t TByteColumn::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size93; - ::apache::thrift::protocol::TType _etype96; - xfer += iprot->readListBegin(_etype96, _size93); - this->values.resize(_size93); - uint32_t _i97; - for (_i97 = 0; _i97 < _size93; ++_i97) + uint32_t _size49; + ::apache::thrift::protocol::TType _etype52; + xfer += iprot->readListBegin(_etype52, _size49); + this->values.resize(_size49); + uint32_t _i53; + for (_i53 = 0; _i53 < _size49; ++_i53) { - xfer += iprot->readByte(this->values[_i97]); + xfer += iprot->readByte(this->values[_i53]); } xfer += iprot->readListEnd(); } @@ -2883,16 +2134,15 @@ uint32_t TByteColumn::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TByteColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TByteColumn"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_BYTE, static_cast(this->values.size())); - std::vector ::const_iterator _iter98; - for (_iter98 = this->values.begin(); _iter98 != this->values.end(); ++_iter98) + std::vector ::const_iterator _iter54; + for (_iter54 = this->values.begin(); _iter54 != this->values.end(); ++_iter54) { - xfer += oprot->writeByte((*_iter98)); + xfer += oprot->writeByte((*_iter54)); } xfer += oprot->writeListEnd(); } @@ -2904,7 +2154,6 @@ uint32_t TByteColumn::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -2914,37 +2163,6 @@ void swap(TByteColumn &a, TByteColumn &b) { swap(a.nulls, b.nulls); } -TByteColumn::TByteColumn(const TByteColumn& other99) { - values = other99.values; - nulls = other99.nulls; -} -TByteColumn& TByteColumn::operator=(const TByteColumn& other100) { - values = other100.values; - nulls = other100.nulls; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TByteColumn& obj) { - using apache::thrift::to_string; - out << "TByteColumn("; - out << "values=" << to_string(obj.values); - out << ", " << "nulls=" << to_string(obj.nulls); - out << ")"; - return out; -} - - -TI16Column::~TI16Column() throw() { -} - - -void TI16Column::__set_values(const std::vector & val) { - this->values = val; -} - -void TI16Column::__set_nulls(const std::string& val) { - this->nulls = val; -} - const char* TI16Column::ascii_fingerprint = "6574CDB1F121C8DB47FB257A3F104BDB"; const uint8_t TI16Column::binary_fingerprint[16] = {0x65,0x74,0xCD,0xB1,0xF1,0x21,0xC8,0xDB,0x47,0xFB,0x25,0x7A,0x3F,0x10,0x4B,0xDB}; @@ -2974,14 +2192,14 @@ uint32_t TI16Column::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size101; - ::apache::thrift::protocol::TType _etype104; - xfer += iprot->readListBegin(_etype104, _size101); - this->values.resize(_size101); - uint32_t _i105; - for (_i105 = 0; _i105 < _size101; ++_i105) + uint32_t _size55; + ::apache::thrift::protocol::TType _etype58; + xfer += iprot->readListBegin(_etype58, _size55); + this->values.resize(_size55); + uint32_t _i59; + for (_i59 = 0; _i59 < _size55; ++_i59) { - xfer += iprot->readI16(this->values[_i105]); + xfer += iprot->readI16(this->values[_i59]); } xfer += iprot->readListEnd(); } @@ -3016,16 +2234,15 @@ uint32_t TI16Column::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TI16Column::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TI16Column"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I16, static_cast(this->values.size())); - std::vector ::const_iterator _iter106; - for (_iter106 = this->values.begin(); _iter106 != this->values.end(); ++_iter106) + std::vector ::const_iterator _iter60; + for (_iter60 = this->values.begin(); _iter60 != this->values.end(); ++_iter60) { - xfer += oprot->writeI16((*_iter106)); + xfer += oprot->writeI16((*_iter60)); } xfer += oprot->writeListEnd(); } @@ -3037,7 +2254,6 @@ uint32_t TI16Column::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -3047,37 +2263,6 @@ void swap(TI16Column &a, TI16Column &b) { swap(a.nulls, b.nulls); } -TI16Column::TI16Column(const TI16Column& other107) { - values = other107.values; - nulls = other107.nulls; -} -TI16Column& TI16Column::operator=(const TI16Column& other108) { - values = other108.values; - nulls = other108.nulls; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TI16Column& obj) { - using apache::thrift::to_string; - out << "TI16Column("; - out << "values=" << to_string(obj.values); - out << ", " << "nulls=" << to_string(obj.nulls); - out << ")"; - return out; -} - - -TI32Column::~TI32Column() throw() { -} - - -void TI32Column::__set_values(const std::vector & val) { - this->values = val; -} - -void TI32Column::__set_nulls(const std::string& val) { - this->nulls = val; -} - const char* TI32Column::ascii_fingerprint = "CCCCE89C7E9DA10280F5663700677313"; const uint8_t TI32Column::binary_fingerprint[16] = {0xCC,0xCC,0xE8,0x9C,0x7E,0x9D,0xA1,0x02,0x80,0xF5,0x66,0x37,0x00,0x67,0x73,0x13}; @@ -3107,14 +2292,14 @@ uint32_t TI32Column::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size109; - ::apache::thrift::protocol::TType _etype112; - xfer += iprot->readListBegin(_etype112, _size109); - this->values.resize(_size109); - uint32_t _i113; - for (_i113 = 0; _i113 < _size109; ++_i113) + uint32_t _size61; + ::apache::thrift::protocol::TType _etype64; + xfer += iprot->readListBegin(_etype64, _size61); + this->values.resize(_size61); + uint32_t _i65; + for (_i65 = 0; _i65 < _size61; ++_i65) { - xfer += iprot->readI32(this->values[_i113]); + xfer += iprot->readI32(this->values[_i65]); } xfer += iprot->readListEnd(); } @@ -3149,16 +2334,15 @@ uint32_t TI32Column::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TI32Column::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TI32Column"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->values.size())); - std::vector ::const_iterator _iter114; - for (_iter114 = this->values.begin(); _iter114 != this->values.end(); ++_iter114) + std::vector ::const_iterator _iter66; + for (_iter66 = this->values.begin(); _iter66 != this->values.end(); ++_iter66) { - xfer += oprot->writeI32((*_iter114)); + xfer += oprot->writeI32((*_iter66)); } xfer += oprot->writeListEnd(); } @@ -3170,7 +2354,6 @@ uint32_t TI32Column::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -3180,37 +2363,6 @@ void swap(TI32Column &a, TI32Column &b) { swap(a.nulls, b.nulls); } -TI32Column::TI32Column(const TI32Column& other115) { - values = other115.values; - nulls = other115.nulls; -} -TI32Column& TI32Column::operator=(const TI32Column& other116) { - values = other116.values; - nulls = other116.nulls; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TI32Column& obj) { - using apache::thrift::to_string; - out << "TI32Column("; - out << "values=" << to_string(obj.values); - out << ", " << "nulls=" << to_string(obj.nulls); - out << ")"; - return out; -} - - -TI64Column::~TI64Column() throw() { -} - - -void TI64Column::__set_values(const std::vector & val) { - this->values = val; -} - -void TI64Column::__set_nulls(const std::string& val) { - this->nulls = val; -} - const char* TI64Column::ascii_fingerprint = "925353917FC0AF87976A2338011F5A31"; const uint8_t TI64Column::binary_fingerprint[16] = {0x92,0x53,0x53,0x91,0x7F,0xC0,0xAF,0x87,0x97,0x6A,0x23,0x38,0x01,0x1F,0x5A,0x31}; @@ -3240,14 +2392,14 @@ uint32_t TI64Column::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size117; - ::apache::thrift::protocol::TType _etype120; - xfer += iprot->readListBegin(_etype120, _size117); - this->values.resize(_size117); - uint32_t _i121; - for (_i121 = 0; _i121 < _size117; ++_i121) + uint32_t _size67; + ::apache::thrift::protocol::TType _etype70; + xfer += iprot->readListBegin(_etype70, _size67); + this->values.resize(_size67); + uint32_t _i71; + for (_i71 = 0; _i71 < _size67; ++_i71) { - xfer += iprot->readI64(this->values[_i121]); + xfer += iprot->readI64(this->values[_i71]); } xfer += iprot->readListEnd(); } @@ -3282,16 +2434,15 @@ uint32_t TI64Column::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TI64Column::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TI64Column"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->values.size())); - std::vector ::const_iterator _iter122; - for (_iter122 = this->values.begin(); _iter122 != this->values.end(); ++_iter122) + std::vector ::const_iterator _iter72; + for (_iter72 = this->values.begin(); _iter72 != this->values.end(); ++_iter72) { - xfer += oprot->writeI64((*_iter122)); + xfer += oprot->writeI64((*_iter72)); } xfer += oprot->writeListEnd(); } @@ -3303,7 +2454,6 @@ uint32_t TI64Column::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -3313,37 +2463,6 @@ void swap(TI64Column &a, TI64Column &b) { swap(a.nulls, b.nulls); } -TI64Column::TI64Column(const TI64Column& other123) { - values = other123.values; - nulls = other123.nulls; -} -TI64Column& TI64Column::operator=(const TI64Column& other124) { - values = other124.values; - nulls = other124.nulls; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TI64Column& obj) { - using apache::thrift::to_string; - out << "TI64Column("; - out << "values=" << to_string(obj.values); - out << ", " << "nulls=" << to_string(obj.nulls); - out << ")"; - return out; -} - - -TDoubleColumn::~TDoubleColumn() throw() { -} - - -void TDoubleColumn::__set_values(const std::vector & val) { - this->values = val; -} - -void TDoubleColumn::__set_nulls(const std::string& val) { - this->nulls = val; -} - const char* TDoubleColumn::ascii_fingerprint = "8FF1C050A8D7FD247AEB23CD71539C09"; const uint8_t TDoubleColumn::binary_fingerprint[16] = {0x8F,0xF1,0xC0,0x50,0xA8,0xD7,0xFD,0x24,0x7A,0xEB,0x23,0xCD,0x71,0x53,0x9C,0x09}; @@ -3373,14 +2492,14 @@ uint32_t TDoubleColumn::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size125; - ::apache::thrift::protocol::TType _etype128; - xfer += iprot->readListBegin(_etype128, _size125); - this->values.resize(_size125); - uint32_t _i129; - for (_i129 = 0; _i129 < _size125; ++_i129) + uint32_t _size73; + ::apache::thrift::protocol::TType _etype76; + xfer += iprot->readListBegin(_etype76, _size73); + this->values.resize(_size73); + uint32_t _i77; + for (_i77 = 0; _i77 < _size73; ++_i77) { - xfer += iprot->readDouble(this->values[_i129]); + xfer += iprot->readDouble(this->values[_i77]); } xfer += iprot->readListEnd(); } @@ -3415,16 +2534,15 @@ uint32_t TDoubleColumn::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TDoubleColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TDoubleColumn"); xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_DOUBLE, static_cast(this->values.size())); - std::vector ::const_iterator _iter130; - for (_iter130 = this->values.begin(); _iter130 != this->values.end(); ++_iter130) + std::vector ::const_iterator _iter78; + for (_iter78 = this->values.begin(); _iter78 != this->values.end(); ++_iter78) { - xfer += oprot->writeDouble((*_iter130)); + xfer += oprot->writeDouble((*_iter78)); } xfer += oprot->writeListEnd(); } @@ -3436,7 +2554,6 @@ uint32_t TDoubleColumn::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -3446,37 +2563,6 @@ void swap(TDoubleColumn &a, TDoubleColumn &b) { swap(a.nulls, b.nulls); } -TDoubleColumn::TDoubleColumn(const TDoubleColumn& other131) { - values = other131.values; - nulls = other131.nulls; -} -TDoubleColumn& TDoubleColumn::operator=(const TDoubleColumn& other132) { - values = other132.values; - nulls = other132.nulls; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TDoubleColumn& obj) { - using apache::thrift::to_string; - out << "TDoubleColumn("; - out << "values=" << to_string(obj.values); - out << ", " << "nulls=" << to_string(obj.nulls); - out << ")"; - return out; -} - - -TStringColumn::~TStringColumn() throw() { -} - - -void TStringColumn::__set_values(const std::vector & val) { - this->values = val; -} - -void TStringColumn::__set_nulls(const std::string& val) { - this->nulls = val; -} - const char* TStringColumn::ascii_fingerprint = "BE556BF7091B2DABBA1863D5E458B15F"; const uint8_t TStringColumn::binary_fingerprint[16] = {0xBE,0x55,0x6B,0xF7,0x09,0x1B,0x2D,0xAB,0xBA,0x18,0x63,0xD5,0xE4,0x58,0xB1,0x5F}; @@ -3506,14 +2592,14 @@ uint32_t TStringColumn::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size133; - ::apache::thrift::protocol::TType _etype136; - xfer += iprot->readListBegin(_etype136, _size133); - this->values.resize(_size133); - uint32_t _i137; - for (_i137 = 0; _i137 < _size133; ++_i137) + uint32_t _size79; + ::apache::thrift::protocol::TType _etype82; + xfer += iprot->readListBegin(_etype82, _size79); + this->values.resize(_size79); + uint32_t _i83; + for (_i83 = 0; _i83 < _size79; ++_i83) { - xfer += iprot->readString(this->values[_i137]); + xfer += iprot->readString(this->values[_i83]); } xfer += iprot->readListEnd(); } @@ -3548,16 +2634,15 @@ uint32_t TStringColumn::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TStringColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TStringColumn"); 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 _iter138; - for (_iter138 = this->values.begin(); _iter138 != this->values.end(); ++_iter138) + std::vector ::const_iterator _iter84; + for (_iter84 = this->values.begin(); _iter84 != this->values.end(); ++_iter84) { - xfer += oprot->writeString((*_iter138)); + xfer += oprot->writeString((*_iter84)); } xfer += oprot->writeListEnd(); } @@ -3569,7 +2654,6 @@ uint32_t TStringColumn::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -3579,37 +2663,6 @@ void swap(TStringColumn &a, TStringColumn &b) { swap(a.nulls, b.nulls); } -TStringColumn::TStringColumn(const TStringColumn& other139) { - values = other139.values; - nulls = other139.nulls; -} -TStringColumn& TStringColumn::operator=(const TStringColumn& other140) { - values = other140.values; - nulls = other140.nulls; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TStringColumn& obj) { - using apache::thrift::to_string; - out << "TStringColumn("; - out << "values=" << to_string(obj.values); - out << ", " << "nulls=" << to_string(obj.nulls); - out << ")"; - return out; -} - - -TBinaryColumn::~TBinaryColumn() throw() { -} - - -void TBinaryColumn::__set_values(const std::vector & val) { - this->values = val; -} - -void TBinaryColumn::__set_nulls(const std::string& val) { - this->nulls = val; -} - const char* TBinaryColumn::ascii_fingerprint = "BE556BF7091B2DABBA1863D5E458B15F"; const uint8_t TBinaryColumn::binary_fingerprint[16] = {0xBE,0x55,0x6B,0xF7,0x09,0x1B,0x2D,0xAB,0xBA,0x18,0x63,0xD5,0xE4,0x58,0xB1,0x5F}; @@ -3639,14 +2692,14 @@ uint32_t TBinaryColumn::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size141; - ::apache::thrift::protocol::TType _etype144; - xfer += iprot->readListBegin(_etype144, _size141); - this->values.resize(_size141); - uint32_t _i145; - for (_i145 = 0; _i145 < _size141; ++_i145) + uint32_t _size85; + ::apache::thrift::protocol::TType _etype88; + xfer += iprot->readListBegin(_etype88, _size85); + this->values.resize(_size85); + uint32_t _i89; + for (_i89 = 0; _i89 < _size85; ++_i89) { - xfer += iprot->readBinary(this->values[_i145]); + xfer += iprot->readBinary(this->values[_i89]); } xfer += iprot->readListEnd(); } @@ -3681,16 +2734,15 @@ uint32_t TBinaryColumn::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TBinaryColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TBinaryColumn"); 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 _iter146; - for (_iter146 = this->values.begin(); _iter146 != this->values.end(); ++_iter146) + std::vector ::const_iterator _iter90; + for (_iter90 = this->values.begin(); _iter90 != this->values.end(); ++_iter90) { - xfer += oprot->writeBinary((*_iter146)); + xfer += oprot->writeBinary((*_iter90)); } xfer += oprot->writeListEnd(); } @@ -3702,7 +2754,6 @@ uint32_t TBinaryColumn::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -3712,61 +2763,6 @@ void swap(TBinaryColumn &a, TBinaryColumn &b) { swap(a.nulls, b.nulls); } -TBinaryColumn::TBinaryColumn(const TBinaryColumn& other147) { - values = other147.values; - nulls = other147.nulls; -} -TBinaryColumn& TBinaryColumn::operator=(const TBinaryColumn& other148) { - values = other148.values; - nulls = other148.nulls; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TBinaryColumn& obj) { - using apache::thrift::to_string; - out << "TBinaryColumn("; - out << "values=" << to_string(obj.values); - out << ", " << "nulls=" << to_string(obj.nulls); - out << ")"; - return out; -} - - -TColumn::~TColumn() throw() { -} - - -void TColumn::__set_boolVal(const TBoolColumn& val) { - this->boolVal = val; -} - -void TColumn::__set_byteVal(const TByteColumn& val) { - this->byteVal = val; -} - -void TColumn::__set_i16Val(const TI16Column& val) { - this->i16Val = val; -} - -void TColumn::__set_i32Val(const TI32Column& val) { - this->i32Val = val; -} - -void TColumn::__set_i64Val(const TI64Column& val) { - this->i64Val = val; -} - -void TColumn::__set_doubleVal(const TDoubleColumn& val) { - this->doubleVal = val; -} - -void TColumn::__set_stringVal(const TStringColumn& val) { - this->stringVal = val; -} - -void TColumn::__set_binaryVal(const TBinaryColumn& val) { - this->binaryVal = val; -} - const char* TColumn::ascii_fingerprint = "E6ADD10B4CDDE61A19E8878CC7039A17"; const uint8_t TColumn::binary_fingerprint[16] = {0xE6,0xAD,0xD1,0x0B,0x4C,0xDD,0xE6,0x1A,0x19,0xE8,0x87,0x8C,0xC7,0x03,0x9A,0x17}; @@ -3868,7 +2864,6 @@ uint32_t TColumn::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TColumn"); xfer += oprot->writeFieldBegin("boolVal", ::apache::thrift::protocol::T_STRUCT, 1); @@ -3905,7 +2900,6 @@ uint32_t TColumn::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -3922,62 +2916,6 @@ void swap(TColumn &a, TColumn &b) { swap(a.__isset, b.__isset); } -TColumn::TColumn(const TColumn& other149) { - boolVal = other149.boolVal; - byteVal = other149.byteVal; - i16Val = other149.i16Val; - i32Val = other149.i32Val; - i64Val = other149.i64Val; - doubleVal = other149.doubleVal; - stringVal = other149.stringVal; - binaryVal = other149.binaryVal; - __isset = other149.__isset; -} -TColumn& TColumn::operator=(const TColumn& other150) { - boolVal = other150.boolVal; - byteVal = other150.byteVal; - i16Val = other150.i16Val; - i32Val = other150.i32Val; - i64Val = other150.i64Val; - doubleVal = other150.doubleVal; - stringVal = other150.stringVal; - binaryVal = other150.binaryVal; - __isset = other150.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TColumn& obj) { - using apache::thrift::to_string; - out << "TColumn("; - out << "boolVal=" << to_string(obj.boolVal); - out << ", " << "byteVal=" << to_string(obj.byteVal); - out << ", " << "i16Val=" << to_string(obj.i16Val); - out << ", " << "i32Val=" << to_string(obj.i32Val); - out << ", " << "i64Val=" << to_string(obj.i64Val); - out << ", " << "doubleVal=" << to_string(obj.doubleVal); - out << ", " << "stringVal=" << to_string(obj.stringVal); - out << ", " << "binaryVal=" << to_string(obj.binaryVal); - out << ")"; - return out; -} - - -TRowSet::~TRowSet() throw() { -} - - -void TRowSet::__set_startRowOffset(const int64_t val) { - this->startRowOffset = val; -} - -void TRowSet::__set_rows(const std::vector & val) { - this->rows = val; -} - -void TRowSet::__set_columns(const std::vector & val) { - this->columns = val; -__isset.columns = true; -} - const char* TRowSet::ascii_fingerprint = "46DA30A870489C7A58105AE0080DAEBF"; const uint8_t TRowSet::binary_fingerprint[16] = {0x46,0xDA,0x30,0xA8,0x70,0x48,0x9C,0x7A,0x58,0x10,0x5A,0xE0,0x08,0x0D,0xAE,0xBF}; @@ -4015,14 +2953,14 @@ uint32_t TRowSet::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->rows.clear(); - uint32_t _size151; - ::apache::thrift::protocol::TType _etype154; - xfer += iprot->readListBegin(_etype154, _size151); - this->rows.resize(_size151); - uint32_t _i155; - for (_i155 = 0; _i155 < _size151; ++_i155) + uint32_t _size91; + ::apache::thrift::protocol::TType _etype94; + xfer += iprot->readListBegin(_etype94, _size91); + this->rows.resize(_size91); + uint32_t _i95; + for (_i95 = 0; _i95 < _size91; ++_i95) { - xfer += this->rows[_i155].read(iprot); + xfer += this->rows[_i95].read(iprot); } xfer += iprot->readListEnd(); } @@ -4035,14 +2973,14 @@ uint32_t TRowSet::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->columns.clear(); - uint32_t _size156; - ::apache::thrift::protocol::TType _etype159; - xfer += iprot->readListBegin(_etype159, _size156); - this->columns.resize(_size156); - uint32_t _i160; - for (_i160 = 0; _i160 < _size156; ++_i160) + uint32_t _size96; + ::apache::thrift::protocol::TType _etype99; + xfer += iprot->readListBegin(_etype99, _size96); + this->columns.resize(_size96); + uint32_t _i100; + for (_i100 = 0; _i100 < _size96; ++_i100) { - xfer += this->columns[_i160].read(iprot); + xfer += this->columns[_i100].read(iprot); } xfer += iprot->readListEnd(); } @@ -4069,7 +3007,6 @@ uint32_t TRowSet::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TRowSet::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TRowSet"); xfer += oprot->writeFieldBegin("startRowOffset", ::apache::thrift::protocol::T_I64, 1); @@ -4079,10 +3016,10 @@ uint32_t TRowSet::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("rows", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->rows.size())); - std::vector ::const_iterator _iter161; - for (_iter161 = this->rows.begin(); _iter161 != this->rows.end(); ++_iter161) + std::vector ::const_iterator _iter101; + for (_iter101 = this->rows.begin(); _iter101 != this->rows.end(); ++_iter101) { - xfer += (*_iter161).write(oprot); + xfer += (*_iter101).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4092,10 +3029,10 @@ uint32_t TRowSet::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("columns", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->columns.size())); - std::vector ::const_iterator _iter162; - for (_iter162 = this->columns.begin(); _iter162 != this->columns.end(); ++_iter162) + std::vector ::const_iterator _iter102; + for (_iter102 = this->columns.begin(); _iter102 != this->columns.end(); ++_iter102) { - xfer += (*_iter162).write(oprot); + xfer += (*_iter102).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4103,7 +3040,6 @@ uint32_t TRowSet::write(::apache::thrift::protocol::TProtocol* oprot) const { } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -4115,58 +3051,6 @@ void swap(TRowSet &a, TRowSet &b) { swap(a.__isset, b.__isset); } -TRowSet::TRowSet(const TRowSet& other163) { - startRowOffset = other163.startRowOffset; - rows = other163.rows; - columns = other163.columns; - __isset = other163.__isset; -} -TRowSet& TRowSet::operator=(const TRowSet& other164) { - startRowOffset = other164.startRowOffset; - rows = other164.rows; - columns = other164.columns; - __isset = other164.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TRowSet& obj) { - using apache::thrift::to_string; - out << "TRowSet("; - out << "startRowOffset=" << to_string(obj.startRowOffset); - out << ", " << "rows=" << to_string(obj.rows); - out << ", " << "columns="; (obj.__isset.columns ? (out << to_string(obj.columns)) : (out << "")); - out << ")"; - return out; -} - - -TStatus::~TStatus() throw() { -} - - -void TStatus::__set_statusCode(const TStatusCode::type val) { - this->statusCode = val; -} - -void TStatus::__set_infoMessages(const std::vector & val) { - this->infoMessages = val; -__isset.infoMessages = true; -} - -void TStatus::__set_sqlState(const std::string& val) { - this->sqlState = val; -__isset.sqlState = true; -} - -void TStatus::__set_errorCode(const int32_t val) { - this->errorCode = val; -__isset.errorCode = true; -} - -void TStatus::__set_errorMessage(const std::string& val) { - this->errorMessage = val; -__isset.errorMessage = true; -} - const char* TStatus::ascii_fingerprint = "D5DEF49634A59C615C1B3A6F7D0DADB5"; const uint8_t TStatus::binary_fingerprint[16] = {0xD5,0xDE,0xF4,0x96,0x34,0xA5,0x9C,0x61,0x5C,0x1B,0x3A,0x6F,0x7D,0x0D,0xAD,0xB5}; @@ -4193,9 +3077,9 @@ uint32_t TStatus::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast165; - xfer += iprot->readI32(ecast165); - this->statusCode = (TStatusCode::type)ecast165; + int32_t ecast103; + xfer += iprot->readI32(ecast103); + this->statusCode = (TStatusCode::type)ecast103; isset_statusCode = true; } else { xfer += iprot->skip(ftype); @@ -4205,14 +3089,14 @@ uint32_t TStatus::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->infoMessages.clear(); - uint32_t _size166; - ::apache::thrift::protocol::TType _etype169; - xfer += iprot->readListBegin(_etype169, _size166); - this->infoMessages.resize(_size166); - uint32_t _i170; - for (_i170 = 0; _i170 < _size166; ++_i170) + uint32_t _size104; + ::apache::thrift::protocol::TType _etype107; + xfer += iprot->readListBegin(_etype107, _size104); + this->infoMessages.resize(_size104); + uint32_t _i108; + for (_i108 = 0; _i108 < _size104; ++_i108) { - xfer += iprot->readString(this->infoMessages[_i170]); + xfer += iprot->readString(this->infoMessages[_i108]); } xfer += iprot->readListEnd(); } @@ -4261,7 +3145,6 @@ uint32_t TStatus::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TStatus::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TStatus"); xfer += oprot->writeFieldBegin("statusCode", ::apache::thrift::protocol::T_I32, 1); @@ -4272,10 +3155,10 @@ uint32_t TStatus::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("infoMessages", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->infoMessages.size())); - std::vector ::const_iterator _iter171; - for (_iter171 = this->infoMessages.begin(); _iter171 != this->infoMessages.end(); ++_iter171) + std::vector ::const_iterator _iter109; + for (_iter109 = this->infoMessages.begin(); _iter109 != this->infoMessages.end(); ++_iter109) { - xfer += oprot->writeString((*_iter171)); + xfer += oprot->writeString((*_iter109)); } xfer += oprot->writeListEnd(); } @@ -4298,7 +3181,6 @@ uint32_t TStatus::write(::apache::thrift::protocol::TProtocol* oprot) const { } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -4312,48 +3194,6 @@ void swap(TStatus &a, TStatus &b) { swap(a.__isset, b.__isset); } -TStatus::TStatus(const TStatus& other172) { - statusCode = other172.statusCode; - infoMessages = other172.infoMessages; - sqlState = other172.sqlState; - errorCode = other172.errorCode; - errorMessage = other172.errorMessage; - __isset = other172.__isset; -} -TStatus& TStatus::operator=(const TStatus& other173) { - statusCode = other173.statusCode; - infoMessages = other173.infoMessages; - sqlState = other173.sqlState; - errorCode = other173.errorCode; - errorMessage = other173.errorMessage; - __isset = other173.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TStatus& obj) { - using apache::thrift::to_string; - out << "TStatus("; - out << "statusCode=" << to_string(obj.statusCode); - out << ", " << "infoMessages="; (obj.__isset.infoMessages ? (out << to_string(obj.infoMessages)) : (out << "")); - out << ", " << "sqlState="; (obj.__isset.sqlState ? (out << to_string(obj.sqlState)) : (out << "")); - out << ", " << "errorCode="; (obj.__isset.errorCode ? (out << to_string(obj.errorCode)) : (out << "")); - out << ", " << "errorMessage="; (obj.__isset.errorMessage ? (out << to_string(obj.errorMessage)) : (out << "")); - out << ")"; - return out; -} - - -THandleIdentifier::~THandleIdentifier() throw() { -} - - -void THandleIdentifier::__set_guid(const std::string& val) { - this->guid = val; -} - -void THandleIdentifier::__set_secret(const std::string& val) { - this->secret = val; -} - const char* THandleIdentifier::ascii_fingerprint = "07A9615F837F7D0A952B595DD3020972"; const uint8_t THandleIdentifier::binary_fingerprint[16] = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; @@ -4413,7 +3253,6 @@ uint32_t THandleIdentifier::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t THandleIdentifier::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("THandleIdentifier"); xfer += oprot->writeFieldBegin("guid", ::apache::thrift::protocol::T_STRING, 1); @@ -4426,7 +3265,6 @@ uint32_t THandleIdentifier::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -4436,33 +3274,6 @@ void swap(THandleIdentifier &a, THandleIdentifier &b) { swap(a.secret, b.secret); } -THandleIdentifier::THandleIdentifier(const THandleIdentifier& other174) { - guid = other174.guid; - secret = other174.secret; -} -THandleIdentifier& THandleIdentifier::operator=(const THandleIdentifier& other175) { - guid = other175.guid; - secret = other175.secret; - return *this; -} -std::ostream& operator<<(std::ostream& out, const THandleIdentifier& obj) { - using apache::thrift::to_string; - out << "THandleIdentifier("; - out << "guid=" << to_string(obj.guid); - out << ", " << "secret=" << to_string(obj.secret); - out << ")"; - return out; -} - - -TSessionHandle::~TSessionHandle() throw() { -} - - -void TSessionHandle::__set_sessionId(const THandleIdentifier& val) { - this->sessionId = val; -} - const char* TSessionHandle::ascii_fingerprint = "A756D3DBE614FB13F70BF7F7B6EB3D73"; const uint8_t TSessionHandle::binary_fingerprint[16] = {0xA7,0x56,0xD3,0xDB,0xE6,0x14,0xFB,0x13,0xF7,0x0B,0xF7,0xF7,0xB6,0xEB,0x3D,0x73}; @@ -4511,7 +3322,6 @@ uint32_t TSessionHandle::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TSessionHandle::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TSessionHandle"); xfer += oprot->writeFieldBegin("sessionId", ::apache::thrift::protocol::T_STRUCT, 1); @@ -4520,7 +3330,6 @@ uint32_t TSessionHandle::write(::apache::thrift::protocol::TProtocol* oprot) con xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -4529,43 +3338,6 @@ void swap(TSessionHandle &a, TSessionHandle &b) { swap(a.sessionId, b.sessionId); } -TSessionHandle::TSessionHandle(const TSessionHandle& other176) { - sessionId = other176.sessionId; -} -TSessionHandle& TSessionHandle::operator=(const TSessionHandle& other177) { - sessionId = other177.sessionId; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TSessionHandle& obj) { - using apache::thrift::to_string; - out << "TSessionHandle("; - out << "sessionId=" << to_string(obj.sessionId); - out << ")"; - return out; -} - - -TOperationHandle::~TOperationHandle() throw() { -} - - -void TOperationHandle::__set_operationId(const THandleIdentifier& val) { - this->operationId = val; -} - -void TOperationHandle::__set_operationType(const TOperationType::type val) { - this->operationType = val; -} - -void TOperationHandle::__set_hasResultSet(const bool val) { - this->hasResultSet = val; -} - -void TOperationHandle::__set_modifiedRowCount(const double val) { - this->modifiedRowCount = val; -__isset.modifiedRowCount = true; -} - const char* TOperationHandle::ascii_fingerprint = "29FD80F4F96804A30FCC59C23D2E5349"; const uint8_t TOperationHandle::binary_fingerprint[16] = {0x29,0xFD,0x80,0xF4,0xF9,0x68,0x04,0xA3,0x0F,0xCC,0x59,0xC2,0x3D,0x2E,0x53,0x49}; @@ -4602,9 +3374,9 @@ uint32_t TOperationHandle::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast178; - xfer += iprot->readI32(ecast178); - this->operationType = (TOperationType::type)ecast178; + int32_t ecast110; + xfer += iprot->readI32(ecast110); + this->operationType = (TOperationType::type)ecast110; isset_operationType = true; } else { xfer += iprot->skip(ftype); @@ -4646,7 +3418,6 @@ uint32_t TOperationHandle::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TOperationHandle::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TOperationHandle"); xfer += oprot->writeFieldBegin("operationId", ::apache::thrift::protocol::T_STRUCT, 1); @@ -4668,7 +3439,6 @@ uint32_t TOperationHandle::write(::apache::thrift::protocol::TProtocol* oprot) c } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -4681,56 +3451,6 @@ void swap(TOperationHandle &a, TOperationHandle &b) { swap(a.__isset, b.__isset); } -TOperationHandle::TOperationHandle(const TOperationHandle& other179) { - operationId = other179.operationId; - operationType = other179.operationType; - hasResultSet = other179.hasResultSet; - modifiedRowCount = other179.modifiedRowCount; - __isset = other179.__isset; -} -TOperationHandle& TOperationHandle::operator=(const TOperationHandle& other180) { - operationId = other180.operationId; - operationType = other180.operationType; - hasResultSet = other180.hasResultSet; - modifiedRowCount = other180.modifiedRowCount; - __isset = other180.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TOperationHandle& obj) { - using apache::thrift::to_string; - out << "TOperationHandle("; - out << "operationId=" << to_string(obj.operationId); - out << ", " << "operationType=" << to_string(obj.operationType); - out << ", " << "hasResultSet=" << to_string(obj.hasResultSet); - out << ", " << "modifiedRowCount="; (obj.__isset.modifiedRowCount ? (out << to_string(obj.modifiedRowCount)) : (out << "")); - out << ")"; - return out; -} - - -TOpenSessionReq::~TOpenSessionReq() throw() { -} - - -void TOpenSessionReq::__set_client_protocol(const TProtocolVersion::type val) { - this->client_protocol = val; -} - -void TOpenSessionReq::__set_username(const std::string& val) { - this->username = val; -__isset.username = true; -} - -void TOpenSessionReq::__set_password(const std::string& val) { - this->password = val; -__isset.password = true; -} - -void TOpenSessionReq::__set_configuration(const std::map & val) { - this->configuration = val; -__isset.configuration = true; -} - const char* TOpenSessionReq::ascii_fingerprint = "C8FD0F306A16C16BDA7B57F58BFAE5B2"; const uint8_t TOpenSessionReq::binary_fingerprint[16] = {0xC8,0xFD,0x0F,0x30,0x6A,0x16,0xC1,0x6B,0xDA,0x7B,0x57,0xF5,0x8B,0xFA,0xE5,0xB2}; @@ -4757,9 +3477,9 @@ uint32_t TOpenSessionReq::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast181; - xfer += iprot->readI32(ecast181); - this->client_protocol = (TProtocolVersion::type)ecast181; + int32_t ecast111; + xfer += iprot->readI32(ecast111); + this->client_protocol = (TProtocolVersion::type)ecast111; isset_client_protocol = true; } else { xfer += iprot->skip(ftype); @@ -4785,17 +3505,17 @@ uint32_t TOpenSessionReq::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->configuration.clear(); - uint32_t _size182; - ::apache::thrift::protocol::TType _ktype183; - ::apache::thrift::protocol::TType _vtype184; - xfer += iprot->readMapBegin(_ktype183, _vtype184, _size182); - uint32_t _i186; - for (_i186 = 0; _i186 < _size182; ++_i186) + uint32_t _size112; + ::apache::thrift::protocol::TType _ktype113; + ::apache::thrift::protocol::TType _vtype114; + xfer += iprot->readMapBegin(_ktype113, _vtype114, _size112); + uint32_t _i116; + for (_i116 = 0; _i116 < _size112; ++_i116) { - std::string _key187; - xfer += iprot->readString(_key187); - std::string& _val188 = this->configuration[_key187]; - xfer += iprot->readString(_val188); + std::string _key117; + xfer += iprot->readString(_key117); + std::string& _val118 = this->configuration[_key117]; + xfer += iprot->readString(_val118); } xfer += iprot->readMapEnd(); } @@ -4820,7 +3540,6 @@ uint32_t TOpenSessionReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TOpenSessionReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TOpenSessionReq"); xfer += oprot->writeFieldBegin("client_protocol", ::apache::thrift::protocol::T_I32, 1); @@ -4841,11 +3560,11 @@ uint32_t TOpenSessionReq::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldBegin("configuration", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->configuration.size())); - std::map ::const_iterator _iter189; - for (_iter189 = this->configuration.begin(); _iter189 != this->configuration.end(); ++_iter189) + std::map ::const_iterator _iter119; + for (_iter119 = this->configuration.begin(); _iter119 != this->configuration.end(); ++_iter119) { - xfer += oprot->writeString(_iter189->first); - xfer += oprot->writeString(_iter189->second); + xfer += oprot->writeString(_iter119->first); + xfer += oprot->writeString(_iter119->second); } xfer += oprot->writeMapEnd(); } @@ -4853,7 +3572,6 @@ uint32_t TOpenSessionReq::write(::apache::thrift::protocol::TProtocol* oprot) co } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -4866,55 +3584,6 @@ void swap(TOpenSessionReq &a, TOpenSessionReq &b) { swap(a.__isset, b.__isset); } -TOpenSessionReq::TOpenSessionReq(const TOpenSessionReq& other190) { - client_protocol = other190.client_protocol; - username = other190.username; - password = other190.password; - configuration = other190.configuration; - __isset = other190.__isset; -} -TOpenSessionReq& TOpenSessionReq::operator=(const TOpenSessionReq& other191) { - client_protocol = other191.client_protocol; - username = other191.username; - password = other191.password; - configuration = other191.configuration; - __isset = other191.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TOpenSessionReq& obj) { - using apache::thrift::to_string; - out << "TOpenSessionReq("; - out << "client_protocol=" << to_string(obj.client_protocol); - out << ", " << "username="; (obj.__isset.username ? (out << to_string(obj.username)) : (out << "")); - out << ", " << "password="; (obj.__isset.password ? (out << to_string(obj.password)) : (out << "")); - out << ", " << "configuration="; (obj.__isset.configuration ? (out << to_string(obj.configuration)) : (out << "")); - out << ")"; - return out; -} - - -TOpenSessionResp::~TOpenSessionResp() throw() { -} - - -void TOpenSessionResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TOpenSessionResp::__set_serverProtocolVersion(const TProtocolVersion::type val) { - this->serverProtocolVersion = val; -} - -void TOpenSessionResp::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -__isset.sessionHandle = true; -} - -void TOpenSessionResp::__set_configuration(const std::map & val) { - this->configuration = val; -__isset.configuration = true; -} - const char* TOpenSessionResp::ascii_fingerprint = "CFE7D7F4E9EC671F2518ED74FEE9F163"; const uint8_t TOpenSessionResp::binary_fingerprint[16] = {0xCF,0xE7,0xD7,0xF4,0xE9,0xEC,0x67,0x1F,0x25,0x18,0xED,0x74,0xFE,0xE9,0xF1,0x63}; @@ -4950,9 +3619,9 @@ uint32_t TOpenSessionResp::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast192; - xfer += iprot->readI32(ecast192); - this->serverProtocolVersion = (TProtocolVersion::type)ecast192; + int32_t ecast120; + xfer += iprot->readI32(ecast120); + this->serverProtocolVersion = (TProtocolVersion::type)ecast120; isset_serverProtocolVersion = true; } else { xfer += iprot->skip(ftype); @@ -4970,17 +3639,17 @@ uint32_t TOpenSessionResp::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->configuration.clear(); - uint32_t _size193; - ::apache::thrift::protocol::TType _ktype194; - ::apache::thrift::protocol::TType _vtype195; - xfer += iprot->readMapBegin(_ktype194, _vtype195, _size193); - uint32_t _i197; - for (_i197 = 0; _i197 < _size193; ++_i197) + uint32_t _size121; + ::apache::thrift::protocol::TType _ktype122; + ::apache::thrift::protocol::TType _vtype123; + xfer += iprot->readMapBegin(_ktype122, _vtype123, _size121); + uint32_t _i125; + for (_i125 = 0; _i125 < _size121; ++_i125) { - std::string _key198; - xfer += iprot->readString(_key198); - std::string& _val199 = this->configuration[_key198]; - xfer += iprot->readString(_val199); + std::string _key126; + xfer += iprot->readString(_key126); + std::string& _val127 = this->configuration[_key126]; + xfer += iprot->readString(_val127); } xfer += iprot->readMapEnd(); } @@ -5007,7 +3676,6 @@ uint32_t TOpenSessionResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TOpenSessionResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TOpenSessionResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5027,11 +3695,11 @@ uint32_t TOpenSessionResp::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("configuration", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->configuration.size())); - std::map ::const_iterator _iter200; - for (_iter200 = this->configuration.begin(); _iter200 != this->configuration.end(); ++_iter200) + std::map ::const_iterator _iter128; + for (_iter128 = this->configuration.begin(); _iter128 != this->configuration.end(); ++_iter128) { - xfer += oprot->writeString(_iter200->first); - xfer += oprot->writeString(_iter200->second); + xfer += oprot->writeString(_iter128->first); + xfer += oprot->writeString(_iter128->second); } xfer += oprot->writeMapEnd(); } @@ -5039,7 +3707,6 @@ uint32_t TOpenSessionResp::write(::apache::thrift::protocol::TProtocol* oprot) c } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5052,41 +3719,6 @@ void swap(TOpenSessionResp &a, TOpenSessionResp &b) { swap(a.__isset, b.__isset); } -TOpenSessionResp::TOpenSessionResp(const TOpenSessionResp& other201) { - status = other201.status; - serverProtocolVersion = other201.serverProtocolVersion; - sessionHandle = other201.sessionHandle; - configuration = other201.configuration; - __isset = other201.__isset; -} -TOpenSessionResp& TOpenSessionResp::operator=(const TOpenSessionResp& other202) { - status = other202.status; - serverProtocolVersion = other202.serverProtocolVersion; - sessionHandle = other202.sessionHandle; - configuration = other202.configuration; - __isset = other202.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TOpenSessionResp& obj) { - using apache::thrift::to_string; - out << "TOpenSessionResp("; - out << "status=" << to_string(obj.status); - out << ", " << "serverProtocolVersion=" << to_string(obj.serverProtocolVersion); - out << ", " << "sessionHandle="; (obj.__isset.sessionHandle ? (out << to_string(obj.sessionHandle)) : (out << "")); - out << ", " << "configuration="; (obj.__isset.configuration ? (out << to_string(obj.configuration)) : (out << "")); - out << ")"; - return out; -} - - -TCloseSessionReq::~TCloseSessionReq() throw() { -} - - -void TCloseSessionReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - const char* TCloseSessionReq::ascii_fingerprint = "82377107F8BD0526960537D5A112E6EF"; const uint8_t TCloseSessionReq::binary_fingerprint[16] = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; @@ -5135,7 +3767,6 @@ uint32_t TCloseSessionReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TCloseSessionReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCloseSessionReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5144,7 +3775,6 @@ uint32_t TCloseSessionReq::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5153,30 +3783,6 @@ void swap(TCloseSessionReq &a, TCloseSessionReq &b) { swap(a.sessionHandle, b.sessionHandle); } -TCloseSessionReq::TCloseSessionReq(const TCloseSessionReq& other203) { - sessionHandle = other203.sessionHandle; -} -TCloseSessionReq& TCloseSessionReq::operator=(const TCloseSessionReq& other204) { - sessionHandle = other204.sessionHandle; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TCloseSessionReq& obj) { - using apache::thrift::to_string; - out << "TCloseSessionReq("; - out << "sessionHandle=" << to_string(obj.sessionHandle); - out << ")"; - return out; -} - - -TCloseSessionResp::~TCloseSessionResp() throw() { -} - - -void TCloseSessionResp::__set_status(const TStatus& val) { - this->status = val; -} - const char* TCloseSessionResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2"; const uint8_t TCloseSessionResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; @@ -5225,7 +3831,6 @@ uint32_t TCloseSessionResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TCloseSessionResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCloseSessionResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5234,7 +3839,6 @@ uint32_t TCloseSessionResp::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5243,50 +3847,6 @@ void swap(TCloseSessionResp &a, TCloseSessionResp &b) { swap(a.status, b.status); } -TCloseSessionResp::TCloseSessionResp(const TCloseSessionResp& other205) { - status = other205.status; -} -TCloseSessionResp& TCloseSessionResp::operator=(const TCloseSessionResp& other206) { - status = other206.status; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TCloseSessionResp& obj) { - using apache::thrift::to_string; - out << "TCloseSessionResp("; - out << "status=" << to_string(obj.status); - out << ")"; - return out; -} - - -TGetInfoValue::~TGetInfoValue() throw() { -} - - -void TGetInfoValue::__set_stringValue(const std::string& val) { - this->stringValue = val; -} - -void TGetInfoValue::__set_smallIntValue(const int16_t val) { - this->smallIntValue = val; -} - -void TGetInfoValue::__set_integerBitmask(const int32_t val) { - this->integerBitmask = val; -} - -void TGetInfoValue::__set_integerFlag(const int32_t val) { - this->integerFlag = val; -} - -void TGetInfoValue::__set_binaryValue(const int32_t val) { - this->binaryValue = val; -} - -void TGetInfoValue::__set_lenValue(const int64_t val) { - this->lenValue = val; -} - const char* TGetInfoValue::ascii_fingerprint = "057FED11279FD7248CFE73EE82ED579E"; const uint8_t TGetInfoValue::binary_fingerprint[16] = {0x05,0x7F,0xED,0x11,0x27,0x9F,0xD7,0x24,0x8C,0xFE,0x73,0xEE,0x82,0xED,0x57,0x9E}; @@ -5372,7 +3932,6 @@ uint32_t TGetInfoValue::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetInfoValue::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetInfoValue"); xfer += oprot->writeFieldBegin("stringValue", ::apache::thrift::protocol::T_STRING, 1); @@ -5401,7 +3960,6 @@ uint32_t TGetInfoValue::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5416,51 +3974,6 @@ void swap(TGetInfoValue &a, TGetInfoValue &b) { swap(a.__isset, b.__isset); } -TGetInfoValue::TGetInfoValue(const TGetInfoValue& other207) { - stringValue = other207.stringValue; - smallIntValue = other207.smallIntValue; - integerBitmask = other207.integerBitmask; - integerFlag = other207.integerFlag; - binaryValue = other207.binaryValue; - lenValue = other207.lenValue; - __isset = other207.__isset; -} -TGetInfoValue& TGetInfoValue::operator=(const TGetInfoValue& other208) { - stringValue = other208.stringValue; - smallIntValue = other208.smallIntValue; - integerBitmask = other208.integerBitmask; - integerFlag = other208.integerFlag; - binaryValue = other208.binaryValue; - lenValue = other208.lenValue; - __isset = other208.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetInfoValue& obj) { - using apache::thrift::to_string; - out << "TGetInfoValue("; - out << "stringValue=" << to_string(obj.stringValue); - out << ", " << "smallIntValue=" << to_string(obj.smallIntValue); - out << ", " << "integerBitmask=" << to_string(obj.integerBitmask); - out << ", " << "integerFlag=" << to_string(obj.integerFlag); - out << ", " << "binaryValue=" << to_string(obj.binaryValue); - out << ", " << "lenValue=" << to_string(obj.lenValue); - out << ")"; - return out; -} - - -TGetInfoReq::~TGetInfoReq() throw() { -} - - -void TGetInfoReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TGetInfoReq::__set_infoType(const TGetInfoType::type val) { - this->infoType = val; -} - const char* TGetInfoReq::ascii_fingerprint = "95675B1A0BADE5F7EDE323809DB679B2"; const uint8_t TGetInfoReq::binary_fingerprint[16] = {0x95,0x67,0x5B,0x1A,0x0B,0xAD,0xE5,0xF7,0xED,0xE3,0x23,0x80,0x9D,0xB6,0x79,0xB2}; @@ -5496,9 +4009,9 @@ uint32_t TGetInfoReq::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast209; - xfer += iprot->readI32(ecast209); - this->infoType = (TGetInfoType::type)ecast209; + int32_t ecast129; + xfer += iprot->readI32(ecast129); + this->infoType = (TGetInfoType::type)ecast129; isset_infoType = true; } else { xfer += iprot->skip(ftype); @@ -5522,7 +4035,6 @@ uint32_t TGetInfoReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetInfoReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetInfoReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5535,7 +4047,6 @@ uint32_t TGetInfoReq::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5545,37 +4056,6 @@ void swap(TGetInfoReq &a, TGetInfoReq &b) { swap(a.infoType, b.infoType); } -TGetInfoReq::TGetInfoReq(const TGetInfoReq& other210) { - sessionHandle = other210.sessionHandle; - infoType = other210.infoType; -} -TGetInfoReq& TGetInfoReq::operator=(const TGetInfoReq& other211) { - sessionHandle = other211.sessionHandle; - infoType = other211.infoType; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetInfoReq& obj) { - using apache::thrift::to_string; - out << "TGetInfoReq("; - out << "sessionHandle=" << to_string(obj.sessionHandle); - out << ", " << "infoType=" << to_string(obj.infoType); - out << ")"; - return out; -} - - -TGetInfoResp::~TGetInfoResp() throw() { -} - - -void TGetInfoResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetInfoResp::__set_infoValue(const TGetInfoValue& val) { - this->infoValue = val; -} - const char* TGetInfoResp::ascii_fingerprint = "72AFA10A82728B51FDE91092012868DE"; const uint8_t TGetInfoResp::binary_fingerprint[16] = {0x72,0xAF,0xA1,0x0A,0x82,0x72,0x8B,0x51,0xFD,0xE9,0x10,0x92,0x01,0x28,0x68,0xDE}; @@ -5635,7 +4115,6 @@ uint32_t TGetInfoResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetInfoResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetInfoResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5648,7 +4127,6 @@ uint32_t TGetInfoResp::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5658,47 +4136,6 @@ void swap(TGetInfoResp &a, TGetInfoResp &b) { swap(a.infoValue, b.infoValue); } -TGetInfoResp::TGetInfoResp(const TGetInfoResp& other212) { - status = other212.status; - infoValue = other212.infoValue; -} -TGetInfoResp& TGetInfoResp::operator=(const TGetInfoResp& other213) { - status = other213.status; - infoValue = other213.infoValue; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetInfoResp& obj) { - using apache::thrift::to_string; - out << "TGetInfoResp("; - out << "status=" << to_string(obj.status); - out << ", " << "infoValue=" << to_string(obj.infoValue); - out << ")"; - return out; -} - - -TExecuteStatementReq::~TExecuteStatementReq() throw() { -} - - -void TExecuteStatementReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TExecuteStatementReq::__set_statement(const std::string& val) { - this->statement = val; -} - -void TExecuteStatementReq::__set_confOverlay(const std::map & val) { - this->confOverlay = val; -__isset.confOverlay = true; -} - -void TExecuteStatementReq::__set_runAsync(const bool val) { - this->runAsync = val; -__isset.runAsync = true; -} - const char* TExecuteStatementReq::ascii_fingerprint = "FED75DB77E66D76EC1939A51FB0D96FA"; const uint8_t TExecuteStatementReq::binary_fingerprint[16] = {0xFE,0xD7,0x5D,0xB7,0x7E,0x66,0xD7,0x6E,0xC1,0x93,0x9A,0x51,0xFB,0x0D,0x96,0xFA}; @@ -5744,17 +4181,17 @@ uint32_t TExecuteStatementReq::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_MAP) { { this->confOverlay.clear(); - uint32_t _size214; - ::apache::thrift::protocol::TType _ktype215; - ::apache::thrift::protocol::TType _vtype216; - xfer += iprot->readMapBegin(_ktype215, _vtype216, _size214); - uint32_t _i218; - for (_i218 = 0; _i218 < _size214; ++_i218) + uint32_t _size130; + ::apache::thrift::protocol::TType _ktype131; + ::apache::thrift::protocol::TType _vtype132; + xfer += iprot->readMapBegin(_ktype131, _vtype132, _size130); + uint32_t _i134; + for (_i134 = 0; _i134 < _size130; ++_i134) { - std::string _key219; - xfer += iprot->readString(_key219); - std::string& _val220 = this->confOverlay[_key219]; - xfer += iprot->readString(_val220); + std::string _key135; + xfer += iprot->readString(_key135); + std::string& _val136 = this->confOverlay[_key135]; + xfer += iprot->readString(_val136); } xfer += iprot->readMapEnd(); } @@ -5789,7 +4226,6 @@ uint32_t TExecuteStatementReq::read(::apache::thrift::protocol::TProtocol* iprot uint32_t TExecuteStatementReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TExecuteStatementReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5804,11 +4240,11 @@ uint32_t TExecuteStatementReq::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("confOverlay", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->confOverlay.size())); - std::map ::const_iterator _iter221; - for (_iter221 = this->confOverlay.begin(); _iter221 != this->confOverlay.end(); ++_iter221) + std::map ::const_iterator _iter137; + for (_iter137 = this->confOverlay.begin(); _iter137 != this->confOverlay.end(); ++_iter137) { - xfer += oprot->writeString(_iter221->first); - xfer += oprot->writeString(_iter221->second); + xfer += oprot->writeString(_iter137->first); + xfer += oprot->writeString(_iter137->second); } xfer += oprot->writeMapEnd(); } @@ -5821,7 +4257,6 @@ uint32_t TExecuteStatementReq::write(::apache::thrift::protocol::TProtocol* opro } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5834,46 +4269,6 @@ void swap(TExecuteStatementReq &a, TExecuteStatementReq &b) { swap(a.__isset, b.__isset); } -TExecuteStatementReq::TExecuteStatementReq(const TExecuteStatementReq& other222) { - sessionHandle = other222.sessionHandle; - statement = other222.statement; - confOverlay = other222.confOverlay; - runAsync = other222.runAsync; - __isset = other222.__isset; -} -TExecuteStatementReq& TExecuteStatementReq::operator=(const TExecuteStatementReq& other223) { - sessionHandle = other223.sessionHandle; - statement = other223.statement; - confOverlay = other223.confOverlay; - runAsync = other223.runAsync; - __isset = other223.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TExecuteStatementReq& obj) { - using apache::thrift::to_string; - out << "TExecuteStatementReq("; - out << "sessionHandle=" << to_string(obj.sessionHandle); - out << ", " << "statement=" << to_string(obj.statement); - out << ", " << "confOverlay="; (obj.__isset.confOverlay ? (out << to_string(obj.confOverlay)) : (out << "")); - out << ", " << "runAsync="; (obj.__isset.runAsync ? (out << to_string(obj.runAsync)) : (out << "")); - out << ")"; - return out; -} - - -TExecuteStatementResp::~TExecuteStatementResp() throw() { -} - - -void TExecuteStatementResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TExecuteStatementResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} - const char* TExecuteStatementResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; const uint8_t TExecuteStatementResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; @@ -5930,7 +4325,6 @@ uint32_t TExecuteStatementResp::read(::apache::thrift::protocol::TProtocol* ipro uint32_t TExecuteStatementResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TExecuteStatementResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -5944,7 +4338,6 @@ uint32_t TExecuteStatementResp::write(::apache::thrift::protocol::TProtocol* opr } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -5955,35 +4348,6 @@ void swap(TExecuteStatementResp &a, TExecuteStatementResp &b) { swap(a.__isset, b.__isset); } -TExecuteStatementResp::TExecuteStatementResp(const TExecuteStatementResp& other224) { - status = other224.status; - operationHandle = other224.operationHandle; - __isset = other224.__isset; -} -TExecuteStatementResp& TExecuteStatementResp::operator=(const TExecuteStatementResp& other225) { - status = other225.status; - operationHandle = other225.operationHandle; - __isset = other225.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TExecuteStatementResp& obj) { - using apache::thrift::to_string; - out << "TExecuteStatementResp("; - out << "status=" << to_string(obj.status); - out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << "")); - out << ")"; - return out; -} - - -TGetTypeInfoReq::~TGetTypeInfoReq() throw() { -} - - -void TGetTypeInfoReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - const char* TGetTypeInfoReq::ascii_fingerprint = "82377107F8BD0526960537D5A112E6EF"; const uint8_t TGetTypeInfoReq::binary_fingerprint[16] = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; @@ -6032,7 +4396,6 @@ uint32_t TGetTypeInfoReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetTypeInfoReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetTypeInfoReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6041,7 +4404,6 @@ uint32_t TGetTypeInfoReq::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6050,35 +4412,6 @@ void swap(TGetTypeInfoReq &a, TGetTypeInfoReq &b) { swap(a.sessionHandle, b.sessionHandle); } -TGetTypeInfoReq::TGetTypeInfoReq(const TGetTypeInfoReq& other226) { - sessionHandle = other226.sessionHandle; -} -TGetTypeInfoReq& TGetTypeInfoReq::operator=(const TGetTypeInfoReq& other227) { - sessionHandle = other227.sessionHandle; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetTypeInfoReq& obj) { - using apache::thrift::to_string; - out << "TGetTypeInfoReq("; - out << "sessionHandle=" << to_string(obj.sessionHandle); - out << ")"; - return out; -} - - -TGetTypeInfoResp::~TGetTypeInfoResp() throw() { -} - - -void TGetTypeInfoResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetTypeInfoResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} - const char* TGetTypeInfoResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; const uint8_t TGetTypeInfoResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; @@ -6135,7 +4468,6 @@ uint32_t TGetTypeInfoResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetTypeInfoResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetTypeInfoResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6149,7 +4481,6 @@ uint32_t TGetTypeInfoResp::write(::apache::thrift::protocol::TProtocol* oprot) c } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6160,35 +4491,6 @@ void swap(TGetTypeInfoResp &a, TGetTypeInfoResp &b) { swap(a.__isset, b.__isset); } -TGetTypeInfoResp::TGetTypeInfoResp(const TGetTypeInfoResp& other228) { - status = other228.status; - operationHandle = other228.operationHandle; - __isset = other228.__isset; -} -TGetTypeInfoResp& TGetTypeInfoResp::operator=(const TGetTypeInfoResp& other229) { - status = other229.status; - operationHandle = other229.operationHandle; - __isset = other229.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetTypeInfoResp& obj) { - using apache::thrift::to_string; - out << "TGetTypeInfoResp("; - out << "status=" << to_string(obj.status); - out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << "")); - out << ")"; - return out; -} - - -TGetCatalogsReq::~TGetCatalogsReq() throw() { -} - - -void TGetCatalogsReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - const char* TGetCatalogsReq::ascii_fingerprint = "82377107F8BD0526960537D5A112E6EF"; const uint8_t TGetCatalogsReq::binary_fingerprint[16] = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; @@ -6237,7 +4539,6 @@ uint32_t TGetCatalogsReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetCatalogsReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetCatalogsReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6246,7 +4547,6 @@ uint32_t TGetCatalogsReq::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6255,35 +4555,6 @@ void swap(TGetCatalogsReq &a, TGetCatalogsReq &b) { swap(a.sessionHandle, b.sessionHandle); } -TGetCatalogsReq::TGetCatalogsReq(const TGetCatalogsReq& other230) { - sessionHandle = other230.sessionHandle; -} -TGetCatalogsReq& TGetCatalogsReq::operator=(const TGetCatalogsReq& other231) { - sessionHandle = other231.sessionHandle; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetCatalogsReq& obj) { - using apache::thrift::to_string; - out << "TGetCatalogsReq("; - out << "sessionHandle=" << to_string(obj.sessionHandle); - out << ")"; - return out; -} - - -TGetCatalogsResp::~TGetCatalogsResp() throw() { -} - - -void TGetCatalogsResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetCatalogsResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} - const char* TGetCatalogsResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; const uint8_t TGetCatalogsResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; @@ -6340,7 +4611,6 @@ uint32_t TGetCatalogsResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetCatalogsResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetCatalogsResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6354,7 +4624,6 @@ uint32_t TGetCatalogsResp::write(::apache::thrift::protocol::TProtocol* oprot) c } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6365,45 +4634,6 @@ void swap(TGetCatalogsResp &a, TGetCatalogsResp &b) { swap(a.__isset, b.__isset); } -TGetCatalogsResp::TGetCatalogsResp(const TGetCatalogsResp& other232) { - status = other232.status; - operationHandle = other232.operationHandle; - __isset = other232.__isset; -} -TGetCatalogsResp& TGetCatalogsResp::operator=(const TGetCatalogsResp& other233) { - status = other233.status; - operationHandle = other233.operationHandle; - __isset = other233.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetCatalogsResp& obj) { - using apache::thrift::to_string; - out << "TGetCatalogsResp("; - out << "status=" << to_string(obj.status); - out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << "")); - out << ")"; - return out; -} - - -TGetSchemasReq::~TGetSchemasReq() throw() { -} - - -void TGetSchemasReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TGetSchemasReq::__set_catalogName(const TIdentifier& val) { - this->catalogName = val; -__isset.catalogName = true; -} - -void TGetSchemasReq::__set_schemaName(const TPatternOrIdentifier& val) { - this->schemaName = val; -__isset.schemaName = true; -} - const char* TGetSchemasReq::ascii_fingerprint = "28A9D12DE8393DD3E73FC1E5AE6E113B"; const uint8_t TGetSchemasReq::binary_fingerprint[16] = {0x28,0xA9,0xD1,0x2D,0xE8,0x39,0x3D,0xD3,0xE7,0x3F,0xC1,0xE5,0xAE,0x6E,0x11,0x3B}; @@ -6468,7 +4698,6 @@ uint32_t TGetSchemasReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetSchemasReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetSchemasReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6487,7 +4716,6 @@ uint32_t TGetSchemasReq::write(::apache::thrift::protocol::TProtocol* oprot) con } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6499,43 +4727,6 @@ void swap(TGetSchemasReq &a, TGetSchemasReq &b) { swap(a.__isset, b.__isset); } -TGetSchemasReq::TGetSchemasReq(const TGetSchemasReq& other234) { - sessionHandle = other234.sessionHandle; - catalogName = other234.catalogName; - schemaName = other234.schemaName; - __isset = other234.__isset; -} -TGetSchemasReq& TGetSchemasReq::operator=(const TGetSchemasReq& other235) { - sessionHandle = other235.sessionHandle; - catalogName = other235.catalogName; - schemaName = other235.schemaName; - __isset = other235.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetSchemasReq& obj) { - using apache::thrift::to_string; - out << "TGetSchemasReq("; - out << "sessionHandle=" << to_string(obj.sessionHandle); - out << ", " << "catalogName="; (obj.__isset.catalogName ? (out << to_string(obj.catalogName)) : (out << "")); - out << ", " << "schemaName="; (obj.__isset.schemaName ? (out << to_string(obj.schemaName)) : (out << "")); - out << ")"; - return out; -} - - -TGetSchemasResp::~TGetSchemasResp() throw() { -} - - -void TGetSchemasResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetSchemasResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} - const char* TGetSchemasResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; const uint8_t TGetSchemasResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; @@ -6592,7 +4783,6 @@ uint32_t TGetSchemasResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetSchemasResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetSchemasResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6606,7 +4796,6 @@ uint32_t TGetSchemasResp::write(::apache::thrift::protocol::TProtocol* oprot) co } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6617,55 +4806,6 @@ void swap(TGetSchemasResp &a, TGetSchemasResp &b) { swap(a.__isset, b.__isset); } -TGetSchemasResp::TGetSchemasResp(const TGetSchemasResp& other236) { - status = other236.status; - operationHandle = other236.operationHandle; - __isset = other236.__isset; -} -TGetSchemasResp& TGetSchemasResp::operator=(const TGetSchemasResp& other237) { - status = other237.status; - operationHandle = other237.operationHandle; - __isset = other237.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetSchemasResp& obj) { - using apache::thrift::to_string; - out << "TGetSchemasResp("; - out << "status=" << to_string(obj.status); - out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << "")); - out << ")"; - return out; -} - - -TGetTablesReq::~TGetTablesReq() throw() { -} - - -void TGetTablesReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TGetTablesReq::__set_catalogName(const TPatternOrIdentifier& val) { - this->catalogName = val; -__isset.catalogName = true; -} - -void TGetTablesReq::__set_schemaName(const TPatternOrIdentifier& val) { - this->schemaName = val; -__isset.schemaName = true; -} - -void TGetTablesReq::__set_tableName(const TPatternOrIdentifier& val) { - this->tableName = val; -__isset.tableName = true; -} - -void TGetTablesReq::__set_tableTypes(const std::vector & val) { - this->tableTypes = val; -__isset.tableTypes = true; -} - const char* TGetTablesReq::ascii_fingerprint = "C80DFEE06850052F5A445BE81ED763DB"; const uint8_t TGetTablesReq::binary_fingerprint[16] = {0xC8,0x0D,0xFE,0xE0,0x68,0x50,0x05,0x2F,0x5A,0x44,0x5B,0xE8,0x1E,0xD7,0x63,0xDB}; @@ -6726,14 +4866,14 @@ uint32_t TGetTablesReq::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tableTypes.clear(); - uint32_t _size238; - ::apache::thrift::protocol::TType _etype241; - xfer += iprot->readListBegin(_etype241, _size238); - this->tableTypes.resize(_size238); - uint32_t _i242; - for (_i242 = 0; _i242 < _size238; ++_i242) + uint32_t _size138; + ::apache::thrift::protocol::TType _etype141; + xfer += iprot->readListBegin(_etype141, _size138); + this->tableTypes.resize(_size138); + uint32_t _i142; + for (_i142 = 0; _i142 < _size138; ++_i142) { - xfer += iprot->readString(this->tableTypes[_i242]); + xfer += iprot->readString(this->tableTypes[_i142]); } xfer += iprot->readListEnd(); } @@ -6758,7 +4898,6 @@ uint32_t TGetTablesReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetTablesReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetTablesReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6784,10 +4923,10 @@ uint32_t TGetTablesReq::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldBegin("tableTypes", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tableTypes.size())); - std::vector ::const_iterator _iter243; - for (_iter243 = this->tableTypes.begin(); _iter243 != this->tableTypes.end(); ++_iter243) + std::vector ::const_iterator _iter143; + for (_iter143 = this->tableTypes.begin(); _iter143 != this->tableTypes.end(); ++_iter143) { - xfer += oprot->writeString((*_iter243)); + xfer += oprot->writeString((*_iter143)); } xfer += oprot->writeListEnd(); } @@ -6795,7 +4934,6 @@ uint32_t TGetTablesReq::write(::apache::thrift::protocol::TProtocol* oprot) cons } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6809,49 +4947,6 @@ void swap(TGetTablesReq &a, TGetTablesReq &b) { swap(a.__isset, b.__isset); } -TGetTablesReq::TGetTablesReq(const TGetTablesReq& other244) { - sessionHandle = other244.sessionHandle; - catalogName = other244.catalogName; - schemaName = other244.schemaName; - tableName = other244.tableName; - tableTypes = other244.tableTypes; - __isset = other244.__isset; -} -TGetTablesReq& TGetTablesReq::operator=(const TGetTablesReq& other245) { - sessionHandle = other245.sessionHandle; - catalogName = other245.catalogName; - schemaName = other245.schemaName; - tableName = other245.tableName; - tableTypes = other245.tableTypes; - __isset = other245.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetTablesReq& obj) { - using apache::thrift::to_string; - out << "TGetTablesReq("; - out << "sessionHandle=" << to_string(obj.sessionHandle); - out << ", " << "catalogName="; (obj.__isset.catalogName ? (out << to_string(obj.catalogName)) : (out << "")); - out << ", " << "schemaName="; (obj.__isset.schemaName ? (out << to_string(obj.schemaName)) : (out << "")); - out << ", " << "tableName="; (obj.__isset.tableName ? (out << to_string(obj.tableName)) : (out << "")); - out << ", " << "tableTypes="; (obj.__isset.tableTypes ? (out << to_string(obj.tableTypes)) : (out << "")); - out << ")"; - return out; -} - - -TGetTablesResp::~TGetTablesResp() throw() { -} - - -void TGetTablesResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetTablesResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} - const char* TGetTablesResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; const uint8_t TGetTablesResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; @@ -6908,7 +5003,6 @@ uint32_t TGetTablesResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetTablesResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetTablesResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -6922,7 +5016,6 @@ uint32_t TGetTablesResp::write(::apache::thrift::protocol::TProtocol* oprot) con } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -6933,35 +5026,6 @@ void swap(TGetTablesResp &a, TGetTablesResp &b) { swap(a.__isset, b.__isset); } -TGetTablesResp::TGetTablesResp(const TGetTablesResp& other246) { - status = other246.status; - operationHandle = other246.operationHandle; - __isset = other246.__isset; -} -TGetTablesResp& TGetTablesResp::operator=(const TGetTablesResp& other247) { - status = other247.status; - operationHandle = other247.operationHandle; - __isset = other247.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetTablesResp& obj) { - using apache::thrift::to_string; - out << "TGetTablesResp("; - out << "status=" << to_string(obj.status); - out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << "")); - out << ")"; - return out; -} - - -TGetTableTypesReq::~TGetTableTypesReq() throw() { -} - - -void TGetTableTypesReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - const char* TGetTableTypesReq::ascii_fingerprint = "82377107F8BD0526960537D5A112E6EF"; const uint8_t TGetTableTypesReq::binary_fingerprint[16] = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; @@ -7010,7 +5074,6 @@ uint32_t TGetTableTypesReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetTableTypesReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetTableTypesReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7019,42 +5082,12 @@ uint32_t TGetTableTypesReq::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); - return xfer; -} - -void swap(TGetTableTypesReq &a, TGetTableTypesReq &b) { - using ::std::swap; - swap(a.sessionHandle, b.sessionHandle); -} - -TGetTableTypesReq::TGetTableTypesReq(const TGetTableTypesReq& other248) { - sessionHandle = other248.sessionHandle; -} -TGetTableTypesReq& TGetTableTypesReq::operator=(const TGetTableTypesReq& other249) { - sessionHandle = other249.sessionHandle; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetTableTypesReq& obj) { - using apache::thrift::to_string; - out << "TGetTableTypesReq("; - out << "sessionHandle=" << to_string(obj.sessionHandle); - out << ")"; - return out; -} - - -TGetTableTypesResp::~TGetTableTypesResp() throw() { -} - - -void TGetTableTypesResp::__set_status(const TStatus& val) { - this->status = val; + return xfer; } -void TGetTableTypesResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; +void swap(TGetTableTypesReq &a, TGetTableTypesReq &b) { + using ::std::swap; + swap(a.sessionHandle, b.sessionHandle); } const char* TGetTableTypesResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; @@ -7113,7 +5146,6 @@ uint32_t TGetTableTypesResp::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TGetTableTypesResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetTableTypesResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7127,7 +5159,6 @@ uint32_t TGetTableTypesResp::write(::apache::thrift::protocol::TProtocol* oprot) } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7138,55 +5169,6 @@ void swap(TGetTableTypesResp &a, TGetTableTypesResp &b) { swap(a.__isset, b.__isset); } -TGetTableTypesResp::TGetTableTypesResp(const TGetTableTypesResp& other250) { - status = other250.status; - operationHandle = other250.operationHandle; - __isset = other250.__isset; -} -TGetTableTypesResp& TGetTableTypesResp::operator=(const TGetTableTypesResp& other251) { - status = other251.status; - operationHandle = other251.operationHandle; - __isset = other251.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetTableTypesResp& obj) { - using apache::thrift::to_string; - out << "TGetTableTypesResp("; - out << "status=" << to_string(obj.status); - out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << "")); - out << ")"; - return out; -} - - -TGetColumnsReq::~TGetColumnsReq() throw() { -} - - -void TGetColumnsReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TGetColumnsReq::__set_catalogName(const TIdentifier& val) { - this->catalogName = val; -__isset.catalogName = true; -} - -void TGetColumnsReq::__set_schemaName(const TPatternOrIdentifier& val) { - this->schemaName = val; -__isset.schemaName = true; -} - -void TGetColumnsReq::__set_tableName(const TPatternOrIdentifier& val) { - this->tableName = val; -__isset.tableName = true; -} - -void TGetColumnsReq::__set_columnName(const TPatternOrIdentifier& val) { - this->columnName = val; -__isset.columnName = true; -} - const char* TGetColumnsReq::ascii_fingerprint = "72D0F28ED33A49B7306DF63EEE956C28"; const uint8_t TGetColumnsReq::binary_fingerprint[16] = {0x72,0xD0,0xF2,0x8E,0xD3,0x3A,0x49,0xB7,0x30,0x6D,0xF6,0x3E,0xEE,0x95,0x6C,0x28}; @@ -7267,7 +5249,6 @@ uint32_t TGetColumnsReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetColumnsReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetColumnsReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7296,7 +5277,6 @@ uint32_t TGetColumnsReq::write(::apache::thrift::protocol::TProtocol* oprot) con } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7310,49 +5290,6 @@ void swap(TGetColumnsReq &a, TGetColumnsReq &b) { swap(a.__isset, b.__isset); } -TGetColumnsReq::TGetColumnsReq(const TGetColumnsReq& other252) { - sessionHandle = other252.sessionHandle; - catalogName = other252.catalogName; - schemaName = other252.schemaName; - tableName = other252.tableName; - columnName = other252.columnName; - __isset = other252.__isset; -} -TGetColumnsReq& TGetColumnsReq::operator=(const TGetColumnsReq& other253) { - sessionHandle = other253.sessionHandle; - catalogName = other253.catalogName; - schemaName = other253.schemaName; - tableName = other253.tableName; - columnName = other253.columnName; - __isset = other253.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetColumnsReq& obj) { - using apache::thrift::to_string; - out << "TGetColumnsReq("; - out << "sessionHandle=" << to_string(obj.sessionHandle); - out << ", " << "catalogName="; (obj.__isset.catalogName ? (out << to_string(obj.catalogName)) : (out << "")); - out << ", " << "schemaName="; (obj.__isset.schemaName ? (out << to_string(obj.schemaName)) : (out << "")); - out << ", " << "tableName="; (obj.__isset.tableName ? (out << to_string(obj.tableName)) : (out << "")); - out << ", " << "columnName="; (obj.__isset.columnName ? (out << to_string(obj.columnName)) : (out << "")); - out << ")"; - return out; -} - - -TGetColumnsResp::~TGetColumnsResp() throw() { -} - - -void TGetColumnsResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetColumnsResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} - const char* TGetColumnsResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; const uint8_t TGetColumnsResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; @@ -7409,7 +5346,6 @@ uint32_t TGetColumnsResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetColumnsResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetColumnsResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7423,7 +5359,6 @@ uint32_t TGetColumnsResp::write(::apache::thrift::protocol::TProtocol* oprot) co } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7434,49 +5369,6 @@ void swap(TGetColumnsResp &a, TGetColumnsResp &b) { swap(a.__isset, b.__isset); } -TGetColumnsResp::TGetColumnsResp(const TGetColumnsResp& other254) { - status = other254.status; - operationHandle = other254.operationHandle; - __isset = other254.__isset; -} -TGetColumnsResp& TGetColumnsResp::operator=(const TGetColumnsResp& other255) { - status = other255.status; - operationHandle = other255.operationHandle; - __isset = other255.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetColumnsResp& obj) { - using apache::thrift::to_string; - out << "TGetColumnsResp("; - out << "status=" << to_string(obj.status); - out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << "")); - out << ")"; - return out; -} - - -TGetFunctionsReq::~TGetFunctionsReq() throw() { -} - - -void TGetFunctionsReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TGetFunctionsReq::__set_catalogName(const TIdentifier& val) { - this->catalogName = val; -__isset.catalogName = true; -} - -void TGetFunctionsReq::__set_schemaName(const TPatternOrIdentifier& val) { - this->schemaName = val; -__isset.schemaName = true; -} - -void TGetFunctionsReq::__set_functionName(const TPatternOrIdentifier& val) { - this->functionName = val; -} - const char* TGetFunctionsReq::ascii_fingerprint = "0887E0916ADE4521BF6017B534493138"; const uint8_t TGetFunctionsReq::binary_fingerprint[16] = {0x08,0x87,0xE0,0x91,0x6A,0xDE,0x45,0x21,0xBF,0x60,0x17,0xB5,0x34,0x49,0x31,0x38}; @@ -7552,7 +5444,6 @@ uint32_t TGetFunctionsReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetFunctionsReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetFunctionsReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7575,7 +5466,6 @@ uint32_t TGetFunctionsReq::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7588,46 +5478,6 @@ void swap(TGetFunctionsReq &a, TGetFunctionsReq &b) { swap(a.__isset, b.__isset); } -TGetFunctionsReq::TGetFunctionsReq(const TGetFunctionsReq& other256) { - sessionHandle = other256.sessionHandle; - catalogName = other256.catalogName; - schemaName = other256.schemaName; - functionName = other256.functionName; - __isset = other256.__isset; -} -TGetFunctionsReq& TGetFunctionsReq::operator=(const TGetFunctionsReq& other257) { - sessionHandle = other257.sessionHandle; - catalogName = other257.catalogName; - schemaName = other257.schemaName; - functionName = other257.functionName; - __isset = other257.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetFunctionsReq& obj) { - using apache::thrift::to_string; - out << "TGetFunctionsReq("; - out << "sessionHandle=" << to_string(obj.sessionHandle); - out << ", " << "catalogName="; (obj.__isset.catalogName ? (out << to_string(obj.catalogName)) : (out << "")); - out << ", " << "schemaName="; (obj.__isset.schemaName ? (out << to_string(obj.schemaName)) : (out << "")); - out << ", " << "functionName=" << to_string(obj.functionName); - out << ")"; - return out; -} - - -TGetFunctionsResp::~TGetFunctionsResp() throw() { -} - - -void TGetFunctionsResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetFunctionsResp::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -__isset.operationHandle = true; -} - const char* TGetFunctionsResp::ascii_fingerprint = "02A075A0FF88D3A172916D8F23C7B286"; const uint8_t TGetFunctionsResp::binary_fingerprint[16] = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; @@ -7684,7 +5534,6 @@ uint32_t TGetFunctionsResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TGetFunctionsResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetFunctionsResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7698,7 +5547,6 @@ uint32_t TGetFunctionsResp::write(::apache::thrift::protocol::TProtocol* oprot) } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7709,35 +5557,6 @@ void swap(TGetFunctionsResp &a, TGetFunctionsResp &b) { swap(a.__isset, b.__isset); } -TGetFunctionsResp::TGetFunctionsResp(const TGetFunctionsResp& other258) { - status = other258.status; - operationHandle = other258.operationHandle; - __isset = other258.__isset; -} -TGetFunctionsResp& TGetFunctionsResp::operator=(const TGetFunctionsResp& other259) { - status = other259.status; - operationHandle = other259.operationHandle; - __isset = other259.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetFunctionsResp& obj) { - using apache::thrift::to_string; - out << "TGetFunctionsResp("; - out << "status=" << to_string(obj.status); - out << ", " << "operationHandle="; (obj.__isset.operationHandle ? (out << to_string(obj.operationHandle)) : (out << "")); - out << ")"; - return out; -} - - -TGetOperationStatusReq::~TGetOperationStatusReq() throw() { -} - - -void TGetOperationStatusReq::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -} - const char* TGetOperationStatusReq::ascii_fingerprint = "414FA38522AE6B9CEC1438B56CA1DE5A"; const uint8_t TGetOperationStatusReq::binary_fingerprint[16] = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; @@ -7786,7 +5605,6 @@ uint32_t TGetOperationStatusReq::read(::apache::thrift::protocol::TProtocol* ipr uint32_t TGetOperationStatusReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetOperationStatusReq"); xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7795,7 +5613,6 @@ uint32_t TGetOperationStatusReq::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7804,50 +5621,6 @@ void swap(TGetOperationStatusReq &a, TGetOperationStatusReq &b) { swap(a.operationHandle, b.operationHandle); } -TGetOperationStatusReq::TGetOperationStatusReq(const TGetOperationStatusReq& other260) { - operationHandle = other260.operationHandle; -} -TGetOperationStatusReq& TGetOperationStatusReq::operator=(const TGetOperationStatusReq& other261) { - operationHandle = other261.operationHandle; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetOperationStatusReq& obj) { - using apache::thrift::to_string; - out << "TGetOperationStatusReq("; - out << "operationHandle=" << to_string(obj.operationHandle); - out << ")"; - return out; -} - - -TGetOperationStatusResp::~TGetOperationStatusResp() throw() { -} - - -void TGetOperationStatusResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetOperationStatusResp::__set_operationState(const TOperationState::type val) { - this->operationState = val; -__isset.operationState = true; -} - -void TGetOperationStatusResp::__set_sqlState(const std::string& val) { - this->sqlState = val; -__isset.sqlState = true; -} - -void TGetOperationStatusResp::__set_errorCode(const int32_t val) { - this->errorCode = val; -__isset.errorCode = true; -} - -void TGetOperationStatusResp::__set_errorMessage(const std::string& val) { - this->errorMessage = val; -__isset.errorMessage = true; -} - const char* TGetOperationStatusResp::ascii_fingerprint = "BD124DB87A5A2E7D11945BD1B17F013D"; const uint8_t TGetOperationStatusResp::binary_fingerprint[16] = {0xBD,0x12,0x4D,0xB8,0x7A,0x5A,0x2E,0x7D,0x11,0x94,0x5B,0xD1,0xB1,0x7F,0x01,0x3D}; @@ -7882,9 +5655,9 @@ uint32_t TGetOperationStatusResp::read(::apache::thrift::protocol::TProtocol* ip break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast262; - xfer += iprot->readI32(ecast262); - this->operationState = (TOperationState::type)ecast262; + int32_t ecast144; + xfer += iprot->readI32(ecast144); + this->operationState = (TOperationState::type)ecast144; this->__isset.operationState = true; } else { xfer += iprot->skip(ftype); @@ -7930,7 +5703,6 @@ uint32_t TGetOperationStatusResp::read(::apache::thrift::protocol::TProtocol* ip uint32_t TGetOperationStatusResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetOperationStatusResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -7959,7 +5731,6 @@ uint32_t TGetOperationStatusResp::write(::apache::thrift::protocol::TProtocol* o } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -7973,44 +5744,6 @@ void swap(TGetOperationStatusResp &a, TGetOperationStatusResp &b) { swap(a.__isset, b.__isset); } -TGetOperationStatusResp::TGetOperationStatusResp(const TGetOperationStatusResp& other263) { - status = other263.status; - operationState = other263.operationState; - sqlState = other263.sqlState; - errorCode = other263.errorCode; - errorMessage = other263.errorMessage; - __isset = other263.__isset; -} -TGetOperationStatusResp& TGetOperationStatusResp::operator=(const TGetOperationStatusResp& other264) { - status = other264.status; - operationState = other264.operationState; - sqlState = other264.sqlState; - errorCode = other264.errorCode; - errorMessage = other264.errorMessage; - __isset = other264.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetOperationStatusResp& obj) { - using apache::thrift::to_string; - out << "TGetOperationStatusResp("; - out << "status=" << to_string(obj.status); - out << ", " << "operationState="; (obj.__isset.operationState ? (out << to_string(obj.operationState)) : (out << "")); - out << ", " << "sqlState="; (obj.__isset.sqlState ? (out << to_string(obj.sqlState)) : (out << "")); - out << ", " << "errorCode="; (obj.__isset.errorCode ? (out << to_string(obj.errorCode)) : (out << "")); - out << ", " << "errorMessage="; (obj.__isset.errorMessage ? (out << to_string(obj.errorMessage)) : (out << "")); - out << ")"; - return out; -} - - -TCancelOperationReq::~TCancelOperationReq() throw() { -} - - -void TCancelOperationReq::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -} - const char* TCancelOperationReq::ascii_fingerprint = "414FA38522AE6B9CEC1438B56CA1DE5A"; const uint8_t TCancelOperationReq::binary_fingerprint[16] = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; @@ -8059,7 +5792,6 @@ uint32_t TCancelOperationReq::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TCancelOperationReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCancelOperationReq"); xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8068,7 +5800,6 @@ uint32_t TCancelOperationReq::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8077,30 +5808,6 @@ void swap(TCancelOperationReq &a, TCancelOperationReq &b) { swap(a.operationHandle, b.operationHandle); } -TCancelOperationReq::TCancelOperationReq(const TCancelOperationReq& other265) { - operationHandle = other265.operationHandle; -} -TCancelOperationReq& TCancelOperationReq::operator=(const TCancelOperationReq& other266) { - operationHandle = other266.operationHandle; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TCancelOperationReq& obj) { - using apache::thrift::to_string; - out << "TCancelOperationReq("; - out << "operationHandle=" << to_string(obj.operationHandle); - out << ")"; - return out; -} - - -TCancelOperationResp::~TCancelOperationResp() throw() { -} - - -void TCancelOperationResp::__set_status(const TStatus& val) { - this->status = val; -} - const char* TCancelOperationResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2"; const uint8_t TCancelOperationResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; @@ -8149,7 +5856,6 @@ uint32_t TCancelOperationResp::read(::apache::thrift::protocol::TProtocol* iprot uint32_t TCancelOperationResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCancelOperationResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8158,7 +5864,6 @@ uint32_t TCancelOperationResp::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8167,30 +5872,6 @@ void swap(TCancelOperationResp &a, TCancelOperationResp &b) { swap(a.status, b.status); } -TCancelOperationResp::TCancelOperationResp(const TCancelOperationResp& other267) { - status = other267.status; -} -TCancelOperationResp& TCancelOperationResp::operator=(const TCancelOperationResp& other268) { - status = other268.status; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TCancelOperationResp& obj) { - using apache::thrift::to_string; - out << "TCancelOperationResp("; - out << "status=" << to_string(obj.status); - out << ")"; - return out; -} - - -TCloseOperationReq::~TCloseOperationReq() throw() { -} - - -void TCloseOperationReq::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -} - const char* TCloseOperationReq::ascii_fingerprint = "414FA38522AE6B9CEC1438B56CA1DE5A"; const uint8_t TCloseOperationReq::binary_fingerprint[16] = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; @@ -8239,7 +5920,6 @@ uint32_t TCloseOperationReq::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TCloseOperationReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCloseOperationReq"); xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8248,7 +5928,6 @@ uint32_t TCloseOperationReq::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8257,30 +5936,6 @@ void swap(TCloseOperationReq &a, TCloseOperationReq &b) { swap(a.operationHandle, b.operationHandle); } -TCloseOperationReq::TCloseOperationReq(const TCloseOperationReq& other269) { - operationHandle = other269.operationHandle; -} -TCloseOperationReq& TCloseOperationReq::operator=(const TCloseOperationReq& other270) { - operationHandle = other270.operationHandle; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TCloseOperationReq& obj) { - using apache::thrift::to_string; - out << "TCloseOperationReq("; - out << "operationHandle=" << to_string(obj.operationHandle); - out << ")"; - return out; -} - - -TCloseOperationResp::~TCloseOperationResp() throw() { -} - - -void TCloseOperationResp::__set_status(const TStatus& val) { - this->status = val; -} - const char* TCloseOperationResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2"; const uint8_t TCloseOperationResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; @@ -8329,7 +5984,6 @@ uint32_t TCloseOperationResp::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t TCloseOperationResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCloseOperationResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8338,7 +5992,6 @@ uint32_t TCloseOperationResp::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8347,30 +6000,6 @@ void swap(TCloseOperationResp &a, TCloseOperationResp &b) { swap(a.status, b.status); } -TCloseOperationResp::TCloseOperationResp(const TCloseOperationResp& other271) { - status = other271.status; -} -TCloseOperationResp& TCloseOperationResp::operator=(const TCloseOperationResp& other272) { - status = other272.status; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TCloseOperationResp& obj) { - using apache::thrift::to_string; - out << "TCloseOperationResp("; - out << "status=" << to_string(obj.status); - out << ")"; - return out; -} - - -TGetResultSetMetadataReq::~TGetResultSetMetadataReq() throw() { -} - - -void TGetResultSetMetadataReq::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -} - const char* TGetResultSetMetadataReq::ascii_fingerprint = "414FA38522AE6B9CEC1438B56CA1DE5A"; const uint8_t TGetResultSetMetadataReq::binary_fingerprint[16] = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; @@ -8419,7 +6048,6 @@ uint32_t TGetResultSetMetadataReq::read(::apache::thrift::protocol::TProtocol* i uint32_t TGetResultSetMetadataReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetResultSetMetadataReq"); xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8428,7 +6056,6 @@ uint32_t TGetResultSetMetadataReq::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8437,35 +6064,6 @@ void swap(TGetResultSetMetadataReq &a, TGetResultSetMetadataReq &b) { swap(a.operationHandle, b.operationHandle); } -TGetResultSetMetadataReq::TGetResultSetMetadataReq(const TGetResultSetMetadataReq& other273) { - operationHandle = other273.operationHandle; -} -TGetResultSetMetadataReq& TGetResultSetMetadataReq::operator=(const TGetResultSetMetadataReq& other274) { - operationHandle = other274.operationHandle; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetResultSetMetadataReq& obj) { - using apache::thrift::to_string; - out << "TGetResultSetMetadataReq("; - out << "operationHandle=" << to_string(obj.operationHandle); - out << ")"; - return out; -} - - -TGetResultSetMetadataResp::~TGetResultSetMetadataResp() throw() { -} - - -void TGetResultSetMetadataResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetResultSetMetadataResp::__set_schema(const TTableSchema& val) { - this->schema = val; -__isset.schema = true; -} - const char* TGetResultSetMetadataResp::ascii_fingerprint = "42CD49B7F49CC1B6D4E6F5FA2D7BE812"; const uint8_t TGetResultSetMetadataResp::binary_fingerprint[16] = {0x42,0xCD,0x49,0xB7,0xF4,0x9C,0xC1,0xB6,0xD4,0xE6,0xF5,0xFA,0x2D,0x7B,0xE8,0x12}; @@ -8522,7 +6120,6 @@ uint32_t TGetResultSetMetadataResp::read(::apache::thrift::protocol::TProtocol* uint32_t TGetResultSetMetadataResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetResultSetMetadataResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8536,7 +6133,6 @@ uint32_t TGetResultSetMetadataResp::write(::apache::thrift::protocol::TProtocol* } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8547,48 +6143,6 @@ void swap(TGetResultSetMetadataResp &a, TGetResultSetMetadataResp &b) { swap(a.__isset, b.__isset); } -TGetResultSetMetadataResp::TGetResultSetMetadataResp(const TGetResultSetMetadataResp& other275) { - status = other275.status; - schema = other275.schema; - __isset = other275.__isset; -} -TGetResultSetMetadataResp& TGetResultSetMetadataResp::operator=(const TGetResultSetMetadataResp& other276) { - status = other276.status; - schema = other276.schema; - __isset = other276.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetResultSetMetadataResp& obj) { - using apache::thrift::to_string; - out << "TGetResultSetMetadataResp("; - out << "status=" << to_string(obj.status); - out << ", " << "schema="; (obj.__isset.schema ? (out << to_string(obj.schema)) : (out << "")); - out << ")"; - return out; -} - - -TFetchResultsReq::~TFetchResultsReq() throw() { -} - - -void TFetchResultsReq::__set_operationHandle(const TOperationHandle& val) { - this->operationHandle = val; -} - -void TFetchResultsReq::__set_orientation(const TFetchOrientation::type val) { - this->orientation = val; -} - -void TFetchResultsReq::__set_maxRows(const int64_t val) { - this->maxRows = val; -} - -void TFetchResultsReq::__set_fetchType(const int16_t val) { - this->fetchType = val; -__isset.fetchType = true; -} - const char* TFetchResultsReq::ascii_fingerprint = "B4CB1E4F8F8F4D50183DD372AD11753A"; const uint8_t TFetchResultsReq::binary_fingerprint[16] = {0xB4,0xCB,0x1E,0x4F,0x8F,0x8F,0x4D,0x50,0x18,0x3D,0xD3,0x72,0xAD,0x11,0x75,0x3A}; @@ -8625,9 +6179,9 @@ uint32_t TFetchResultsReq::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast277; - xfer += iprot->readI32(ecast277); - this->orientation = (TFetchOrientation::type)ecast277; + int32_t ecast145; + xfer += iprot->readI32(ecast145); + this->orientation = (TFetchOrientation::type)ecast145; isset_orientation = true; } else { xfer += iprot->skip(ftype); @@ -8669,7 +6223,6 @@ uint32_t TFetchResultsReq::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TFetchResultsReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TFetchResultsReq"); xfer += oprot->writeFieldBegin("operationHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8691,7 +6244,6 @@ uint32_t TFetchResultsReq::write(::apache::thrift::protocol::TProtocol* oprot) c } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8704,51 +6256,6 @@ void swap(TFetchResultsReq &a, TFetchResultsReq &b) { swap(a.__isset, b.__isset); } -TFetchResultsReq::TFetchResultsReq(const TFetchResultsReq& other278) { - operationHandle = other278.operationHandle; - orientation = other278.orientation; - maxRows = other278.maxRows; - fetchType = other278.fetchType; - __isset = other278.__isset; -} -TFetchResultsReq& TFetchResultsReq::operator=(const TFetchResultsReq& other279) { - operationHandle = other279.operationHandle; - orientation = other279.orientation; - maxRows = other279.maxRows; - fetchType = other279.fetchType; - __isset = other279.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TFetchResultsReq& obj) { - using apache::thrift::to_string; - out << "TFetchResultsReq("; - out << "operationHandle=" << to_string(obj.operationHandle); - out << ", " << "orientation=" << to_string(obj.orientation); - out << ", " << "maxRows=" << to_string(obj.maxRows); - out << ", " << "fetchType="; (obj.__isset.fetchType ? (out << to_string(obj.fetchType)) : (out << "")); - out << ")"; - return out; -} - - -TFetchResultsResp::~TFetchResultsResp() throw() { -} - - -void TFetchResultsResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TFetchResultsResp::__set_hasMoreRows(const bool val) { - this->hasMoreRows = val; -__isset.hasMoreRows = true; -} - -void TFetchResultsResp::__set_results(const TRowSet& val) { - this->results = val; -__isset.results = true; -} - const char* TFetchResultsResp::ascii_fingerprint = "FC43BC2D6F3B76D4DB0F34226A745C8E"; const uint8_t TFetchResultsResp::binary_fingerprint[16] = {0xFC,0x43,0xBC,0x2D,0x6F,0x3B,0x76,0xD4,0xDB,0x0F,0x34,0x22,0x6A,0x74,0x5C,0x8E}; @@ -8813,7 +6320,6 @@ uint32_t TFetchResultsResp::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t TFetchResultsResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TFetchResultsResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8832,7 +6338,6 @@ uint32_t TFetchResultsResp::write(::apache::thrift::protocol::TProtocol* oprot) } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8844,46 +6349,6 @@ void swap(TFetchResultsResp &a, TFetchResultsResp &b) { swap(a.__isset, b.__isset); } -TFetchResultsResp::TFetchResultsResp(const TFetchResultsResp& other280) { - status = other280.status; - hasMoreRows = other280.hasMoreRows; - results = other280.results; - __isset = other280.__isset; -} -TFetchResultsResp& TFetchResultsResp::operator=(const TFetchResultsResp& other281) { - status = other281.status; - hasMoreRows = other281.hasMoreRows; - results = other281.results; - __isset = other281.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TFetchResultsResp& obj) { - using apache::thrift::to_string; - out << "TFetchResultsResp("; - out << "status=" << to_string(obj.status); - out << ", " << "hasMoreRows="; (obj.__isset.hasMoreRows ? (out << to_string(obj.hasMoreRows)) : (out << "")); - out << ", " << "results="; (obj.__isset.results ? (out << to_string(obj.results)) : (out << "")); - out << ")"; - return out; -} - - -TGetDelegationTokenReq::~TGetDelegationTokenReq() throw() { -} - - -void TGetDelegationTokenReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TGetDelegationTokenReq::__set_owner(const std::string& val) { - this->owner = val; -} - -void TGetDelegationTokenReq::__set_renewer(const std::string& val) { - this->renewer = val; -} - const char* TGetDelegationTokenReq::ascii_fingerprint = "07EA0311716A27924914E4354ED22D6C"; const uint8_t TGetDelegationTokenReq::binary_fingerprint[16] = {0x07,0xEA,0x03,0x11,0x71,0x6A,0x27,0x92,0x49,0x14,0xE4,0x35,0x4E,0xD2,0x2D,0x6C}; @@ -8954,7 +6419,6 @@ uint32_t TGetDelegationTokenReq::read(::apache::thrift::protocol::TProtocol* ipr uint32_t TGetDelegationTokenReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetDelegationTokenReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -8971,7 +6435,6 @@ uint32_t TGetDelegationTokenReq::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -8982,41 +6445,6 @@ void swap(TGetDelegationTokenReq &a, TGetDelegationTokenReq &b) { swap(a.renewer, b.renewer); } -TGetDelegationTokenReq::TGetDelegationTokenReq(const TGetDelegationTokenReq& other282) { - sessionHandle = other282.sessionHandle; - owner = other282.owner; - renewer = other282.renewer; -} -TGetDelegationTokenReq& TGetDelegationTokenReq::operator=(const TGetDelegationTokenReq& other283) { - sessionHandle = other283.sessionHandle; - owner = other283.owner; - renewer = other283.renewer; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetDelegationTokenReq& obj) { - using apache::thrift::to_string; - out << "TGetDelegationTokenReq("; - out << "sessionHandle=" << to_string(obj.sessionHandle); - out << ", " << "owner=" << to_string(obj.owner); - out << ", " << "renewer=" << to_string(obj.renewer); - out << ")"; - return out; -} - - -TGetDelegationTokenResp::~TGetDelegationTokenResp() throw() { -} - - -void TGetDelegationTokenResp::__set_status(const TStatus& val) { - this->status = val; -} - -void TGetDelegationTokenResp::__set_delegationToken(const std::string& val) { - this->delegationToken = val; -__isset.delegationToken = true; -} - const char* TGetDelegationTokenResp::ascii_fingerprint = "C0E132DC412CEA08D771EAC38CEA1DA6"; const uint8_t TGetDelegationTokenResp::binary_fingerprint[16] = {0xC0,0xE1,0x32,0xDC,0x41,0x2C,0xEA,0x08,0xD7,0x71,0xEA,0xC3,0x8C,0xEA,0x1D,0xA6}; @@ -9073,7 +6501,6 @@ uint32_t TGetDelegationTokenResp::read(::apache::thrift::protocol::TProtocol* ip uint32_t TGetDelegationTokenResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TGetDelegationTokenResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -9087,7 +6514,6 @@ uint32_t TGetDelegationTokenResp::write(::apache::thrift::protocol::TProtocol* o } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -9098,39 +6524,6 @@ void swap(TGetDelegationTokenResp &a, TGetDelegationTokenResp &b) { swap(a.__isset, b.__isset); } -TGetDelegationTokenResp::TGetDelegationTokenResp(const TGetDelegationTokenResp& other284) { - status = other284.status; - delegationToken = other284.delegationToken; - __isset = other284.__isset; -} -TGetDelegationTokenResp& TGetDelegationTokenResp::operator=(const TGetDelegationTokenResp& other285) { - status = other285.status; - delegationToken = other285.delegationToken; - __isset = other285.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TGetDelegationTokenResp& obj) { - using apache::thrift::to_string; - out << "TGetDelegationTokenResp("; - out << "status=" << to_string(obj.status); - out << ", " << "delegationToken="; (obj.__isset.delegationToken ? (out << to_string(obj.delegationToken)) : (out << "")); - out << ")"; - return out; -} - - -TCancelDelegationTokenReq::~TCancelDelegationTokenReq() throw() { -} - - -void TCancelDelegationTokenReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TCancelDelegationTokenReq::__set_delegationToken(const std::string& val) { - this->delegationToken = val; -} - const char* TCancelDelegationTokenReq::ascii_fingerprint = "1A3D66269336B7EC66998BFE1BECDE75"; const uint8_t TCancelDelegationTokenReq::binary_fingerprint[16] = {0x1A,0x3D,0x66,0x26,0x93,0x36,0xB7,0xEC,0x66,0x99,0x8B,0xFE,0x1B,0xEC,0xDE,0x75}; @@ -9190,7 +6583,6 @@ uint32_t TCancelDelegationTokenReq::read(::apache::thrift::protocol::TProtocol* uint32_t TCancelDelegationTokenReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCancelDelegationTokenReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -9203,7 +6595,6 @@ uint32_t TCancelDelegationTokenReq::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -9213,33 +6604,6 @@ void swap(TCancelDelegationTokenReq &a, TCancelDelegationTokenReq &b) { swap(a.delegationToken, b.delegationToken); } -TCancelDelegationTokenReq::TCancelDelegationTokenReq(const TCancelDelegationTokenReq& other286) { - sessionHandle = other286.sessionHandle; - delegationToken = other286.delegationToken; -} -TCancelDelegationTokenReq& TCancelDelegationTokenReq::operator=(const TCancelDelegationTokenReq& other287) { - sessionHandle = other287.sessionHandle; - delegationToken = other287.delegationToken; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TCancelDelegationTokenReq& obj) { - using apache::thrift::to_string; - out << "TCancelDelegationTokenReq("; - out << "sessionHandle=" << to_string(obj.sessionHandle); - out << ", " << "delegationToken=" << to_string(obj.delegationToken); - out << ")"; - return out; -} - - -TCancelDelegationTokenResp::~TCancelDelegationTokenResp() throw() { -} - - -void TCancelDelegationTokenResp::__set_status(const TStatus& val) { - this->status = val; -} - const char* TCancelDelegationTokenResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2"; const uint8_t TCancelDelegationTokenResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; @@ -9288,7 +6652,6 @@ uint32_t TCancelDelegationTokenResp::read(::apache::thrift::protocol::TProtocol* uint32_t TCancelDelegationTokenResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TCancelDelegationTokenResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -9297,7 +6660,6 @@ uint32_t TCancelDelegationTokenResp::write(::apache::thrift::protocol::TProtocol xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -9306,34 +6668,6 @@ void swap(TCancelDelegationTokenResp &a, TCancelDelegationTokenResp &b) { swap(a.status, b.status); } -TCancelDelegationTokenResp::TCancelDelegationTokenResp(const TCancelDelegationTokenResp& other288) { - status = other288.status; -} -TCancelDelegationTokenResp& TCancelDelegationTokenResp::operator=(const TCancelDelegationTokenResp& other289) { - status = other289.status; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TCancelDelegationTokenResp& obj) { - using apache::thrift::to_string; - out << "TCancelDelegationTokenResp("; - out << "status=" << to_string(obj.status); - out << ")"; - return out; -} - - -TRenewDelegationTokenReq::~TRenewDelegationTokenReq() throw() { -} - - -void TRenewDelegationTokenReq::__set_sessionHandle(const TSessionHandle& val) { - this->sessionHandle = val; -} - -void TRenewDelegationTokenReq::__set_delegationToken(const std::string& val) { - this->delegationToken = val; -} - const char* TRenewDelegationTokenReq::ascii_fingerprint = "1A3D66269336B7EC66998BFE1BECDE75"; const uint8_t TRenewDelegationTokenReq::binary_fingerprint[16] = {0x1A,0x3D,0x66,0x26,0x93,0x36,0xB7,0xEC,0x66,0x99,0x8B,0xFE,0x1B,0xEC,0xDE,0x75}; @@ -9393,7 +6727,6 @@ uint32_t TRenewDelegationTokenReq::read(::apache::thrift::protocol::TProtocol* i uint32_t TRenewDelegationTokenReq::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TRenewDelegationTokenReq"); xfer += oprot->writeFieldBegin("sessionHandle", ::apache::thrift::protocol::T_STRUCT, 1); @@ -9406,7 +6739,6 @@ uint32_t TRenewDelegationTokenReq::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -9416,33 +6748,6 @@ void swap(TRenewDelegationTokenReq &a, TRenewDelegationTokenReq &b) { swap(a.delegationToken, b.delegationToken); } -TRenewDelegationTokenReq::TRenewDelegationTokenReq(const TRenewDelegationTokenReq& other290) { - sessionHandle = other290.sessionHandle; - delegationToken = other290.delegationToken; -} -TRenewDelegationTokenReq& TRenewDelegationTokenReq::operator=(const TRenewDelegationTokenReq& other291) { - sessionHandle = other291.sessionHandle; - delegationToken = other291.delegationToken; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TRenewDelegationTokenReq& obj) { - using apache::thrift::to_string; - out << "TRenewDelegationTokenReq("; - out << "sessionHandle=" << to_string(obj.sessionHandle); - out << ", " << "delegationToken=" << to_string(obj.delegationToken); - out << ")"; - return out; -} - - -TRenewDelegationTokenResp::~TRenewDelegationTokenResp() throw() { -} - - -void TRenewDelegationTokenResp::__set_status(const TStatus& val) { - this->status = val; -} - const char* TRenewDelegationTokenResp::ascii_fingerprint = "7142E89F09DC7C5F6FA916C7393F46C2"; const uint8_t TRenewDelegationTokenResp::binary_fingerprint[16] = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; @@ -9491,7 +6796,6 @@ uint32_t TRenewDelegationTokenResp::read(::apache::thrift::protocol::TProtocol* uint32_t TRenewDelegationTokenResp::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("TRenewDelegationTokenResp"); xfer += oprot->writeFieldBegin("status", ::apache::thrift::protocol::T_STRUCT, 1); @@ -9500,7 +6804,6 @@ uint32_t TRenewDelegationTokenResp::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -9509,19 +6812,4 @@ void swap(TRenewDelegationTokenResp &a, TRenewDelegationTokenResp &b) { swap(a.status, b.status); } -TRenewDelegationTokenResp::TRenewDelegationTokenResp(const TRenewDelegationTokenResp& other292) { - status = other292.status; -} -TRenewDelegationTokenResp& TRenewDelegationTokenResp::operator=(const TRenewDelegationTokenResp& other293) { - status = other293.status; - return *this; -} -std::ostream& operator<<(std::ostream& out, const TRenewDelegationTokenResp& obj) { - using apache::thrift::to_string; - out << "TRenewDelegationTokenResp("; - out << "status=" << to_string(obj.status); - out << ")"; - return out; -} - }}}}} // namespace diff --git a/service/src/gen/thrift/gen-cpp/TCLIService_types.h b/service/src/gen/thrift/gen-cpp/TCLIService_types.h index 4536b41..7bceabd 100644 --- a/service/src/gen/thrift/gen-cpp/TCLIService_types.h +++ b/service/src/gen/thrift/gen-cpp/TCLIService_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,14 +7,11 @@ #ifndef TCLIService_TYPES_H #define TCLIService_TYPES_H -#include - #include #include #include #include -#include namespace apache { namespace hive { namespace service { namespace cli { namespace thrift { @@ -181,158 +178,10 @@ typedef std::string TPattern; typedef std::string TPatternOrIdentifier; -class TTypeQualifierValue; - -class TTypeQualifiers; - -class TPrimitiveTypeEntry; - -class TArrayTypeEntry; - -class TMapTypeEntry; - -class TStructTypeEntry; - -class TUnionTypeEntry; - -class TUserDefinedTypeEntry; - -class TTypeEntry; - -class TTypeDesc; - -class TColumnDesc; - -class TTableSchema; - -class TBoolValue; - -class TByteValue; - -class TI16Value; - -class TI32Value; - -class TI64Value; - -class TDoubleValue; - -class TStringValue; - -class TColumnValue; - -class TRow; - -class TBoolColumn; - -class TByteColumn; - -class TI16Column; - -class TI32Column; - -class TI64Column; - -class TDoubleColumn; - -class TStringColumn; - -class TBinaryColumn; - -class TColumn; - -class TRowSet; - -class TStatus; - -class THandleIdentifier; - -class TSessionHandle; - -class TOperationHandle; - -class TOpenSessionReq; - -class TOpenSessionResp; - -class TCloseSessionReq; - -class TCloseSessionResp; - -class TGetInfoValue; - -class TGetInfoReq; - -class TGetInfoResp; - -class TExecuteStatementReq; - -class TExecuteStatementResp; - -class TGetTypeInfoReq; - -class TGetTypeInfoResp; - -class TGetCatalogsReq; - -class TGetCatalogsResp; - -class TGetSchemasReq; - -class TGetSchemasResp; - -class TGetTablesReq; - -class TGetTablesResp; - -class TGetTableTypesReq; - -class TGetTableTypesResp; - -class TGetColumnsReq; - -class TGetColumnsResp; - -class TGetFunctionsReq; - -class TGetFunctionsResp; - -class TGetOperationStatusReq; - -class TGetOperationStatusResp; - -class TCancelOperationReq; - -class TCancelOperationResp; - -class TCloseOperationReq; - -class TCloseOperationResp; - -class TGetResultSetMetadataReq; - -class TGetResultSetMetadataResp; - -class TFetchResultsReq; - -class TFetchResultsResp; - -class TGetDelegationTokenReq; - -class TGetDelegationTokenResp; - -class TCancelDelegationTokenReq; - -class TCancelDelegationTokenResp; - -class TRenewDelegationTokenReq; - -class TRenewDelegationTokenResp; - typedef struct _TTypeQualifierValue__isset { _TTypeQualifierValue__isset() : i32Value(false), stringValue(false) {} - bool i32Value :1; - bool stringValue :1; + bool i32Value; + bool stringValue; } _TTypeQualifierValue__isset; class TTypeQualifierValue { @@ -341,20 +190,25 @@ class TTypeQualifierValue { static const char* ascii_fingerprint; // = "A7801670116150C65ACA43E6F679BA79"; static const uint8_t binary_fingerprint[16]; // = {0xA7,0x80,0x16,0x70,0x11,0x61,0x50,0xC6,0x5A,0xCA,0x43,0xE6,0xF6,0x79,0xBA,0x79}; - TTypeQualifierValue(const TTypeQualifierValue&); - TTypeQualifierValue& operator=(const TTypeQualifierValue&); TTypeQualifierValue() : i32Value(0), stringValue() { } - virtual ~TTypeQualifierValue() throw(); + virtual ~TTypeQualifierValue() throw() {} + int32_t i32Value; std::string stringValue; _TTypeQualifierValue__isset __isset; - void __set_i32Value(const int32_t val); + void __set_i32Value(const int32_t val) { + i32Value = val; + __isset.i32Value = true; + } - void __set_stringValue(const std::string& val); + void __set_stringValue(const std::string& val) { + stringValue = val; + __isset.stringValue = true; + } bool operator == (const TTypeQualifierValue & rhs) const { @@ -377,7 +231,6 @@ class TTypeQualifierValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TTypeQualifierValue& obj); }; void swap(TTypeQualifierValue &a, TTypeQualifierValue &b); @@ -389,15 +242,16 @@ class TTypeQualifiers { static const char* ascii_fingerprint; // = "6C72981CFA989214285648FA8C196C47"; static const uint8_t binary_fingerprint[16]; // = {0x6C,0x72,0x98,0x1C,0xFA,0x98,0x92,0x14,0x28,0x56,0x48,0xFA,0x8C,0x19,0x6C,0x47}; - TTypeQualifiers(const TTypeQualifiers&); - TTypeQualifiers& operator=(const TTypeQualifiers&); TTypeQualifiers() { } - virtual ~TTypeQualifiers() throw(); + virtual ~TTypeQualifiers() throw() {} + std::map qualifiers; - void __set_qualifiers(const std::map & val); + void __set_qualifiers(const std::map & val) { + qualifiers = val; + } bool operator == (const TTypeQualifiers & rhs) const { @@ -414,14 +268,13 @@ class TTypeQualifiers { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TTypeQualifiers& obj); }; void swap(TTypeQualifiers &a, TTypeQualifiers &b); typedef struct _TPrimitiveTypeEntry__isset { _TPrimitiveTypeEntry__isset() : typeQualifiers(false) {} - bool typeQualifiers :1; + bool typeQualifiers; } _TPrimitiveTypeEntry__isset; class TPrimitiveTypeEntry { @@ -430,20 +283,24 @@ class TPrimitiveTypeEntry { static const char* ascii_fingerprint; // = "755674F6A5C8EB47868686AE386FBC1C"; static const uint8_t binary_fingerprint[16]; // = {0x75,0x56,0x74,0xF6,0xA5,0xC8,0xEB,0x47,0x86,0x86,0x86,0xAE,0x38,0x6F,0xBC,0x1C}; - TPrimitiveTypeEntry(const TPrimitiveTypeEntry&); - TPrimitiveTypeEntry& operator=(const TPrimitiveTypeEntry&); TPrimitiveTypeEntry() : type((TTypeId::type)0) { } - virtual ~TPrimitiveTypeEntry() throw(); + virtual ~TPrimitiveTypeEntry() throw() {} + TTypeId::type type; TTypeQualifiers typeQualifiers; _TPrimitiveTypeEntry__isset __isset; - void __set_type(const TTypeId::type val); + void __set_type(const TTypeId::type val) { + type = val; + } - void __set_typeQualifiers(const TTypeQualifiers& val); + void __set_typeQualifiers(const TTypeQualifiers& val) { + typeQualifiers = val; + __isset.typeQualifiers = true; + } bool operator == (const TPrimitiveTypeEntry & rhs) const { @@ -464,7 +321,6 @@ class TPrimitiveTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TPrimitiveTypeEntry& obj); }; void swap(TPrimitiveTypeEntry &a, TPrimitiveTypeEntry &b); @@ -476,15 +332,16 @@ class TArrayTypeEntry { static const char* ascii_fingerprint; // = "E86CACEB22240450EDCBEFC3A83970E4"; static const uint8_t binary_fingerprint[16]; // = {0xE8,0x6C,0xAC,0xEB,0x22,0x24,0x04,0x50,0xED,0xCB,0xEF,0xC3,0xA8,0x39,0x70,0xE4}; - TArrayTypeEntry(const TArrayTypeEntry&); - TArrayTypeEntry& operator=(const TArrayTypeEntry&); TArrayTypeEntry() : objectTypePtr(0) { } - virtual ~TArrayTypeEntry() throw(); + virtual ~TArrayTypeEntry() throw() {} + TTypeEntryPtr objectTypePtr; - void __set_objectTypePtr(const TTypeEntryPtr val); + void __set_objectTypePtr(const TTypeEntryPtr val) { + objectTypePtr = val; + } bool operator == (const TArrayTypeEntry & rhs) const { @@ -501,7 +358,6 @@ class TArrayTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TArrayTypeEntry& obj); }; void swap(TArrayTypeEntry &a, TArrayTypeEntry &b); @@ -513,18 +369,21 @@ class TMapTypeEntry { static const char* ascii_fingerprint; // = "989D1F1AE8D148D5E2119FFEC4BBBEE3"; static const uint8_t binary_fingerprint[16]; // = {0x98,0x9D,0x1F,0x1A,0xE8,0xD1,0x48,0xD5,0xE2,0x11,0x9F,0xFE,0xC4,0xBB,0xBE,0xE3}; - TMapTypeEntry(const TMapTypeEntry&); - TMapTypeEntry& operator=(const TMapTypeEntry&); TMapTypeEntry() : keyTypePtr(0), valueTypePtr(0) { } - virtual ~TMapTypeEntry() throw(); + virtual ~TMapTypeEntry() throw() {} + TTypeEntryPtr keyTypePtr; TTypeEntryPtr valueTypePtr; - void __set_keyTypePtr(const TTypeEntryPtr val); + void __set_keyTypePtr(const TTypeEntryPtr val) { + keyTypePtr = val; + } - void __set_valueTypePtr(const TTypeEntryPtr val); + void __set_valueTypePtr(const TTypeEntryPtr val) { + valueTypePtr = val; + } bool operator == (const TMapTypeEntry & rhs) const { @@ -543,7 +402,6 @@ class TMapTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TMapTypeEntry& obj); }; void swap(TMapTypeEntry &a, TMapTypeEntry &b); @@ -555,15 +413,16 @@ class TStructTypeEntry { static const char* ascii_fingerprint; // = "91F548CA159B4AB4291F5741AC161402"; static const uint8_t binary_fingerprint[16]; // = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02}; - TStructTypeEntry(const TStructTypeEntry&); - TStructTypeEntry& operator=(const TStructTypeEntry&); TStructTypeEntry() { } - virtual ~TStructTypeEntry() throw(); + virtual ~TStructTypeEntry() throw() {} + std::map nameToTypePtr; - void __set_nameToTypePtr(const std::map & val); + void __set_nameToTypePtr(const std::map & val) { + nameToTypePtr = val; + } bool operator == (const TStructTypeEntry & rhs) const { @@ -580,7 +439,6 @@ class TStructTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TStructTypeEntry& obj); }; void swap(TStructTypeEntry &a, TStructTypeEntry &b); @@ -592,15 +450,16 @@ class TUnionTypeEntry { static const char* ascii_fingerprint; // = "91F548CA159B4AB4291F5741AC161402"; static const uint8_t binary_fingerprint[16]; // = {0x91,0xF5,0x48,0xCA,0x15,0x9B,0x4A,0xB4,0x29,0x1F,0x57,0x41,0xAC,0x16,0x14,0x02}; - TUnionTypeEntry(const TUnionTypeEntry&); - TUnionTypeEntry& operator=(const TUnionTypeEntry&); TUnionTypeEntry() { } - virtual ~TUnionTypeEntry() throw(); + virtual ~TUnionTypeEntry() throw() {} + std::map nameToTypePtr; - void __set_nameToTypePtr(const std::map & val); + void __set_nameToTypePtr(const std::map & val) { + nameToTypePtr = val; + } bool operator == (const TUnionTypeEntry & rhs) const { @@ -617,7 +476,6 @@ class TUnionTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TUnionTypeEntry& obj); }; void swap(TUnionTypeEntry &a, TUnionTypeEntry &b); @@ -629,15 +487,16 @@ class TUserDefinedTypeEntry { static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - TUserDefinedTypeEntry(const TUserDefinedTypeEntry&); - TUserDefinedTypeEntry& operator=(const TUserDefinedTypeEntry&); TUserDefinedTypeEntry() : typeClassName() { } - virtual ~TUserDefinedTypeEntry() throw(); + virtual ~TUserDefinedTypeEntry() throw() {} + std::string typeClassName; - void __set_typeClassName(const std::string& val); + void __set_typeClassName(const std::string& val) { + typeClassName = val; + } bool operator == (const TUserDefinedTypeEntry & rhs) const { @@ -654,19 +513,18 @@ class TUserDefinedTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TUserDefinedTypeEntry& obj); }; void swap(TUserDefinedTypeEntry &a, TUserDefinedTypeEntry &b); typedef struct _TTypeEntry__isset { _TTypeEntry__isset() : primitiveEntry(false), arrayEntry(false), mapEntry(false), structEntry(false), unionEntry(false), userDefinedTypeEntry(false) {} - bool primitiveEntry :1; - bool arrayEntry :1; - bool mapEntry :1; - bool structEntry :1; - bool unionEntry :1; - bool userDefinedTypeEntry :1; + bool primitiveEntry; + bool arrayEntry; + bool mapEntry; + bool structEntry; + bool unionEntry; + bool userDefinedTypeEntry; } _TTypeEntry__isset; class TTypeEntry { @@ -675,12 +533,11 @@ class TTypeEntry { static const char* ascii_fingerprint; // = "2FE56D9097E325DAA7E933738C6D325F"; static const uint8_t binary_fingerprint[16]; // = {0x2F,0xE5,0x6D,0x90,0x97,0xE3,0x25,0xDA,0xA7,0xE9,0x33,0x73,0x8C,0x6D,0x32,0x5F}; - TTypeEntry(const TTypeEntry&); - TTypeEntry& operator=(const TTypeEntry&); TTypeEntry() { } - virtual ~TTypeEntry() throw(); + virtual ~TTypeEntry() throw() {} + TPrimitiveTypeEntry primitiveEntry; TArrayTypeEntry arrayEntry; TMapTypeEntry mapEntry; @@ -690,17 +547,29 @@ class TTypeEntry { _TTypeEntry__isset __isset; - void __set_primitiveEntry(const TPrimitiveTypeEntry& val); + void __set_primitiveEntry(const TPrimitiveTypeEntry& val) { + primitiveEntry = val; + } - void __set_arrayEntry(const TArrayTypeEntry& val); + void __set_arrayEntry(const TArrayTypeEntry& val) { + arrayEntry = val; + } - void __set_mapEntry(const TMapTypeEntry& val); + void __set_mapEntry(const TMapTypeEntry& val) { + mapEntry = val; + } - void __set_structEntry(const TStructTypeEntry& val); + void __set_structEntry(const TStructTypeEntry& val) { + structEntry = val; + } - void __set_unionEntry(const TUnionTypeEntry& val); + void __set_unionEntry(const TUnionTypeEntry& val) { + unionEntry = val; + } - void __set_userDefinedTypeEntry(const TUserDefinedTypeEntry& val); + void __set_userDefinedTypeEntry(const TUserDefinedTypeEntry& val) { + userDefinedTypeEntry = val; + } bool operator == (const TTypeEntry & rhs) const { @@ -727,7 +596,6 @@ class TTypeEntry { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TTypeEntry& obj); }; void swap(TTypeEntry &a, TTypeEntry &b); @@ -739,15 +607,16 @@ class TTypeDesc { static const char* ascii_fingerprint; // = "90B3C5A0B73419A84E85E0E48C452AA5"; static const uint8_t binary_fingerprint[16]; // = {0x90,0xB3,0xC5,0xA0,0xB7,0x34,0x19,0xA8,0x4E,0x85,0xE0,0xE4,0x8C,0x45,0x2A,0xA5}; - TTypeDesc(const TTypeDesc&); - TTypeDesc& operator=(const TTypeDesc&); TTypeDesc() { } - virtual ~TTypeDesc() throw(); + virtual ~TTypeDesc() throw() {} + std::vector types; - void __set_types(const std::vector & val); + void __set_types(const std::vector & val) { + types = val; + } bool operator == (const TTypeDesc & rhs) const { @@ -764,14 +633,13 @@ class TTypeDesc { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TTypeDesc& obj); }; void swap(TTypeDesc &a, TTypeDesc &b); typedef struct _TColumnDesc__isset { _TColumnDesc__isset() : comment(false) {} - bool comment :1; + bool comment; } _TColumnDesc__isset; class TColumnDesc { @@ -780,12 +648,11 @@ class TColumnDesc { static const char* ascii_fingerprint; // = "EABED9009D5FCABFCA65612069F2A849"; static const uint8_t binary_fingerprint[16]; // = {0xEA,0xBE,0xD9,0x00,0x9D,0x5F,0xCA,0xBF,0xCA,0x65,0x61,0x20,0x69,0xF2,0xA8,0x49}; - TColumnDesc(const TColumnDesc&); - TColumnDesc& operator=(const TColumnDesc&); TColumnDesc() : columnName(), position(0), comment() { } - virtual ~TColumnDesc() throw(); + virtual ~TColumnDesc() throw() {} + std::string columnName; TTypeDesc typeDesc; int32_t position; @@ -793,13 +660,22 @@ class TColumnDesc { _TColumnDesc__isset __isset; - void __set_columnName(const std::string& val); + void __set_columnName(const std::string& val) { + columnName = val; + } - void __set_typeDesc(const TTypeDesc& val); + void __set_typeDesc(const TTypeDesc& val) { + typeDesc = val; + } - void __set_position(const int32_t val); + void __set_position(const int32_t val) { + position = val; + } - void __set_comment(const std::string& val); + void __set_comment(const std::string& val) { + comment = val; + __isset.comment = true; + } bool operator == (const TColumnDesc & rhs) const { @@ -824,7 +700,6 @@ class TColumnDesc { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TColumnDesc& obj); }; void swap(TColumnDesc &a, TColumnDesc &b); @@ -836,15 +711,16 @@ class TTableSchema { static const char* ascii_fingerprint; // = "7A1811E49313E5977107FC667B20E39D"; static const uint8_t binary_fingerprint[16]; // = {0x7A,0x18,0x11,0xE4,0x93,0x13,0xE5,0x97,0x71,0x07,0xFC,0x66,0x7B,0x20,0xE3,0x9D}; - TTableSchema(const TTableSchema&); - TTableSchema& operator=(const TTableSchema&); TTableSchema() { } - virtual ~TTableSchema() throw(); + virtual ~TTableSchema() throw() {} + std::vector columns; - void __set_columns(const std::vector & val); + void __set_columns(const std::vector & val) { + columns = val; + } bool operator == (const TTableSchema & rhs) const { @@ -861,14 +737,13 @@ class TTableSchema { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TTableSchema& obj); }; void swap(TTableSchema &a, TTableSchema &b); typedef struct _TBoolValue__isset { _TBoolValue__isset() : value(false) {} - bool value :1; + bool value; } _TBoolValue__isset; class TBoolValue { @@ -877,17 +752,19 @@ class TBoolValue { static const char* ascii_fingerprint; // = "BF054652DEF86253C2BEE7D947F167DD"; static const uint8_t binary_fingerprint[16]; // = {0xBF,0x05,0x46,0x52,0xDE,0xF8,0x62,0x53,0xC2,0xBE,0xE7,0xD9,0x47,0xF1,0x67,0xDD}; - TBoolValue(const TBoolValue&); - TBoolValue& operator=(const TBoolValue&); TBoolValue() : value(0) { } - virtual ~TBoolValue() throw(); + virtual ~TBoolValue() throw() {} + bool value; _TBoolValue__isset __isset; - void __set_value(const bool val); + void __set_value(const bool val) { + value = val; + __isset.value = true; + } bool operator == (const TBoolValue & rhs) const { @@ -906,14 +783,13 @@ class TBoolValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TBoolValue& obj); }; void swap(TBoolValue &a, TBoolValue &b); typedef struct _TByteValue__isset { _TByteValue__isset() : value(false) {} - bool value :1; + bool value; } _TByteValue__isset; class TByteValue { @@ -922,17 +798,19 @@ class TByteValue { static const char* ascii_fingerprint; // = "9C15298ACB5D04AEA9B52D5DDE6F9208"; static const uint8_t binary_fingerprint[16]; // = {0x9C,0x15,0x29,0x8A,0xCB,0x5D,0x04,0xAE,0xA9,0xB5,0x2D,0x5D,0xDE,0x6F,0x92,0x08}; - TByteValue(const TByteValue&); - TByteValue& operator=(const TByteValue&); TByteValue() : value(0) { } - virtual ~TByteValue() throw(); + virtual ~TByteValue() throw() {} + int8_t value; _TByteValue__isset __isset; - void __set_value(const int8_t val); + void __set_value(const int8_t val) { + value = val; + __isset.value = true; + } bool operator == (const TByteValue & rhs) const { @@ -951,14 +829,13 @@ class TByteValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TByteValue& obj); }; void swap(TByteValue &a, TByteValue &b); typedef struct _TI16Value__isset { _TI16Value__isset() : value(false) {} - bool value :1; + bool value; } _TI16Value__isset; class TI16Value { @@ -967,17 +844,19 @@ class TI16Value { static const char* ascii_fingerprint; // = "5DAC9C51C7E1106BF936FC71860BE9D5"; static const uint8_t binary_fingerprint[16]; // = {0x5D,0xAC,0x9C,0x51,0xC7,0xE1,0x10,0x6B,0xF9,0x36,0xFC,0x71,0x86,0x0B,0xE9,0xD5}; - TI16Value(const TI16Value&); - TI16Value& operator=(const TI16Value&); TI16Value() : value(0) { } - virtual ~TI16Value() throw(); + virtual ~TI16Value() throw() {} + int16_t value; _TI16Value__isset __isset; - void __set_value(const int16_t val); + void __set_value(const int16_t val) { + value = val; + __isset.value = true; + } bool operator == (const TI16Value & rhs) const { @@ -996,14 +875,13 @@ class TI16Value { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TI16Value& obj); }; void swap(TI16Value &a, TI16Value &b); typedef struct _TI32Value__isset { _TI32Value__isset() : value(false) {} - bool value :1; + bool value; } _TI32Value__isset; class TI32Value { @@ -1012,17 +890,19 @@ class TI32Value { static const char* ascii_fingerprint; // = "E7A96B151330359E84C0A3AC91BCBACD"; static const uint8_t binary_fingerprint[16]; // = {0xE7,0xA9,0x6B,0x15,0x13,0x30,0x35,0x9E,0x84,0xC0,0xA3,0xAC,0x91,0xBC,0xBA,0xCD}; - TI32Value(const TI32Value&); - TI32Value& operator=(const TI32Value&); TI32Value() : value(0) { } - virtual ~TI32Value() throw(); + virtual ~TI32Value() throw() {} + int32_t value; _TI32Value__isset __isset; - void __set_value(const int32_t val); + void __set_value(const int32_t val) { + value = val; + __isset.value = true; + } bool operator == (const TI32Value & rhs) const { @@ -1041,14 +921,13 @@ class TI32Value { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TI32Value& obj); }; void swap(TI32Value &a, TI32Value &b); typedef struct _TI64Value__isset { _TI64Value__isset() : value(false) {} - bool value :1; + bool value; } _TI64Value__isset; class TI64Value { @@ -1057,17 +936,19 @@ class TI64Value { static const char* ascii_fingerprint; // = "148F3AAAC1D9859963D5E800D187BF26"; static const uint8_t binary_fingerprint[16]; // = {0x14,0x8F,0x3A,0xAA,0xC1,0xD9,0x85,0x99,0x63,0xD5,0xE8,0x00,0xD1,0x87,0xBF,0x26}; - TI64Value(const TI64Value&); - TI64Value& operator=(const TI64Value&); TI64Value() : value(0) { } - virtual ~TI64Value() throw(); + virtual ~TI64Value() throw() {} + int64_t value; _TI64Value__isset __isset; - void __set_value(const int64_t val); + void __set_value(const int64_t val) { + value = val; + __isset.value = true; + } bool operator == (const TI64Value & rhs) const { @@ -1086,14 +967,13 @@ class TI64Value { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TI64Value& obj); }; void swap(TI64Value &a, TI64Value &b); typedef struct _TDoubleValue__isset { _TDoubleValue__isset() : value(false) {} - bool value :1; + bool value; } _TDoubleValue__isset; class TDoubleValue { @@ -1102,17 +982,19 @@ class TDoubleValue { static const char* ascii_fingerprint; // = "3586E570A474C4A8603B4FF74903B3A6"; static const uint8_t binary_fingerprint[16]; // = {0x35,0x86,0xE5,0x70,0xA4,0x74,0xC4,0xA8,0x60,0x3B,0x4F,0xF7,0x49,0x03,0xB3,0xA6}; - TDoubleValue(const TDoubleValue&); - TDoubleValue& operator=(const TDoubleValue&); TDoubleValue() : value(0) { } - virtual ~TDoubleValue() throw(); + virtual ~TDoubleValue() throw() {} + double value; _TDoubleValue__isset __isset; - void __set_value(const double val); + void __set_value(const double val) { + value = val; + __isset.value = true; + } bool operator == (const TDoubleValue & rhs) const { @@ -1131,14 +1013,13 @@ class TDoubleValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TDoubleValue& obj); }; void swap(TDoubleValue &a, TDoubleValue &b); typedef struct _TStringValue__isset { _TStringValue__isset() : value(false) {} - bool value :1; + bool value; } _TStringValue__isset; class TStringValue { @@ -1147,17 +1028,19 @@ class TStringValue { static const char* ascii_fingerprint; // = "66E694018C17E5B65A59AE8F55CCA3CD"; static const uint8_t binary_fingerprint[16]; // = {0x66,0xE6,0x94,0x01,0x8C,0x17,0xE5,0xB6,0x5A,0x59,0xAE,0x8F,0x55,0xCC,0xA3,0xCD}; - TStringValue(const TStringValue&); - TStringValue& operator=(const TStringValue&); TStringValue() : value() { } - virtual ~TStringValue() throw(); + virtual ~TStringValue() throw() {} + std::string value; _TStringValue__isset __isset; - void __set_value(const std::string& val); + void __set_value(const std::string& val) { + value = val; + __isset.value = true; + } bool operator == (const TStringValue & rhs) const { @@ -1176,20 +1059,19 @@ class TStringValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TStringValue& obj); }; void swap(TStringValue &a, TStringValue &b); typedef struct _TColumnValue__isset { _TColumnValue__isset() : boolVal(false), byteVal(false), i16Val(false), i32Val(false), i64Val(false), doubleVal(false), stringVal(false) {} - bool boolVal :1; - bool byteVal :1; - bool i16Val :1; - bool i32Val :1; - bool i64Val :1; - bool doubleVal :1; - bool stringVal :1; + bool boolVal; + bool byteVal; + bool i16Val; + bool i32Val; + bool i64Val; + bool doubleVal; + bool stringVal; } _TColumnValue__isset; class TColumnValue { @@ -1198,12 +1080,11 @@ class TColumnValue { static const char* ascii_fingerprint; // = "C2DDD988447EA7999A8285AA38AAE9AD"; static const uint8_t binary_fingerprint[16]; // = {0xC2,0xDD,0xD9,0x88,0x44,0x7E,0xA7,0x99,0x9A,0x82,0x85,0xAA,0x38,0xAA,0xE9,0xAD}; - TColumnValue(const TColumnValue&); - TColumnValue& operator=(const TColumnValue&); TColumnValue() { } - virtual ~TColumnValue() throw(); + virtual ~TColumnValue() throw() {} + TBoolValue boolVal; TByteValue byteVal; TI16Value i16Val; @@ -1214,19 +1095,33 @@ class TColumnValue { _TColumnValue__isset __isset; - void __set_boolVal(const TBoolValue& val); + void __set_boolVal(const TBoolValue& val) { + boolVal = val; + } - void __set_byteVal(const TByteValue& val); + void __set_byteVal(const TByteValue& val) { + byteVal = val; + } - void __set_i16Val(const TI16Value& val); + void __set_i16Val(const TI16Value& val) { + i16Val = val; + } - void __set_i32Val(const TI32Value& val); + void __set_i32Val(const TI32Value& val) { + i32Val = val; + } - void __set_i64Val(const TI64Value& val); + void __set_i64Val(const TI64Value& val) { + i64Val = val; + } - void __set_doubleVal(const TDoubleValue& val); + void __set_doubleVal(const TDoubleValue& val) { + doubleVal = val; + } - void __set_stringVal(const TStringValue& val); + void __set_stringVal(const TStringValue& val) { + stringVal = val; + } bool operator == (const TColumnValue & rhs) const { @@ -1255,7 +1150,6 @@ class TColumnValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TColumnValue& obj); }; void swap(TColumnValue &a, TColumnValue &b); @@ -1267,15 +1161,16 @@ class TRow { static const char* ascii_fingerprint; // = "E73FD1FCA0CA58A669FC3E02FB68D534"; static const uint8_t binary_fingerprint[16]; // = {0xE7,0x3F,0xD1,0xFC,0xA0,0xCA,0x58,0xA6,0x69,0xFC,0x3E,0x02,0xFB,0x68,0xD5,0x34}; - TRow(const TRow&); - TRow& operator=(const TRow&); TRow() { } - virtual ~TRow() throw(); + virtual ~TRow() throw() {} + std::vector colVals; - void __set_colVals(const std::vector & val); + void __set_colVals(const std::vector & val) { + colVals = val; + } bool operator == (const TRow & rhs) const { @@ -1292,7 +1187,6 @@ class TRow { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TRow& obj); }; void swap(TRow &a, TRow &b); @@ -1304,18 +1198,21 @@ class TBoolColumn { static const char* ascii_fingerprint; // = "F9058324D96DB7F974D8ACDC01C54219"; static const uint8_t binary_fingerprint[16]; // = {0xF9,0x05,0x83,0x24,0xD9,0x6D,0xB7,0xF9,0x74,0xD8,0xAC,0xDC,0x01,0xC5,0x42,0x19}; - TBoolColumn(const TBoolColumn&); - TBoolColumn& operator=(const TBoolColumn&); TBoolColumn() : nulls() { } - virtual ~TBoolColumn() throw(); + virtual ~TBoolColumn() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TBoolColumn & rhs) const { @@ -1334,7 +1231,6 @@ class TBoolColumn { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TBoolColumn& obj); }; void swap(TBoolColumn &a, TBoolColumn &b); @@ -1346,18 +1242,21 @@ class TByteColumn { static const char* ascii_fingerprint; // = "1CB300106BAA463A70BB2A2395900F48"; static const uint8_t binary_fingerprint[16]; // = {0x1C,0xB3,0x00,0x10,0x6B,0xAA,0x46,0x3A,0x70,0xBB,0x2A,0x23,0x95,0x90,0x0F,0x48}; - TByteColumn(const TByteColumn&); - TByteColumn& operator=(const TByteColumn&); TByteColumn() : nulls() { } - virtual ~TByteColumn() throw(); + virtual ~TByteColumn() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TByteColumn & rhs) const { @@ -1376,7 +1275,6 @@ class TByteColumn { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TByteColumn& obj); }; void swap(TByteColumn &a, TByteColumn &b); @@ -1388,18 +1286,21 @@ class TI16Column { static const char* ascii_fingerprint; // = "6574CDB1F121C8DB47FB257A3F104BDB"; static const uint8_t binary_fingerprint[16]; // = {0x65,0x74,0xCD,0xB1,0xF1,0x21,0xC8,0xDB,0x47,0xFB,0x25,0x7A,0x3F,0x10,0x4B,0xDB}; - TI16Column(const TI16Column&); - TI16Column& operator=(const TI16Column&); TI16Column() : nulls() { } - virtual ~TI16Column() throw(); + virtual ~TI16Column() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TI16Column & rhs) const { @@ -1418,7 +1319,6 @@ class TI16Column { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TI16Column& obj); }; void swap(TI16Column &a, TI16Column &b); @@ -1430,18 +1330,21 @@ class TI32Column { static const char* ascii_fingerprint; // = "CCCCE89C7E9DA10280F5663700677313"; static const uint8_t binary_fingerprint[16]; // = {0xCC,0xCC,0xE8,0x9C,0x7E,0x9D,0xA1,0x02,0x80,0xF5,0x66,0x37,0x00,0x67,0x73,0x13}; - TI32Column(const TI32Column&); - TI32Column& operator=(const TI32Column&); TI32Column() : nulls() { } - virtual ~TI32Column() throw(); + virtual ~TI32Column() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TI32Column & rhs) const { @@ -1460,7 +1363,6 @@ class TI32Column { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TI32Column& obj); }; void swap(TI32Column &a, TI32Column &b); @@ -1472,18 +1374,21 @@ class TI64Column { static const char* ascii_fingerprint; // = "925353917FC0AF87976A2338011F5A31"; static const uint8_t binary_fingerprint[16]; // = {0x92,0x53,0x53,0x91,0x7F,0xC0,0xAF,0x87,0x97,0x6A,0x23,0x38,0x01,0x1F,0x5A,0x31}; - TI64Column(const TI64Column&); - TI64Column& operator=(const TI64Column&); TI64Column() : nulls() { } - virtual ~TI64Column() throw(); + virtual ~TI64Column() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TI64Column & rhs) const { @@ -1502,7 +1407,6 @@ class TI64Column { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TI64Column& obj); }; void swap(TI64Column &a, TI64Column &b); @@ -1514,18 +1418,21 @@ class TDoubleColumn { static const char* ascii_fingerprint; // = "8FF1C050A8D7FD247AEB23CD71539C09"; static const uint8_t binary_fingerprint[16]; // = {0x8F,0xF1,0xC0,0x50,0xA8,0xD7,0xFD,0x24,0x7A,0xEB,0x23,0xCD,0x71,0x53,0x9C,0x09}; - TDoubleColumn(const TDoubleColumn&); - TDoubleColumn& operator=(const TDoubleColumn&); TDoubleColumn() : nulls() { } - virtual ~TDoubleColumn() throw(); + virtual ~TDoubleColumn() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TDoubleColumn & rhs) const { @@ -1544,7 +1451,6 @@ class TDoubleColumn { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TDoubleColumn& obj); }; void swap(TDoubleColumn &a, TDoubleColumn &b); @@ -1556,18 +1462,21 @@ class TStringColumn { static const char* ascii_fingerprint; // = "BE556BF7091B2DABBA1863D5E458B15F"; static const uint8_t binary_fingerprint[16]; // = {0xBE,0x55,0x6B,0xF7,0x09,0x1B,0x2D,0xAB,0xBA,0x18,0x63,0xD5,0xE4,0x58,0xB1,0x5F}; - TStringColumn(const TStringColumn&); - TStringColumn& operator=(const TStringColumn&); TStringColumn() : nulls() { } - virtual ~TStringColumn() throw(); + virtual ~TStringColumn() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TStringColumn & rhs) const { @@ -1586,7 +1495,6 @@ class TStringColumn { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TStringColumn& obj); }; void swap(TStringColumn &a, TStringColumn &b); @@ -1598,18 +1506,21 @@ class TBinaryColumn { static const char* ascii_fingerprint; // = "BE556BF7091B2DABBA1863D5E458B15F"; static const uint8_t binary_fingerprint[16]; // = {0xBE,0x55,0x6B,0xF7,0x09,0x1B,0x2D,0xAB,0xBA,0x18,0x63,0xD5,0xE4,0x58,0xB1,0x5F}; - TBinaryColumn(const TBinaryColumn&); - TBinaryColumn& operator=(const TBinaryColumn&); TBinaryColumn() : nulls() { } - virtual ~TBinaryColumn() throw(); + virtual ~TBinaryColumn() throw() {} + std::vector values; std::string nulls; - void __set_values(const std::vector & val); + void __set_values(const std::vector & val) { + values = val; + } - void __set_nulls(const std::string& val); + void __set_nulls(const std::string& val) { + nulls = val; + } bool operator == (const TBinaryColumn & rhs) const { @@ -1628,21 +1539,20 @@ class TBinaryColumn { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TBinaryColumn& obj); }; void swap(TBinaryColumn &a, TBinaryColumn &b); typedef struct _TColumn__isset { _TColumn__isset() : boolVal(false), byteVal(false), i16Val(false), i32Val(false), i64Val(false), doubleVal(false), stringVal(false), binaryVal(false) {} - bool boolVal :1; - bool byteVal :1; - bool i16Val :1; - bool i32Val :1; - bool i64Val :1; - bool doubleVal :1; - bool stringVal :1; - bool binaryVal :1; + bool boolVal; + bool byteVal; + bool i16Val; + bool i32Val; + bool i64Val; + bool doubleVal; + bool stringVal; + bool binaryVal; } _TColumn__isset; class TColumn { @@ -1651,12 +1561,11 @@ class TColumn { static const char* ascii_fingerprint; // = "E6ADD10B4CDDE61A19E8878CC7039A17"; static const uint8_t binary_fingerprint[16]; // = {0xE6,0xAD,0xD1,0x0B,0x4C,0xDD,0xE6,0x1A,0x19,0xE8,0x87,0x8C,0xC7,0x03,0x9A,0x17}; - TColumn(const TColumn&); - TColumn& operator=(const TColumn&); TColumn() { } - virtual ~TColumn() throw(); + virtual ~TColumn() throw() {} + TBoolColumn boolVal; TByteColumn byteVal; TI16Column i16Val; @@ -1668,21 +1577,37 @@ class TColumn { _TColumn__isset __isset; - void __set_boolVal(const TBoolColumn& val); + void __set_boolVal(const TBoolColumn& val) { + boolVal = val; + } - void __set_byteVal(const TByteColumn& val); + void __set_byteVal(const TByteColumn& val) { + byteVal = val; + } - void __set_i16Val(const TI16Column& val); + void __set_i16Val(const TI16Column& val) { + i16Val = val; + } - void __set_i32Val(const TI32Column& val); + void __set_i32Val(const TI32Column& val) { + i32Val = val; + } - void __set_i64Val(const TI64Column& val); + void __set_i64Val(const TI64Column& val) { + i64Val = val; + } - void __set_doubleVal(const TDoubleColumn& val); + void __set_doubleVal(const TDoubleColumn& val) { + doubleVal = val; + } - void __set_stringVal(const TStringColumn& val); + void __set_stringVal(const TStringColumn& val) { + stringVal = val; + } - void __set_binaryVal(const TBinaryColumn& val); + void __set_binaryVal(const TBinaryColumn& val) { + binaryVal = val; + } bool operator == (const TColumn & rhs) const { @@ -1713,14 +1638,13 @@ class TColumn { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TColumn& obj); }; void swap(TColumn &a, TColumn &b); typedef struct _TRowSet__isset { _TRowSet__isset() : columns(false) {} - bool columns :1; + bool columns; } _TRowSet__isset; class TRowSet { @@ -1729,23 +1653,29 @@ class TRowSet { static const char* ascii_fingerprint; // = "46DA30A870489C7A58105AE0080DAEBF"; static const uint8_t binary_fingerprint[16]; // = {0x46,0xDA,0x30,0xA8,0x70,0x48,0x9C,0x7A,0x58,0x10,0x5A,0xE0,0x08,0x0D,0xAE,0xBF}; - TRowSet(const TRowSet&); - TRowSet& operator=(const TRowSet&); TRowSet() : startRowOffset(0) { } - virtual ~TRowSet() throw(); + virtual ~TRowSet() throw() {} + int64_t startRowOffset; std::vector rows; std::vector columns; _TRowSet__isset __isset; - void __set_startRowOffset(const int64_t val); + void __set_startRowOffset(const int64_t val) { + startRowOffset = val; + } - void __set_rows(const std::vector & val); + void __set_rows(const std::vector & val) { + rows = val; + } - void __set_columns(const std::vector & val); + void __set_columns(const std::vector & val) { + columns = val; + __isset.columns = true; + } bool operator == (const TRowSet & rhs) const { @@ -1768,17 +1698,16 @@ class TRowSet { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TRowSet& obj); }; void swap(TRowSet &a, TRowSet &b); typedef struct _TStatus__isset { _TStatus__isset() : infoMessages(false), sqlState(false), errorCode(false), errorMessage(false) {} - bool infoMessages :1; - bool sqlState :1; - bool errorCode :1; - bool errorMessage :1; + bool infoMessages; + bool sqlState; + bool errorCode; + bool errorMessage; } _TStatus__isset; class TStatus { @@ -1787,12 +1716,11 @@ class TStatus { static const char* ascii_fingerprint; // = "D5DEF49634A59C615C1B3A6F7D0DADB5"; static const uint8_t binary_fingerprint[16]; // = {0xD5,0xDE,0xF4,0x96,0x34,0xA5,0x9C,0x61,0x5C,0x1B,0x3A,0x6F,0x7D,0x0D,0xAD,0xB5}; - TStatus(const TStatus&); - TStatus& operator=(const TStatus&); TStatus() : statusCode((TStatusCode::type)0), sqlState(), errorCode(0), errorMessage() { } - virtual ~TStatus() throw(); + virtual ~TStatus() throw() {} + TStatusCode::type statusCode; std::vector infoMessages; std::string sqlState; @@ -1801,15 +1729,29 @@ class TStatus { _TStatus__isset __isset; - void __set_statusCode(const TStatusCode::type val); + void __set_statusCode(const TStatusCode::type val) { + statusCode = val; + } - void __set_infoMessages(const std::vector & val); + void __set_infoMessages(const std::vector & val) { + infoMessages = val; + __isset.infoMessages = true; + } - void __set_sqlState(const std::string& val); + void __set_sqlState(const std::string& val) { + sqlState = val; + __isset.sqlState = true; + } - void __set_errorCode(const int32_t val); + void __set_errorCode(const int32_t val) { + errorCode = val; + __isset.errorCode = true; + } - void __set_errorMessage(const std::string& val); + void __set_errorMessage(const std::string& val) { + errorMessage = val; + __isset.errorMessage = true; + } bool operator == (const TStatus & rhs) const { @@ -1842,7 +1784,6 @@ class TStatus { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TStatus& obj); }; void swap(TStatus &a, TStatus &b); @@ -1854,18 +1795,21 @@ class THandleIdentifier { static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; - THandleIdentifier(const THandleIdentifier&); - THandleIdentifier& operator=(const THandleIdentifier&); THandleIdentifier() : guid(), secret() { } - virtual ~THandleIdentifier() throw(); + virtual ~THandleIdentifier() throw() {} + std::string guid; std::string secret; - void __set_guid(const std::string& val); + void __set_guid(const std::string& val) { + guid = val; + } - void __set_secret(const std::string& val); + void __set_secret(const std::string& val) { + secret = val; + } bool operator == (const THandleIdentifier & rhs) const { @@ -1884,7 +1828,6 @@ class THandleIdentifier { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const THandleIdentifier& obj); }; void swap(THandleIdentifier &a, THandleIdentifier &b); @@ -1896,15 +1839,16 @@ class TSessionHandle { static const char* ascii_fingerprint; // = "A756D3DBE614FB13F70BF7F7B6EB3D73"; static const uint8_t binary_fingerprint[16]; // = {0xA7,0x56,0xD3,0xDB,0xE6,0x14,0xFB,0x13,0xF7,0x0B,0xF7,0xF7,0xB6,0xEB,0x3D,0x73}; - TSessionHandle(const TSessionHandle&); - TSessionHandle& operator=(const TSessionHandle&); TSessionHandle() { } - virtual ~TSessionHandle() throw(); + virtual ~TSessionHandle() throw() {} + THandleIdentifier sessionId; - void __set_sessionId(const THandleIdentifier& val); + void __set_sessionId(const THandleIdentifier& val) { + sessionId = val; + } bool operator == (const TSessionHandle & rhs) const { @@ -1921,14 +1865,13 @@ class TSessionHandle { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TSessionHandle& obj); }; void swap(TSessionHandle &a, TSessionHandle &b); typedef struct _TOperationHandle__isset { _TOperationHandle__isset() : modifiedRowCount(false) {} - bool modifiedRowCount :1; + bool modifiedRowCount; } _TOperationHandle__isset; class TOperationHandle { @@ -1937,12 +1880,11 @@ class TOperationHandle { static const char* ascii_fingerprint; // = "29FD80F4F96804A30FCC59C23D2E5349"; static const uint8_t binary_fingerprint[16]; // = {0x29,0xFD,0x80,0xF4,0xF9,0x68,0x04,0xA3,0x0F,0xCC,0x59,0xC2,0x3D,0x2E,0x53,0x49}; - TOperationHandle(const TOperationHandle&); - TOperationHandle& operator=(const TOperationHandle&); TOperationHandle() : operationType((TOperationType::type)0), hasResultSet(0), modifiedRowCount(0) { } - virtual ~TOperationHandle() throw(); + virtual ~TOperationHandle() throw() {} + THandleIdentifier operationId; TOperationType::type operationType; bool hasResultSet; @@ -1950,13 +1892,22 @@ class TOperationHandle { _TOperationHandle__isset __isset; - void __set_operationId(const THandleIdentifier& val); + void __set_operationId(const THandleIdentifier& val) { + operationId = val; + } - void __set_operationType(const TOperationType::type val); + void __set_operationType(const TOperationType::type val) { + operationType = val; + } - void __set_hasResultSet(const bool val); + void __set_hasResultSet(const bool val) { + hasResultSet = val; + } - void __set_modifiedRowCount(const double val); + void __set_modifiedRowCount(const double val) { + modifiedRowCount = val; + __isset.modifiedRowCount = true; + } bool operator == (const TOperationHandle & rhs) const { @@ -1981,16 +1932,15 @@ class TOperationHandle { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TOperationHandle& obj); }; void swap(TOperationHandle &a, TOperationHandle &b); typedef struct _TOpenSessionReq__isset { _TOpenSessionReq__isset() : username(false), password(false), configuration(false) {} - bool username :1; - bool password :1; - bool configuration :1; + bool username; + bool password; + bool configuration; } _TOpenSessionReq__isset; class TOpenSessionReq { @@ -1999,14 +1949,13 @@ class TOpenSessionReq { static const char* ascii_fingerprint; // = "C8FD0F306A16C16BDA7B57F58BFAE5B2"; static const uint8_t binary_fingerprint[16]; // = {0xC8,0xFD,0x0F,0x30,0x6A,0x16,0xC1,0x6B,0xDA,0x7B,0x57,0xF5,0x8B,0xFA,0xE5,0xB2}; - TOpenSessionReq(const TOpenSessionReq&); - TOpenSessionReq& operator=(const TOpenSessionReq&); TOpenSessionReq() : client_protocol((TProtocolVersion::type)7), username(), password() { client_protocol = (TProtocolVersion::type)7; } - virtual ~TOpenSessionReq() throw(); + virtual ~TOpenSessionReq() throw() {} + TProtocolVersion::type client_protocol; std::string username; std::string password; @@ -2014,13 +1963,24 @@ class TOpenSessionReq { _TOpenSessionReq__isset __isset; - void __set_client_protocol(const TProtocolVersion::type val); + void __set_client_protocol(const TProtocolVersion::type val) { + client_protocol = val; + } - void __set_username(const std::string& val); + void __set_username(const std::string& val) { + username = val; + __isset.username = true; + } - void __set_password(const std::string& val); + void __set_password(const std::string& val) { + password = val; + __isset.password = true; + } - void __set_configuration(const std::map & val); + void __set_configuration(const std::map & val) { + configuration = val; + __isset.configuration = true; + } bool operator == (const TOpenSessionReq & rhs) const { @@ -2049,15 +2009,14 @@ class TOpenSessionReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TOpenSessionReq& obj); }; void swap(TOpenSessionReq &a, TOpenSessionReq &b); typedef struct _TOpenSessionResp__isset { _TOpenSessionResp__isset() : sessionHandle(false), configuration(false) {} - bool sessionHandle :1; - bool configuration :1; + bool sessionHandle; + bool configuration; } _TOpenSessionResp__isset; class TOpenSessionResp { @@ -2066,14 +2025,13 @@ class TOpenSessionResp { static const char* ascii_fingerprint; // = "CFE7D7F4E9EC671F2518ED74FEE9F163"; static const uint8_t binary_fingerprint[16]; // = {0xCF,0xE7,0xD7,0xF4,0xE9,0xEC,0x67,0x1F,0x25,0x18,0xED,0x74,0xFE,0xE9,0xF1,0x63}; - TOpenSessionResp(const TOpenSessionResp&); - TOpenSessionResp& operator=(const TOpenSessionResp&); TOpenSessionResp() : serverProtocolVersion((TProtocolVersion::type)7) { serverProtocolVersion = (TProtocolVersion::type)7; } - virtual ~TOpenSessionResp() throw(); + virtual ~TOpenSessionResp() throw() {} + TStatus status; TProtocolVersion::type serverProtocolVersion; TSessionHandle sessionHandle; @@ -2081,13 +2039,23 @@ class TOpenSessionResp { _TOpenSessionResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_serverProtocolVersion(const TProtocolVersion::type val); + void __set_serverProtocolVersion(const TProtocolVersion::type val) { + serverProtocolVersion = val; + } - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + __isset.sessionHandle = true; + } - void __set_configuration(const std::map & val); + void __set_configuration(const std::map & val) { + configuration = val; + __isset.configuration = true; + } bool operator == (const TOpenSessionResp & rhs) const { @@ -2114,7 +2082,6 @@ class TOpenSessionResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TOpenSessionResp& obj); }; void swap(TOpenSessionResp &a, TOpenSessionResp &b); @@ -2126,15 +2093,16 @@ class TCloseSessionReq { static const char* ascii_fingerprint; // = "82377107F8BD0526960537D5A112E6EF"; static const uint8_t binary_fingerprint[16]; // = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; - TCloseSessionReq(const TCloseSessionReq&); - TCloseSessionReq& operator=(const TCloseSessionReq&); TCloseSessionReq() { } - virtual ~TCloseSessionReq() throw(); + virtual ~TCloseSessionReq() throw() {} + TSessionHandle sessionHandle; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } bool operator == (const TCloseSessionReq & rhs) const { @@ -2151,7 +2119,6 @@ class TCloseSessionReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCloseSessionReq& obj); }; void swap(TCloseSessionReq &a, TCloseSessionReq &b); @@ -2163,15 +2130,16 @@ class TCloseSessionResp { static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2"; static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; - TCloseSessionResp(const TCloseSessionResp&); - TCloseSessionResp& operator=(const TCloseSessionResp&); TCloseSessionResp() { } - virtual ~TCloseSessionResp() throw(); + virtual ~TCloseSessionResp() throw() {} + TStatus status; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } bool operator == (const TCloseSessionResp & rhs) const { @@ -2188,19 +2156,18 @@ class TCloseSessionResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCloseSessionResp& obj); }; void swap(TCloseSessionResp &a, TCloseSessionResp &b); typedef struct _TGetInfoValue__isset { _TGetInfoValue__isset() : stringValue(false), smallIntValue(false), integerBitmask(false), integerFlag(false), binaryValue(false), lenValue(false) {} - bool stringValue :1; - bool smallIntValue :1; - bool integerBitmask :1; - bool integerFlag :1; - bool binaryValue :1; - bool lenValue :1; + bool stringValue; + bool smallIntValue; + bool integerBitmask; + bool integerFlag; + bool binaryValue; + bool lenValue; } _TGetInfoValue__isset; class TGetInfoValue { @@ -2209,12 +2176,11 @@ class TGetInfoValue { static const char* ascii_fingerprint; // = "057FED11279FD7248CFE73EE82ED579E"; static const uint8_t binary_fingerprint[16]; // = {0x05,0x7F,0xED,0x11,0x27,0x9F,0xD7,0x24,0x8C,0xFE,0x73,0xEE,0x82,0xED,0x57,0x9E}; - TGetInfoValue(const TGetInfoValue&); - TGetInfoValue& operator=(const TGetInfoValue&); TGetInfoValue() : stringValue(), smallIntValue(0), integerBitmask(0), integerFlag(0), binaryValue(0), lenValue(0) { } - virtual ~TGetInfoValue() throw(); + virtual ~TGetInfoValue() throw() {} + std::string stringValue; int16_t smallIntValue; int32_t integerBitmask; @@ -2224,17 +2190,29 @@ class TGetInfoValue { _TGetInfoValue__isset __isset; - void __set_stringValue(const std::string& val); + void __set_stringValue(const std::string& val) { + stringValue = val; + } - void __set_smallIntValue(const int16_t val); + void __set_smallIntValue(const int16_t val) { + smallIntValue = val; + } - void __set_integerBitmask(const int32_t val); + void __set_integerBitmask(const int32_t val) { + integerBitmask = val; + } - void __set_integerFlag(const int32_t val); + void __set_integerFlag(const int32_t val) { + integerFlag = val; + } - void __set_binaryValue(const int32_t val); + void __set_binaryValue(const int32_t val) { + binaryValue = val; + } - void __set_lenValue(const int64_t val); + void __set_lenValue(const int64_t val) { + lenValue = val; + } bool operator == (const TGetInfoValue & rhs) const { @@ -2261,7 +2239,6 @@ class TGetInfoValue { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetInfoValue& obj); }; void swap(TGetInfoValue &a, TGetInfoValue &b); @@ -2273,18 +2250,21 @@ class TGetInfoReq { static const char* ascii_fingerprint; // = "95675B1A0BADE5F7EDE323809DB679B2"; static const uint8_t binary_fingerprint[16]; // = {0x95,0x67,0x5B,0x1A,0x0B,0xAD,0xE5,0xF7,0xED,0xE3,0x23,0x80,0x9D,0xB6,0x79,0xB2}; - TGetInfoReq(const TGetInfoReq&); - TGetInfoReq& operator=(const TGetInfoReq&); TGetInfoReq() : infoType((TGetInfoType::type)0) { } - virtual ~TGetInfoReq() throw(); + virtual ~TGetInfoReq() throw() {} + TSessionHandle sessionHandle; TGetInfoType::type infoType; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_infoType(const TGetInfoType::type val); + void __set_infoType(const TGetInfoType::type val) { + infoType = val; + } bool operator == (const TGetInfoReq & rhs) const { @@ -2303,7 +2283,6 @@ class TGetInfoReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetInfoReq& obj); }; void swap(TGetInfoReq &a, TGetInfoReq &b); @@ -2315,18 +2294,21 @@ class TGetInfoResp { static const char* ascii_fingerprint; // = "72AFA10A82728B51FDE91092012868DE"; static const uint8_t binary_fingerprint[16]; // = {0x72,0xAF,0xA1,0x0A,0x82,0x72,0x8B,0x51,0xFD,0xE9,0x10,0x92,0x01,0x28,0x68,0xDE}; - TGetInfoResp(const TGetInfoResp&); - TGetInfoResp& operator=(const TGetInfoResp&); TGetInfoResp() { } - virtual ~TGetInfoResp() throw(); + virtual ~TGetInfoResp() throw() {} + TStatus status; TGetInfoValue infoValue; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_infoValue(const TGetInfoValue& val); + void __set_infoValue(const TGetInfoValue& val) { + infoValue = val; + } bool operator == (const TGetInfoResp & rhs) const { @@ -2345,15 +2327,14 @@ class TGetInfoResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetInfoResp& obj); }; void swap(TGetInfoResp &a, TGetInfoResp &b); typedef struct _TExecuteStatementReq__isset { _TExecuteStatementReq__isset() : confOverlay(false), runAsync(true) {} - bool confOverlay :1; - bool runAsync :1; + bool confOverlay; + bool runAsync; } _TExecuteStatementReq__isset; class TExecuteStatementReq { @@ -2362,12 +2343,11 @@ class TExecuteStatementReq { static const char* ascii_fingerprint; // = "FED75DB77E66D76EC1939A51FB0D96FA"; static const uint8_t binary_fingerprint[16]; // = {0xFE,0xD7,0x5D,0xB7,0x7E,0x66,0xD7,0x6E,0xC1,0x93,0x9A,0x51,0xFB,0x0D,0x96,0xFA}; - TExecuteStatementReq(const TExecuteStatementReq&); - TExecuteStatementReq& operator=(const TExecuteStatementReq&); TExecuteStatementReq() : statement(), runAsync(false) { } - virtual ~TExecuteStatementReq() throw(); + virtual ~TExecuteStatementReq() throw() {} + TSessionHandle sessionHandle; std::string statement; std::map confOverlay; @@ -2375,13 +2355,23 @@ class TExecuteStatementReq { _TExecuteStatementReq__isset __isset; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_statement(const std::string& val); + void __set_statement(const std::string& val) { + statement = val; + } - void __set_confOverlay(const std::map & val); + void __set_confOverlay(const std::map & val) { + confOverlay = val; + __isset.confOverlay = true; + } - void __set_runAsync(const bool val); + void __set_runAsync(const bool val) { + runAsync = val; + __isset.runAsync = true; + } bool operator == (const TExecuteStatementReq & rhs) const { @@ -2408,14 +2398,13 @@ class TExecuteStatementReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TExecuteStatementReq& obj); }; void swap(TExecuteStatementReq &a, TExecuteStatementReq &b); typedef struct _TExecuteStatementResp__isset { _TExecuteStatementResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TExecuteStatementResp__isset; class TExecuteStatementResp { @@ -2424,20 +2413,24 @@ class TExecuteStatementResp { static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; - TExecuteStatementResp(const TExecuteStatementResp&); - TExecuteStatementResp& operator=(const TExecuteStatementResp&); TExecuteStatementResp() { } - virtual ~TExecuteStatementResp() throw(); + virtual ~TExecuteStatementResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TExecuteStatementResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TExecuteStatementResp & rhs) const { @@ -2458,7 +2451,6 @@ class TExecuteStatementResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TExecuteStatementResp& obj); }; void swap(TExecuteStatementResp &a, TExecuteStatementResp &b); @@ -2470,15 +2462,16 @@ class TGetTypeInfoReq { static const char* ascii_fingerprint; // = "82377107F8BD0526960537D5A112E6EF"; static const uint8_t binary_fingerprint[16]; // = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; - TGetTypeInfoReq(const TGetTypeInfoReq&); - TGetTypeInfoReq& operator=(const TGetTypeInfoReq&); TGetTypeInfoReq() { } - virtual ~TGetTypeInfoReq() throw(); + virtual ~TGetTypeInfoReq() throw() {} + TSessionHandle sessionHandle; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } bool operator == (const TGetTypeInfoReq & rhs) const { @@ -2495,14 +2488,13 @@ class TGetTypeInfoReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetTypeInfoReq& obj); }; void swap(TGetTypeInfoReq &a, TGetTypeInfoReq &b); typedef struct _TGetTypeInfoResp__isset { _TGetTypeInfoResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetTypeInfoResp__isset; class TGetTypeInfoResp { @@ -2511,20 +2503,24 @@ class TGetTypeInfoResp { static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; - TGetTypeInfoResp(const TGetTypeInfoResp&); - TGetTypeInfoResp& operator=(const TGetTypeInfoResp&); TGetTypeInfoResp() { } - virtual ~TGetTypeInfoResp() throw(); + virtual ~TGetTypeInfoResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetTypeInfoResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetTypeInfoResp & rhs) const { @@ -2545,7 +2541,6 @@ class TGetTypeInfoResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetTypeInfoResp& obj); }; void swap(TGetTypeInfoResp &a, TGetTypeInfoResp &b); @@ -2557,15 +2552,16 @@ class TGetCatalogsReq { static const char* ascii_fingerprint; // = "82377107F8BD0526960537D5A112E6EF"; static const uint8_t binary_fingerprint[16]; // = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; - TGetCatalogsReq(const TGetCatalogsReq&); - TGetCatalogsReq& operator=(const TGetCatalogsReq&); TGetCatalogsReq() { } - virtual ~TGetCatalogsReq() throw(); + virtual ~TGetCatalogsReq() throw() {} + TSessionHandle sessionHandle; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } bool operator == (const TGetCatalogsReq & rhs) const { @@ -2582,14 +2578,13 @@ class TGetCatalogsReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetCatalogsReq& obj); }; void swap(TGetCatalogsReq &a, TGetCatalogsReq &b); typedef struct _TGetCatalogsResp__isset { _TGetCatalogsResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetCatalogsResp__isset; class TGetCatalogsResp { @@ -2598,20 +2593,24 @@ class TGetCatalogsResp { static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; - TGetCatalogsResp(const TGetCatalogsResp&); - TGetCatalogsResp& operator=(const TGetCatalogsResp&); TGetCatalogsResp() { } - virtual ~TGetCatalogsResp() throw(); + virtual ~TGetCatalogsResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetCatalogsResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetCatalogsResp & rhs) const { @@ -2632,15 +2631,14 @@ class TGetCatalogsResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetCatalogsResp& obj); }; void swap(TGetCatalogsResp &a, TGetCatalogsResp &b); typedef struct _TGetSchemasReq__isset { _TGetSchemasReq__isset() : catalogName(false), schemaName(false) {} - bool catalogName :1; - bool schemaName :1; + bool catalogName; + bool schemaName; } _TGetSchemasReq__isset; class TGetSchemasReq { @@ -2649,23 +2647,30 @@ class TGetSchemasReq { static const char* ascii_fingerprint; // = "28A9D12DE8393DD3E73FC1E5AE6E113B"; static const uint8_t binary_fingerprint[16]; // = {0x28,0xA9,0xD1,0x2D,0xE8,0x39,0x3D,0xD3,0xE7,0x3F,0xC1,0xE5,0xAE,0x6E,0x11,0x3B}; - TGetSchemasReq(const TGetSchemasReq&); - TGetSchemasReq& operator=(const TGetSchemasReq&); TGetSchemasReq() : catalogName(), schemaName() { } - virtual ~TGetSchemasReq() throw(); + virtual ~TGetSchemasReq() throw() {} + TSessionHandle sessionHandle; TIdentifier catalogName; TPatternOrIdentifier schemaName; _TGetSchemasReq__isset __isset; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_catalogName(const TIdentifier& val); + void __set_catalogName(const TIdentifier& val) { + catalogName = val; + __isset.catalogName = true; + } - void __set_schemaName(const TPatternOrIdentifier& val); + void __set_schemaName(const TPatternOrIdentifier& val) { + schemaName = val; + __isset.schemaName = true; + } bool operator == (const TGetSchemasReq & rhs) const { @@ -2690,14 +2695,13 @@ class TGetSchemasReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetSchemasReq& obj); }; void swap(TGetSchemasReq &a, TGetSchemasReq &b); typedef struct _TGetSchemasResp__isset { _TGetSchemasResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetSchemasResp__isset; class TGetSchemasResp { @@ -2706,20 +2710,24 @@ class TGetSchemasResp { static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; - TGetSchemasResp(const TGetSchemasResp&); - TGetSchemasResp& operator=(const TGetSchemasResp&); TGetSchemasResp() { } - virtual ~TGetSchemasResp() throw(); + virtual ~TGetSchemasResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetSchemasResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetSchemasResp & rhs) const { @@ -2740,17 +2748,16 @@ class TGetSchemasResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetSchemasResp& obj); }; void swap(TGetSchemasResp &a, TGetSchemasResp &b); typedef struct _TGetTablesReq__isset { _TGetTablesReq__isset() : catalogName(false), schemaName(false), tableName(false), tableTypes(false) {} - bool catalogName :1; - bool schemaName :1; - bool tableName :1; - bool tableTypes :1; + bool catalogName; + bool schemaName; + bool tableName; + bool tableTypes; } _TGetTablesReq__isset; class TGetTablesReq { @@ -2759,12 +2766,11 @@ class TGetTablesReq { static const char* ascii_fingerprint; // = "C80DFEE06850052F5A445BE81ED763DB"; static const uint8_t binary_fingerprint[16]; // = {0xC8,0x0D,0xFE,0xE0,0x68,0x50,0x05,0x2F,0x5A,0x44,0x5B,0xE8,0x1E,0xD7,0x63,0xDB}; - TGetTablesReq(const TGetTablesReq&); - TGetTablesReq& operator=(const TGetTablesReq&); TGetTablesReq() : catalogName(), schemaName(), tableName() { } - virtual ~TGetTablesReq() throw(); + virtual ~TGetTablesReq() throw() {} + TSessionHandle sessionHandle; TPatternOrIdentifier catalogName; TPatternOrIdentifier schemaName; @@ -2773,15 +2779,29 @@ class TGetTablesReq { _TGetTablesReq__isset __isset; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_catalogName(const TPatternOrIdentifier& val); + void __set_catalogName(const TPatternOrIdentifier& val) { + catalogName = val; + __isset.catalogName = true; + } - void __set_schemaName(const TPatternOrIdentifier& val); + void __set_schemaName(const TPatternOrIdentifier& val) { + schemaName = val; + __isset.schemaName = true; + } - void __set_tableName(const TPatternOrIdentifier& val); + void __set_tableName(const TPatternOrIdentifier& val) { + tableName = val; + __isset.tableName = true; + } - void __set_tableTypes(const std::vector & val); + void __set_tableTypes(const std::vector & val) { + tableTypes = val; + __isset.tableTypes = true; + } bool operator == (const TGetTablesReq & rhs) const { @@ -2814,14 +2834,13 @@ class TGetTablesReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetTablesReq& obj); }; void swap(TGetTablesReq &a, TGetTablesReq &b); typedef struct _TGetTablesResp__isset { _TGetTablesResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetTablesResp__isset; class TGetTablesResp { @@ -2830,20 +2849,24 @@ class TGetTablesResp { static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; - TGetTablesResp(const TGetTablesResp&); - TGetTablesResp& operator=(const TGetTablesResp&); TGetTablesResp() { } - virtual ~TGetTablesResp() throw(); + virtual ~TGetTablesResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetTablesResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetTablesResp & rhs) const { @@ -2864,7 +2887,6 @@ class TGetTablesResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetTablesResp& obj); }; void swap(TGetTablesResp &a, TGetTablesResp &b); @@ -2876,15 +2898,16 @@ class TGetTableTypesReq { static const char* ascii_fingerprint; // = "82377107F8BD0526960537D5A112E6EF"; static const uint8_t binary_fingerprint[16]; // = {0x82,0x37,0x71,0x07,0xF8,0xBD,0x05,0x26,0x96,0x05,0x37,0xD5,0xA1,0x12,0xE6,0xEF}; - TGetTableTypesReq(const TGetTableTypesReq&); - TGetTableTypesReq& operator=(const TGetTableTypesReq&); TGetTableTypesReq() { } - virtual ~TGetTableTypesReq() throw(); + virtual ~TGetTableTypesReq() throw() {} + TSessionHandle sessionHandle; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } bool operator == (const TGetTableTypesReq & rhs) const { @@ -2901,14 +2924,13 @@ class TGetTableTypesReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetTableTypesReq& obj); }; void swap(TGetTableTypesReq &a, TGetTableTypesReq &b); typedef struct _TGetTableTypesResp__isset { _TGetTableTypesResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetTableTypesResp__isset; class TGetTableTypesResp { @@ -2917,20 +2939,24 @@ class TGetTableTypesResp { static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; - TGetTableTypesResp(const TGetTableTypesResp&); - TGetTableTypesResp& operator=(const TGetTableTypesResp&); TGetTableTypesResp() { } - virtual ~TGetTableTypesResp() throw(); + virtual ~TGetTableTypesResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetTableTypesResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetTableTypesResp & rhs) const { @@ -2951,17 +2977,16 @@ class TGetTableTypesResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetTableTypesResp& obj); }; void swap(TGetTableTypesResp &a, TGetTableTypesResp &b); typedef struct _TGetColumnsReq__isset { _TGetColumnsReq__isset() : catalogName(false), schemaName(false), tableName(false), columnName(false) {} - bool catalogName :1; - bool schemaName :1; - bool tableName :1; - bool columnName :1; + bool catalogName; + bool schemaName; + bool tableName; + bool columnName; } _TGetColumnsReq__isset; class TGetColumnsReq { @@ -2970,12 +2995,11 @@ class TGetColumnsReq { static const char* ascii_fingerprint; // = "72D0F28ED33A49B7306DF63EEE956C28"; static const uint8_t binary_fingerprint[16]; // = {0x72,0xD0,0xF2,0x8E,0xD3,0x3A,0x49,0xB7,0x30,0x6D,0xF6,0x3E,0xEE,0x95,0x6C,0x28}; - TGetColumnsReq(const TGetColumnsReq&); - TGetColumnsReq& operator=(const TGetColumnsReq&); TGetColumnsReq() : catalogName(), schemaName(), tableName(), columnName() { } - virtual ~TGetColumnsReq() throw(); + virtual ~TGetColumnsReq() throw() {} + TSessionHandle sessionHandle; TIdentifier catalogName; TPatternOrIdentifier schemaName; @@ -2984,15 +3008,29 @@ class TGetColumnsReq { _TGetColumnsReq__isset __isset; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_catalogName(const TIdentifier& val); + void __set_catalogName(const TIdentifier& val) { + catalogName = val; + __isset.catalogName = true; + } - void __set_schemaName(const TPatternOrIdentifier& val); + void __set_schemaName(const TPatternOrIdentifier& val) { + schemaName = val; + __isset.schemaName = true; + } - void __set_tableName(const TPatternOrIdentifier& val); + void __set_tableName(const TPatternOrIdentifier& val) { + tableName = val; + __isset.tableName = true; + } - void __set_columnName(const TPatternOrIdentifier& val); + void __set_columnName(const TPatternOrIdentifier& val) { + columnName = val; + __isset.columnName = true; + } bool operator == (const TGetColumnsReq & rhs) const { @@ -3025,14 +3063,13 @@ class TGetColumnsReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetColumnsReq& obj); }; void swap(TGetColumnsReq &a, TGetColumnsReq &b); typedef struct _TGetColumnsResp__isset { _TGetColumnsResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetColumnsResp__isset; class TGetColumnsResp { @@ -3041,20 +3078,24 @@ class TGetColumnsResp { static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; - TGetColumnsResp(const TGetColumnsResp&); - TGetColumnsResp& operator=(const TGetColumnsResp&); TGetColumnsResp() { } - virtual ~TGetColumnsResp() throw(); + virtual ~TGetColumnsResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetColumnsResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetColumnsResp & rhs) const { @@ -3075,15 +3116,14 @@ class TGetColumnsResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetColumnsResp& obj); }; void swap(TGetColumnsResp &a, TGetColumnsResp &b); typedef struct _TGetFunctionsReq__isset { _TGetFunctionsReq__isset() : catalogName(false), schemaName(false) {} - bool catalogName :1; - bool schemaName :1; + bool catalogName; + bool schemaName; } _TGetFunctionsReq__isset; class TGetFunctionsReq { @@ -3092,12 +3132,11 @@ class TGetFunctionsReq { static const char* ascii_fingerprint; // = "0887E0916ADE4521BF6017B534493138"; static const uint8_t binary_fingerprint[16]; // = {0x08,0x87,0xE0,0x91,0x6A,0xDE,0x45,0x21,0xBF,0x60,0x17,0xB5,0x34,0x49,0x31,0x38}; - TGetFunctionsReq(const TGetFunctionsReq&); - TGetFunctionsReq& operator=(const TGetFunctionsReq&); TGetFunctionsReq() : catalogName(), schemaName(), functionName() { } - virtual ~TGetFunctionsReq() throw(); + virtual ~TGetFunctionsReq() throw() {} + TSessionHandle sessionHandle; TIdentifier catalogName; TPatternOrIdentifier schemaName; @@ -3105,13 +3144,23 @@ class TGetFunctionsReq { _TGetFunctionsReq__isset __isset; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_catalogName(const TIdentifier& val); + void __set_catalogName(const TIdentifier& val) { + catalogName = val; + __isset.catalogName = true; + } - void __set_schemaName(const TPatternOrIdentifier& val); + void __set_schemaName(const TPatternOrIdentifier& val) { + schemaName = val; + __isset.schemaName = true; + } - void __set_functionName(const TPatternOrIdentifier& val); + void __set_functionName(const TPatternOrIdentifier& val) { + functionName = val; + } bool operator == (const TGetFunctionsReq & rhs) const { @@ -3138,14 +3187,13 @@ class TGetFunctionsReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetFunctionsReq& obj); }; void swap(TGetFunctionsReq &a, TGetFunctionsReq &b); typedef struct _TGetFunctionsResp__isset { _TGetFunctionsResp__isset() : operationHandle(false) {} - bool operationHandle :1; + bool operationHandle; } _TGetFunctionsResp__isset; class TGetFunctionsResp { @@ -3154,20 +3202,24 @@ class TGetFunctionsResp { static const char* ascii_fingerprint; // = "02A075A0FF88D3A172916D8F23C7B286"; static const uint8_t binary_fingerprint[16]; // = {0x02,0xA0,0x75,0xA0,0xFF,0x88,0xD3,0xA1,0x72,0x91,0x6D,0x8F,0x23,0xC7,0xB2,0x86}; - TGetFunctionsResp(const TGetFunctionsResp&); - TGetFunctionsResp& operator=(const TGetFunctionsResp&); TGetFunctionsResp() { } - virtual ~TGetFunctionsResp() throw(); + virtual ~TGetFunctionsResp() throw() {} + TStatus status; TOperationHandle operationHandle; _TGetFunctionsResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + __isset.operationHandle = true; + } bool operator == (const TGetFunctionsResp & rhs) const { @@ -3188,7 +3240,6 @@ class TGetFunctionsResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetFunctionsResp& obj); }; void swap(TGetFunctionsResp &a, TGetFunctionsResp &b); @@ -3200,15 +3251,16 @@ class TGetOperationStatusReq { static const char* ascii_fingerprint; // = "414FA38522AE6B9CEC1438B56CA1DE5A"; static const uint8_t binary_fingerprint[16]; // = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; - TGetOperationStatusReq(const TGetOperationStatusReq&); - TGetOperationStatusReq& operator=(const TGetOperationStatusReq&); TGetOperationStatusReq() { } - virtual ~TGetOperationStatusReq() throw(); + virtual ~TGetOperationStatusReq() throw() {} + TOperationHandle operationHandle; - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + } bool operator == (const TGetOperationStatusReq & rhs) const { @@ -3225,17 +3277,16 @@ class TGetOperationStatusReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetOperationStatusReq& obj); }; void swap(TGetOperationStatusReq &a, TGetOperationStatusReq &b); typedef struct _TGetOperationStatusResp__isset { _TGetOperationStatusResp__isset() : operationState(false), sqlState(false), errorCode(false), errorMessage(false) {} - bool operationState :1; - bool sqlState :1; - bool errorCode :1; - bool errorMessage :1; + bool operationState; + bool sqlState; + bool errorCode; + bool errorMessage; } _TGetOperationStatusResp__isset; class TGetOperationStatusResp { @@ -3244,12 +3295,11 @@ class TGetOperationStatusResp { static const char* ascii_fingerprint; // = "BD124DB87A5A2E7D11945BD1B17F013D"; static const uint8_t binary_fingerprint[16]; // = {0xBD,0x12,0x4D,0xB8,0x7A,0x5A,0x2E,0x7D,0x11,0x94,0x5B,0xD1,0xB1,0x7F,0x01,0x3D}; - TGetOperationStatusResp(const TGetOperationStatusResp&); - TGetOperationStatusResp& operator=(const TGetOperationStatusResp&); TGetOperationStatusResp() : operationState((TOperationState::type)0), sqlState(), errorCode(0), errorMessage() { } - virtual ~TGetOperationStatusResp() throw(); + virtual ~TGetOperationStatusResp() throw() {} + TStatus status; TOperationState::type operationState; std::string sqlState; @@ -3258,15 +3308,29 @@ class TGetOperationStatusResp { _TGetOperationStatusResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_operationState(const TOperationState::type val); + void __set_operationState(const TOperationState::type val) { + operationState = val; + __isset.operationState = true; + } - void __set_sqlState(const std::string& val); + void __set_sqlState(const std::string& val) { + sqlState = val; + __isset.sqlState = true; + } - void __set_errorCode(const int32_t val); + void __set_errorCode(const int32_t val) { + errorCode = val; + __isset.errorCode = true; + } - void __set_errorMessage(const std::string& val); + void __set_errorMessage(const std::string& val) { + errorMessage = val; + __isset.errorMessage = true; + } bool operator == (const TGetOperationStatusResp & rhs) const { @@ -3299,7 +3363,6 @@ class TGetOperationStatusResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetOperationStatusResp& obj); }; void swap(TGetOperationStatusResp &a, TGetOperationStatusResp &b); @@ -3311,15 +3374,16 @@ class TCancelOperationReq { static const char* ascii_fingerprint; // = "414FA38522AE6B9CEC1438B56CA1DE5A"; static const uint8_t binary_fingerprint[16]; // = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; - TCancelOperationReq(const TCancelOperationReq&); - TCancelOperationReq& operator=(const TCancelOperationReq&); TCancelOperationReq() { } - virtual ~TCancelOperationReq() throw(); + virtual ~TCancelOperationReq() throw() {} + TOperationHandle operationHandle; - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + } bool operator == (const TCancelOperationReq & rhs) const { @@ -3336,7 +3400,6 @@ class TCancelOperationReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCancelOperationReq& obj); }; void swap(TCancelOperationReq &a, TCancelOperationReq &b); @@ -3348,15 +3411,16 @@ class TCancelOperationResp { static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2"; static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; - TCancelOperationResp(const TCancelOperationResp&); - TCancelOperationResp& operator=(const TCancelOperationResp&); TCancelOperationResp() { } - virtual ~TCancelOperationResp() throw(); + virtual ~TCancelOperationResp() throw() {} + TStatus status; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } bool operator == (const TCancelOperationResp & rhs) const { @@ -3373,7 +3437,6 @@ class TCancelOperationResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCancelOperationResp& obj); }; void swap(TCancelOperationResp &a, TCancelOperationResp &b); @@ -3385,15 +3448,16 @@ class TCloseOperationReq { static const char* ascii_fingerprint; // = "414FA38522AE6B9CEC1438B56CA1DE5A"; static const uint8_t binary_fingerprint[16]; // = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; - TCloseOperationReq(const TCloseOperationReq&); - TCloseOperationReq& operator=(const TCloseOperationReq&); TCloseOperationReq() { } - virtual ~TCloseOperationReq() throw(); + virtual ~TCloseOperationReq() throw() {} + TOperationHandle operationHandle; - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + } bool operator == (const TCloseOperationReq & rhs) const { @@ -3410,7 +3474,6 @@ class TCloseOperationReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCloseOperationReq& obj); }; void swap(TCloseOperationReq &a, TCloseOperationReq &b); @@ -3422,15 +3485,16 @@ class TCloseOperationResp { static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2"; static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; - TCloseOperationResp(const TCloseOperationResp&); - TCloseOperationResp& operator=(const TCloseOperationResp&); TCloseOperationResp() { } - virtual ~TCloseOperationResp() throw(); + virtual ~TCloseOperationResp() throw() {} + TStatus status; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } bool operator == (const TCloseOperationResp & rhs) const { @@ -3447,7 +3511,6 @@ class TCloseOperationResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCloseOperationResp& obj); }; void swap(TCloseOperationResp &a, TCloseOperationResp &b); @@ -3459,15 +3522,16 @@ class TGetResultSetMetadataReq { static const char* ascii_fingerprint; // = "414FA38522AE6B9CEC1438B56CA1DE5A"; static const uint8_t binary_fingerprint[16]; // = {0x41,0x4F,0xA3,0x85,0x22,0xAE,0x6B,0x9C,0xEC,0x14,0x38,0xB5,0x6C,0xA1,0xDE,0x5A}; - TGetResultSetMetadataReq(const TGetResultSetMetadataReq&); - TGetResultSetMetadataReq& operator=(const TGetResultSetMetadataReq&); TGetResultSetMetadataReq() { } - virtual ~TGetResultSetMetadataReq() throw(); + virtual ~TGetResultSetMetadataReq() throw() {} + TOperationHandle operationHandle; - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + } bool operator == (const TGetResultSetMetadataReq & rhs) const { @@ -3484,14 +3548,13 @@ class TGetResultSetMetadataReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetResultSetMetadataReq& obj); }; void swap(TGetResultSetMetadataReq &a, TGetResultSetMetadataReq &b); typedef struct _TGetResultSetMetadataResp__isset { _TGetResultSetMetadataResp__isset() : schema(false) {} - bool schema :1; + bool schema; } _TGetResultSetMetadataResp__isset; class TGetResultSetMetadataResp { @@ -3500,20 +3563,24 @@ class TGetResultSetMetadataResp { static const char* ascii_fingerprint; // = "42CD49B7F49CC1B6D4E6F5FA2D7BE812"; static const uint8_t binary_fingerprint[16]; // = {0x42,0xCD,0x49,0xB7,0xF4,0x9C,0xC1,0xB6,0xD4,0xE6,0xF5,0xFA,0x2D,0x7B,0xE8,0x12}; - TGetResultSetMetadataResp(const TGetResultSetMetadataResp&); - TGetResultSetMetadataResp& operator=(const TGetResultSetMetadataResp&); TGetResultSetMetadataResp() { } - virtual ~TGetResultSetMetadataResp() throw(); + virtual ~TGetResultSetMetadataResp() throw() {} + TStatus status; TTableSchema schema; _TGetResultSetMetadataResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_schema(const TTableSchema& val); + void __set_schema(const TTableSchema& val) { + schema = val; + __isset.schema = true; + } bool operator == (const TGetResultSetMetadataResp & rhs) const { @@ -3534,14 +3601,13 @@ class TGetResultSetMetadataResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetResultSetMetadataResp& obj); }; void swap(TGetResultSetMetadataResp &a, TGetResultSetMetadataResp &b); typedef struct _TFetchResultsReq__isset { _TFetchResultsReq__isset() : fetchType(true) {} - bool fetchType :1; + bool fetchType; } _TFetchResultsReq__isset; class TFetchResultsReq { @@ -3550,14 +3616,13 @@ class TFetchResultsReq { static const char* ascii_fingerprint; // = "B4CB1E4F8F8F4D50183DD372AD11753A"; static const uint8_t binary_fingerprint[16]; // = {0xB4,0xCB,0x1E,0x4F,0x8F,0x8F,0x4D,0x50,0x18,0x3D,0xD3,0x72,0xAD,0x11,0x75,0x3A}; - TFetchResultsReq(const TFetchResultsReq&); - TFetchResultsReq& operator=(const TFetchResultsReq&); TFetchResultsReq() : orientation((TFetchOrientation::type)0), maxRows(0), fetchType(0) { orientation = (TFetchOrientation::type)0; } - virtual ~TFetchResultsReq() throw(); + virtual ~TFetchResultsReq() throw() {} + TOperationHandle operationHandle; TFetchOrientation::type orientation; int64_t maxRows; @@ -3565,13 +3630,22 @@ class TFetchResultsReq { _TFetchResultsReq__isset __isset; - void __set_operationHandle(const TOperationHandle& val); + void __set_operationHandle(const TOperationHandle& val) { + operationHandle = val; + } - void __set_orientation(const TFetchOrientation::type val); + void __set_orientation(const TFetchOrientation::type val) { + orientation = val; + } - void __set_maxRows(const int64_t val); + void __set_maxRows(const int64_t val) { + maxRows = val; + } - void __set_fetchType(const int16_t val); + void __set_fetchType(const int16_t val) { + fetchType = val; + __isset.fetchType = true; + } bool operator == (const TFetchResultsReq & rhs) const { @@ -3596,15 +3670,14 @@ class TFetchResultsReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TFetchResultsReq& obj); }; void swap(TFetchResultsReq &a, TFetchResultsReq &b); typedef struct _TFetchResultsResp__isset { _TFetchResultsResp__isset() : hasMoreRows(false), results(false) {} - bool hasMoreRows :1; - bool results :1; + bool hasMoreRows; + bool results; } _TFetchResultsResp__isset; class TFetchResultsResp { @@ -3613,23 +3686,30 @@ class TFetchResultsResp { static const char* ascii_fingerprint; // = "FC43BC2D6F3B76D4DB0F34226A745C8E"; static const uint8_t binary_fingerprint[16]; // = {0xFC,0x43,0xBC,0x2D,0x6F,0x3B,0x76,0xD4,0xDB,0x0F,0x34,0x22,0x6A,0x74,0x5C,0x8E}; - TFetchResultsResp(const TFetchResultsResp&); - TFetchResultsResp& operator=(const TFetchResultsResp&); TFetchResultsResp() : hasMoreRows(0) { } - virtual ~TFetchResultsResp() throw(); + virtual ~TFetchResultsResp() throw() {} + TStatus status; bool hasMoreRows; TRowSet results; _TFetchResultsResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_hasMoreRows(const bool val); + void __set_hasMoreRows(const bool val) { + hasMoreRows = val; + __isset.hasMoreRows = true; + } - void __set_results(const TRowSet& val); + void __set_results(const TRowSet& val) { + results = val; + __isset.results = true; + } bool operator == (const TFetchResultsResp & rhs) const { @@ -3654,7 +3734,6 @@ class TFetchResultsResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TFetchResultsResp& obj); }; void swap(TFetchResultsResp &a, TFetchResultsResp &b); @@ -3666,21 +3745,26 @@ class TGetDelegationTokenReq { static const char* ascii_fingerprint; // = "07EA0311716A27924914E4354ED22D6C"; static const uint8_t binary_fingerprint[16]; // = {0x07,0xEA,0x03,0x11,0x71,0x6A,0x27,0x92,0x49,0x14,0xE4,0x35,0x4E,0xD2,0x2D,0x6C}; - TGetDelegationTokenReq(const TGetDelegationTokenReq&); - TGetDelegationTokenReq& operator=(const TGetDelegationTokenReq&); TGetDelegationTokenReq() : owner(), renewer() { } - virtual ~TGetDelegationTokenReq() throw(); + virtual ~TGetDelegationTokenReq() throw() {} + TSessionHandle sessionHandle; std::string owner; std::string renewer; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_owner(const std::string& val); + void __set_owner(const std::string& val) { + owner = val; + } - void __set_renewer(const std::string& val); + void __set_renewer(const std::string& val) { + renewer = val; + } bool operator == (const TGetDelegationTokenReq & rhs) const { @@ -3701,14 +3785,13 @@ class TGetDelegationTokenReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetDelegationTokenReq& obj); }; void swap(TGetDelegationTokenReq &a, TGetDelegationTokenReq &b); typedef struct _TGetDelegationTokenResp__isset { _TGetDelegationTokenResp__isset() : delegationToken(false) {} - bool delegationToken :1; + bool delegationToken; } _TGetDelegationTokenResp__isset; class TGetDelegationTokenResp { @@ -3717,20 +3800,24 @@ class TGetDelegationTokenResp { static const char* ascii_fingerprint; // = "C0E132DC412CEA08D771EAC38CEA1DA6"; static const uint8_t binary_fingerprint[16]; // = {0xC0,0xE1,0x32,0xDC,0x41,0x2C,0xEA,0x08,0xD7,0x71,0xEA,0xC3,0x8C,0xEA,0x1D,0xA6}; - TGetDelegationTokenResp(const TGetDelegationTokenResp&); - TGetDelegationTokenResp& operator=(const TGetDelegationTokenResp&); TGetDelegationTokenResp() : delegationToken() { } - virtual ~TGetDelegationTokenResp() throw(); + virtual ~TGetDelegationTokenResp() throw() {} + TStatus status; std::string delegationToken; _TGetDelegationTokenResp__isset __isset; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } - void __set_delegationToken(const std::string& val); + void __set_delegationToken(const std::string& val) { + delegationToken = val; + __isset.delegationToken = true; + } bool operator == (const TGetDelegationTokenResp & rhs) const { @@ -3751,7 +3838,6 @@ class TGetDelegationTokenResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TGetDelegationTokenResp& obj); }; void swap(TGetDelegationTokenResp &a, TGetDelegationTokenResp &b); @@ -3763,18 +3849,21 @@ class TCancelDelegationTokenReq { static const char* ascii_fingerprint; // = "1A3D66269336B7EC66998BFE1BECDE75"; static const uint8_t binary_fingerprint[16]; // = {0x1A,0x3D,0x66,0x26,0x93,0x36,0xB7,0xEC,0x66,0x99,0x8B,0xFE,0x1B,0xEC,0xDE,0x75}; - TCancelDelegationTokenReq(const TCancelDelegationTokenReq&); - TCancelDelegationTokenReq& operator=(const TCancelDelegationTokenReq&); TCancelDelegationTokenReq() : delegationToken() { } - virtual ~TCancelDelegationTokenReq() throw(); + virtual ~TCancelDelegationTokenReq() throw() {} + TSessionHandle sessionHandle; std::string delegationToken; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_delegationToken(const std::string& val); + void __set_delegationToken(const std::string& val) { + delegationToken = val; + } bool operator == (const TCancelDelegationTokenReq & rhs) const { @@ -3793,7 +3882,6 @@ class TCancelDelegationTokenReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCancelDelegationTokenReq& obj); }; void swap(TCancelDelegationTokenReq &a, TCancelDelegationTokenReq &b); @@ -3805,15 +3893,16 @@ class TCancelDelegationTokenResp { static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2"; static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; - TCancelDelegationTokenResp(const TCancelDelegationTokenResp&); - TCancelDelegationTokenResp& operator=(const TCancelDelegationTokenResp&); TCancelDelegationTokenResp() { } - virtual ~TCancelDelegationTokenResp() throw(); + virtual ~TCancelDelegationTokenResp() throw() {} + TStatus status; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } bool operator == (const TCancelDelegationTokenResp & rhs) const { @@ -3830,7 +3919,6 @@ class TCancelDelegationTokenResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TCancelDelegationTokenResp& obj); }; void swap(TCancelDelegationTokenResp &a, TCancelDelegationTokenResp &b); @@ -3842,18 +3930,21 @@ class TRenewDelegationTokenReq { static const char* ascii_fingerprint; // = "1A3D66269336B7EC66998BFE1BECDE75"; static const uint8_t binary_fingerprint[16]; // = {0x1A,0x3D,0x66,0x26,0x93,0x36,0xB7,0xEC,0x66,0x99,0x8B,0xFE,0x1B,0xEC,0xDE,0x75}; - TRenewDelegationTokenReq(const TRenewDelegationTokenReq&); - TRenewDelegationTokenReq& operator=(const TRenewDelegationTokenReq&); TRenewDelegationTokenReq() : delegationToken() { } - virtual ~TRenewDelegationTokenReq() throw(); + virtual ~TRenewDelegationTokenReq() throw() {} + TSessionHandle sessionHandle; std::string delegationToken; - void __set_sessionHandle(const TSessionHandle& val); + void __set_sessionHandle(const TSessionHandle& val) { + sessionHandle = val; + } - void __set_delegationToken(const std::string& val); + void __set_delegationToken(const std::string& val) { + delegationToken = val; + } bool operator == (const TRenewDelegationTokenReq & rhs) const { @@ -3872,7 +3963,6 @@ class TRenewDelegationTokenReq { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TRenewDelegationTokenReq& obj); }; void swap(TRenewDelegationTokenReq &a, TRenewDelegationTokenReq &b); @@ -3884,15 +3974,16 @@ class TRenewDelegationTokenResp { static const char* ascii_fingerprint; // = "7142E89F09DC7C5F6FA916C7393F46C2"; static const uint8_t binary_fingerprint[16]; // = {0x71,0x42,0xE8,0x9F,0x09,0xDC,0x7C,0x5F,0x6F,0xA9,0x16,0xC7,0x39,0x3F,0x46,0xC2}; - TRenewDelegationTokenResp(const TRenewDelegationTokenResp&); - TRenewDelegationTokenResp& operator=(const TRenewDelegationTokenResp&); TRenewDelegationTokenResp() { } - virtual ~TRenewDelegationTokenResp() throw(); + virtual ~TRenewDelegationTokenResp() throw() {} + TStatus status; - void __set_status(const TStatus& val); + void __set_status(const TStatus& val) { + status = val; + } bool operator == (const TRenewDelegationTokenResp & rhs) const { @@ -3909,7 +4000,6 @@ class TRenewDelegationTokenResp { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const TRenewDelegationTokenResp& obj); }; void swap(TRenewDelegationTokenResp &a, TRenewDelegationTokenResp &b); diff --git a/service/src/gen/thrift/gen-cpp/ThriftHive.cpp b/service/src/gen/thrift/gen-cpp/ThriftHive.cpp index 8935c04..865db69 100644 --- a/service/src/gen/thrift/gen-cpp/ThriftHive.cpp +++ b/service/src/gen/thrift/gen-cpp/ThriftHive.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -8,11 +8,6 @@ namespace Apache { namespace Hadoop { namespace Hive { - -ThriftHive_execute_args::~ThriftHive_execute_args() throw() { -} - - uint32_t ThriftHive_execute_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -55,7 +50,6 @@ uint32_t ThriftHive_execute_args::read(::apache::thrift::protocol::TProtocol* ip uint32_t ThriftHive_execute_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_execute_args"); xfer += oprot->writeFieldBegin("query", ::apache::thrift::protocol::T_STRING, 1); @@ -64,18 +58,11 @@ uint32_t ThriftHive_execute_args::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_execute_pargs::~ThriftHive_execute_pargs() throw() { -} - - uint32_t ThriftHive_execute_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_execute_pargs"); xfer += oprot->writeFieldBegin("query", ::apache::thrift::protocol::T_STRING, 1); @@ -84,15 +71,9 @@ uint32_t ThriftHive_execute_pargs::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_execute_result::~ThriftHive_execute_result() throw() { -} - - uint32_t ThriftHive_execute_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -149,11 +130,6 @@ uint32_t ThriftHive_execute_result::write(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_execute_presult::~ThriftHive_execute_presult() throw() { -} - - uint32_t ThriftHive_execute_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -194,11 +170,6 @@ uint32_t ThriftHive_execute_presult::read(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_fetchOne_args::~ThriftHive_fetchOne_args() throw() { -} - - uint32_t ThriftHive_fetchOne_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -228,36 +199,22 @@ uint32_t ThriftHive_fetchOne_args::read(::apache::thrift::protocol::TProtocol* i uint32_t ThriftHive_fetchOne_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_fetchOne_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_fetchOne_pargs::~ThriftHive_fetchOne_pargs() throw() { -} - - uint32_t ThriftHive_fetchOne_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_fetchOne_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_fetchOne_result::~ThriftHive_fetchOne_result() throw() { -} - - uint32_t ThriftHive_fetchOne_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -326,11 +283,6 @@ uint32_t ThriftHive_fetchOne_result::write(::apache::thrift::protocol::TProtocol return xfer; } - -ThriftHive_fetchOne_presult::~ThriftHive_fetchOne_presult() throw() { -} - - uint32_t ThriftHive_fetchOne_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -379,11 +331,6 @@ uint32_t ThriftHive_fetchOne_presult::read(::apache::thrift::protocol::TProtocol return xfer; } - -ThriftHive_fetchN_args::~ThriftHive_fetchN_args() throw() { -} - - uint32_t ThriftHive_fetchN_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -426,7 +373,6 @@ uint32_t ThriftHive_fetchN_args::read(::apache::thrift::protocol::TProtocol* ipr uint32_t ThriftHive_fetchN_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_fetchN_args"); xfer += oprot->writeFieldBegin("numRows", ::apache::thrift::protocol::T_I32, 1); @@ -435,18 +381,11 @@ uint32_t ThriftHive_fetchN_args::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_fetchN_pargs::~ThriftHive_fetchN_pargs() throw() { -} - - uint32_t ThriftHive_fetchN_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_fetchN_pargs"); xfer += oprot->writeFieldBegin("numRows", ::apache::thrift::protocol::T_I32, 1); @@ -455,15 +394,9 @@ uint32_t ThriftHive_fetchN_pargs::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_fetchN_result::~ThriftHive_fetchN_result() throw() { -} - - uint32_t ThriftHive_fetchN_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -488,14 +421,14 @@ uint32_t ThriftHive_fetchN_result::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size5; - ::apache::thrift::protocol::TType _etype8; - xfer += iprot->readListBegin(_etype8, _size5); - this->success.resize(_size5); - uint32_t _i9; - for (_i9 = 0; _i9 < _size5; ++_i9) + uint32_t _size1; + ::apache::thrift::protocol::TType _etype4; + xfer += iprot->readListBegin(_etype4, _size1); + this->success.resize(_size1); + uint32_t _i5; + for (_i5 = 0; _i5 < _size1; ++_i5) { - xfer += iprot->readString(this->success[_i9]); + xfer += iprot->readString(this->success[_i5]); } xfer += iprot->readListEnd(); } @@ -534,10 +467,10 @@ uint32_t ThriftHive_fetchN_result::write(::apache::thrift::protocol::TProtocol* 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 _iter10; - for (_iter10 = this->success.begin(); _iter10 != this->success.end(); ++_iter10) + std::vector ::const_iterator _iter6; + for (_iter6 = this->success.begin(); _iter6 != this->success.end(); ++_iter6) { - xfer += oprot->writeString((*_iter10)); + xfer += oprot->writeString((*_iter6)); } xfer += oprot->writeListEnd(); } @@ -552,11 +485,6 @@ uint32_t ThriftHive_fetchN_result::write(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_fetchN_presult::~ThriftHive_fetchN_presult() throw() { -} - - uint32_t ThriftHive_fetchN_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -581,14 +509,14 @@ uint32_t ThriftHive_fetchN_presult::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size11; - ::apache::thrift::protocol::TType _etype14; - xfer += iprot->readListBegin(_etype14, _size11); - (*(this->success)).resize(_size11); - uint32_t _i15; - for (_i15 = 0; _i15 < _size11; ++_i15) + uint32_t _size7; + ::apache::thrift::protocol::TType _etype10; + xfer += iprot->readListBegin(_etype10, _size7); + (*(this->success)).resize(_size7); + uint32_t _i11; + for (_i11 = 0; _i11 < _size7; ++_i11) { - xfer += iprot->readString((*(this->success))[_i15]); + xfer += iprot->readString((*(this->success))[_i11]); } xfer += iprot->readListEnd(); } @@ -617,11 +545,6 @@ uint32_t ThriftHive_fetchN_presult::read(::apache::thrift::protocol::TProtocol* return xfer; } - -ThriftHive_fetchAll_args::~ThriftHive_fetchAll_args() throw() { -} - - uint32_t ThriftHive_fetchAll_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -651,36 +574,22 @@ uint32_t ThriftHive_fetchAll_args::read(::apache::thrift::protocol::TProtocol* i uint32_t ThriftHive_fetchAll_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_fetchAll_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_fetchAll_pargs::~ThriftHive_fetchAll_pargs() throw() { -} - - uint32_t ThriftHive_fetchAll_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_fetchAll_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_fetchAll_result::~ThriftHive_fetchAll_result() throw() { -} - - uint32_t ThriftHive_fetchAll_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -705,14 +614,14 @@ uint32_t ThriftHive_fetchAll_result::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size16; - ::apache::thrift::protocol::TType _etype19; - xfer += iprot->readListBegin(_etype19, _size16); - this->success.resize(_size16); - uint32_t _i20; - for (_i20 = 0; _i20 < _size16; ++_i20) + uint32_t _size12; + ::apache::thrift::protocol::TType _etype15; + xfer += iprot->readListBegin(_etype15, _size12); + this->success.resize(_size12); + uint32_t _i16; + for (_i16 = 0; _i16 < _size12; ++_i16) { - xfer += iprot->readString(this->success[_i20]); + xfer += iprot->readString(this->success[_i16]); } xfer += iprot->readListEnd(); } @@ -751,10 +660,10 @@ uint32_t ThriftHive_fetchAll_result::write(::apache::thrift::protocol::TProtocol 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 _iter21; - for (_iter21 = this->success.begin(); _iter21 != this->success.end(); ++_iter21) + std::vector ::const_iterator _iter17; + for (_iter17 = this->success.begin(); _iter17 != this->success.end(); ++_iter17) { - xfer += oprot->writeString((*_iter21)); + xfer += oprot->writeString((*_iter17)); } xfer += oprot->writeListEnd(); } @@ -769,11 +678,6 @@ uint32_t ThriftHive_fetchAll_result::write(::apache::thrift::protocol::TProtocol return xfer; } - -ThriftHive_fetchAll_presult::~ThriftHive_fetchAll_presult() throw() { -} - - uint32_t ThriftHive_fetchAll_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -798,14 +702,14 @@ uint32_t ThriftHive_fetchAll_presult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size22; - ::apache::thrift::protocol::TType _etype25; - xfer += iprot->readListBegin(_etype25, _size22); - (*(this->success)).resize(_size22); - uint32_t _i26; - for (_i26 = 0; _i26 < _size22; ++_i26) + uint32_t _size18; + ::apache::thrift::protocol::TType _etype21; + xfer += iprot->readListBegin(_etype21, _size18); + (*(this->success)).resize(_size18); + uint32_t _i22; + for (_i22 = 0; _i22 < _size18; ++_i22) { - xfer += iprot->readString((*(this->success))[_i26]); + xfer += iprot->readString((*(this->success))[_i22]); } xfer += iprot->readListEnd(); } @@ -834,11 +738,6 @@ uint32_t ThriftHive_fetchAll_presult::read(::apache::thrift::protocol::TProtocol return xfer; } - -ThriftHive_getSchema_args::~ThriftHive_getSchema_args() throw() { -} - - uint32_t ThriftHive_getSchema_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -868,36 +767,22 @@ uint32_t ThriftHive_getSchema_args::read(::apache::thrift::protocol::TProtocol* uint32_t ThriftHive_getSchema_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_getSchema_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_getSchema_pargs::~ThriftHive_getSchema_pargs() throw() { -} - - uint32_t ThriftHive_getSchema_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_getSchema_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_getSchema_result::~ThriftHive_getSchema_result() throw() { -} - - uint32_t ThriftHive_getSchema_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -966,11 +851,6 @@ uint32_t ThriftHive_getSchema_result::write(::apache::thrift::protocol::TProtoco return xfer; } - -ThriftHive_getSchema_presult::~ThriftHive_getSchema_presult() throw() { -} - - uint32_t ThriftHive_getSchema_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1019,11 +899,6 @@ uint32_t ThriftHive_getSchema_presult::read(::apache::thrift::protocol::TProtoco return xfer; } - -ThriftHive_getThriftSchema_args::~ThriftHive_getThriftSchema_args() throw() { -} - - uint32_t ThriftHive_getThriftSchema_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1053,36 +928,22 @@ uint32_t ThriftHive_getThriftSchema_args::read(::apache::thrift::protocol::TProt uint32_t ThriftHive_getThriftSchema_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_getThriftSchema_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_getThriftSchema_pargs::~ThriftHive_getThriftSchema_pargs() throw() { -} - - uint32_t ThriftHive_getThriftSchema_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_getThriftSchema_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_getThriftSchema_result::~ThriftHive_getThriftSchema_result() throw() { -} - - uint32_t ThriftHive_getThriftSchema_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1151,11 +1012,6 @@ uint32_t ThriftHive_getThriftSchema_result::write(::apache::thrift::protocol::TP return xfer; } - -ThriftHive_getThriftSchema_presult::~ThriftHive_getThriftSchema_presult() throw() { -} - - uint32_t ThriftHive_getThriftSchema_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1204,11 +1060,6 @@ uint32_t ThriftHive_getThriftSchema_presult::read(::apache::thrift::protocol::TP return xfer; } - -ThriftHive_getClusterStatus_args::~ThriftHive_getClusterStatus_args() throw() { -} - - uint32_t ThriftHive_getClusterStatus_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1238,36 +1089,22 @@ uint32_t ThriftHive_getClusterStatus_args::read(::apache::thrift::protocol::TPro uint32_t ThriftHive_getClusterStatus_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_getClusterStatus_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_getClusterStatus_pargs::~ThriftHive_getClusterStatus_pargs() throw() { -} - - uint32_t ThriftHive_getClusterStatus_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_getClusterStatus_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_getClusterStatus_result::~ThriftHive_getClusterStatus_result() throw() { -} - - uint32_t ThriftHive_getClusterStatus_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1336,11 +1173,6 @@ uint32_t ThriftHive_getClusterStatus_result::write(::apache::thrift::protocol::T return xfer; } - -ThriftHive_getClusterStatus_presult::~ThriftHive_getClusterStatus_presult() throw() { -} - - uint32_t ThriftHive_getClusterStatus_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1389,11 +1221,6 @@ uint32_t ThriftHive_getClusterStatus_presult::read(::apache::thrift::protocol::T return xfer; } - -ThriftHive_getQueryPlan_args::~ThriftHive_getQueryPlan_args() throw() { -} - - uint32_t ThriftHive_getQueryPlan_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1423,36 +1250,22 @@ uint32_t ThriftHive_getQueryPlan_args::read(::apache::thrift::protocol::TProtoco uint32_t ThriftHive_getQueryPlan_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_getQueryPlan_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_getQueryPlan_pargs::~ThriftHive_getQueryPlan_pargs() throw() { -} - - uint32_t ThriftHive_getQueryPlan_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_getQueryPlan_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_getQueryPlan_result::~ThriftHive_getQueryPlan_result() throw() { -} - - uint32_t ThriftHive_getQueryPlan_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1521,11 +1334,6 @@ uint32_t ThriftHive_getQueryPlan_result::write(::apache::thrift::protocol::TProt return xfer; } - -ThriftHive_getQueryPlan_presult::~ThriftHive_getQueryPlan_presult() throw() { -} - - uint32_t ThriftHive_getQueryPlan_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1574,11 +1382,6 @@ uint32_t ThriftHive_getQueryPlan_presult::read(::apache::thrift::protocol::TProt return xfer; } - -ThriftHive_clean_args::~ThriftHive_clean_args() throw() { -} - - uint32_t ThriftHive_clean_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1608,36 +1411,22 @@ uint32_t ThriftHive_clean_args::read(::apache::thrift::protocol::TProtocol* ipro uint32_t ThriftHive_clean_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_clean_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_clean_pargs::~ThriftHive_clean_pargs() throw() { -} - - uint32_t ThriftHive_clean_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("ThriftHive_clean_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } - -ThriftHive_clean_result::~ThriftHive_clean_result() throw() { -} - - uint32_t ThriftHive_clean_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -1676,11 +1465,6 @@ uint32_t ThriftHive_clean_result::write(::apache::thrift::protocol::TProtocol* o return xfer; } - -ThriftHive_clean_presult::~ThriftHive_clean_presult() throw() { -} - - uint32_t ThriftHive_clean_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; diff --git a/service/src/gen/thrift/gen-cpp/ThriftHive.h b/service/src/gen/thrift/gen-cpp/ThriftHive.h index e610e50..b84362b 100644 --- a/service/src/gen/thrift/gen-cpp/ThriftHive.h +++ b/service/src/gen/thrift/gen-cpp/ThriftHive.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -85,26 +85,24 @@ class ThriftHiveNull : virtual public ThriftHiveIf , virtual public ::Apache::H typedef struct _ThriftHive_execute_args__isset { _ThriftHive_execute_args__isset() : query(false) {} - bool query :1; + bool query; } _ThriftHive_execute_args__isset; class ThriftHive_execute_args { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; - - ThriftHive_execute_args(const ThriftHive_execute_args&); - ThriftHive_execute_args& operator=(const ThriftHive_execute_args&); ThriftHive_execute_args() : query() { } - virtual ~ThriftHive_execute_args() throw(); + virtual ~ThriftHive_execute_args() throw() {} + std::string query; _ThriftHive_execute_args__isset __isset; - void __set_query(const std::string& val); + void __set_query(const std::string& val) { + query = val; + } bool operator == (const ThriftHive_execute_args & rhs) const { @@ -121,47 +119,41 @@ class ThriftHive_execute_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_execute_args& obj); }; class ThriftHive_execute_pargs { public: - static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; - static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + virtual ~ThriftHive_execute_pargs() throw() {} - virtual ~ThriftHive_execute_pargs() throw(); const std::string* query; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_execute_pargs& obj); }; typedef struct _ThriftHive_execute_result__isset { _ThriftHive_execute_result__isset() : ex(false) {} - bool ex :1; + bool ex; } _ThriftHive_execute_result__isset; class ThriftHive_execute_result { public: - static const char* ascii_fingerprint; // = "6AC6FD61CA5E3524E0174B0B96D6F9C0"; - static const uint8_t binary_fingerprint[16]; // = {0x6A,0xC6,0xFD,0x61,0xCA,0x5E,0x35,0x24,0xE0,0x17,0x4B,0x0B,0x96,0xD6,0xF9,0xC0}; - - ThriftHive_execute_result(const ThriftHive_execute_result&); - ThriftHive_execute_result& operator=(const ThriftHive_execute_result&); ThriftHive_execute_result() { } - virtual ~ThriftHive_execute_result() throw(); + virtual ~ThriftHive_execute_result() throw() {} + HiveServerException ex; _ThriftHive_execute_result__isset __isset; - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_execute_result & rhs) const { @@ -178,44 +170,36 @@ class ThriftHive_execute_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_execute_result& obj); }; typedef struct _ThriftHive_execute_presult__isset { _ThriftHive_execute_presult__isset() : ex(false) {} - bool ex :1; + bool ex; } _ThriftHive_execute_presult__isset; class ThriftHive_execute_presult { public: - static const char* ascii_fingerprint; // = "6AC6FD61CA5E3524E0174B0B96D6F9C0"; - static const uint8_t binary_fingerprint[16]; // = {0x6A,0xC6,0xFD,0x61,0xCA,0x5E,0x35,0x24,0xE0,0x17,0x4B,0x0B,0x96,0xD6,0xF9,0xC0}; + virtual ~ThriftHive_execute_presult() throw() {} - virtual ~ThriftHive_execute_presult() throw(); HiveServerException ex; _ThriftHive_execute_presult__isset __isset; uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_execute_presult& obj); }; class ThriftHive_fetchOne_args { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHive_fetchOne_args(const ThriftHive_fetchOne_args&); - ThriftHive_fetchOne_args& operator=(const ThriftHive_fetchOne_args&); ThriftHive_fetchOne_args() { } - virtual ~ThriftHive_fetchOne_args() throw(); + virtual ~ThriftHive_fetchOne_args() throw() {} + bool operator == (const ThriftHive_fetchOne_args & /* rhs */) const { @@ -230,50 +214,46 @@ class ThriftHive_fetchOne_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_fetchOne_args& obj); }; class ThriftHive_fetchOne_pargs { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHive_fetchOne_pargs() throw() {} - virtual ~ThriftHive_fetchOne_pargs() throw(); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_fetchOne_pargs& obj); }; typedef struct _ThriftHive_fetchOne_result__isset { _ThriftHive_fetchOne_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_fetchOne_result__isset; class ThriftHive_fetchOne_result { public: - static const char* ascii_fingerprint; // = "BD5C3537D3AE5C0248BD3B45C053AE32"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0x5C,0x35,0x37,0xD3,0xAE,0x5C,0x02,0x48,0xBD,0x3B,0x45,0xC0,0x53,0xAE,0x32}; - - ThriftHive_fetchOne_result(const ThriftHive_fetchOne_result&); - ThriftHive_fetchOne_result& operator=(const ThriftHive_fetchOne_result&); ThriftHive_fetchOne_result() : success() { } - virtual ~ThriftHive_fetchOne_result() throw(); + virtual ~ThriftHive_fetchOne_result() throw() {} + std::string success; HiveServerException ex; _ThriftHive_fetchOne_result__isset __isset; - void __set_success(const std::string& val); + void __set_success(const std::string& val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_fetchOne_result & rhs) const { @@ -292,23 +272,20 @@ class ThriftHive_fetchOne_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_fetchOne_result& obj); }; typedef struct _ThriftHive_fetchOne_presult__isset { _ThriftHive_fetchOne_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_fetchOne_presult__isset; class ThriftHive_fetchOne_presult { public: - static const char* ascii_fingerprint; // = "BD5C3537D3AE5C0248BD3B45C053AE32"; - static const uint8_t binary_fingerprint[16]; // = {0xBD,0x5C,0x35,0x37,0xD3,0xAE,0x5C,0x02,0x48,0xBD,0x3B,0x45,0xC0,0x53,0xAE,0x32}; + virtual ~ThriftHive_fetchOne_presult() throw() {} - virtual ~ThriftHive_fetchOne_presult() throw(); std::string* success; HiveServerException ex; @@ -316,31 +293,28 @@ class ThriftHive_fetchOne_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_fetchOne_presult& obj); }; typedef struct _ThriftHive_fetchN_args__isset { _ThriftHive_fetchN_args__isset() : numRows(false) {} - bool numRows :1; + bool numRows; } _ThriftHive_fetchN_args__isset; class ThriftHive_fetchN_args { public: - static const char* ascii_fingerprint; // = "E86CACEB22240450EDCBEFC3A83970E4"; - static const uint8_t binary_fingerprint[16]; // = {0xE8,0x6C,0xAC,0xEB,0x22,0x24,0x04,0x50,0xED,0xCB,0xEF,0xC3,0xA8,0x39,0x70,0xE4}; - - ThriftHive_fetchN_args(const ThriftHive_fetchN_args&); - ThriftHive_fetchN_args& operator=(const ThriftHive_fetchN_args&); ThriftHive_fetchN_args() : numRows(0) { } - virtual ~ThriftHive_fetchN_args() throw(); + virtual ~ThriftHive_fetchN_args() throw() {} + int32_t numRows; _ThriftHive_fetchN_args__isset __isset; - void __set_numRows(const int32_t val); + void __set_numRows(const int32_t val) { + numRows = val; + } bool operator == (const ThriftHive_fetchN_args & rhs) const { @@ -357,51 +331,47 @@ class ThriftHive_fetchN_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_fetchN_args& obj); }; class ThriftHive_fetchN_pargs { public: - static const char* ascii_fingerprint; // = "E86CACEB22240450EDCBEFC3A83970E4"; - static const uint8_t binary_fingerprint[16]; // = {0xE8,0x6C,0xAC,0xEB,0x22,0x24,0x04,0x50,0xED,0xCB,0xEF,0xC3,0xA8,0x39,0x70,0xE4}; + virtual ~ThriftHive_fetchN_pargs() throw() {} - virtual ~ThriftHive_fetchN_pargs() throw(); const int32_t* numRows; uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_fetchN_pargs& obj); }; typedef struct _ThriftHive_fetchN_result__isset { _ThriftHive_fetchN_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_fetchN_result__isset; class ThriftHive_fetchN_result { public: - static const char* ascii_fingerprint; // = "EB142A6BE66D8EE6065D07106EABD55D"; - static const uint8_t binary_fingerprint[16]; // = {0xEB,0x14,0x2A,0x6B,0xE6,0x6D,0x8E,0xE6,0x06,0x5D,0x07,0x10,0x6E,0xAB,0xD5,0x5D}; - - ThriftHive_fetchN_result(const ThriftHive_fetchN_result&); - ThriftHive_fetchN_result& operator=(const ThriftHive_fetchN_result&); ThriftHive_fetchN_result() { } - virtual ~ThriftHive_fetchN_result() throw(); + virtual ~ThriftHive_fetchN_result() throw() {} + std::vector success; HiveServerException ex; _ThriftHive_fetchN_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_fetchN_result & rhs) const { @@ -420,23 +390,20 @@ class ThriftHive_fetchN_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_fetchN_result& obj); }; typedef struct _ThriftHive_fetchN_presult__isset { _ThriftHive_fetchN_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_fetchN_presult__isset; class ThriftHive_fetchN_presult { public: - static const char* ascii_fingerprint; // = "EB142A6BE66D8EE6065D07106EABD55D"; - static const uint8_t binary_fingerprint[16]; // = {0xEB,0x14,0x2A,0x6B,0xE6,0x6D,0x8E,0xE6,0x06,0x5D,0x07,0x10,0x6E,0xAB,0xD5,0x5D}; + virtual ~ThriftHive_fetchN_presult() throw() {} - virtual ~ThriftHive_fetchN_presult() throw(); std::vector * success; HiveServerException ex; @@ -444,22 +411,17 @@ class ThriftHive_fetchN_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_fetchN_presult& obj); }; class ThriftHive_fetchAll_args { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHive_fetchAll_args(const ThriftHive_fetchAll_args&); - ThriftHive_fetchAll_args& operator=(const ThriftHive_fetchAll_args&); ThriftHive_fetchAll_args() { } - virtual ~ThriftHive_fetchAll_args() throw(); + virtual ~ThriftHive_fetchAll_args() throw() {} + bool operator == (const ThriftHive_fetchAll_args & /* rhs */) const { @@ -474,50 +436,46 @@ class ThriftHive_fetchAll_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_fetchAll_args& obj); }; class ThriftHive_fetchAll_pargs { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHive_fetchAll_pargs() throw() {} - virtual ~ThriftHive_fetchAll_pargs() throw(); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_fetchAll_pargs& obj); }; typedef struct _ThriftHive_fetchAll_result__isset { _ThriftHive_fetchAll_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_fetchAll_result__isset; class ThriftHive_fetchAll_result { public: - static const char* ascii_fingerprint; // = "EB142A6BE66D8EE6065D07106EABD55D"; - static const uint8_t binary_fingerprint[16]; // = {0xEB,0x14,0x2A,0x6B,0xE6,0x6D,0x8E,0xE6,0x06,0x5D,0x07,0x10,0x6E,0xAB,0xD5,0x5D}; - - ThriftHive_fetchAll_result(const ThriftHive_fetchAll_result&); - ThriftHive_fetchAll_result& operator=(const ThriftHive_fetchAll_result&); ThriftHive_fetchAll_result() { } - virtual ~ThriftHive_fetchAll_result() throw(); + virtual ~ThriftHive_fetchAll_result() throw() {} + std::vector success; HiveServerException ex; _ThriftHive_fetchAll_result__isset __isset; - void __set_success(const std::vector & val); + void __set_success(const std::vector & val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_fetchAll_result & rhs) const { @@ -536,23 +494,20 @@ class ThriftHive_fetchAll_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_fetchAll_result& obj); }; typedef struct _ThriftHive_fetchAll_presult__isset { _ThriftHive_fetchAll_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_fetchAll_presult__isset; class ThriftHive_fetchAll_presult { public: - static const char* ascii_fingerprint; // = "EB142A6BE66D8EE6065D07106EABD55D"; - static const uint8_t binary_fingerprint[16]; // = {0xEB,0x14,0x2A,0x6B,0xE6,0x6D,0x8E,0xE6,0x06,0x5D,0x07,0x10,0x6E,0xAB,0xD5,0x5D}; + virtual ~ThriftHive_fetchAll_presult() throw() {} - virtual ~ThriftHive_fetchAll_presult() throw(); std::vector * success; HiveServerException ex; @@ -560,22 +515,17 @@ class ThriftHive_fetchAll_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_fetchAll_presult& obj); }; class ThriftHive_getSchema_args { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHive_getSchema_args(const ThriftHive_getSchema_args&); - ThriftHive_getSchema_args& operator=(const ThriftHive_getSchema_args&); ThriftHive_getSchema_args() { } - virtual ~ThriftHive_getSchema_args() throw(); + virtual ~ThriftHive_getSchema_args() throw() {} + bool operator == (const ThriftHive_getSchema_args & /* rhs */) const { @@ -590,50 +540,46 @@ class ThriftHive_getSchema_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getSchema_args& obj); }; class ThriftHive_getSchema_pargs { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHive_getSchema_pargs() throw() {} - virtual ~ThriftHive_getSchema_pargs() throw(); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getSchema_pargs& obj); }; typedef struct _ThriftHive_getSchema_result__isset { _ThriftHive_getSchema_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getSchema_result__isset; class ThriftHive_getSchema_result { public: - static const char* ascii_fingerprint; // = "FCFAE75CC7093F1A3926C2AD58A6FFD1"; - static const uint8_t binary_fingerprint[16]; // = {0xFC,0xFA,0xE7,0x5C,0xC7,0x09,0x3F,0x1A,0x39,0x26,0xC2,0xAD,0x58,0xA6,0xFF,0xD1}; - - ThriftHive_getSchema_result(const ThriftHive_getSchema_result&); - ThriftHive_getSchema_result& operator=(const ThriftHive_getSchema_result&); ThriftHive_getSchema_result() { } - virtual ~ThriftHive_getSchema_result() throw(); + virtual ~ThriftHive_getSchema_result() throw() {} + ::Apache::Hadoop::Hive::Schema success; HiveServerException ex; _ThriftHive_getSchema_result__isset __isset; - void __set_success(const ::Apache::Hadoop::Hive::Schema& val); + void __set_success(const ::Apache::Hadoop::Hive::Schema& val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_getSchema_result & rhs) const { @@ -652,23 +598,20 @@ class ThriftHive_getSchema_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getSchema_result& obj); }; typedef struct _ThriftHive_getSchema_presult__isset { _ThriftHive_getSchema_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getSchema_presult__isset; class ThriftHive_getSchema_presult { public: - static const char* ascii_fingerprint; // = "FCFAE75CC7093F1A3926C2AD58A6FFD1"; - static const uint8_t binary_fingerprint[16]; // = {0xFC,0xFA,0xE7,0x5C,0xC7,0x09,0x3F,0x1A,0x39,0x26,0xC2,0xAD,0x58,0xA6,0xFF,0xD1}; + virtual ~ThriftHive_getSchema_presult() throw() {} - virtual ~ThriftHive_getSchema_presult() throw(); ::Apache::Hadoop::Hive::Schema* success; HiveServerException ex; @@ -676,22 +619,17 @@ class ThriftHive_getSchema_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getSchema_presult& obj); }; class ThriftHive_getThriftSchema_args { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHive_getThriftSchema_args(const ThriftHive_getThriftSchema_args&); - ThriftHive_getThriftSchema_args& operator=(const ThriftHive_getThriftSchema_args&); ThriftHive_getThriftSchema_args() { } - virtual ~ThriftHive_getThriftSchema_args() throw(); + virtual ~ThriftHive_getThriftSchema_args() throw() {} + bool operator == (const ThriftHive_getThriftSchema_args & /* rhs */) const { @@ -706,50 +644,46 @@ class ThriftHive_getThriftSchema_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getThriftSchema_args& obj); }; class ThriftHive_getThriftSchema_pargs { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHive_getThriftSchema_pargs() throw() {} - virtual ~ThriftHive_getThriftSchema_pargs() throw(); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getThriftSchema_pargs& obj); }; typedef struct _ThriftHive_getThriftSchema_result__isset { _ThriftHive_getThriftSchema_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getThriftSchema_result__isset; class ThriftHive_getThriftSchema_result { public: - static const char* ascii_fingerprint; // = "FCFAE75CC7093F1A3926C2AD58A6FFD1"; - static const uint8_t binary_fingerprint[16]; // = {0xFC,0xFA,0xE7,0x5C,0xC7,0x09,0x3F,0x1A,0x39,0x26,0xC2,0xAD,0x58,0xA6,0xFF,0xD1}; - - ThriftHive_getThriftSchema_result(const ThriftHive_getThriftSchema_result&); - ThriftHive_getThriftSchema_result& operator=(const ThriftHive_getThriftSchema_result&); ThriftHive_getThriftSchema_result() { } - virtual ~ThriftHive_getThriftSchema_result() throw(); + virtual ~ThriftHive_getThriftSchema_result() throw() {} + ::Apache::Hadoop::Hive::Schema success; HiveServerException ex; _ThriftHive_getThriftSchema_result__isset __isset; - void __set_success(const ::Apache::Hadoop::Hive::Schema& val); + void __set_success(const ::Apache::Hadoop::Hive::Schema& val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_getThriftSchema_result & rhs) const { @@ -768,23 +702,20 @@ class ThriftHive_getThriftSchema_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getThriftSchema_result& obj); }; typedef struct _ThriftHive_getThriftSchema_presult__isset { _ThriftHive_getThriftSchema_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getThriftSchema_presult__isset; class ThriftHive_getThriftSchema_presult { public: - static const char* ascii_fingerprint; // = "FCFAE75CC7093F1A3926C2AD58A6FFD1"; - static const uint8_t binary_fingerprint[16]; // = {0xFC,0xFA,0xE7,0x5C,0xC7,0x09,0x3F,0x1A,0x39,0x26,0xC2,0xAD,0x58,0xA6,0xFF,0xD1}; + virtual ~ThriftHive_getThriftSchema_presult() throw() {} - virtual ~ThriftHive_getThriftSchema_presult() throw(); ::Apache::Hadoop::Hive::Schema* success; HiveServerException ex; @@ -792,22 +723,17 @@ class ThriftHive_getThriftSchema_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getThriftSchema_presult& obj); }; class ThriftHive_getClusterStatus_args { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHive_getClusterStatus_args(const ThriftHive_getClusterStatus_args&); - ThriftHive_getClusterStatus_args& operator=(const ThriftHive_getClusterStatus_args&); ThriftHive_getClusterStatus_args() { } - virtual ~ThriftHive_getClusterStatus_args() throw(); + virtual ~ThriftHive_getClusterStatus_args() throw() {} + bool operator == (const ThriftHive_getClusterStatus_args & /* rhs */) const { @@ -822,50 +748,46 @@ class ThriftHive_getClusterStatus_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getClusterStatus_args& obj); }; class ThriftHive_getClusterStatus_pargs { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHive_getClusterStatus_pargs() throw() {} - virtual ~ThriftHive_getClusterStatus_pargs() throw(); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getClusterStatus_pargs& obj); }; typedef struct _ThriftHive_getClusterStatus_result__isset { _ThriftHive_getClusterStatus_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getClusterStatus_result__isset; class ThriftHive_getClusterStatus_result { public: - static const char* ascii_fingerprint; // = "F486E00F8F0F2B6A17A0371997BB7B87"; - static const uint8_t binary_fingerprint[16]; // = {0xF4,0x86,0xE0,0x0F,0x8F,0x0F,0x2B,0x6A,0x17,0xA0,0x37,0x19,0x97,0xBB,0x7B,0x87}; - - ThriftHive_getClusterStatus_result(const ThriftHive_getClusterStatus_result&); - ThriftHive_getClusterStatus_result& operator=(const ThriftHive_getClusterStatus_result&); ThriftHive_getClusterStatus_result() { } - virtual ~ThriftHive_getClusterStatus_result() throw(); + virtual ~ThriftHive_getClusterStatus_result() throw() {} + HiveClusterStatus success; HiveServerException ex; _ThriftHive_getClusterStatus_result__isset __isset; - void __set_success(const HiveClusterStatus& val); + void __set_success(const HiveClusterStatus& val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_getClusterStatus_result & rhs) const { @@ -884,23 +806,20 @@ class ThriftHive_getClusterStatus_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getClusterStatus_result& obj); }; typedef struct _ThriftHive_getClusterStatus_presult__isset { _ThriftHive_getClusterStatus_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getClusterStatus_presult__isset; class ThriftHive_getClusterStatus_presult { public: - static const char* ascii_fingerprint; // = "F486E00F8F0F2B6A17A0371997BB7B87"; - static const uint8_t binary_fingerprint[16]; // = {0xF4,0x86,0xE0,0x0F,0x8F,0x0F,0x2B,0x6A,0x17,0xA0,0x37,0x19,0x97,0xBB,0x7B,0x87}; + virtual ~ThriftHive_getClusterStatus_presult() throw() {} - virtual ~ThriftHive_getClusterStatus_presult() throw(); HiveClusterStatus* success; HiveServerException ex; @@ -908,22 +827,17 @@ class ThriftHive_getClusterStatus_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getClusterStatus_presult& obj); }; class ThriftHive_getQueryPlan_args { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHive_getQueryPlan_args(const ThriftHive_getQueryPlan_args&); - ThriftHive_getQueryPlan_args& operator=(const ThriftHive_getQueryPlan_args&); ThriftHive_getQueryPlan_args() { } - virtual ~ThriftHive_getQueryPlan_args() throw(); + virtual ~ThriftHive_getQueryPlan_args() throw() {} + bool operator == (const ThriftHive_getQueryPlan_args & /* rhs */) const { @@ -938,50 +852,46 @@ class ThriftHive_getQueryPlan_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getQueryPlan_args& obj); }; class ThriftHive_getQueryPlan_pargs { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHive_getQueryPlan_pargs() throw() {} - virtual ~ThriftHive_getQueryPlan_pargs() throw(); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getQueryPlan_pargs& obj); }; typedef struct _ThriftHive_getQueryPlan_result__isset { _ThriftHive_getQueryPlan_result__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getQueryPlan_result__isset; class ThriftHive_getQueryPlan_result { public: - static const char* ascii_fingerprint; // = "0263544CFF7194CEE7DC6128DD5941ED"; - static const uint8_t binary_fingerprint[16]; // = {0x02,0x63,0x54,0x4C,0xFF,0x71,0x94,0xCE,0xE7,0xDC,0x61,0x28,0xDD,0x59,0x41,0xED}; - - ThriftHive_getQueryPlan_result(const ThriftHive_getQueryPlan_result&); - ThriftHive_getQueryPlan_result& operator=(const ThriftHive_getQueryPlan_result&); ThriftHive_getQueryPlan_result() { } - virtual ~ThriftHive_getQueryPlan_result() throw(); + virtual ~ThriftHive_getQueryPlan_result() throw() {} + ::Apache::Hadoop::Hive::QueryPlan success; HiveServerException ex; _ThriftHive_getQueryPlan_result__isset __isset; - void __set_success(const ::Apache::Hadoop::Hive::QueryPlan& val); + void __set_success(const ::Apache::Hadoop::Hive::QueryPlan& val) { + success = val; + } - void __set_ex(const HiveServerException& val); + void __set_ex(const HiveServerException& val) { + ex = val; + } bool operator == (const ThriftHive_getQueryPlan_result & rhs) const { @@ -1000,23 +910,20 @@ class ThriftHive_getQueryPlan_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getQueryPlan_result& obj); }; typedef struct _ThriftHive_getQueryPlan_presult__isset { _ThriftHive_getQueryPlan_presult__isset() : success(false), ex(false) {} - bool success :1; - bool ex :1; + bool success; + bool ex; } _ThriftHive_getQueryPlan_presult__isset; class ThriftHive_getQueryPlan_presult { public: - static const char* ascii_fingerprint; // = "0263544CFF7194CEE7DC6128DD5941ED"; - static const uint8_t binary_fingerprint[16]; // = {0x02,0x63,0x54,0x4C,0xFF,0x71,0x94,0xCE,0xE7,0xDC,0x61,0x28,0xDD,0x59,0x41,0xED}; + virtual ~ThriftHive_getQueryPlan_presult() throw() {} - virtual ~ThriftHive_getQueryPlan_presult() throw(); ::Apache::Hadoop::Hive::QueryPlan* success; HiveServerException ex; @@ -1024,22 +931,17 @@ class ThriftHive_getQueryPlan_presult { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_getQueryPlan_presult& obj); }; class ThriftHive_clean_args { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHive_clean_args(const ThriftHive_clean_args&); - ThriftHive_clean_args& operator=(const ThriftHive_clean_args&); ThriftHive_clean_args() { } - virtual ~ThriftHive_clean_args() throw(); + virtual ~ThriftHive_clean_args() throw() {} + bool operator == (const ThriftHive_clean_args & /* rhs */) const { @@ -1054,37 +956,29 @@ class ThriftHive_clean_args { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_clean_args& obj); }; class ThriftHive_clean_pargs { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHive_clean_pargs() throw() {} - virtual ~ThriftHive_clean_pargs() throw(); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_clean_pargs& obj); }; class ThriftHive_clean_result { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; - - ThriftHive_clean_result(const ThriftHive_clean_result&); - ThriftHive_clean_result& operator=(const ThriftHive_clean_result&); ThriftHive_clean_result() { } - virtual ~ThriftHive_clean_result() throw(); + virtual ~ThriftHive_clean_result() throw() {} + bool operator == (const ThriftHive_clean_result & /* rhs */) const { @@ -1099,29 +993,26 @@ class ThriftHive_clean_result { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_clean_result& obj); }; class ThriftHive_clean_presult { public: - static const char* ascii_fingerprint; // = "99914B932BD37A50B983C5E7C90AE93B"; - static const uint8_t binary_fingerprint[16]; // = {0x99,0x91,0x4B,0x93,0x2B,0xD3,0x7A,0x50,0xB9,0x83,0xC5,0xE7,0xC9,0x0A,0xE9,0x3B}; + virtual ~ThriftHive_clean_presult() throw() {} - virtual ~ThriftHive_clean_presult() throw(); uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - friend std::ostream& operator<<(std::ostream& out, const ThriftHive_clean_presult& obj); }; class ThriftHiveClient : virtual public ThriftHiveIf, public ::Apache::Hadoop::Hive::ThriftHiveMetastoreClient { public: ThriftHiveClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) : ::Apache::Hadoop::Hive::ThriftHiveMetastoreClient(prot, prot) {} - ThriftHiveClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : ::Apache::Hadoop::Hive::ThriftHiveMetastoreClient(iprot, oprot) {} + ThriftHiveClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) : + ::Apache::Hadoop::Hive::ThriftHiveMetastoreClient(iprot, oprot) {} boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() { return piprot_; } diff --git a/service/src/gen/thrift/gen-cpp/hive_service_constants.cpp b/service/src/gen/thrift/gen-cpp/hive_service_constants.cpp index c3c8482..3555b03 100644 --- a/service/src/gen/thrift/gen-cpp/hive_service_constants.cpp +++ b/service/src/gen/thrift/gen-cpp/hive_service_constants.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-cpp/hive_service_constants.h b/service/src/gen/thrift/gen-cpp/hive_service_constants.h index 5878dbe..e27273c 100644 --- a/service/src/gen/thrift/gen-cpp/hive_service_constants.h +++ b/service/src/gen/thrift/gen-cpp/hive_service_constants.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-cpp/hive_service_types.cpp b/service/src/gen/thrift/gen-cpp/hive_service_types.cpp index 4d6cf01..255fb00 100644 --- a/service/src/gen/thrift/gen-cpp/hive_service_types.cpp +++ b/service/src/gen/thrift/gen-cpp/hive_service_types.cpp @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,9 +7,6 @@ #include "hive_service_types.h" #include -#include - -#include namespace Apache { namespace Hadoop { namespace Hive { @@ -23,35 +20,6 @@ const char* _kJobTrackerStateNames[] = { }; const std::map _JobTrackerState_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kJobTrackerStateValues, _kJobTrackerStateNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -HiveClusterStatus::~HiveClusterStatus() throw() { -} - - -void HiveClusterStatus::__set_taskTrackers(const int32_t val) { - this->taskTrackers = val; -} - -void HiveClusterStatus::__set_mapTasks(const int32_t val) { - this->mapTasks = val; -} - -void HiveClusterStatus::__set_reduceTasks(const int32_t val) { - this->reduceTasks = val; -} - -void HiveClusterStatus::__set_maxMapTasks(const int32_t val) { - this->maxMapTasks = val; -} - -void HiveClusterStatus::__set_maxReduceTasks(const int32_t val) { - this->maxReduceTasks = val; -} - -void HiveClusterStatus::__set_state(const JobTrackerState::type val) { - this->state = val; -} - const char* HiveClusterStatus::ascii_fingerprint = "D514EDCFFC86F64A2E924DCD16D4FAD8"; const uint8_t HiveClusterStatus::binary_fingerprint[16] = {0xD5,0x14,0xED,0xCF,0xFC,0x86,0xF6,0x4A,0x2E,0x92,0x4D,0xCD,0x16,0xD4,0xFA,0xD8}; @@ -139,7 +107,6 @@ uint32_t HiveClusterStatus::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t HiveClusterStatus::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("HiveClusterStatus"); xfer += oprot->writeFieldBegin("taskTrackers", ::apache::thrift::protocol::T_I32, 1); @@ -168,7 +135,6 @@ uint32_t HiveClusterStatus::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -183,55 +149,6 @@ void swap(HiveClusterStatus &a, HiveClusterStatus &b) { swap(a.__isset, b.__isset); } -HiveClusterStatus::HiveClusterStatus(const HiveClusterStatus& other1) { - taskTrackers = other1.taskTrackers; - mapTasks = other1.mapTasks; - reduceTasks = other1.reduceTasks; - maxMapTasks = other1.maxMapTasks; - maxReduceTasks = other1.maxReduceTasks; - state = other1.state; - __isset = other1.__isset; -} -HiveClusterStatus& HiveClusterStatus::operator=(const HiveClusterStatus& other2) { - taskTrackers = other2.taskTrackers; - mapTasks = other2.mapTasks; - reduceTasks = other2.reduceTasks; - maxMapTasks = other2.maxMapTasks; - maxReduceTasks = other2.maxReduceTasks; - state = other2.state; - __isset = other2.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const HiveClusterStatus& obj) { - using apache::thrift::to_string; - out << "HiveClusterStatus("; - out << "taskTrackers=" << to_string(obj.taskTrackers); - out << ", " << "mapTasks=" << to_string(obj.mapTasks); - out << ", " << "reduceTasks=" << to_string(obj.reduceTasks); - out << ", " << "maxMapTasks=" << to_string(obj.maxMapTasks); - out << ", " << "maxReduceTasks=" << to_string(obj.maxReduceTasks); - out << ", " << "state=" << to_string(obj.state); - out << ")"; - return out; -} - - -HiveServerException::~HiveServerException() throw() { -} - - -void HiveServerException::__set_message(const std::string& val) { - this->message = val; -} - -void HiveServerException::__set_errorCode(const int32_t val) { - this->errorCode = val; -} - -void HiveServerException::__set_SQLState(const std::string& val) { - this->SQLState = val; -} - const char* HiveServerException::ascii_fingerprint = "70563A0628F75DF9555F4D24690B1E26"; const uint8_t HiveServerException::binary_fingerprint[16] = {0x70,0x56,0x3A,0x06,0x28,0xF7,0x5D,0xF9,0x55,0x5F,0x4D,0x24,0x69,0x0B,0x1E,0x26}; @@ -293,7 +210,6 @@ uint32_t HiveServerException::read(::apache::thrift::protocol::TProtocol* iprot) uint32_t HiveServerException::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - oprot->incrementRecursionDepth(); xfer += oprot->writeStructBegin("HiveServerException"); xfer += oprot->writeFieldBegin("message", ::apache::thrift::protocol::T_STRING, 1); @@ -310,7 +226,6 @@ uint32_t HiveServerException::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); - oprot->decrementRecursionDepth(); return xfer; } @@ -322,27 +237,4 @@ void swap(HiveServerException &a, HiveServerException &b) { swap(a.__isset, b.__isset); } -HiveServerException::HiveServerException(const HiveServerException& other3) : TException() { - message = other3.message; - errorCode = other3.errorCode; - SQLState = other3.SQLState; - __isset = other3.__isset; -} -HiveServerException& HiveServerException::operator=(const HiveServerException& other4) { - message = other4.message; - errorCode = other4.errorCode; - SQLState = other4.SQLState; - __isset = other4.__isset; - return *this; -} -std::ostream& operator<<(std::ostream& out, const HiveServerException& obj) { - using apache::thrift::to_string; - out << "HiveServerException("; - out << "message=" << to_string(obj.message); - out << ", " << "errorCode=" << to_string(obj.errorCode); - out << ", " << "SQLState=" << to_string(obj.SQLState); - out << ")"; - return out; -} - }}} // namespace diff --git a/service/src/gen/thrift/gen-cpp/hive_service_types.h b/service/src/gen/thrift/gen-cpp/hive_service_types.h index 7fea88c..bc0e652 100644 --- a/service/src/gen/thrift/gen-cpp/hive_service_types.h +++ b/service/src/gen/thrift/gen-cpp/hive_service_types.h @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -7,14 +7,11 @@ #ifndef hive_service_TYPES_H #define hive_service_TYPES_H -#include - #include #include #include #include -#include #include "fb303_types.h" #include "hive_metastore_types.h" #include "queryplan_types.h" @@ -31,18 +28,14 @@ struct JobTrackerState { extern const std::map _JobTrackerState_VALUES_TO_NAMES; -class HiveClusterStatus; - -class HiveServerException; - typedef struct _HiveClusterStatus__isset { _HiveClusterStatus__isset() : taskTrackers(false), mapTasks(false), reduceTasks(false), maxMapTasks(false), maxReduceTasks(false), state(false) {} - bool taskTrackers :1; - bool mapTasks :1; - bool reduceTasks :1; - bool maxMapTasks :1; - bool maxReduceTasks :1; - bool state :1; + bool taskTrackers; + bool mapTasks; + bool reduceTasks; + bool maxMapTasks; + bool maxReduceTasks; + bool state; } _HiveClusterStatus__isset; class HiveClusterStatus { @@ -51,12 +44,11 @@ class HiveClusterStatus { static const char* ascii_fingerprint; // = "D514EDCFFC86F64A2E924DCD16D4FAD8"; static const uint8_t binary_fingerprint[16]; // = {0xD5,0x14,0xED,0xCF,0xFC,0x86,0xF6,0x4A,0x2E,0x92,0x4D,0xCD,0x16,0xD4,0xFA,0xD8}; - HiveClusterStatus(const HiveClusterStatus&); - HiveClusterStatus& operator=(const HiveClusterStatus&); HiveClusterStatus() : taskTrackers(0), mapTasks(0), reduceTasks(0), maxMapTasks(0), maxReduceTasks(0), state((JobTrackerState::type)0) { } - virtual ~HiveClusterStatus() throw(); + virtual ~HiveClusterStatus() throw() {} + int32_t taskTrackers; int32_t mapTasks; int32_t reduceTasks; @@ -66,17 +58,29 @@ class HiveClusterStatus { _HiveClusterStatus__isset __isset; - void __set_taskTrackers(const int32_t val); + void __set_taskTrackers(const int32_t val) { + taskTrackers = val; + } - void __set_mapTasks(const int32_t val); + void __set_mapTasks(const int32_t val) { + mapTasks = val; + } - void __set_reduceTasks(const int32_t val); + void __set_reduceTasks(const int32_t val) { + reduceTasks = val; + } - void __set_maxMapTasks(const int32_t val); + void __set_maxMapTasks(const int32_t val) { + maxMapTasks = val; + } - void __set_maxReduceTasks(const int32_t val); + void __set_maxReduceTasks(const int32_t val) { + maxReduceTasks = val; + } - void __set_state(const JobTrackerState::type val); + void __set_state(const JobTrackerState::type val) { + state = val; + } bool operator == (const HiveClusterStatus & rhs) const { @@ -103,16 +107,15 @@ class HiveClusterStatus { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const HiveClusterStatus& obj); }; void swap(HiveClusterStatus &a, HiveClusterStatus &b); typedef struct _HiveServerException__isset { _HiveServerException__isset() : message(false), errorCode(false), SQLState(false) {} - bool message :1; - bool errorCode :1; - bool SQLState :1; + bool message; + bool errorCode; + bool SQLState; } _HiveServerException__isset; class HiveServerException : public ::apache::thrift::TException { @@ -121,23 +124,28 @@ class HiveServerException : public ::apache::thrift::TException { static const char* ascii_fingerprint; // = "70563A0628F75DF9555F4D24690B1E26"; static const uint8_t binary_fingerprint[16]; // = {0x70,0x56,0x3A,0x06,0x28,0xF7,0x5D,0xF9,0x55,0x5F,0x4D,0x24,0x69,0x0B,0x1E,0x26}; - HiveServerException(const HiveServerException&); - HiveServerException& operator=(const HiveServerException&); HiveServerException() : message(), errorCode(0), SQLState() { } - virtual ~HiveServerException() throw(); + virtual ~HiveServerException() throw() {} + std::string message; int32_t errorCode; std::string SQLState; _HiveServerException__isset __isset; - void __set_message(const std::string& val); + void __set_message(const std::string& val) { + message = val; + } - void __set_errorCode(const int32_t val); + void __set_errorCode(const int32_t val) { + errorCode = val; + } - void __set_SQLState(const std::string& val); + void __set_SQLState(const std::string& val) { + SQLState = val; + } bool operator == (const HiveServerException & rhs) const { @@ -158,7 +166,6 @@ class HiveServerException : public ::apache::thrift::TException { uint32_t read(::apache::thrift::protocol::TProtocol* iprot); uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - friend std::ostream& operator<<(std::ostream& out, const HiveServerException& obj); }; void swap(HiveServerException &a, HiveServerException &b); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java index d4b6972..11566e5 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveClusterStatus.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.service; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class HiveClusterStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HiveClusterStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveClusterStatus"); private static final org.apache.thrift.protocol.TField TASK_TRACKERS_FIELD_DESC = new org.apache.thrift.protocol.TField("taskTrackers", org.apache.thrift.protocol.TType.I32, (short)1); @@ -533,105 +529,105 @@ public boolean equals(HiveClusterStatus that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_taskTrackers = true; - list.add(present_taskTrackers); + builder.append(present_taskTrackers); if (present_taskTrackers) - list.add(taskTrackers); + builder.append(taskTrackers); boolean present_mapTasks = true; - list.add(present_mapTasks); + builder.append(present_mapTasks); if (present_mapTasks) - list.add(mapTasks); + builder.append(mapTasks); boolean present_reduceTasks = true; - list.add(present_reduceTasks); + builder.append(present_reduceTasks); if (present_reduceTasks) - list.add(reduceTasks); + builder.append(reduceTasks); boolean present_maxMapTasks = true; - list.add(present_maxMapTasks); + builder.append(present_maxMapTasks); if (present_maxMapTasks) - list.add(maxMapTasks); + builder.append(maxMapTasks); boolean present_maxReduceTasks = true; - list.add(present_maxReduceTasks); + builder.append(present_maxReduceTasks); if (present_maxReduceTasks) - list.add(maxReduceTasks); + builder.append(maxReduceTasks); boolean present_state = true && (isSetState()); - list.add(present_state); + builder.append(present_state); if (present_state) - list.add(state.getValue()); + builder.append(state.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HiveClusterStatus other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HiveClusterStatus typedOther = (HiveClusterStatus)other; - lastComparison = Boolean.valueOf(isSetTaskTrackers()).compareTo(other.isSetTaskTrackers()); + lastComparison = Boolean.valueOf(isSetTaskTrackers()).compareTo(typedOther.isSetTaskTrackers()); if (lastComparison != 0) { return lastComparison; } if (isSetTaskTrackers()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskTrackers, other.taskTrackers); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taskTrackers, typedOther.taskTrackers); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMapTasks()).compareTo(other.isSetMapTasks()); + lastComparison = Boolean.valueOf(isSetMapTasks()).compareTo(typedOther.isSetMapTasks()); if (lastComparison != 0) { return lastComparison; } if (isSetMapTasks()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mapTasks, other.mapTasks); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mapTasks, typedOther.mapTasks); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetReduceTasks()).compareTo(other.isSetReduceTasks()); + lastComparison = Boolean.valueOf(isSetReduceTasks()).compareTo(typedOther.isSetReduceTasks()); if (lastComparison != 0) { return lastComparison; } if (isSetReduceTasks()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reduceTasks, other.reduceTasks); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reduceTasks, typedOther.reduceTasks); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxMapTasks()).compareTo(other.isSetMaxMapTasks()); + lastComparison = Boolean.valueOf(isSetMaxMapTasks()).compareTo(typedOther.isSetMaxMapTasks()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxMapTasks()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxMapTasks, other.maxMapTasks); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxMapTasks, typedOther.maxMapTasks); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxReduceTasks()).compareTo(other.isSetMaxReduceTasks()); + lastComparison = Boolean.valueOf(isSetMaxReduceTasks()).compareTo(typedOther.isSetMaxReduceTasks()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxReduceTasks()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxReduceTasks, other.maxReduceTasks); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxReduceTasks, typedOther.maxReduceTasks); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetState()).compareTo(other.isSetState()); + lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState()); if (lastComparison != 0) { return lastComparison; } if (isSetState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state); if (lastComparison != 0) { return lastComparison; } @@ -770,7 +766,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HiveClusterStatus s break; case 6: // STATE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.state = org.apache.hadoop.hive.service.JobTrackerState.findByValue(iprot.readI32()); + struct.state = JobTrackerState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -891,7 +887,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, HiveClusterStatus st struct.setMaxReduceTasksIsSet(true); } if (incoming.get(5)) { - struct.state = org.apache.hadoop.hive.service.JobTrackerState.findByValue(iprot.readI32()); + struct.state = JobTrackerState.findByValue(iprot.readI32()); struct.setStateIsSet(true); } } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java index 760c81e..353dc8a 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/HiveServerException.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.service; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class HiveServerException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class HiveServerException extends TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HiveServerException"); private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -347,60 +343,60 @@ public boolean equals(HiveServerException that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_message = true && (isSetMessage()); - list.add(present_message); + builder.append(present_message); if (present_message) - list.add(message); + builder.append(message); boolean present_errorCode = true; - list.add(present_errorCode); + builder.append(present_errorCode); if (present_errorCode) - list.add(errorCode); + builder.append(errorCode); boolean present_SQLState = true && (isSetSQLState()); - list.add(present_SQLState); + builder.append(present_SQLState); if (present_SQLState) - list.add(SQLState); + builder.append(SQLState); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(HiveServerException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + HiveServerException typedOther = (HiveServerException)other; - lastComparison = Boolean.valueOf(isSetMessage()).compareTo(other.isSetMessage()); + lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, other.message); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(other.isSetErrorCode()); + lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode()); if (lastComparison != 0) { return lastComparison; } if (isSetErrorCode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, other.errorCode); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSQLState()).compareTo(other.isSetSQLState()); + lastComparison = Boolean.valueOf(isSetSQLState()).compareTo(typedOther.isSetSQLState()); if (lastComparison != 0) { return lastComparison; } if (isSetSQLState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.SQLState, other.SQLState); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.SQLState, typedOther.SQLState); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java index ab48bf7..5de66c5 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/JobTrackerState.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java index df793b1..745e6cc 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/service/ThriftHive.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hive.service; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,12 +28,9 @@ 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.2)", date = "2015-8-3") public class ThriftHive { public interface Iface extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface { @@ -61,23 +57,23 @@ public interface AsyncIface extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore .AsyncIface { - public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -337,7 +333,7 @@ public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, super(protocolFactory, clientManager, transport); } - public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void execute(String query, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); execute_call method_call = new execute_call(query, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -346,7 +342,7 @@ public void execute(String query, org.apache.thrift.async.AsyncMethodCallback re public static class execute_call extends org.apache.thrift.async.TAsyncMethodCall { private String query; - public execute_call(String query, 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 { + public execute_call(String query, 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.query = query; } @@ -369,7 +365,7 @@ public void getResult() throws HiveServerException, org.apache.thrift.TException } } - public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); fetchOne_call method_call = new fetchOne_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -377,7 +373,7 @@ public void fetchOne(org.apache.thrift.async.AsyncMethodCallback resultHandler) } public static class fetchOne_call extends org.apache.thrift.async.TAsyncMethodCall { - public fetchOne_call(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 { + public fetchOne_call(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); } @@ -398,7 +394,7 @@ public String getResult() throws HiveServerException, org.apache.thrift.TExcepti } } - public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); fetchN_call method_call = new fetchN_call(numRows, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -407,7 +403,7 @@ public void fetchN(int numRows, org.apache.thrift.async.AsyncMethodCallback resu public static class fetchN_call extends org.apache.thrift.async.TAsyncMethodCall { private int numRows; - public fetchN_call(int numRows, 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 { + public fetchN_call(int numRows, 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.numRows = numRows; } @@ -430,7 +426,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); fetchAll_call method_call = new fetchAll_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -438,7 +434,7 @@ public void fetchAll(org.apache.thrift.async.AsyncMethodCallback resultHandler) } public static class fetchAll_call extends org.apache.thrift.async.TAsyncMethodCall { - public fetchAll_call(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 { + public fetchAll_call(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); } @@ -459,7 +455,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getSchema_call method_call = new getSchema_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -467,7 +463,7 @@ public void getSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) } public static class getSchema_call extends org.apache.thrift.async.TAsyncMethodCall { - public getSchema_call(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 { + public getSchema_call(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); } @@ -488,7 +484,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getThriftSchema_call method_call = new getThriftSchema_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -496,7 +492,7 @@ public void getThriftSchema(org.apache.thrift.async.AsyncMethodCallback resultHa } public static class getThriftSchema_call extends org.apache.thrift.async.TAsyncMethodCall { - public getThriftSchema_call(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 { + public getThriftSchema_call(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); } @@ -517,7 +513,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getClusterStatus_call method_call = new getClusterStatus_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -525,7 +521,7 @@ public void getClusterStatus(org.apache.thrift.async.AsyncMethodCallback resultH } public static class getClusterStatus_call extends org.apache.thrift.async.TAsyncMethodCall { - public getClusterStatus_call(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 { + public getClusterStatus_call(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); } @@ -546,7 +542,7 @@ public HiveClusterStatus getResult() throws HiveServerException, org.apache.thri } } - public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); getQueryPlan_call method_call = new getQueryPlan_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -554,7 +550,7 @@ public void getQueryPlan(org.apache.thrift.async.AsyncMethodCallback resultHandl } public static class getQueryPlan_call extends org.apache.thrift.async.TAsyncMethodCall { - public getQueryPlan_call(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 { + public getQueryPlan_call(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); } @@ -575,7 +571,7 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } - public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); clean_call method_call = new clean_call(resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -583,7 +579,7 @@ public void clean(org.apache.thrift.async.AsyncMethodCallback resultHandler) thr } public static class clean_call extends org.apache.thrift.async.TAsyncMethodCall { - public clean_call(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 { + public clean_call(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); } @@ -843,537 +839,7 @@ public clean_result getResult(I iface, clean_args args) throws org.apache.thrift } - public static class AsyncProcessor extends org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.AsyncProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); - public AsyncProcessor(I iface) { - super(iface, getProcessMap(new HashMap>())); - } - - protected AsyncProcessor(I iface, Map> processMap) { - super(iface, getProcessMap(processMap)); - } - - private static Map> getProcessMap(Map> processMap) { - processMap.put("execute", new execute()); - processMap.put("fetchOne", new fetchOne()); - processMap.put("fetchN", new fetchN()); - processMap.put("fetchAll", new fetchAll()); - processMap.put("getSchema", new getSchema()); - processMap.put("getThriftSchema", new getThriftSchema()); - processMap.put("getClusterStatus", new getClusterStatus()); - processMap.put("getQueryPlan", new getQueryPlan()); - processMap.put("clean", new clean()); - return processMap; - } - - public static class execute extends org.apache.thrift.AsyncProcessFunction { - public execute() { - super("execute"); - } - - public execute_args getEmptyArgsInstance() { - return new execute_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - execute_result result = new execute_result(); - 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; - execute_result result = new execute_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(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, execute_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.execute(args.query,resultHandler); - } - } - - public static class fetchOne extends org.apache.thrift.AsyncProcessFunction { - public fetchOne() { - super("fetchOne"); - } - - public fetchOne_args getEmptyArgsInstance() { - return new fetchOne_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(String o) { - fetchOne_result result = new fetchOne_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; - fetchOne_result result = new fetchOne_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(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, fetchOne_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.fetchOne(resultHandler); - } - } - - public static class fetchN extends org.apache.thrift.AsyncProcessFunction> { - public fetchN() { - super("fetchN"); - } - - public fetchN_args getEmptyArgsInstance() { - return new fetchN_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - fetchN_result result = new fetchN_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; - fetchN_result result = new fetchN_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(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, fetchN_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.fetchN(args.numRows,resultHandler); - } - } - - public static class fetchAll extends org.apache.thrift.AsyncProcessFunction> { - public fetchAll() { - super("fetchAll"); - } - - public fetchAll_args getEmptyArgsInstance() { - return new fetchAll_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - fetchAll_result result = new fetchAll_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; - fetchAll_result result = new fetchAll_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(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, fetchAll_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.fetchAll(resultHandler); - } - } - - public static class getSchema extends org.apache.thrift.AsyncProcessFunction { - public getSchema() { - super("getSchema"); - } - - public getSchema_args getEmptyArgsInstance() { - return new getSchema_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.hadoop.hive.metastore.api.Schema o) { - getSchema_result result = new getSchema_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; - getSchema_result result = new getSchema_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(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, getSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getSchema(resultHandler); - } - } - - public static class getThriftSchema extends org.apache.thrift.AsyncProcessFunction { - public getThriftSchema() { - super("getThriftSchema"); - } - - public getThriftSchema_args getEmptyArgsInstance() { - return new getThriftSchema_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.hadoop.hive.metastore.api.Schema o) { - getThriftSchema_result result = new getThriftSchema_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; - getThriftSchema_result result = new getThriftSchema_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(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, getThriftSchema_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getThriftSchema(resultHandler); - } - } - - public static class getClusterStatus extends org.apache.thrift.AsyncProcessFunction { - public getClusterStatus() { - super("getClusterStatus"); - } - - public getClusterStatus_args getEmptyArgsInstance() { - return new getClusterStatus_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(HiveClusterStatus o) { - getClusterStatus_result result = new getClusterStatus_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; - getClusterStatus_result result = new getClusterStatus_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(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, getClusterStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getClusterStatus(resultHandler); - } - } - - public static class getQueryPlan extends org.apache.thrift.AsyncProcessFunction { - public getQueryPlan() { - super("getQueryPlan"); - } - - public getQueryPlan_args getEmptyArgsInstance() { - return new getQueryPlan_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(org.apache.hadoop.hive.ql.plan.api.QueryPlan o) { - getQueryPlan_result result = new getQueryPlan_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; - getQueryPlan_result result = new getQueryPlan_result(); - if (e instanceof HiveServerException) { - result.ex = (HiveServerException) e; - result.setExIsSet(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, getQueryPlan_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.getQueryPlan(resultHandler); - } - } - - public static class clean extends org.apache.thrift.AsyncProcessFunction { - public clean() { - super("clean"); - } - - public clean_args getEmptyArgsInstance() { - return new clean_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - clean_result result = new clean_result(); - 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; - clean_result result = new clean_result(); - { - 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, clean_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.clean(resultHandler); - } - } - - } - - public static class execute_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class execute_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_args"); private static final org.apache.thrift.protocol.TField QUERY_FIELD_DESC = new org.apache.thrift.protocol.TField("query", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -1567,30 +1033,30 @@ public boolean equals(execute_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_query = true && (isSetQuery()); - list.add(present_query); + builder.append(present_query); if (present_query) - list.add(query); + builder.append(query); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(execute_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + execute_args typedOther = (execute_args)other; - lastComparison = Boolean.valueOf(isSetQuery()).compareTo(other.isSetQuery()); + lastComparison = Boolean.valueOf(isSetQuery()).compareTo(typedOther.isSetQuery()); if (lastComparison != 0) { return lastComparison; } if (isSetQuery()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, other.query); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.query, typedOther.query); if (lastComparison != 0) { return lastComparison; } @@ -1731,7 +1197,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, execute_args struct) } - public static class execute_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class execute_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("execute_result"); private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -1925,30 +1391,30 @@ public boolean equals(execute_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(execute_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + execute_result typedOther = (execute_result)other; - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -2091,7 +1557,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, execute_result struc } - public static class fetchOne_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fetchOne_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchOne_args"); @@ -2221,18 +1687,18 @@ public boolean equals(fetchOne_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fetchOne_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fetchOne_args typedOther = (fetchOne_args)other; return 0; } @@ -2337,7 +1803,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchOne_args struct } - public static class fetchOne_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fetchOne_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchOne_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0); @@ -2589,45 +2055,45 @@ public boolean equals(fetchOne_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fetchOne_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fetchOne_result typedOther = (fetchOne_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -2801,7 +2267,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchOne_result stru } - public static class fetchN_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fetchN_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchN_args"); private static final org.apache.thrift.protocol.TField NUM_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("numRows", org.apache.thrift.protocol.TType.I32, (short)1); @@ -2997,30 +2463,30 @@ public boolean equals(fetchN_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_numRows = true; - list.add(present_numRows); + builder.append(present_numRows); if (present_numRows) - list.add(numRows); + builder.append(numRows); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fetchN_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fetchN_args typedOther = (fetchN_args)other; - lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(other.isSetNumRows()); + lastComparison = Boolean.valueOf(isSetNumRows()).compareTo(typedOther.isSetNumRows()); if (lastComparison != 0) { return lastComparison; } if (isSetNumRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, other.numRows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numRows, typedOther.numRows); if (lastComparison != 0) { return lastComparison; } @@ -3157,7 +2623,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchN_args struct) } - public static class fetchN_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fetchN_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchN_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); @@ -3263,7 +2729,10 @@ public fetchN_result( */ public fetchN_result(fetchN_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetEx()) { @@ -3426,45 +2895,45 @@ public boolean equals(fetchN_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fetchN_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fetchN_result typedOther = (fetchN_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -3552,11 +3021,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, fetchN_result struc { org.apache.thrift.protocol.TList _list0 = iprot.readListBegin(); struct.success = new ArrayList(_list0.size); - String _elem1; - for (int _i2 = 0; _i2 < _list0.size; ++_i2) + for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - _elem1 = iprot.readString(); - struct.success.add(_elem1); + String _elem2; // required + _elem2 = iprot.readString(); + struct.success.add(_elem2); } iprot.readListEnd(); } @@ -3651,11 +3120,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchN_result struct { org.apache.thrift.protocol.TList _list5 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list5.size); - String _elem6; - for (int _i7 = 0; _i7 < _list5.size; ++_i7) + for (int _i6 = 0; _i6 < _list5.size; ++_i6) { - _elem6 = iprot.readString(); - struct.success.add(_elem6); + String _elem7; // required + _elem7 = iprot.readString(); + struct.success.add(_elem7); } } struct.setSuccessIsSet(true); @@ -3670,7 +3139,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchN_result struct } - public static class fetchAll_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fetchAll_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchAll_args"); @@ -3800,18 +3269,18 @@ public boolean equals(fetchAll_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fetchAll_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fetchAll_args typedOther = (fetchAll_args)other; return 0; } @@ -3916,7 +3385,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchAll_args struct } - public static class fetchAll_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class fetchAll_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchAll_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); @@ -4022,7 +3491,10 @@ public fetchAll_result( */ public fetchAll_result(fetchAll_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); + } this.success = __this__success; } if (other.isSetEx()) { @@ -4185,45 +3657,45 @@ public boolean equals(fetchAll_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(fetchAll_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + fetchAll_result typedOther = (fetchAll_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -4311,11 +3783,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, fetchAll_result str { org.apache.thrift.protocol.TList _list8 = iprot.readListBegin(); struct.success = new ArrayList(_list8.size); - String _elem9; - for (int _i10 = 0; _i10 < _list8.size; ++_i10) + for (int _i9 = 0; _i9 < _list8.size; ++_i9) { - _elem9 = iprot.readString(); - struct.success.add(_elem9); + String _elem10; // required + _elem10 = iprot.readString(); + struct.success.add(_elem10); } iprot.readListEnd(); } @@ -4410,11 +3882,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchAll_result stru { org.apache.thrift.protocol.TList _list13 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.success = new ArrayList(_list13.size); - String _elem14; - for (int _i15 = 0; _i15 < _list13.size; ++_i15) + for (int _i14 = 0; _i14 < _list13.size; ++_i14) { - _elem14 = iprot.readString(); - struct.success.add(_elem14); + String _elem15; // required + _elem15 = iprot.readString(); + struct.success.add(_elem15); } } struct.setSuccessIsSet(true); @@ -4429,7 +3901,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, fetchAll_result stru } - public static class getSchema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getSchema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_args"); @@ -4559,18 +4031,18 @@ public boolean equals(getSchema_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getSchema_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getSchema_args typedOther = (getSchema_args)other; return 0; } @@ -4675,7 +4147,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getSchema_args struc } - public static class getSchema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getSchema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSchema_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); @@ -4927,45 +4399,45 @@ public boolean equals(getSchema_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getSchema_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getSchema_result typedOther = (getSchema_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -5144,7 +4616,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getSchema_result str } - public static class getThriftSchema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getThriftSchema_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getThriftSchema_args"); @@ -5274,18 +4746,18 @@ public boolean equals(getThriftSchema_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getThriftSchema_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getThriftSchema_args typedOther = (getThriftSchema_args)other; return 0; } @@ -5390,7 +4862,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getThriftSchema_args } - public static class getThriftSchema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getThriftSchema_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getThriftSchema_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); @@ -5642,45 +5114,45 @@ public boolean equals(getThriftSchema_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getThriftSchema_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getThriftSchema_result typedOther = (getThriftSchema_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -5859,7 +5331,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getThriftSchema_resu } - public static class getClusterStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getClusterStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClusterStatus_args"); @@ -5989,18 +5461,18 @@ public boolean equals(getClusterStatus_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getClusterStatus_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getClusterStatus_args typedOther = (getClusterStatus_args)other; return 0; } @@ -6105,7 +5577,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getClusterStatus_arg } - public static class getClusterStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getClusterStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClusterStatus_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); @@ -6357,45 +5829,45 @@ public boolean equals(getClusterStatus_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getClusterStatus_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getClusterStatus_result typedOther = (getClusterStatus_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -6574,7 +6046,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getClusterStatus_res } - public static class getQueryPlan_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getQueryPlan_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQueryPlan_args"); @@ -6704,18 +6176,18 @@ public boolean equals(getQueryPlan_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getQueryPlan_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getQueryPlan_args typedOther = (getQueryPlan_args)other; return 0; } @@ -6820,7 +6292,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getQueryPlan_args st } - public static class getQueryPlan_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class getQueryPlan_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQueryPlan_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); @@ -7072,45 +6544,45 @@ public boolean equals(getQueryPlan_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); boolean present_ex = true && (isSetEx()); - list.add(present_ex); + builder.append(present_ex); if (present_ex) - list.add(ex); + builder.append(ex); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(getQueryPlan_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + getQueryPlan_result typedOther = (getQueryPlan_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx()); + lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx()); if (lastComparison != 0) { return lastComparison; } if (isSetEx()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex); if (lastComparison != 0) { return lastComparison; } @@ -7289,7 +6761,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, getQueryPlan_result } - public static class clean_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class clean_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clean_args"); @@ -7419,18 +6891,18 @@ public boolean equals(clean_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(clean_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + clean_args typedOther = (clean_args)other; return 0; } @@ -7535,7 +7007,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, clean_args struct) t } - public static class clean_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class clean_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clean_result"); @@ -7665,18 +7137,18 @@ public boolean equals(clean_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(clean_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + clean_result typedOther = (clean_result)other; return 0; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java index 5625516..6323d34 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TArrayTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TArrayTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TArrayTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TArrayTypeEntry"); private static final org.apache.thrift.protocol.TField OBJECT_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("objectTypePtr", org.apache.thrift.protocol.TType.I32, (short)1); @@ -231,30 +227,30 @@ public boolean equals(TArrayTypeEntry that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_objectTypePtr = true; - list.add(present_objectTypePtr); + builder.append(present_objectTypePtr); if (present_objectTypePtr) - list.add(objectTypePtr); + builder.append(objectTypePtr); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TArrayTypeEntry other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TArrayTypeEntry typedOther = (TArrayTypeEntry)other; - lastComparison = Boolean.valueOf(isSetObjectTypePtr()).compareTo(other.isSetObjectTypePtr()); + lastComparison = Boolean.valueOf(isSetObjectTypePtr()).compareTo(typedOther.isSetObjectTypePtr()); if (lastComparison != 0) { return lastComparison; } if (isSetObjectTypePtr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectTypePtr, other.objectTypePtr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.objectTypePtr, typedOther.objectTypePtr); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java index 202399a..1ac28a2 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBinaryColumn.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TBinaryColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TBinaryColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TBinaryColumn"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TBinaryColumn( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,17 @@ public TBinaryColumn( */ public TBinaryColumn(TBinaryColumn other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (ByteBuffer other_element : other.values) { + ByteBuffer temp_binary_element = org.apache.thrift.TBaseHelper.copyBinary(other_element); +; + __this__values.add(temp_binary_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +205,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +315,45 @@ public boolean equals(TBinaryColumn that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TBinaryColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TBinaryColumn typedOther = (TBinaryColumn)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +449,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TBinaryColumn struc { org.apache.thrift.protocol.TList _list110 = iprot.readListBegin(); struct.values = new ArrayList(_list110.size); - ByteBuffer _elem111; - for (int _i112 = 0; _i112 < _list110.size; ++_i112) + for (int _i111 = 0; _i111 < _list110.size; ++_i111) { - _elem111 = iprot.readBinary(); - struct.values.add(_elem111); + ByteBuffer _elem112; // required + _elem112 = iprot.readBinary(); + struct.values.add(_elem112); } iprot.readListEnd(); } @@ -531,11 +533,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TBinaryColumn struct { org.apache.thrift.protocol.TList _list115 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.values = new ArrayList(_list115.size); - ByteBuffer _elem116; - for (int _i117 = 0; _i117 < _list115.size; ++_i117) + for (int _i116 = 0; _i116 < _list115.size; ++_i116) { - _elem116 = iprot.readBinary(); - struct.values.add(_elem116); + ByteBuffer _elem117; // required + _elem117 = iprot.readBinary(); + struct.values.add(_elem117); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolColumn.java index 921e9de..b2bda35 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolColumn.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolColumn.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TBoolColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TBoolColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TBoolColumn"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TBoolColumn( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TBoolColumn( */ public TBoolColumn(TBoolColumn other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (Boolean other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TBoolColumn that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TBoolColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TBoolColumn typedOther = (TBoolColumn)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TBoolColumn struct) { org.apache.thrift.protocol.TList _list54 = iprot.readListBegin(); struct.values = new ArrayList(_list54.size); - boolean _elem55; - for (int _i56 = 0; _i56 < _list54.size; ++_i56) + for (int _i55 = 0; _i55 < _list54.size; ++_i55) { - _elem55 = iprot.readBool(); - struct.values.add(_elem55); + boolean _elem56; // required + _elem56 = iprot.readBool(); + struct.values.add(_elem56); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TBoolColumn struct) { org.apache.thrift.protocol.TList _list59 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BOOL, iprot.readI32()); struct.values = new ArrayList(_list59.size); - boolean _elem60; - for (int _i61 = 0; _i61 < _list59.size; ++_i61) + for (int _i60 = 0; _i60 < _list59.size; ++_i60) { - _elem60 = iprot.readBool(); - struct.values.add(_elem60); + boolean _elem61; // required + _elem61 = iprot.readBool(); + struct.values.add(_elem61); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolValue.java index 201c9fb..c7495ee 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TBoolValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TBoolValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TBoolValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TBoolValue"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.BOOL, (short)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __VALUE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; 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); @@ -224,30 +220,30 @@ public boolean equals(TBoolValue that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TBoolValue other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TBoolValue typedOther = (TBoolValue)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteColumn.java index cd9b6da..defdec0 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteColumn.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteColumn.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TByteColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TByteColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TByteColumn"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TByteColumn( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TByteColumn( */ public TByteColumn(TByteColumn other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (Byte other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TByteColumn that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TByteColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TByteColumn typedOther = (TByteColumn)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TByteColumn struct) { org.apache.thrift.protocol.TList _list62 = iprot.readListBegin(); struct.values = new ArrayList(_list62.size); - byte _elem63; - for (int _i64 = 0; _i64 < _list62.size; ++_i64) + for (int _i63 = 0; _i63 < _list62.size; ++_i63) { - _elem63 = iprot.readByte(); - struct.values.add(_elem63); + byte _elem64; // required + _elem64 = iprot.readByte(); + struct.values.add(_elem64); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TByteColumn struct) { org.apache.thrift.protocol.TList _list67 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.BYTE, iprot.readI32()); struct.values = new ArrayList(_list67.size); - byte _elem68; - for (int _i69 = 0; _i69 < _list67.size; ++_i69) + for (int _i68 = 0; _i68 < _list67.size; ++_i68) { - _elem68 = iprot.readByte(); - struct.values.add(_elem68); + byte _elem69; // required + _elem69 = iprot.readByte(); + struct.values.add(_elem69); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteValue.java index 42b5bd5..23d9693 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TByteValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TByteValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TByteValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TByteValue"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.BYTE, (short)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __VALUE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; 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); @@ -224,30 +220,30 @@ public boolean equals(TByteValue that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TByteValue other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TByteValue typedOther = (TByteValue)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java index 6bdd53d..54851b8 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIService.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,12 +28,9 @@ 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.2)", date = "2015-8-3") public class TCLIService { public interface Iface { @@ -81,43 +77,43 @@ public interface AsyncIface { - public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; - public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; } @@ -596,7 +592,7 @@ public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, super(protocolFactory, clientManager, transport); } - public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); OpenSession_call method_call = new OpenSession_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -605,7 +601,7 @@ public void OpenSession(TOpenSessionReq req, org.apache.thrift.async.AsyncMethod public static class OpenSession_call extends org.apache.thrift.async.TAsyncMethodCall { private TOpenSessionReq req; - public OpenSession_call(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public OpenSession_call(TOpenSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -628,7 +624,7 @@ public TOpenSessionResp getResult() throws org.apache.thrift.TException { } } - public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); CloseSession_call method_call = new CloseSession_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -637,7 +633,7 @@ public void CloseSession(TCloseSessionReq req, org.apache.thrift.async.AsyncMeth public static class CloseSession_call extends org.apache.thrift.async.TAsyncMethodCall { private TCloseSessionReq req; - public CloseSession_call(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public CloseSession_call(TCloseSessionReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -660,7 +656,7 @@ public TCloseSessionResp getResult() throws org.apache.thrift.TException { } } - public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetInfo_call method_call = new GetInfo_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -669,7 +665,7 @@ public void GetInfo(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback public static class GetInfo_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetInfoReq req; - public GetInfo_call(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public GetInfo_call(TGetInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -692,7 +688,7 @@ public TGetInfoResp getResult() throws org.apache.thrift.TException { } } - public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); ExecuteStatement_call method_call = new ExecuteStatement_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -701,7 +697,7 @@ public void ExecuteStatement(TExecuteStatementReq req, org.apache.thrift.async.A public static class ExecuteStatement_call extends org.apache.thrift.async.TAsyncMethodCall { private TExecuteStatementReq req; - public ExecuteStatement_call(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public ExecuteStatement_call(TExecuteStatementReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -724,7 +720,7 @@ public TExecuteStatementResp getResult() throws org.apache.thrift.TException { } } - public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetTypeInfo_call method_call = new GetTypeInfo_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -733,7 +729,7 @@ public void GetTypeInfo(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethod public static class GetTypeInfo_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetTypeInfoReq req; - public GetTypeInfo_call(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public GetTypeInfo_call(TGetTypeInfoReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -756,7 +752,7 @@ public TGetTypeInfoResp getResult() throws org.apache.thrift.TException { } } - public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetCatalogs_call method_call = new GetCatalogs_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -765,7 +761,7 @@ public void GetCatalogs(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethod public static class GetCatalogs_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetCatalogsReq req; - public GetCatalogs_call(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public GetCatalogs_call(TGetCatalogsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -788,7 +784,7 @@ public TGetCatalogsResp getResult() throws org.apache.thrift.TException { } } - public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetSchemas_call method_call = new GetSchemas_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -797,7 +793,7 @@ public void GetSchemas(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCa public static class GetSchemas_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetSchemasReq req; - public GetSchemas_call(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public GetSchemas_call(TGetSchemasReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -820,7 +816,7 @@ public TGetSchemasResp getResult() throws org.apache.thrift.TException { } } - public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetTables_call method_call = new GetTables_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -829,7 +825,7 @@ public void GetTables(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCall public static class GetTables_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetTablesReq req; - public GetTables_call(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public GetTables_call(TGetTablesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -852,7 +848,7 @@ public TGetTablesResp getResult() throws org.apache.thrift.TException { } } - public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetTableTypes_call method_call = new GetTableTypes_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -861,7 +857,7 @@ public void GetTableTypes(TGetTableTypesReq req, org.apache.thrift.async.AsyncMe public static class GetTableTypes_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetTableTypesReq req; - public GetTableTypes_call(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public GetTableTypes_call(TGetTableTypesReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -884,7 +880,7 @@ public TGetTableTypesResp getResult() throws org.apache.thrift.TException { } } - public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetColumns_call method_call = new GetColumns_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -893,7 +889,7 @@ public void GetColumns(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCa public static class GetColumns_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetColumnsReq req; - public GetColumns_call(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public GetColumns_call(TGetColumnsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -916,7 +912,7 @@ public TGetColumnsResp getResult() throws org.apache.thrift.TException { } } - public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetFunctions_call method_call = new GetFunctions_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -925,7 +921,7 @@ public void GetFunctions(TGetFunctionsReq req, org.apache.thrift.async.AsyncMeth public static class GetFunctions_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetFunctionsReq req; - public GetFunctions_call(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public GetFunctions_call(TGetFunctionsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -948,7 +944,7 @@ public TGetFunctionsResp getResult() throws org.apache.thrift.TException { } } - public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetOperationStatus_call method_call = new GetOperationStatus_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -957,7 +953,7 @@ public void GetOperationStatus(TGetOperationStatusReq req, org.apache.thrift.asy public static class GetOperationStatus_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetOperationStatusReq req; - public GetOperationStatus_call(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public GetOperationStatus_call(TGetOperationStatusReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -980,7 +976,7 @@ public TGetOperationStatusResp getResult() throws org.apache.thrift.TException { } } - public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); CancelOperation_call method_call = new CancelOperation_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -989,7 +985,7 @@ public void CancelOperation(TCancelOperationReq req, org.apache.thrift.async.Asy public static class CancelOperation_call extends org.apache.thrift.async.TAsyncMethodCall { private TCancelOperationReq req; - public CancelOperation_call(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public CancelOperation_call(TCancelOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -1012,7 +1008,7 @@ public TCancelOperationResp getResult() throws org.apache.thrift.TException { } } - public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); CloseOperation_call method_call = new CloseOperation_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1021,7 +1017,7 @@ public void CloseOperation(TCloseOperationReq req, org.apache.thrift.async.Async public static class CloseOperation_call extends org.apache.thrift.async.TAsyncMethodCall { private TCloseOperationReq req; - public CloseOperation_call(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public CloseOperation_call(TCloseOperationReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -1044,7 +1040,7 @@ public TCloseOperationResp getResult() throws org.apache.thrift.TException { } } - public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetResultSetMetadata_call method_call = new GetResultSetMetadata_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1053,7 +1049,7 @@ public void GetResultSetMetadata(TGetResultSetMetadataReq req, org.apache.thrift public static class GetResultSetMetadata_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetResultSetMetadataReq req; - public GetResultSetMetadata_call(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public GetResultSetMetadata_call(TGetResultSetMetadataReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -1076,7 +1072,7 @@ public TGetResultSetMetadataResp getResult() throws org.apache.thrift.TException } } - public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); FetchResults_call method_call = new FetchResults_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1085,7 +1081,7 @@ public void FetchResults(TFetchResultsReq req, org.apache.thrift.async.AsyncMeth public static class FetchResults_call extends org.apache.thrift.async.TAsyncMethodCall { private TFetchResultsReq req; - public FetchResults_call(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public FetchResults_call(TFetchResultsReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -1108,7 +1104,7 @@ public TFetchResultsResp getResult() throws org.apache.thrift.TException { } } - public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); GetDelegationToken_call method_call = new GetDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1117,7 +1113,7 @@ public void GetDelegationToken(TGetDelegationTokenReq req, org.apache.thrift.asy public static class GetDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall { private TGetDelegationTokenReq req; - public GetDelegationToken_call(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public GetDelegationToken_call(TGetDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -1140,7 +1136,7 @@ public TGetDelegationTokenResp getResult() throws org.apache.thrift.TException { } } - public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); CancelDelegationToken_call method_call = new CancelDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1149,7 +1145,7 @@ public void CancelDelegationToken(TCancelDelegationTokenReq req, org.apache.thri public static class CancelDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall { private TCancelDelegationTokenReq req; - public CancelDelegationToken_call(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public CancelDelegationToken_call(TCancelDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -1172,7 +1168,7 @@ public TCancelDelegationTokenResp getResult() throws org.apache.thrift.TExceptio } } - public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); RenewDelegationToken_call method_call = new RenewDelegationToken_call(req, resultHandler, this, ___protocolFactory, ___transport); this.___currentMethod = method_call; @@ -1181,7 +1177,7 @@ public void RenewDelegationToken(TRenewDelegationTokenReq req, org.apache.thrift public static class RenewDelegationToken_call extends org.apache.thrift.async.TAsyncMethodCall { private TRenewDelegationTokenReq req; - public RenewDelegationToken_call(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + public RenewDelegationToken_call(TRenewDelegationTokenReq req, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { super(client, protocolFactory, transport, resultHandler, false); this.req = req; } @@ -1621,1011 +1617,7 @@ public RenewDelegationToken_result getResult(I iface, RenewDelegationToken_args } - public static class AsyncProcessor extends org.apache.thrift.TBaseAsyncProcessor { - private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName()); - public AsyncProcessor(I iface) { - super(iface, getProcessMap(new HashMap>())); - } - - protected AsyncProcessor(I iface, Map> processMap) { - super(iface, getProcessMap(processMap)); - } - - private static Map> getProcessMap(Map> processMap) { - processMap.put("OpenSession", new OpenSession()); - processMap.put("CloseSession", new CloseSession()); - processMap.put("GetInfo", new GetInfo()); - processMap.put("ExecuteStatement", new ExecuteStatement()); - processMap.put("GetTypeInfo", new GetTypeInfo()); - processMap.put("GetCatalogs", new GetCatalogs()); - processMap.put("GetSchemas", new GetSchemas()); - processMap.put("GetTables", new GetTables()); - processMap.put("GetTableTypes", new GetTableTypes()); - processMap.put("GetColumns", new GetColumns()); - processMap.put("GetFunctions", new GetFunctions()); - processMap.put("GetOperationStatus", new GetOperationStatus()); - processMap.put("CancelOperation", new CancelOperation()); - processMap.put("CloseOperation", new CloseOperation()); - processMap.put("GetResultSetMetadata", new GetResultSetMetadata()); - processMap.put("FetchResults", new FetchResults()); - processMap.put("GetDelegationToken", new GetDelegationToken()); - processMap.put("CancelDelegationToken", new CancelDelegationToken()); - processMap.put("RenewDelegationToken", new RenewDelegationToken()); - return processMap; - } - - public static class OpenSession extends org.apache.thrift.AsyncProcessFunction { - public OpenSession() { - super("OpenSession"); - } - - public OpenSession_args getEmptyArgsInstance() { - return new OpenSession_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TOpenSessionResp o) { - OpenSession_result result = new OpenSession_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; - OpenSession_result result = new OpenSession_result(); - { - 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, OpenSession_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.OpenSession(args.req,resultHandler); - } - } - - public static class CloseSession extends org.apache.thrift.AsyncProcessFunction { - public CloseSession() { - super("CloseSession"); - } - - public CloseSession_args getEmptyArgsInstance() { - return new CloseSession_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TCloseSessionResp o) { - CloseSession_result result = new CloseSession_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; - CloseSession_result result = new CloseSession_result(); - { - 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, CloseSession_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.CloseSession(args.req,resultHandler); - } - } - - public static class GetInfo extends org.apache.thrift.AsyncProcessFunction { - public GetInfo() { - super("GetInfo"); - } - - public GetInfo_args getEmptyArgsInstance() { - return new GetInfo_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetInfoResp o) { - GetInfo_result result = new GetInfo_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; - GetInfo_result result = new GetInfo_result(); - { - 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, GetInfo_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetInfo(args.req,resultHandler); - } - } - - public static class ExecuteStatement extends org.apache.thrift.AsyncProcessFunction { - public ExecuteStatement() { - super("ExecuteStatement"); - } - - public ExecuteStatement_args getEmptyArgsInstance() { - return new ExecuteStatement_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TExecuteStatementResp o) { - ExecuteStatement_result result = new ExecuteStatement_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; - ExecuteStatement_result result = new ExecuteStatement_result(); - { - 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, ExecuteStatement_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.ExecuteStatement(args.req,resultHandler); - } - } - - public static class GetTypeInfo extends org.apache.thrift.AsyncProcessFunction { - public GetTypeInfo() { - super("GetTypeInfo"); - } - - public GetTypeInfo_args getEmptyArgsInstance() { - return new GetTypeInfo_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetTypeInfoResp o) { - GetTypeInfo_result result = new GetTypeInfo_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; - GetTypeInfo_result result = new GetTypeInfo_result(); - { - 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, GetTypeInfo_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetTypeInfo(args.req,resultHandler); - } - } - - public static class GetCatalogs extends org.apache.thrift.AsyncProcessFunction { - public GetCatalogs() { - super("GetCatalogs"); - } - - public GetCatalogs_args getEmptyArgsInstance() { - return new GetCatalogs_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetCatalogsResp o) { - GetCatalogs_result result = new GetCatalogs_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; - GetCatalogs_result result = new GetCatalogs_result(); - { - 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, GetCatalogs_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetCatalogs(args.req,resultHandler); - } - } - - public static class GetSchemas extends org.apache.thrift.AsyncProcessFunction { - public GetSchemas() { - super("GetSchemas"); - } - - public GetSchemas_args getEmptyArgsInstance() { - return new GetSchemas_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetSchemasResp o) { - GetSchemas_result result = new GetSchemas_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; - GetSchemas_result result = new GetSchemas_result(); - { - 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, GetSchemas_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetSchemas(args.req,resultHandler); - } - } - - public static class GetTables extends org.apache.thrift.AsyncProcessFunction { - public GetTables() { - super("GetTables"); - } - - public GetTables_args getEmptyArgsInstance() { - return new GetTables_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetTablesResp o) { - GetTables_result result = new GetTables_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; - GetTables_result result = new GetTables_result(); - { - 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, GetTables_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetTables(args.req,resultHandler); - } - } - - public static class GetTableTypes extends org.apache.thrift.AsyncProcessFunction { - public GetTableTypes() { - super("GetTableTypes"); - } - - public GetTableTypes_args getEmptyArgsInstance() { - return new GetTableTypes_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetTableTypesResp o) { - GetTableTypes_result result = new GetTableTypes_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; - GetTableTypes_result result = new GetTableTypes_result(); - { - 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, GetTableTypes_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetTableTypes(args.req,resultHandler); - } - } - - public static class GetColumns extends org.apache.thrift.AsyncProcessFunction { - public GetColumns() { - super("GetColumns"); - } - - public GetColumns_args getEmptyArgsInstance() { - return new GetColumns_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetColumnsResp o) { - GetColumns_result result = new GetColumns_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; - GetColumns_result result = new GetColumns_result(); - { - 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, GetColumns_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetColumns(args.req,resultHandler); - } - } - - public static class GetFunctions extends org.apache.thrift.AsyncProcessFunction { - public GetFunctions() { - super("GetFunctions"); - } - - public GetFunctions_args getEmptyArgsInstance() { - return new GetFunctions_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetFunctionsResp o) { - GetFunctions_result result = new GetFunctions_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; - GetFunctions_result result = new GetFunctions_result(); - { - 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, GetFunctions_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetFunctions(args.req,resultHandler); - } - } - - public static class GetOperationStatus extends org.apache.thrift.AsyncProcessFunction { - public GetOperationStatus() { - super("GetOperationStatus"); - } - - public GetOperationStatus_args getEmptyArgsInstance() { - return new GetOperationStatus_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetOperationStatusResp o) { - GetOperationStatus_result result = new GetOperationStatus_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; - GetOperationStatus_result result = new GetOperationStatus_result(); - { - 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, GetOperationStatus_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetOperationStatus(args.req,resultHandler); - } - } - - public static class CancelOperation extends org.apache.thrift.AsyncProcessFunction { - public CancelOperation() { - super("CancelOperation"); - } - - public CancelOperation_args getEmptyArgsInstance() { - return new CancelOperation_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TCancelOperationResp o) { - CancelOperation_result result = new CancelOperation_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; - CancelOperation_result result = new CancelOperation_result(); - { - 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, CancelOperation_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.CancelOperation(args.req,resultHandler); - } - } - - public static class CloseOperation extends org.apache.thrift.AsyncProcessFunction { - public CloseOperation() { - super("CloseOperation"); - } - - public CloseOperation_args getEmptyArgsInstance() { - return new CloseOperation_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TCloseOperationResp o) { - CloseOperation_result result = new CloseOperation_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; - CloseOperation_result result = new CloseOperation_result(); - { - 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, CloseOperation_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.CloseOperation(args.req,resultHandler); - } - } - - public static class GetResultSetMetadata extends org.apache.thrift.AsyncProcessFunction { - public GetResultSetMetadata() { - super("GetResultSetMetadata"); - } - - public GetResultSetMetadata_args getEmptyArgsInstance() { - return new GetResultSetMetadata_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetResultSetMetadataResp o) { - GetResultSetMetadata_result result = new GetResultSetMetadata_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; - GetResultSetMetadata_result result = new GetResultSetMetadata_result(); - { - 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, GetResultSetMetadata_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetResultSetMetadata(args.req,resultHandler); - } - } - - public static class FetchResults extends org.apache.thrift.AsyncProcessFunction { - public FetchResults() { - super("FetchResults"); - } - - public FetchResults_args getEmptyArgsInstance() { - return new FetchResults_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TFetchResultsResp o) { - FetchResults_result result = new FetchResults_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; - FetchResults_result result = new FetchResults_result(); - { - 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, FetchResults_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.FetchResults(args.req,resultHandler); - } - } - - public static class GetDelegationToken extends org.apache.thrift.AsyncProcessFunction { - public GetDelegationToken() { - super("GetDelegationToken"); - } - - public GetDelegationToken_args getEmptyArgsInstance() { - return new GetDelegationToken_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TGetDelegationTokenResp o) { - GetDelegationToken_result result = new GetDelegationToken_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; - GetDelegationToken_result result = new GetDelegationToken_result(); - { - 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, GetDelegationToken_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.GetDelegationToken(args.req,resultHandler); - } - } - - public static class CancelDelegationToken extends org.apache.thrift.AsyncProcessFunction { - public CancelDelegationToken() { - super("CancelDelegationToken"); - } - - public CancelDelegationToken_args getEmptyArgsInstance() { - return new CancelDelegationToken_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TCancelDelegationTokenResp o) { - CancelDelegationToken_result result = new CancelDelegationToken_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; - CancelDelegationToken_result result = new CancelDelegationToken_result(); - { - 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, CancelDelegationToken_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.CancelDelegationToken(args.req,resultHandler); - } - } - - public static class RenewDelegationToken extends org.apache.thrift.AsyncProcessFunction { - public RenewDelegationToken() { - super("RenewDelegationToken"); - } - - public RenewDelegationToken_args getEmptyArgsInstance() { - return new RenewDelegationToken_args(); - } - - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(TRenewDelegationTokenResp o) { - RenewDelegationToken_result result = new RenewDelegationToken_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; - RenewDelegationToken_result result = new RenewDelegationToken_result(); - { - 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, RenewDelegationToken_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.RenewDelegationToken(args.req,resultHandler); - } - } - - } - - public static class OpenSession_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class OpenSession_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenSession_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -2819,30 +1811,30 @@ public boolean equals(OpenSession_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(OpenSession_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + OpenSession_args typedOther = (OpenSession_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -2988,7 +1980,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, OpenSession_args str } - public static class OpenSession_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class OpenSession_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OpenSession_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); @@ -3182,30 +2174,30 @@ public boolean equals(OpenSession_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(OpenSession_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + OpenSession_result typedOther = (OpenSession_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -3351,7 +2343,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, OpenSession_result s } - public static class CloseSession_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CloseSession_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseSession_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -3545,30 +2537,30 @@ public boolean equals(CloseSession_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CloseSession_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CloseSession_args typedOther = (CloseSession_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -3714,7 +2706,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CloseSession_args st } - public static class CloseSession_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CloseSession_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseSession_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); @@ -3908,30 +2900,30 @@ public boolean equals(CloseSession_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CloseSession_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CloseSession_result typedOther = (CloseSession_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -4077,7 +3069,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CloseSession_result } - public static class GetInfo_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetInfo_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetInfo_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -4271,30 +3263,30 @@ public boolean equals(GetInfo_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetInfo_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetInfo_args typedOther = (GetInfo_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -4440,7 +3432,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetInfo_args struct) } - public static class GetInfo_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetInfo_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetInfo_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); @@ -4634,30 +3626,30 @@ public boolean equals(GetInfo_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetInfo_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetInfo_result typedOther = (GetInfo_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -4803,7 +3795,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetInfo_result struc } - public static class ExecuteStatement_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class ExecuteStatement_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExecuteStatement_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -4997,30 +3989,30 @@ public boolean equals(ExecuteStatement_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ExecuteStatement_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ExecuteStatement_args typedOther = (ExecuteStatement_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -5166,7 +4158,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ExecuteStatement_arg } - public static class ExecuteStatement_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class ExecuteStatement_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ExecuteStatement_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); @@ -5360,30 +4352,30 @@ public boolean equals(ExecuteStatement_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(ExecuteStatement_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + ExecuteStatement_result typedOther = (ExecuteStatement_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -5529,7 +4521,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ExecuteStatement_res } - public static class GetTypeInfo_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetTypeInfo_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTypeInfo_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -5723,30 +4715,30 @@ public boolean equals(GetTypeInfo_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetTypeInfo_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetTypeInfo_args typedOther = (GetTypeInfo_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -5892,7 +4884,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTypeInfo_args str } - public static class GetTypeInfo_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetTypeInfo_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTypeInfo_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); @@ -6086,30 +5078,30 @@ public boolean equals(GetTypeInfo_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetTypeInfo_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetTypeInfo_result typedOther = (GetTypeInfo_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -6255,7 +5247,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTypeInfo_result s } - public static class GetCatalogs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetCatalogs_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetCatalogs_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -6449,30 +5441,30 @@ public boolean equals(GetCatalogs_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetCatalogs_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetCatalogs_args typedOther = (GetCatalogs_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -6618,7 +5610,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetCatalogs_args str } - public static class GetCatalogs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetCatalogs_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetCatalogs_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); @@ -6812,30 +5804,30 @@ public boolean equals(GetCatalogs_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetCatalogs_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetCatalogs_result typedOther = (GetCatalogs_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -6981,7 +5973,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetCatalogs_result s } - public static class GetSchemas_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetSchemas_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetSchemas_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -7175,30 +6167,30 @@ public boolean equals(GetSchemas_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetSchemas_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetSchemas_args typedOther = (GetSchemas_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -7344,7 +6336,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetSchemas_args stru } - public static class GetSchemas_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetSchemas_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetSchemas_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); @@ -7538,30 +6530,30 @@ public boolean equals(GetSchemas_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetSchemas_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetSchemas_result typedOther = (GetSchemas_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -7707,7 +6699,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetSchemas_result st } - public static class GetTables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetTables_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTables_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -7901,30 +6893,30 @@ public boolean equals(GetTables_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetTables_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetTables_args typedOther = (GetTables_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -8070,7 +7062,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTables_args struc } - public static class GetTables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetTables_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTables_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); @@ -8264,30 +7256,30 @@ public boolean equals(GetTables_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetTables_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetTables_result typedOther = (GetTables_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -8433,7 +7425,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTables_result str } - public static class GetTableTypes_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetTableTypes_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTableTypes_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -8627,30 +7619,30 @@ public boolean equals(GetTableTypes_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetTableTypes_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetTableTypes_args typedOther = (GetTableTypes_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -8796,7 +7788,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTableTypes_args s } - public static class GetTableTypes_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetTableTypes_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetTableTypes_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); @@ -8990,30 +7982,30 @@ public boolean equals(GetTableTypes_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetTableTypes_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetTableTypes_result typedOther = (GetTableTypes_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -9159,7 +8151,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTableTypes_result } - public static class GetColumns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetColumns_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetColumns_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -9353,30 +8345,30 @@ public boolean equals(GetColumns_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetColumns_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetColumns_args typedOther = (GetColumns_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -9522,7 +8514,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetColumns_args stru } - public static class GetColumns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetColumns_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetColumns_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); @@ -9716,30 +8708,30 @@ public boolean equals(GetColumns_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetColumns_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetColumns_result typedOther = (GetColumns_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -9885,7 +8877,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetColumns_result st } - public static class GetFunctions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetFunctions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFunctions_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -10079,30 +9071,30 @@ public boolean equals(GetFunctions_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetFunctions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetFunctions_args typedOther = (GetFunctions_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -10248,7 +9240,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetFunctions_args st } - public static class GetFunctions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetFunctions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetFunctions_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); @@ -10442,30 +9434,30 @@ public boolean equals(GetFunctions_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetFunctions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetFunctions_result typedOther = (GetFunctions_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -10611,7 +9603,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetFunctions_result } - public static class GetOperationStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetOperationStatus_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetOperationStatus_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -10805,30 +9797,30 @@ public boolean equals(GetOperationStatus_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetOperationStatus_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetOperationStatus_args typedOther = (GetOperationStatus_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -10974,7 +9966,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOperationStatus_a } - public static class GetOperationStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetOperationStatus_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetOperationStatus_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); @@ -11168,30 +10160,30 @@ public boolean equals(GetOperationStatus_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetOperationStatus_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetOperationStatus_result typedOther = (GetOperationStatus_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -11337,7 +10329,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOperationStatus_r } - public static class CancelOperation_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CancelOperation_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelOperation_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -11531,30 +10523,30 @@ public boolean equals(CancelOperation_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CancelOperation_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CancelOperation_args typedOther = (CancelOperation_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -11700,7 +10692,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CancelOperation_args } - public static class CancelOperation_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CancelOperation_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelOperation_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); @@ -11894,30 +10886,30 @@ public boolean equals(CancelOperation_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CancelOperation_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CancelOperation_result typedOther = (CancelOperation_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -12063,7 +11055,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CancelOperation_resu } - public static class CloseOperation_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CloseOperation_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseOperation_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -12257,30 +11249,30 @@ public boolean equals(CloseOperation_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CloseOperation_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CloseOperation_args typedOther = (CloseOperation_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -12426,7 +11418,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CloseOperation_args } - public static class CloseOperation_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CloseOperation_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CloseOperation_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); @@ -12620,30 +11612,30 @@ public boolean equals(CloseOperation_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CloseOperation_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CloseOperation_result typedOther = (CloseOperation_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -12789,7 +11781,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CloseOperation_resul } - public static class GetResultSetMetadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetResultSetMetadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetResultSetMetadata_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -12983,30 +11975,30 @@ public boolean equals(GetResultSetMetadata_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetResultSetMetadata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetResultSetMetadata_args typedOther = (GetResultSetMetadata_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -13152,7 +12144,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetResultSetMetadata } - public static class GetResultSetMetadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetResultSetMetadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetResultSetMetadata_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); @@ -13346,30 +12338,30 @@ public boolean equals(GetResultSetMetadata_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetResultSetMetadata_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetResultSetMetadata_result typedOther = (GetResultSetMetadata_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -13515,7 +12507,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetResultSetMetadata } - public static class FetchResults_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class FetchResults_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FetchResults_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -13709,30 +12701,30 @@ public boolean equals(FetchResults_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(FetchResults_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + FetchResults_args typedOther = (FetchResults_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -13878,7 +12870,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FetchResults_args st } - public static class FetchResults_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class FetchResults_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("FetchResults_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); @@ -14072,30 +13064,30 @@ public boolean equals(FetchResults_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(FetchResults_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + FetchResults_result typedOther = (FetchResults_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -14241,7 +13233,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FetchResults_result } - public static class GetDelegationToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetDelegationToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetDelegationToken_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -14435,30 +13427,30 @@ public boolean equals(GetDelegationToken_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetDelegationToken_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetDelegationToken_args typedOther = (GetDelegationToken_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -14604,7 +13596,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetDelegationToken_a } - public static class GetDelegationToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class GetDelegationToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetDelegationToken_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); @@ -14798,30 +13790,30 @@ public boolean equals(GetDelegationToken_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(GetDelegationToken_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + GetDelegationToken_result typedOther = (GetDelegationToken_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -14967,7 +13959,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetDelegationToken_r } - public static class CancelDelegationToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CancelDelegationToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelDelegationToken_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -15161,30 +14153,30 @@ public boolean equals(CancelDelegationToken_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CancelDelegationToken_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CancelDelegationToken_args typedOther = (CancelDelegationToken_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -15330,7 +14322,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CancelDelegationToke } - public static class CancelDelegationToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class CancelDelegationToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CancelDelegationToken_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); @@ -15524,30 +14516,30 @@ public boolean equals(CancelDelegationToken_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(CancelDelegationToken_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + CancelDelegationToken_result typedOther = (CancelDelegationToken_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } @@ -15693,7 +14685,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CancelDelegationToke } - public static class RenewDelegationToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class RenewDelegationToken_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RenewDelegationToken_args"); private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -15887,30 +14879,30 @@ public boolean equals(RenewDelegationToken_args that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_req = true && (isSetReq()); - list.add(present_req); + builder.append(present_req); if (present_req) - list.add(req); + builder.append(req); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(RenewDelegationToken_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + RenewDelegationToken_args typedOther = (RenewDelegationToken_args)other; - lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + lastComparison = Boolean.valueOf(isSetReq()).compareTo(typedOther.isSetReq()); if (lastComparison != 0) { return lastComparison; } if (isSetReq()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, typedOther.req); if (lastComparison != 0) { return lastComparison; } @@ -16056,7 +15048,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, RenewDelegationToken } - public static class RenewDelegationToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + public static class RenewDelegationToken_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RenewDelegationToken_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); @@ -16250,30 +15242,30 @@ public boolean equals(RenewDelegationToken_result that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_success = true && (isSetSuccess()); - list.add(present_success); + builder.append(present_success); if (present_success) - list.add(success); + builder.append(success); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(RenewDelegationToken_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + RenewDelegationToken_result typedOther = (RenewDelegationToken_result)other; - lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { return lastComparison; } if (isSetSuccess()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIServiceConstants.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIServiceConstants.java index 046eb15..25a38b1 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIServiceConstants.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCLIServiceConstants.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,11 +28,9 @@ 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"}) public class TCLIServiceConstants { public static final Set PRIMITIVE_TYPES = new HashSet(); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenReq.java index 1097869..e23fcdd 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TCancelDelegationTokenReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCancelDelegationTokenReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCancelDelegationTokenReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -287,45 +283,45 @@ public boolean equals(TCancelDelegationTokenReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_delegationToken = true && (isSetDelegationToken()); - list.add(present_delegationToken); + builder.append(present_delegationToken); if (present_delegationToken) - list.add(delegationToken); + builder.append(delegationToken); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCancelDelegationTokenReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCancelDelegationTokenReq typedOther = (TCancelDelegationTokenReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(other.isSetDelegationToken()); + lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(typedOther.isSetDelegationToken()); if (lastComparison != 0) { return lastComparison; } if (isSetDelegationToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, other.delegationToken); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, typedOther.delegationToken); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenResp.java index 5469108..77c9ee7 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelDelegationTokenResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TCancelDelegationTokenResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCancelDelegationTokenResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCancelDelegationTokenResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCancelDelegationTokenResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCancelDelegationTokenResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCancelDelegationTokenResp typedOther = (TCancelDelegationTokenResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationReq.java index 83d191e..45eac48 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TCancelOperationReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCancelOperationReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCancelOperationReq"); private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCancelOperationReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCancelOperationReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCancelOperationReq typedOther = (TCancelOperationReq)other; - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationResp.java index b8d96df..2a39414 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCancelOperationResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TCancelOperationResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCancelOperationResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCancelOperationResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCancelOperationResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCancelOperationResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCancelOperationResp typedOther = (TCancelOperationResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationReq.java index ca68866..0cbb7cc 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TCloseOperationReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCloseOperationReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCloseOperationReq"); private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCloseOperationReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCloseOperationReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCloseOperationReq typedOther = (TCloseOperationReq)other; - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationResp.java index 092e7e4..7334d67 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseOperationResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TCloseOperationResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCloseOperationResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCloseOperationResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCloseOperationResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCloseOperationResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCloseOperationResp typedOther = (TCloseOperationResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionReq.java index a5d910f..027e829 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TCloseSessionReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCloseSessionReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCloseSessionReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCloseSessionReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCloseSessionReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCloseSessionReq typedOther = (TCloseSessionReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionResp.java index ae4b554..168c8fc 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TCloseSessionResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TCloseSessionResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TCloseSessionResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TCloseSessionResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TCloseSessionResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TCloseSessionResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TCloseSessionResp typedOther = (TCloseSessionResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumn.java index 1bda69d..bfe50c7 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumn.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumn.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,11 +28,9 @@ 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"}) public class TColumn extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumn"); private static final org.apache.thrift.protocol.TField BOOL_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("boolVal", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -348,7 +345,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -701,19 +697,19 @@ public int compareTo(TColumn other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnDesc.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnDesc.java index e31aa81..247db64 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnDesc.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnDesc.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TColumnDesc implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TColumnDesc implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumnDesc"); private static final org.apache.thrift.protocol.TField COLUMN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("columnName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -124,7 +120,7 @@ public String getFieldName() { // isset id assignments private static final int __POSITION_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.COMMENT}; + private _Fields optionals[] = {_Fields.COMMENT}; 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); @@ -404,75 +400,75 @@ public boolean equals(TColumnDesc that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_columnName = true && (isSetColumnName()); - list.add(present_columnName); + builder.append(present_columnName); if (present_columnName) - list.add(columnName); + builder.append(columnName); boolean present_typeDesc = true && (isSetTypeDesc()); - list.add(present_typeDesc); + builder.append(present_typeDesc); if (present_typeDesc) - list.add(typeDesc); + builder.append(typeDesc); boolean present_position = true; - list.add(present_position); + builder.append(present_position); if (present_position) - list.add(position); + builder.append(position); boolean present_comment = true && (isSetComment()); - list.add(present_comment); + builder.append(present_comment); if (present_comment) - list.add(comment); + builder.append(comment); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TColumnDesc other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TColumnDesc typedOther = (TColumnDesc)other; - lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(other.isSetColumnName()); + lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(typedOther.isSetColumnName()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, other.columnName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, typedOther.columnName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTypeDesc()).compareTo(other.isSetTypeDesc()); + lastComparison = Boolean.valueOf(isSetTypeDesc()).compareTo(typedOther.isSetTypeDesc()); if (lastComparison != 0) { return lastComparison; } if (isSetTypeDesc()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeDesc, other.typeDesc); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeDesc, typedOther.typeDesc); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPosition()).compareTo(other.isSetPosition()); + lastComparison = Boolean.valueOf(isSetPosition()).compareTo(typedOther.isSetPosition()); if (lastComparison != 0) { return lastComparison; } if (isSetPosition()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.position, other.position); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.position, typedOther.position); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetComment()).compareTo(other.isSetComment()); + lastComparison = Boolean.valueOf(isSetComment()).compareTo(typedOther.isSetComment()); if (lastComparison != 0) { return lastComparison; } if (isSetComment()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, other.comment); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comment, typedOther.comment); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnValue.java index 61aee4d..44da2cd 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TColumnValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,11 +28,9 @@ 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"}) public class TColumnValue extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumnValue"); private static final org.apache.thrift.protocol.TField BOOL_VAL_FIELD_DESC = new org.apache.thrift.protocol.TField("boolVal", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -321,7 +318,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -640,19 +636,19 @@ public int compareTo(TColumnValue other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleColumn.java index 7236d90..88926c8 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleColumn.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleColumn.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TDoubleColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TDoubleColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDoubleColumn"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TDoubleColumn( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TDoubleColumn( */ public TDoubleColumn(TDoubleColumn other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (Double other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TDoubleColumn that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TDoubleColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TDoubleColumn typedOther = (TDoubleColumn)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TDoubleColumn struc { org.apache.thrift.protocol.TList _list94 = iprot.readListBegin(); struct.values = new ArrayList(_list94.size); - double _elem95; - for (int _i96 = 0; _i96 < _list94.size; ++_i96) + for (int _i95 = 0; _i95 < _list94.size; ++_i95) { - _elem95 = iprot.readDouble(); - struct.values.add(_elem95); + double _elem96; // required + _elem96 = iprot.readDouble(); + struct.values.add(_elem96); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TDoubleColumn struct { org.apache.thrift.protocol.TList _list99 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, iprot.readI32()); struct.values = new ArrayList(_list99.size); - double _elem100; - for (int _i101 = 0; _i101 < _list99.size; ++_i101) + for (int _i100 = 0; _i100 < _list99.size; ++_i100) { - _elem100 = iprot.readDouble(); - struct.values.add(_elem100); + double _elem101; // required + _elem101 = iprot.readDouble(); + struct.values.add(_elem101); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleValue.java index 4b0811e..d215736 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TDoubleValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TDoubleValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TDoubleValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDoubleValue"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.DOUBLE, (short)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __VALUE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; 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); @@ -224,30 +220,30 @@ public boolean equals(TDoubleValue that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TDoubleValue other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TDoubleValue typedOther = (TDoubleValue)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementReq.java index feaed34..4f157ad 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TExecuteStatementReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TExecuteStatementReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TExecuteStatementReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -124,7 +120,7 @@ public String getFieldName() { // isset id assignments private static final int __RUNASYNC_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.CONF_OVERLAY,_Fields.RUN_ASYNC}; + private _Fields optionals[] = {_Fields.CONF_OVERLAY,_Fields.RUN_ASYNC}; 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); @@ -168,7 +164,18 @@ public TExecuteStatementReq(TExecuteStatementReq other) { this.statement = other.statement; } if (other.isSetConfOverlay()) { - Map __this__confOverlay = new HashMap(other.confOverlay); + Map __this__confOverlay = new HashMap(); + for (Map.Entry other_element : other.confOverlay.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__confOverlay_copy_key = other_element_key; + + String __this__confOverlay_copy_value = other_element_value; + + __this__confOverlay.put(__this__confOverlay_copy_key, __this__confOverlay_copy_value); + } this.confOverlay = __this__confOverlay; } this.runAsync = other.runAsync; @@ -417,75 +424,75 @@ public boolean equals(TExecuteStatementReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_statement = true && (isSetStatement()); - list.add(present_statement); + builder.append(present_statement); if (present_statement) - list.add(statement); + builder.append(statement); boolean present_confOverlay = true && (isSetConfOverlay()); - list.add(present_confOverlay); + builder.append(present_confOverlay); if (present_confOverlay) - list.add(confOverlay); + builder.append(confOverlay); boolean present_runAsync = true && (isSetRunAsync()); - list.add(present_runAsync); + builder.append(present_runAsync); if (present_runAsync) - list.add(runAsync); + builder.append(runAsync); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TExecuteStatementReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TExecuteStatementReq typedOther = (TExecuteStatementReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetStatement()).compareTo(other.isSetStatement()); + lastComparison = Boolean.valueOf(isSetStatement()).compareTo(typedOther.isSetStatement()); if (lastComparison != 0) { return lastComparison; } if (isSetStatement()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statement, other.statement); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statement, typedOther.statement); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConfOverlay()).compareTo(other.isSetConfOverlay()); + lastComparison = Boolean.valueOf(isSetConfOverlay()).compareTo(typedOther.isSetConfOverlay()); if (lastComparison != 0) { return lastComparison; } if (isSetConfOverlay()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.confOverlay, other.confOverlay); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.confOverlay, typedOther.confOverlay); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRunAsync()).compareTo(other.isSetRunAsync()); + lastComparison = Boolean.valueOf(isSetRunAsync()).compareTo(typedOther.isSetRunAsync()); if (lastComparison != 0) { return lastComparison; } if (isSetRunAsync()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runAsync, other.runAsync); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runAsync, typedOther.runAsync); if (lastComparison != 0) { return lastComparison; } @@ -619,13 +626,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TExecuteStatementRe { org.apache.thrift.protocol.TMap _map162 = iprot.readMapBegin(); struct.confOverlay = new HashMap(2*_map162.size); - String _key163; - String _val164; - for (int _i165 = 0; _i165 < _map162.size; ++_i165) + for (int _i163 = 0; _i163 < _map162.size; ++_i163) { - _key163 = iprot.readString(); - _val164 = iprot.readString(); - struct.confOverlay.put(_key163, _val164); + String _key164; // required + String _val165; // required + _key164 = iprot.readString(); + _val165 = iprot.readString(); + struct.confOverlay.put(_key164, _val165); } iprot.readMapEnd(); } @@ -740,13 +747,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TExecuteStatementReq { org.apache.thrift.protocol.TMap _map168 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.confOverlay = new HashMap(2*_map168.size); - String _key169; - String _val170; - for (int _i171 = 0; _i171 < _map168.size; ++_i171) + for (int _i169 = 0; _i169 < _map168.size; ++_i169) { - _key169 = iprot.readString(); - _val170 = iprot.readString(); - struct.confOverlay.put(_key169, _val170); + String _key170; // required + String _val171; // required + _key170 = iprot.readString(); + _val171 = iprot.readString(); + struct.confOverlay.put(_key170, _val171); } } struct.setConfOverlayIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementResp.java index daf7b5c..fdde51e 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TExecuteStatementResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TExecuteStatementResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TExecuteStatementResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TExecuteStatementResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; 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); @@ -286,45 +282,45 @@ public boolean equals(TExecuteStatementResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TExecuteStatementResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TExecuteStatementResp typedOther = (TExecuteStatementResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchOrientation.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchOrientation.java index 64713e8..b2a22ef 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchOrientation.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchOrientation.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsReq.java index 47d9a0b..068711f 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TFetchResultsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TFetchResultsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TFetchResultsReq"); private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -129,7 +125,7 @@ public String getFieldName() { private static final int __MAXROWS_ISSET_ID = 0; private static final int __FETCHTYPE_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.FETCH_TYPE}; + private _Fields optionals[] = {_Fields.FETCH_TYPE}; 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); @@ -420,75 +416,75 @@ public boolean equals(TFetchResultsReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); boolean present_orientation = true && (isSetOrientation()); - list.add(present_orientation); + builder.append(present_orientation); if (present_orientation) - list.add(orientation.getValue()); + builder.append(orientation.getValue()); boolean present_maxRows = true; - list.add(present_maxRows); + builder.append(present_maxRows); if (present_maxRows) - list.add(maxRows); + builder.append(maxRows); boolean present_fetchType = true && (isSetFetchType()); - list.add(present_fetchType); + builder.append(present_fetchType); if (present_fetchType) - list.add(fetchType); + builder.append(fetchType); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TFetchResultsReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TFetchResultsReq typedOther = (TFetchResultsReq)other; - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOrientation()).compareTo(other.isSetOrientation()); + lastComparison = Boolean.valueOf(isSetOrientation()).compareTo(typedOther.isSetOrientation()); if (lastComparison != 0) { return lastComparison; } if (isSetOrientation()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orientation, other.orientation); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orientation, typedOther.orientation); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMaxRows()).compareTo(other.isSetMaxRows()); + lastComparison = Boolean.valueOf(isSetMaxRows()).compareTo(typedOther.isSetMaxRows()); if (lastComparison != 0) { return lastComparison; } if (isSetMaxRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxRows, other.maxRows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxRows, typedOther.maxRows); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFetchType()).compareTo(other.isSetFetchType()); + lastComparison = Boolean.valueOf(isSetFetchType()).compareTo(typedOther.isSetFetchType()); if (lastComparison != 0) { return lastComparison; } if (isSetFetchType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fetchType, other.fetchType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fetchType, typedOther.fetchType); if (lastComparison != 0) { return lastComparison; } @@ -609,7 +605,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TFetchResultsReq st break; case 2: // ORIENTATION if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.orientation = org.apache.hive.service.cli.thrift.TFetchOrientation.findByValue(iprot.readI32()); + struct.orientation = TFetchOrientation.findByValue(iprot.readI32()); struct.setOrientationIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -698,7 +694,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TFetchResultsReq str struct.operationHandle = new TOperationHandle(); struct.operationHandle.read(iprot); struct.setOperationHandleIsSet(true); - struct.orientation = org.apache.hive.service.cli.thrift.TFetchOrientation.findByValue(iprot.readI32()); + struct.orientation = TFetchOrientation.findByValue(iprot.readI32()); struct.setOrientationIsSet(true); struct.maxRows = iprot.readI64(); struct.setMaxRowsIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java index b9f3ef6..19991f1 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TFetchResultsResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TFetchResultsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TFetchResultsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TFetchResultsResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -119,7 +115,7 @@ public String getFieldName() { // isset id assignments private static final int __HASMOREROWS_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.HAS_MORE_ROWS,_Fields.RESULTS}; + private _Fields optionals[] = {_Fields.HAS_MORE_ROWS,_Fields.RESULTS}; 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); @@ -343,60 +339,60 @@ public boolean equals(TFetchResultsResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_hasMoreRows = true && (isSetHasMoreRows()); - list.add(present_hasMoreRows); + builder.append(present_hasMoreRows); if (present_hasMoreRows) - list.add(hasMoreRows); + builder.append(hasMoreRows); boolean present_results = true && (isSetResults()); - list.add(present_results); + builder.append(present_results); if (present_results) - list.add(results); + builder.append(results); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TFetchResultsResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TFetchResultsResp typedOther = (TFetchResultsResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHasMoreRows()).compareTo(other.isSetHasMoreRows()); + lastComparison = Boolean.valueOf(isSetHasMoreRows()).compareTo(typedOther.isSetHasMoreRows()); if (lastComparison != 0) { return lastComparison; } if (isSetHasMoreRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasMoreRows, other.hasMoreRows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasMoreRows, typedOther.hasMoreRows); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetResults()).compareTo(other.isSetResults()); + lastComparison = Boolean.valueOf(isSetResults()).compareTo(typedOther.isSetResults()); if (lastComparison != 0) { return lastComparison; } if (isSetResults()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.results, other.results); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.results, typedOther.results); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java index 0e63b9a..cfd157f 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetCatalogsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetCatalogsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetCatalogsReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TGetCatalogsReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetCatalogsReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetCatalogsReq typedOther = (TGetCatalogsReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java index 7067ff7..1c5a354 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetCatalogsResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetCatalogsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetCatalogsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetCatalogsResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; 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); @@ -286,45 +282,45 @@ public boolean equals(TGetCatalogsResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetCatalogsResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetCatalogsResp typedOther = (TGetCatalogsResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsReq.java index a153968..a2c793b 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetColumnsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetColumnsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetColumnsReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -127,7 +123,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME,_Fields.TABLE_NAME,_Fields.COLUMN_NAME}; + private _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME,_Fields.TABLE_NAME,_Fields.COLUMN_NAME}; 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); @@ -454,90 +450,90 @@ public boolean equals(TGetColumnsReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_catalogName = true && (isSetCatalogName()); - list.add(present_catalogName); + builder.append(present_catalogName); if (present_catalogName) - list.add(catalogName); + builder.append(catalogName); boolean present_schemaName = true && (isSetSchemaName()); - list.add(present_schemaName); + builder.append(present_schemaName); if (present_schemaName) - list.add(schemaName); + builder.append(schemaName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_columnName = true && (isSetColumnName()); - list.add(present_columnName); + builder.append(present_columnName); if (present_columnName) - list.add(columnName); + builder.append(columnName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetColumnsReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetColumnsReq typedOther = (TGetColumnsReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(other.isSetCatalogName()); + lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(typedOther.isSetCatalogName()); if (lastComparison != 0) { return lastComparison; } if (isSetCatalogName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, other.catalogName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, typedOther.catalogName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName()); + lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(typedOther.isSetSchemaName()); if (lastComparison != 0) { return lastComparison; } if (isSetSchemaName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, typedOther.schemaName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(other.isSetColumnName()); + lastComparison = Boolean.valueOf(isSetColumnName()).compareTo(typedOther.isSetColumnName()); if (lastComparison != 0) { return lastComparison; } if (isSetColumnName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, other.columnName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columnName, typedOther.columnName); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsResp.java index 49ecb98..d6cf1be 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetColumnsResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetColumnsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetColumnsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetColumnsResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; 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); @@ -286,45 +282,45 @@ public boolean equals(TGetColumnsResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetColumnsResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetColumnsResp typedOther = (TGetColumnsResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenReq.java index 2c2fa0f..6c6bb00 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetDelegationTokenReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetDelegationTokenReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetDelegationTokenReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -345,60 +341,60 @@ public boolean equals(TGetDelegationTokenReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_owner = true && (isSetOwner()); - list.add(present_owner); + builder.append(present_owner); if (present_owner) - list.add(owner); + builder.append(owner); boolean present_renewer = true && (isSetRenewer()); - list.add(present_renewer); + builder.append(present_renewer); if (present_renewer) - list.add(renewer); + builder.append(renewer); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetDelegationTokenReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetDelegationTokenReq typedOther = (TGetDelegationTokenReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOwner()).compareTo(other.isSetOwner()); + lastComparison = Boolean.valueOf(isSetOwner()).compareTo(typedOther.isSetOwner()); if (lastComparison != 0) { return lastComparison; } if (isSetOwner()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.owner, other.owner); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.owner, typedOther.owner); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRenewer()).compareTo(other.isSetRenewer()); + lastComparison = Boolean.valueOf(isSetRenewer()).compareTo(typedOther.isSetRenewer()); if (lastComparison != 0) { return lastComparison; } if (isSetRenewer()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.renewer, other.renewer); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.renewer, typedOther.renewer); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenResp.java index 4222005..d14c5e0 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetDelegationTokenResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetDelegationTokenResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetDelegationTokenResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetDelegationTokenResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.DELEGATION_TOKEN}; + private _Fields optionals[] = {_Fields.DELEGATION_TOKEN}; 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); @@ -286,45 +282,45 @@ public boolean equals(TGetDelegationTokenResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_delegationToken = true && (isSetDelegationToken()); - list.add(present_delegationToken); + builder.append(present_delegationToken); if (present_delegationToken) - list.add(delegationToken); + builder.append(delegationToken); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetDelegationTokenResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetDelegationTokenResp typedOther = (TGetDelegationTokenResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(other.isSetDelegationToken()); + lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(typedOther.isSetDelegationToken()); if (lastComparison != 0) { return lastComparison; } if (isSetDelegationToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, other.delegationToken); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, typedOther.delegationToken); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsReq.java index 5bc0540..ff45ee0 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetFunctionsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetFunctionsReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetFunctionsReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -122,7 +118,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME}; + private _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME}; 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); @@ -400,75 +396,75 @@ public boolean equals(TGetFunctionsReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_catalogName = true && (isSetCatalogName()); - list.add(present_catalogName); + builder.append(present_catalogName); if (present_catalogName) - list.add(catalogName); + builder.append(catalogName); boolean present_schemaName = true && (isSetSchemaName()); - list.add(present_schemaName); + builder.append(present_schemaName); if (present_schemaName) - list.add(schemaName); + builder.append(schemaName); boolean present_functionName = true && (isSetFunctionName()); - list.add(present_functionName); + builder.append(present_functionName); if (present_functionName) - list.add(functionName); + builder.append(functionName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetFunctionsReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetFunctionsReq typedOther = (TGetFunctionsReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(other.isSetCatalogName()); + lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(typedOther.isSetCatalogName()); if (lastComparison != 0) { return lastComparison; } if (isSetCatalogName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, other.catalogName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, typedOther.catalogName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName()); + lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(typedOther.isSetSchemaName()); if (lastComparison != 0) { return lastComparison; } if (isSetSchemaName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, typedOther.schemaName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetFunctionName()).compareTo(other.isSetFunctionName()); + lastComparison = Boolean.valueOf(isSetFunctionName()).compareTo(typedOther.isSetFunctionName()); if (lastComparison != 0) { return lastComparison; } if (isSetFunctionName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionName, other.functionName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.functionName, typedOther.functionName); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsResp.java index a64c948..3adafda 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetFunctionsResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetFunctionsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetFunctionsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetFunctionsResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; 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); @@ -286,45 +282,45 @@ public boolean equals(TGetFunctionsResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetFunctionsResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetFunctionsResp typedOther = (TGetFunctionsResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoReq.java index 7dd6a14..0139bf0 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetInfoReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetInfoReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetInfoReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -299,45 +295,45 @@ public boolean equals(TGetInfoReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_infoType = true && (isSetInfoType()); - list.add(present_infoType); + builder.append(present_infoType); if (present_infoType) - list.add(infoType.getValue()); + builder.append(infoType.getValue()); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetInfoReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetInfoReq typedOther = (TGetInfoReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetInfoType()).compareTo(other.isSetInfoType()); + lastComparison = Boolean.valueOf(isSetInfoType()).compareTo(typedOther.isSetInfoType()); if (lastComparison != 0) { return lastComparison; } if (isSetInfoType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoType, other.infoType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoType, typedOther.infoType); if (lastComparison != 0) { return lastComparison; } @@ -442,7 +438,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TGetInfoReq struct) break; case 2: // INFO_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.infoType = org.apache.hive.service.cli.thrift.TGetInfoType.findByValue(iprot.readI32()); + struct.infoType = TGetInfoType.findByValue(iprot.readI32()); struct.setInfoTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -498,7 +494,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TGetInfoReq struct) struct.sessionHandle = new TSessionHandle(); struct.sessionHandle.read(iprot); struct.setSessionHandleIsSet(true); - struct.infoType = org.apache.hive.service.cli.thrift.TGetInfoType.findByValue(iprot.readI32()); + struct.infoType = TGetInfoType.findByValue(iprot.readI32()); struct.setInfoTypeIsSet(true); } } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoResp.java index 3e16318..2faaa92 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetInfoResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetInfoResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetInfoResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -287,45 +283,45 @@ public boolean equals(TGetInfoResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_infoValue = true && (isSetInfoValue()); - list.add(present_infoValue); + builder.append(present_infoValue); if (present_infoValue) - list.add(infoValue); + builder.append(infoValue); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetInfoResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetInfoResp typedOther = (TGetInfoResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetInfoValue()).compareTo(other.isSetInfoValue()); + lastComparison = Boolean.valueOf(isSetInfoValue()).compareTo(typedOther.isSetInfoValue()); if (lastComparison != 0) { return lastComparison; } if (isSetInfoValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoValue, other.infoValue); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoValue, typedOther.infoValue); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoType.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoType.java index f4dc73d..d9dd624 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoType.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoValue.java index af1224d..4fe59b1 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetInfoValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,11 +28,9 @@ 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"}) public class TGetInfoValue extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetInfoValue"); private static final org.apache.thrift.protocol.TField STRING_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("stringValue", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -288,7 +285,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -562,19 +558,19 @@ public int compareTo(TGetInfoValue other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusReq.java index f4d5fae..b88591e 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetOperationStatusReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetOperationStatusReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetOperationStatusReq"); private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TGetOperationStatusReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetOperationStatusReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetOperationStatusReq typedOther = (TGetOperationStatusReq)other; - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusResp.java index 897f7f5..94ba6bb 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetOperationStatusResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetOperationStatusResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetOperationStatusResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetOperationStatusResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -133,7 +129,7 @@ public String getFieldName() { // isset id assignments private static final int __ERRORCODE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.OPERATION_STATE,_Fields.SQL_STATE,_Fields.ERROR_CODE,_Fields.ERROR_MESSAGE}; + private _Fields optionals[] = {_Fields.OPERATION_STATE,_Fields.SQL_STATE,_Fields.ERROR_CODE,_Fields.ERROR_MESSAGE}; 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); @@ -467,90 +463,90 @@ public boolean equals(TGetOperationStatusResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationState = true && (isSetOperationState()); - list.add(present_operationState); + builder.append(present_operationState); if (present_operationState) - list.add(operationState.getValue()); + builder.append(operationState.getValue()); boolean present_sqlState = true && (isSetSqlState()); - list.add(present_sqlState); + builder.append(present_sqlState); if (present_sqlState) - list.add(sqlState); + builder.append(sqlState); boolean present_errorCode = true && (isSetErrorCode()); - list.add(present_errorCode); + builder.append(present_errorCode); if (present_errorCode) - list.add(errorCode); + builder.append(errorCode); boolean present_errorMessage = true && (isSetErrorMessage()); - list.add(present_errorMessage); + builder.append(present_errorMessage); if (present_errorMessage) - list.add(errorMessage); + builder.append(errorMessage); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetOperationStatusResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetOperationStatusResp typedOther = (TGetOperationStatusResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationState()).compareTo(other.isSetOperationState()); + lastComparison = Boolean.valueOf(isSetOperationState()).compareTo(typedOther.isSetOperationState()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationState, other.operationState); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationState, typedOther.operationState); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(other.isSetSqlState()); + lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(typedOther.isSetSqlState()); if (lastComparison != 0) { return lastComparison; } if (isSetSqlState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, other.sqlState); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, typedOther.sqlState); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(other.isSetErrorCode()); + lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode()); if (lastComparison != 0) { return lastComparison; } if (isSetErrorCode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, other.errorCode); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetErrorMessage()).compareTo(other.isSetErrorMessage()); + lastComparison = Boolean.valueOf(isSetErrorMessage()).compareTo(typedOther.isSetErrorMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetErrorMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMessage, other.errorMessage); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMessage, typedOther.errorMessage); if (lastComparison != 0) { return lastComparison; } @@ -681,7 +677,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TGetOperationStatus break; case 2: // OPERATION_STATE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.operationState = org.apache.hive.service.cli.thrift.TOperationState.findByValue(iprot.readI32()); + struct.operationState = TOperationState.findByValue(iprot.readI32()); struct.setOperationStateIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -809,7 +805,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TGetOperationStatusR struct.setStatusIsSet(true); BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.operationState = org.apache.hive.service.cli.thrift.TOperationState.findByValue(iprot.readI32()); + struct.operationState = TOperationState.findByValue(iprot.readI32()); struct.setOperationStateIsSet(true); } if (incoming.get(1)) { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataReq.java index 405ffc6..3bf363c 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetResultSetMetadataReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetResultSetMetadataReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetResultSetMetadataReq"); private static final org.apache.thrift.protocol.TField OPERATION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("operationHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TGetResultSetMetadataReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetResultSetMetadataReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetResultSetMetadataReq typedOther = (TGetResultSetMetadataReq)other; - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataResp.java index 3735310..a9bef9f 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetResultSetMetadataResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetResultSetMetadataResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetResultSetMetadataResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetResultSetMetadataResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.SCHEMA}; + private _Fields optionals[] = {_Fields.SCHEMA}; 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); @@ -286,45 +282,45 @@ public boolean equals(TGetResultSetMetadataResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_schema = true && (isSetSchema()); - list.add(present_schema); + builder.append(present_schema); if (present_schema) - list.add(schema); + builder.append(schema); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetResultSetMetadataResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetResultSetMetadataResp typedOther = (TGetResultSetMetadataResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSchema()).compareTo(other.isSetSchema()); + lastComparison = Boolean.valueOf(isSetSchema()).compareTo(typedOther.isSetSchema()); if (lastComparison != 0) { return lastComparison; } if (isSetSchema()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schema, other.schema); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schema, typedOther.schema); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasReq.java index 33088b4..c2aadaa 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetSchemasReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetSchemasReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetSchemasReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -117,7 +113,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME}; + private _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME}; 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); @@ -342,60 +338,60 @@ public boolean equals(TGetSchemasReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_catalogName = true && (isSetCatalogName()); - list.add(present_catalogName); + builder.append(present_catalogName); if (present_catalogName) - list.add(catalogName); + builder.append(catalogName); boolean present_schemaName = true && (isSetSchemaName()); - list.add(present_schemaName); + builder.append(present_schemaName); if (present_schemaName) - list.add(schemaName); + builder.append(schemaName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetSchemasReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetSchemasReq typedOther = (TGetSchemasReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(other.isSetCatalogName()); + lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(typedOther.isSetCatalogName()); if (lastComparison != 0) { return lastComparison; } if (isSetCatalogName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, other.catalogName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, typedOther.catalogName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName()); + lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(typedOther.isSetSchemaName()); if (lastComparison != 0) { return lastComparison; } if (isSetSchemaName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, typedOther.schemaName); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasResp.java index ec598a3..ac1ea3e 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetSchemasResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetSchemasResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetSchemasResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetSchemasResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; 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); @@ -286,45 +282,45 @@ public boolean equals(TGetSchemasResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetSchemasResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetSchemasResp typedOther = (TGetSchemasResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesReq.java index 3e09a64..6f2c713 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetTableTypesReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetTableTypesReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTableTypesReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TGetTableTypesReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetTableTypesReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetTableTypesReq typedOther = (TGetTableTypesReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesResp.java index cdba9b5..6f33fbc 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTableTypesResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetTableTypesResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetTableTypesResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTableTypesResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; 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); @@ -286,45 +282,45 @@ public boolean equals(TGetTableTypesResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetTableTypesResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetTableTypesResp typedOther = (TGetTableTypesResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesReq.java index 805e69f..d0c3059 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetTablesReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetTablesReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTablesReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -127,7 +123,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME,_Fields.TABLE_NAME,_Fields.TABLE_TYPES}; + private _Fields optionals[] = {_Fields.CATALOG_NAME,_Fields.SCHEMA_NAME,_Fields.TABLE_NAME,_Fields.TABLE_TYPES}; 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); @@ -173,7 +169,10 @@ public TGetTablesReq(TGetTablesReq other) { this.tableName = other.tableName; } if (other.isSetTableTypes()) { - List __this__tableTypes = new ArrayList(other.tableTypes); + List __this__tableTypes = new ArrayList(); + for (String other_element : other.tableTypes) { + __this__tableTypes.add(other_element); + } this.tableTypes = __this__tableTypes; } } @@ -471,90 +470,90 @@ public boolean equals(TGetTablesReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_catalogName = true && (isSetCatalogName()); - list.add(present_catalogName); + builder.append(present_catalogName); if (present_catalogName) - list.add(catalogName); + builder.append(catalogName); boolean present_schemaName = true && (isSetSchemaName()); - list.add(present_schemaName); + builder.append(present_schemaName); if (present_schemaName) - list.add(schemaName); + builder.append(schemaName); boolean present_tableName = true && (isSetTableName()); - list.add(present_tableName); + builder.append(present_tableName); if (present_tableName) - list.add(tableName); + builder.append(tableName); boolean present_tableTypes = true && (isSetTableTypes()); - list.add(present_tableTypes); + builder.append(present_tableTypes); if (present_tableTypes) - list.add(tableTypes); + builder.append(tableTypes); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetTablesReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetTablesReq typedOther = (TGetTablesReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(other.isSetCatalogName()); + lastComparison = Boolean.valueOf(isSetCatalogName()).compareTo(typedOther.isSetCatalogName()); if (lastComparison != 0) { return lastComparison; } if (isSetCatalogName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, other.catalogName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogName, typedOther.catalogName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(other.isSetSchemaName()); + lastComparison = Boolean.valueOf(isSetSchemaName()).compareTo(typedOther.isSetSchemaName()); if (lastComparison != 0) { return lastComparison; } if (isSetSchemaName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, other.schemaName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schemaName, typedOther.schemaName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableName()).compareTo(other.isSetTableName()); + lastComparison = Boolean.valueOf(isSetTableName()).compareTo(typedOther.isSetTableName()); if (lastComparison != 0) { return lastComparison; } if (isSetTableName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, typedOther.tableName); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTableTypes()).compareTo(other.isSetTableTypes()); + lastComparison = Boolean.valueOf(isSetTableTypes()).compareTo(typedOther.isSetTableTypes()); if (lastComparison != 0) { return lastComparison; } if (isSetTableTypes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableTypes, other.tableTypes); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableTypes, typedOther.tableTypes); if (lastComparison != 0) { return lastComparison; } @@ -714,11 +713,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TGetTablesReq struc { org.apache.thrift.protocol.TList _list172 = iprot.readListBegin(); struct.tableTypes = new ArrayList(_list172.size); - String _elem173; - for (int _i174 = 0; _i174 < _list172.size; ++_i174) + for (int _i173 = 0; _i173 < _list172.size; ++_i173) { - _elem173 = iprot.readString(); - struct.tableTypes.add(_elem173); + String _elem174; // required + _elem174 = iprot.readString(); + struct.tableTypes.add(_elem174); } iprot.readListEnd(); } @@ -855,11 +854,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TGetTablesReq struct { org.apache.thrift.protocol.TList _list177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.tableTypes = new ArrayList(_list177.size); - String _elem178; - for (int _i179 = 0; _i179 < _list177.size; ++_i179) + for (int _i178 = 0; _i178 < _list177.size; ++_i178) { - _elem178 = iprot.readString(); - struct.tableTypes.add(_elem178); + String _elem179; // required + _elem179 = iprot.readString(); + struct.tableTypes.add(_elem179); } } struct.setTableTypesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesResp.java index 0d03dd8..d526f44 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTablesResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetTablesResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetTablesResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTablesResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; 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); @@ -286,45 +282,45 @@ public boolean equals(TGetTablesResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetTablesResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetTablesResp typedOther = (TGetTablesResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoReq.java index 0628e21..d40115e 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetTypeInfoReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetTypeInfoReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTypeInfoReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TGetTypeInfoReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetTypeInfoReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetTypeInfoReq typedOther = (TGetTypeInfoReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoResp.java index 6058826..59be1a3 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TGetTypeInfoResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TGetTypeInfoResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TGetTypeInfoResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTypeInfoResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -112,7 +108,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.OPERATION_HANDLE}; + private _Fields optionals[] = {_Fields.OPERATION_HANDLE}; 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); @@ -286,45 +282,45 @@ public boolean equals(TGetTypeInfoResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_operationHandle = true && (isSetOperationHandle()); - list.add(present_operationHandle); + builder.append(present_operationHandle); if (present_operationHandle) - list.add(operationHandle); + builder.append(operationHandle); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TGetTypeInfoResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TGetTypeInfoResp typedOther = (TGetTypeInfoResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(other.isSetOperationHandle()); + lastComparison = Boolean.valueOf(isSetOperationHandle()).compareTo(typedOther.isSetOperationHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, other.operationHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationHandle, typedOther.operationHandle); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/THandleIdentifier.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/THandleIdentifier.java index f20c4d0..368273c 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/THandleIdentifier.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/THandleIdentifier.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class THandleIdentifier implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class THandleIdentifier implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("THandleIdentifier"); private static final org.apache.thrift.protocol.TField GUID_FIELD_DESC = new org.apache.thrift.protocol.TField("guid", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -131,8 +127,8 @@ public THandleIdentifier( ByteBuffer secret) { this(); - this.guid = org.apache.thrift.TBaseHelper.copyBinary(guid); - this.secret = org.apache.thrift.TBaseHelper.copyBinary(secret); + this.guid = guid; + this.secret = secret; } /** @@ -141,9 +137,11 @@ public THandleIdentifier( public THandleIdentifier(THandleIdentifier other) { if (other.isSetGuid()) { this.guid = org.apache.thrift.TBaseHelper.copyBinary(other.guid); +; } if (other.isSetSecret()) { this.secret = org.apache.thrift.TBaseHelper.copyBinary(other.secret); +; } } @@ -163,15 +161,15 @@ public void clear() { } public ByteBuffer bufferForGuid() { - return org.apache.thrift.TBaseHelper.copyBinary(guid); + return guid; } public void setGuid(byte[] guid) { - this.guid = guid == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(guid, guid.length)); + setGuid(guid == null ? (ByteBuffer)null : ByteBuffer.wrap(guid)); } public void setGuid(ByteBuffer guid) { - this.guid = org.apache.thrift.TBaseHelper.copyBinary(guid); + this.guid = guid; } public void unsetGuid() { @@ -195,15 +193,15 @@ public void setGuidIsSet(boolean value) { } public ByteBuffer bufferForSecret() { - return org.apache.thrift.TBaseHelper.copyBinary(secret); + return secret; } public void setSecret(byte[] secret) { - this.secret = secret == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(secret, secret.length)); + setSecret(secret == null ? (ByteBuffer)null : ByteBuffer.wrap(secret)); } public void setSecret(ByteBuffer secret) { - this.secret = org.apache.thrift.TBaseHelper.copyBinary(secret); + this.secret = secret; } public void unsetSecret() { @@ -305,45 +303,45 @@ public boolean equals(THandleIdentifier that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_guid = true && (isSetGuid()); - list.add(present_guid); + builder.append(present_guid); if (present_guid) - list.add(guid); + builder.append(guid); boolean present_secret = true && (isSetSecret()); - list.add(present_secret); + builder.append(present_secret); if (present_secret) - list.add(secret); + builder.append(secret); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(THandleIdentifier other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + THandleIdentifier typedOther = (THandleIdentifier)other; - lastComparison = Boolean.valueOf(isSetGuid()).compareTo(other.isSetGuid()); + lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid()); if (lastComparison != 0) { return lastComparison; } if (isSetGuid()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.guid, other.guid); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.guid, typedOther.guid); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSecret()).compareTo(other.isSetSecret()); + lastComparison = Boolean.valueOf(isSetSecret()).compareTo(typedOther.isSetSecret()); if (lastComparison != 0) { return lastComparison; } if (isSetSecret()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secret, other.secret); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.secret, typedOther.secret); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Column.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Column.java index 267d109..e997bd9 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Column.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Column.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TI16Column implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TI16Column implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI16Column"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TI16Column( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TI16Column( */ public TI16Column(TI16Column other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (Short other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TI16Column that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TI16Column other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TI16Column typedOther = (TI16Column)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TI16Column struct) { org.apache.thrift.protocol.TList _list70 = iprot.readListBegin(); struct.values = new ArrayList(_list70.size); - short _elem71; - for (int _i72 = 0; _i72 < _list70.size; ++_i72) + for (int _i71 = 0; _i71 < _list70.size; ++_i71) { - _elem71 = iprot.readI16(); - struct.values.add(_elem71); + short _elem72; // required + _elem72 = iprot.readI16(); + struct.values.add(_elem72); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TI16Column struct) t { org.apache.thrift.protocol.TList _list75 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I16, iprot.readI32()); struct.values = new ArrayList(_list75.size); - short _elem76; - for (int _i77 = 0; _i77 < _list75.size; ++_i77) + for (int _i76 = 0; _i76 < _list75.size; ++_i76) { - _elem76 = iprot.readI16(); - struct.values.add(_elem76); + short _elem77; // required + _elem77 = iprot.readI16(); + struct.values.add(_elem77); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Value.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Value.java index ddaf9ef..bb5ae96 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Value.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI16Value.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TI16Value implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TI16Value implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI16Value"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I16, (short)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __VALUE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; 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); @@ -224,30 +220,30 @@ public boolean equals(TI16Value that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TI16Value other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TI16Value typedOther = (TI16Value)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Column.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Column.java index c79df4f..3cdd2a5 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Column.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Column.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TI32Column implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TI32Column implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI32Column"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TI32Column( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TI32Column( */ public TI32Column(TI32Column other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (Integer other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TI32Column that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TI32Column other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TI32Column typedOther = (TI32Column)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TI32Column struct) { org.apache.thrift.protocol.TList _list78 = iprot.readListBegin(); struct.values = new ArrayList(_list78.size); - int _elem79; - for (int _i80 = 0; _i80 < _list78.size; ++_i80) + for (int _i79 = 0; _i79 < _list78.size; ++_i79) { - _elem79 = iprot.readI32(); - struct.values.add(_elem79); + int _elem80; // required + _elem80 = iprot.readI32(); + struct.values.add(_elem80); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TI32Column struct) t { org.apache.thrift.protocol.TList _list83 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.values = new ArrayList(_list83.size); - int _elem84; - for (int _i85 = 0; _i85 < _list83.size; ++_i85) + for (int _i84 = 0; _i84 < _list83.size; ++_i84) { - _elem84 = iprot.readI32(); - struct.values.add(_elem84); + int _elem85; // required + _elem85 = iprot.readI32(); + struct.values.add(_elem85); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Value.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Value.java index d521373..059408b 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Value.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI32Value.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TI32Value implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TI32Value implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI32Value"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I32, (short)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __VALUE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; 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); @@ -224,30 +220,30 @@ public boolean equals(TI32Value that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TI32Value other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TI32Value typedOther = (TI32Value)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Column.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Column.java index 746ade2..c8fc41f 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Column.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Column.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TI64Column implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TI64Column implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI64Column"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TI64Column( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TI64Column( */ public TI64Column(TI64Column other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (Long other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TI64Column that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TI64Column other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TI64Column typedOther = (TI64Column)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TI64Column struct) { org.apache.thrift.protocol.TList _list86 = iprot.readListBegin(); struct.values = new ArrayList(_list86.size); - long _elem87; - for (int _i88 = 0; _i88 < _list86.size; ++_i88) + for (int _i87 = 0; _i87 < _list86.size; ++_i87) { - _elem87 = iprot.readI64(); - struct.values.add(_elem87); + long _elem88; // required + _elem88 = iprot.readI64(); + struct.values.add(_elem88); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TI64Column struct) t { org.apache.thrift.protocol.TList _list91 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); struct.values = new ArrayList(_list91.size); - long _elem92; - for (int _i93 = 0; _i93 < _list91.size; ++_i93) + for (int _i92 = 0; _i92 < _list91.size; ++_i92) { - _elem92 = iprot.readI64(); - struct.values.add(_elem92); + long _elem93; // required + _elem93 = iprot.readI64(); + struct.values.add(_elem93); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Value.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Value.java index b419b80..9a941cc 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Value.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TI64Value.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TI64Value implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TI64Value implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TI64Value"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.I64, (short)1); @@ -109,7 +105,7 @@ public String getFieldName() { // isset id assignments private static final int __VALUE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; 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); @@ -224,30 +220,30 @@ public boolean equals(TI64Value that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TI64Value other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TI64Value typedOther = (TI64Value)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TMapTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TMapTypeEntry.java index 91a85ef..425603c 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TMapTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TMapTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TMapTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TMapTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TMapTypeEntry"); private static final org.apache.thrift.protocol.TField KEY_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("keyTypePtr", org.apache.thrift.protocol.TType.I32, (short)1); @@ -289,45 +285,45 @@ public boolean equals(TMapTypeEntry that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_keyTypePtr = true; - list.add(present_keyTypePtr); + builder.append(present_keyTypePtr); if (present_keyTypePtr) - list.add(keyTypePtr); + builder.append(keyTypePtr); boolean present_valueTypePtr = true; - list.add(present_valueTypePtr); + builder.append(present_valueTypePtr); if (present_valueTypePtr) - list.add(valueTypePtr); + builder.append(valueTypePtr); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TMapTypeEntry other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TMapTypeEntry typedOther = (TMapTypeEntry)other; - lastComparison = Boolean.valueOf(isSetKeyTypePtr()).compareTo(other.isSetKeyTypePtr()); + lastComparison = Boolean.valueOf(isSetKeyTypePtr()).compareTo(typedOther.isSetKeyTypePtr()); if (lastComparison != 0) { return lastComparison; } if (isSetKeyTypePtr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keyTypePtr, other.keyTypePtr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keyTypePtr, typedOther.keyTypePtr); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetValueTypePtr()).compareTo(other.isSetValueTypePtr()); + lastComparison = Boolean.valueOf(isSetValueTypePtr()).compareTo(typedOther.isSetValueTypePtr()); if (lastComparison != 0) { return lastComparison; } if (isSetValueTypePtr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.valueTypePtr, other.valueTypePtr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.valueTypePtr, typedOther.valueTypePtr); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java index 657f868..c048161 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TOpenSessionReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TOpenSessionReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TOpenSessionReq"); private static final org.apache.thrift.protocol.TField CLIENT_PROTOCOL_FIELD_DESC = new org.apache.thrift.protocol.TField("client_protocol", org.apache.thrift.protocol.TType.I32, (short)1); @@ -126,7 +122,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.USERNAME,_Fields.PASSWORD,_Fields.CONFIGURATION}; + private _Fields optionals[] = {_Fields.USERNAME,_Fields.PASSWORD,_Fields.CONFIGURATION}; 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); @@ -170,7 +166,18 @@ public TOpenSessionReq(TOpenSessionReq other) { this.password = other.password; } if (other.isSetConfiguration()) { - Map __this__configuration = new HashMap(other.configuration); + Map __this__configuration = new HashMap(); + for (Map.Entry other_element : other.configuration.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__configuration_copy_key = other_element_key; + + String __this__configuration_copy_value = other_element_value; + + __this__configuration.put(__this__configuration_copy_key, __this__configuration_copy_value); + } this.configuration = __this__configuration; } } @@ -427,75 +434,75 @@ public boolean equals(TOpenSessionReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_client_protocol = true && (isSetClient_protocol()); - list.add(present_client_protocol); + builder.append(present_client_protocol); if (present_client_protocol) - list.add(client_protocol.getValue()); + builder.append(client_protocol.getValue()); boolean present_username = true && (isSetUsername()); - list.add(present_username); + builder.append(present_username); if (present_username) - list.add(username); + builder.append(username); boolean present_password = true && (isSetPassword()); - list.add(present_password); + builder.append(present_password); if (present_password) - list.add(password); + builder.append(password); boolean present_configuration = true && (isSetConfiguration()); - list.add(present_configuration); + builder.append(present_configuration); if (present_configuration) - list.add(configuration); + builder.append(configuration); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TOpenSessionReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TOpenSessionReq typedOther = (TOpenSessionReq)other; - lastComparison = Boolean.valueOf(isSetClient_protocol()).compareTo(other.isSetClient_protocol()); + lastComparison = Boolean.valueOf(isSetClient_protocol()).compareTo(typedOther.isSetClient_protocol()); if (lastComparison != 0) { return lastComparison; } if (isSetClient_protocol()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.client_protocol, other.client_protocol); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.client_protocol, typedOther.client_protocol); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUsername()).compareTo(other.isSetUsername()); + lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername()); if (lastComparison != 0) { return lastComparison; } if (isSetUsername()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, other.username); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPassword()).compareTo(other.isSetPassword()); + lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword()); if (lastComparison != 0) { return lastComparison; } if (isSetPassword()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, other.password); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConfiguration()).compareTo(other.isSetConfiguration()); + lastComparison = Boolean.valueOf(isSetConfiguration()).compareTo(typedOther.isSetConfiguration()); if (lastComparison != 0) { return lastComparison; } if (isSetConfiguration()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, other.configuration); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, typedOther.configuration); if (lastComparison != 0) { return lastComparison; } @@ -606,7 +613,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TOpenSessionReq str switch (schemeField.id) { case 1: // CLIENT_PROTOCOL if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.client_protocol = org.apache.hive.service.cli.thrift.TProtocolVersion.findByValue(iprot.readI32()); + struct.client_protocol = TProtocolVersion.findByValue(iprot.readI32()); struct.setClient_protocolIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -633,13 +640,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TOpenSessionReq str { org.apache.thrift.protocol.TMap _map142 = iprot.readMapBegin(); struct.configuration = new HashMap(2*_map142.size); - String _key143; - String _val144; - for (int _i145 = 0; _i145 < _map142.size; ++_i145) + for (int _i143 = 0; _i143 < _map142.size; ++_i143) { - _key143 = iprot.readString(); - _val144 = iprot.readString(); - struct.configuration.put(_key143, _val144); + String _key144; // required + String _val145; // required + _key144 = iprot.readString(); + _val145 = iprot.readString(); + struct.configuration.put(_key144, _val145); } iprot.readMapEnd(); } @@ -745,7 +752,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TOpenSessionReq str @Override public void read(org.apache.thrift.protocol.TProtocol prot, TOpenSessionReq struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.client_protocol = org.apache.hive.service.cli.thrift.TProtocolVersion.findByValue(iprot.readI32()); + struct.client_protocol = TProtocolVersion.findByValue(iprot.readI32()); struct.setClient_protocolIsSet(true); BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -760,13 +767,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TOpenSessionReq stru { org.apache.thrift.protocol.TMap _map148 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.configuration = new HashMap(2*_map148.size); - String _key149; - String _val150; - for (int _i151 = 0; _i151 < _map148.size; ++_i151) + for (int _i149 = 0; _i149 < _map148.size; ++_i149) { - _key149 = iprot.readString(); - _val150 = iprot.readString(); - struct.configuration.put(_key149, _val150); + String _key150; // required + String _val151; // required + _key150 = iprot.readString(); + _val151 = iprot.readString(); + struct.configuration.put(_key150, _val151); } } struct.setConfigurationIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java index 48f4b45..351f78b 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOpenSessionResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TOpenSessionResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TOpenSessionResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TOpenSessionResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -126,7 +122,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.SESSION_HANDLE,_Fields.CONFIGURATION}; + private _Fields optionals[] = {_Fields.SESSION_HANDLE,_Fields.CONFIGURATION}; 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); @@ -172,7 +168,18 @@ public TOpenSessionResp(TOpenSessionResp other) { this.sessionHandle = new TSessionHandle(other.sessionHandle); } if (other.isSetConfiguration()) { - Map __this__configuration = new HashMap(other.configuration); + Map __this__configuration = new HashMap(); + for (Map.Entry other_element : other.configuration.entrySet()) { + + String other_element_key = other_element.getKey(); + String other_element_value = other_element.getValue(); + + String __this__configuration_copy_key = other_element_key; + + String __this__configuration_copy_value = other_element_value; + + __this__configuration.put(__this__configuration_copy_key, __this__configuration_copy_value); + } this.configuration = __this__configuration; } } @@ -429,75 +436,75 @@ public boolean equals(TOpenSessionResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); boolean present_serverProtocolVersion = true && (isSetServerProtocolVersion()); - list.add(present_serverProtocolVersion); + builder.append(present_serverProtocolVersion); if (present_serverProtocolVersion) - list.add(serverProtocolVersion.getValue()); + builder.append(serverProtocolVersion.getValue()); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_configuration = true && (isSetConfiguration()); - list.add(present_configuration); + builder.append(present_configuration); if (present_configuration) - list.add(configuration); + builder.append(configuration); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TOpenSessionResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TOpenSessionResp typedOther = (TOpenSessionResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetServerProtocolVersion()).compareTo(other.isSetServerProtocolVersion()); + lastComparison = Boolean.valueOf(isSetServerProtocolVersion()).compareTo(typedOther.isSetServerProtocolVersion()); if (lastComparison != 0) { return lastComparison; } if (isSetServerProtocolVersion()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverProtocolVersion, other.serverProtocolVersion); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverProtocolVersion, typedOther.serverProtocolVersion); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetConfiguration()).compareTo(other.isSetConfiguration()); + lastComparison = Boolean.valueOf(isSetConfiguration()).compareTo(typedOther.isSetConfiguration()); if (lastComparison != 0) { return lastComparison; } if (isSetConfiguration()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, other.configuration); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, typedOther.configuration); if (lastComparison != 0) { return lastComparison; } @@ -625,7 +632,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TOpenSessionResp st break; case 2: // SERVER_PROTOCOL_VERSION if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.serverProtocolVersion = org.apache.hive.service.cli.thrift.TProtocolVersion.findByValue(iprot.readI32()); + struct.serverProtocolVersion = TProtocolVersion.findByValue(iprot.readI32()); struct.setServerProtocolVersionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -645,13 +652,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TOpenSessionResp st { org.apache.thrift.protocol.TMap _map152 = iprot.readMapBegin(); struct.configuration = new HashMap(2*_map152.size); - String _key153; - String _val154; - for (int _i155 = 0; _i155 < _map152.size; ++_i155) + for (int _i153 = 0; _i153 < _map152.size; ++_i153) { - _key153 = iprot.readString(); - _val154 = iprot.readString(); - struct.configuration.put(_key153, _val154); + String _key154; // required + String _val155; // required + _key154 = iprot.readString(); + _val155 = iprot.readString(); + struct.configuration.put(_key154, _val155); } iprot.readMapEnd(); } @@ -753,7 +760,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TOpenSessionResp str struct.status = new TStatus(); struct.status.read(iprot); struct.setStatusIsSet(true); - struct.serverProtocolVersion = org.apache.hive.service.cli.thrift.TProtocolVersion.findByValue(iprot.readI32()); + struct.serverProtocolVersion = TProtocolVersion.findByValue(iprot.readI32()); struct.setServerProtocolVersionIsSet(true); BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -765,13 +772,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TOpenSessionResp str { org.apache.thrift.protocol.TMap _map158 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.configuration = new HashMap(2*_map158.size); - String _key159; - String _val160; - for (int _i161 = 0; _i161 < _map158.size; ++_i161) + for (int _i159 = 0; _i159 < _map158.size; ++_i159) { - _key159 = iprot.readString(); - _val160 = iprot.readString(); - struct.configuration.put(_key159, _val160); + String _key160; // required + String _val161; // required + _key160 = iprot.readString(); + _val161 = iprot.readString(); + struct.configuration.put(_key160, _val161); } } struct.setConfigurationIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationHandle.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationHandle.java index db41117..8fbd875 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationHandle.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationHandle.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TOperationHandle implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TOperationHandle implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TOperationHandle"); private static final org.apache.thrift.protocol.TField OPERATION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operationId", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -129,7 +125,7 @@ public String getFieldName() { private static final int __HASRESULTSET_ISSET_ID = 0; private static final int __MODIFIEDROWCOUNT_ISSET_ID = 1; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.MODIFIED_ROW_COUNT}; + private _Fields optionals[] = {_Fields.MODIFIED_ROW_COUNT}; 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); @@ -415,75 +411,75 @@ public boolean equals(TOperationHandle that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_operationId = true && (isSetOperationId()); - list.add(present_operationId); + builder.append(present_operationId); if (present_operationId) - list.add(operationId); + builder.append(operationId); boolean present_operationType = true && (isSetOperationType()); - list.add(present_operationType); + builder.append(present_operationType); if (present_operationType) - list.add(operationType.getValue()); + builder.append(operationType.getValue()); boolean present_hasResultSet = true; - list.add(present_hasResultSet); + builder.append(present_hasResultSet); if (present_hasResultSet) - list.add(hasResultSet); + builder.append(hasResultSet); boolean present_modifiedRowCount = true && (isSetModifiedRowCount()); - list.add(present_modifiedRowCount); + builder.append(present_modifiedRowCount); if (present_modifiedRowCount) - list.add(modifiedRowCount); + builder.append(modifiedRowCount); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TOperationHandle other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TOperationHandle typedOther = (TOperationHandle)other; - lastComparison = Boolean.valueOf(isSetOperationId()).compareTo(other.isSetOperationId()); + lastComparison = Boolean.valueOf(isSetOperationId()).compareTo(typedOther.isSetOperationId()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationId, other.operationId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationId, typedOther.operationId); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetOperationType()).compareTo(other.isSetOperationType()); + lastComparison = Boolean.valueOf(isSetOperationType()).compareTo(typedOther.isSetOperationType()); if (lastComparison != 0) { return lastComparison; } if (isSetOperationType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationType, other.operationType); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationType, typedOther.operationType); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetHasResultSet()).compareTo(other.isSetHasResultSet()); + lastComparison = Boolean.valueOf(isSetHasResultSet()).compareTo(typedOther.isSetHasResultSet()); if (lastComparison != 0) { return lastComparison; } if (isSetHasResultSet()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasResultSet, other.hasResultSet); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasResultSet, typedOther.hasResultSet); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetModifiedRowCount()).compareTo(other.isSetModifiedRowCount()); + lastComparison = Boolean.valueOf(isSetModifiedRowCount()).compareTo(typedOther.isSetModifiedRowCount()); if (lastComparison != 0) { return lastComparison; } if (isSetModifiedRowCount()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modifiedRowCount, other.modifiedRowCount); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modifiedRowCount, typedOther.modifiedRowCount); if (lastComparison != 0) { return lastComparison; } @@ -604,7 +600,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TOperationHandle st break; case 2: // OPERATION_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.operationType = org.apache.hive.service.cli.thrift.TOperationType.findByValue(iprot.readI32()); + struct.operationType = TOperationType.findByValue(iprot.readI32()); struct.setOperationTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -693,7 +689,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TOperationHandle str struct.operationId = new THandleIdentifier(); struct.operationId.read(iprot); struct.setOperationIdIsSet(true); - struct.operationType = org.apache.hive.service.cli.thrift.TOperationType.findByValue(iprot.readI32()); + struct.operationType = TOperationType.findByValue(iprot.readI32()); struct.setOperationTypeIsSet(true); struct.hasResultSet = iprot.readBool(); struct.setHasResultSetIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationState.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationState.java index 2dfde1c..2198662 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationState.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationState.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationType.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationType.java index 6927740..b6d4b2f 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationType.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TOperationType.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TPrimitiveTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TPrimitiveTypeEntry.java index f1c8d58..9d2abf2 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TPrimitiveTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TPrimitiveTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TPrimitiveTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TPrimitiveTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPrimitiveTypeEntry"); private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)1); @@ -116,7 +112,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.TYPE_QUALIFIERS}; + private _Fields optionals[] = {_Fields.TYPE_QUALIFIERS}; 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); @@ -298,45 +294,45 @@ public boolean equals(TPrimitiveTypeEntry that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_type = true && (isSetType()); - list.add(present_type); + builder.append(present_type); if (present_type) - list.add(type.getValue()); + builder.append(type.getValue()); boolean present_typeQualifiers = true && (isSetTypeQualifiers()); - list.add(present_typeQualifiers); + builder.append(present_typeQualifiers); if (present_typeQualifiers) - list.add(typeQualifiers); + builder.append(typeQualifiers); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TPrimitiveTypeEntry other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TPrimitiveTypeEntry typedOther = (TPrimitiveTypeEntry)other; - lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType()); + lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType()); if (lastComparison != 0) { return lastComparison; } if (isSetType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTypeQualifiers()).compareTo(other.isSetTypeQualifiers()); + lastComparison = Boolean.valueOf(isSetTypeQualifiers()).compareTo(typedOther.isSetTypeQualifiers()); if (lastComparison != 0) { return lastComparison; } if (isSetTypeQualifiers()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeQualifiers, other.typeQualifiers); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeQualifiers, typedOther.typeQualifiers); if (lastComparison != 0) { return lastComparison; } @@ -430,7 +426,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TPrimitiveTypeEntry switch (schemeField.id) { case 1: // TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.type = org.apache.hive.service.cli.thrift.TTypeId.findByValue(iprot.readI32()); + struct.type = TTypeId.findByValue(iprot.readI32()); struct.setTypeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -501,7 +497,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TPrimitiveTypeEntry @Override public void read(org.apache.thrift.protocol.TProtocol prot, TPrimitiveTypeEntry struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.type = org.apache.hive.service.cli.thrift.TTypeId.findByValue(iprot.readI32()); + struct.type = TTypeId.findByValue(iprot.readI32()); struct.setTypeIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TProtocolVersion.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TProtocolVersion.java index 6e714c6..a4279d2 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TProtocolVersion.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TProtocolVersion.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenReq.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenReq.java index 91f8b00..a3e39c8 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenReq.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenReq.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TRenewDelegationTokenReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TRenewDelegationTokenReq implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRenewDelegationTokenReq"); private static final org.apache.thrift.protocol.TField SESSION_HANDLE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionHandle", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -287,45 +283,45 @@ public boolean equals(TRenewDelegationTokenReq that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionHandle = true && (isSetSessionHandle()); - list.add(present_sessionHandle); + builder.append(present_sessionHandle); if (present_sessionHandle) - list.add(sessionHandle); + builder.append(sessionHandle); boolean present_delegationToken = true && (isSetDelegationToken()); - list.add(present_delegationToken); + builder.append(present_delegationToken); if (present_delegationToken) - list.add(delegationToken); + builder.append(delegationToken); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TRenewDelegationTokenReq other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TRenewDelegationTokenReq typedOther = (TRenewDelegationTokenReq)other; - lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(other.isSetSessionHandle()); + lastComparison = Boolean.valueOf(isSetSessionHandle()).compareTo(typedOther.isSetSessionHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionHandle()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, other.sessionHandle); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionHandle, typedOther.sessionHandle); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(other.isSetDelegationToken()); + lastComparison = Boolean.valueOf(isSetDelegationToken()).compareTo(typedOther.isSetDelegationToken()); if (lastComparison != 0) { return lastComparison; } if (isSetDelegationToken()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, other.delegationToken); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delegationToken, typedOther.delegationToken); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenResp.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenResp.java index c01cc3f..5f3eb6c 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenResp.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRenewDelegationTokenResp.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TRenewDelegationTokenResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TRenewDelegationTokenResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRenewDelegationTokenResp"); private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TRenewDelegationTokenResp that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_status = true && (isSetStatus()); - list.add(present_status); + builder.append(present_status); if (present_status) - list.add(status); + builder.append(status); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TRenewDelegationTokenResp other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TRenewDelegationTokenResp typedOther = (TRenewDelegationTokenResp)other; - lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); + lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus()); if (lastComparison != 0) { return lastComparison; } if (isSetStatus()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRow.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRow.java index 197bab6..8e58aa5 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRow.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRow.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TRow implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TRow implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRow"); private static final org.apache.thrift.protocol.TField COL_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("colVals", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public TRow( */ public TRow(TRow other) { if (other.isSetColVals()) { - List __this__colVals = new ArrayList(other.colVals.size()); + List __this__colVals = new ArrayList(); for (TColumnValue other_element : other.colVals) { __this__colVals.add(new TColumnValue(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(TRow that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_colVals = true && (isSetColVals()); - list.add(present_colVals); + builder.append(present_colVals); if (present_colVals) - list.add(colVals); + builder.append(colVals); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TRow other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TRow typedOther = (TRow)other; - lastComparison = Boolean.valueOf(isSetColVals()).compareTo(other.isSetColVals()); + lastComparison = Boolean.valueOf(isSetColVals()).compareTo(typedOther.isSetColVals()); if (lastComparison != 0) { return lastComparison; } if (isSetColVals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colVals, other.colVals); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colVals, typedOther.colVals); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TRow struct) throws { org.apache.thrift.protocol.TList _list46 = iprot.readListBegin(); struct.colVals = new ArrayList(_list46.size); - TColumnValue _elem47; - for (int _i48 = 0; _i48 < _list46.size; ++_i48) + for (int _i47 = 0; _i47 < _list46.size; ++_i47) { - _elem47 = new TColumnValue(); - _elem47.read(iprot); - struct.colVals.add(_elem47); + TColumnValue _elem48; // required + _elem48 = new TColumnValue(); + _elem48.read(iprot); + struct.colVals.add(_elem48); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TRow struct) throws { org.apache.thrift.protocol.TList _list51 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.colVals = new ArrayList(_list51.size); - TColumnValue _elem52; - for (int _i53 = 0; _i53 < _list51.size; ++_i53) + for (int _i52 = 0; _i52 < _list51.size; ++_i52) { - _elem52 = new TColumnValue(); - _elem52.read(iprot); - struct.colVals.add(_elem52); + TColumnValue _elem53; // required + _elem53 = new TColumnValue(); + _elem53.read(iprot); + struct.colVals.add(_elem53); } } struct.setColValsIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRowSet.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRowSet.java index cc1a148..4bb5749 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRowSet.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TRowSet.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TRowSet implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TRowSet implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRowSet"); private static final org.apache.thrift.protocol.TField START_ROW_OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("startRowOffset", org.apache.thrift.protocol.TType.I64, (short)1); @@ -119,7 +115,7 @@ public String getFieldName() { // isset id assignments private static final int __STARTROWOFFSET_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.COLUMNS}; + private _Fields optionals[] = {_Fields.COLUMNS}; 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); @@ -155,14 +151,14 @@ public TRowSet(TRowSet other) { __isset_bitfield = other.__isset_bitfield; this.startRowOffset = other.startRowOffset; if (other.isSetRows()) { - List __this__rows = new ArrayList(other.rows.size()); + List __this__rows = new ArrayList(); for (TRow other_element : other.rows) { __this__rows.add(new TRow(other_element)); } this.rows = __this__rows; } if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); + List __this__columns = new ArrayList(); for (TColumn other_element : other.columns) { __this__columns.add(new TColumn(other_element)); } @@ -386,60 +382,60 @@ public boolean equals(TRowSet that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_startRowOffset = true; - list.add(present_startRowOffset); + builder.append(present_startRowOffset); if (present_startRowOffset) - list.add(startRowOffset); + builder.append(startRowOffset); boolean present_rows = true && (isSetRows()); - list.add(present_rows); + builder.append(present_rows); if (present_rows) - list.add(rows); + builder.append(rows); boolean present_columns = true && (isSetColumns()); - list.add(present_columns); + builder.append(present_columns); if (present_columns) - list.add(columns); + builder.append(columns); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TRowSet other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TRowSet typedOther = (TRowSet)other; - lastComparison = Boolean.valueOf(isSetStartRowOffset()).compareTo(other.isSetStartRowOffset()); + lastComparison = Boolean.valueOf(isSetStartRowOffset()).compareTo(typedOther.isSetStartRowOffset()); if (lastComparison != 0) { return lastComparison; } if (isSetStartRowOffset()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRowOffset, other.startRowOffset); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startRowOffset, typedOther.startRowOffset); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetRows()).compareTo(other.isSetRows()); + lastComparison = Boolean.valueOf(isSetRows()).compareTo(typedOther.isSetRows()); if (lastComparison != 0) { return lastComparison; } if (isSetRows()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, other.rows); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rows, typedOther.rows); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); if (lastComparison != 0) { return lastComparison; } @@ -551,12 +547,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TRowSet struct) thr { org.apache.thrift.protocol.TList _list118 = iprot.readListBegin(); struct.rows = new ArrayList(_list118.size); - TRow _elem119; - for (int _i120 = 0; _i120 < _list118.size; ++_i120) + for (int _i119 = 0; _i119 < _list118.size; ++_i119) { - _elem119 = new TRow(); - _elem119.read(iprot); - struct.rows.add(_elem119); + TRow _elem120; // required + _elem120 = new TRow(); + _elem120.read(iprot); + struct.rows.add(_elem120); } iprot.readListEnd(); } @@ -570,12 +566,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TRowSet struct) thr { org.apache.thrift.protocol.TList _list121 = iprot.readListBegin(); struct.columns = new ArrayList(_list121.size); - TColumn _elem122; - for (int _i123 = 0; _i123 < _list121.size; ++_i123) + for (int _i122 = 0; _i122 < _list121.size; ++_i122) { - _elem122 = new TColumn(); - _elem122.read(iprot); - struct.columns.add(_elem122); + TColumn _elem123; // required + _elem123 = new TColumn(); + _elem123.read(iprot); + struct.columns.add(_elem123); } iprot.readListEnd(); } @@ -675,12 +671,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TRowSet struct) thro { org.apache.thrift.protocol.TList _list128 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.rows = new ArrayList(_list128.size); - TRow _elem129; - for (int _i130 = 0; _i130 < _list128.size; ++_i130) + for (int _i129 = 0; _i129 < _list128.size; ++_i129) { - _elem129 = new TRow(); - _elem129.read(iprot); - struct.rows.add(_elem129); + TRow _elem130; // required + _elem130 = new TRow(); + _elem130.read(iprot); + struct.rows.add(_elem130); } } struct.setRowsIsSet(true); @@ -689,12 +685,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TRowSet struct) thro { org.apache.thrift.protocol.TList _list131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.columns = new ArrayList(_list131.size); - TColumn _elem132; - for (int _i133 = 0; _i133 < _list131.size; ++_i133) + for (int _i132 = 0; _i132 < _list131.size; ++_i132) { - _elem132 = new TColumn(); - _elem132.read(iprot); - struct.columns.add(_elem132); + TColumn _elem133; // required + _elem133 = new TColumn(); + _elem133.read(iprot); + struct.columns.add(_elem133); } } struct.setColumnsIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TSessionHandle.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TSessionHandle.java index 264e155..82c00dd 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TSessionHandle.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TSessionHandle.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TSessionHandle implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TSessionHandle implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSessionHandle"); private static final org.apache.thrift.protocol.TField SESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionId", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TSessionHandle that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_sessionId = true && (isSetSessionId()); - list.add(present_sessionId); + builder.append(present_sessionId); if (present_sessionId) - list.add(sessionId); + builder.append(sessionId); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TSessionHandle other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TSessionHandle typedOther = (TSessionHandle)other; - lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(other.isSetSessionId()); + lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId()); if (lastComparison != 0) { return lastComparison; } if (isSetSessionId()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, other.sessionId); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatus.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatus.java index 1cd7980..cb5010f 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatus.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatus.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TStatus implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStatus"); private static final org.apache.thrift.protocol.TField STATUS_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("statusCode", org.apache.thrift.protocol.TType.I32, (short)1); @@ -133,7 +129,7 @@ public String getFieldName() { // isset id assignments private static final int __ERRORCODE_ISSET_ID = 0; private byte __isset_bitfield = 0; - private static final _Fields optionals[] = {_Fields.INFO_MESSAGES,_Fields.SQL_STATE,_Fields.ERROR_CODE,_Fields.ERROR_MESSAGE}; + private _Fields optionals[] = {_Fields.INFO_MESSAGES,_Fields.SQL_STATE,_Fields.ERROR_CODE,_Fields.ERROR_MESSAGE}; 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); @@ -171,7 +167,10 @@ public TStatus(TStatus other) { this.statusCode = other.statusCode; } if (other.isSetInfoMessages()) { - List __this__infoMessages = new ArrayList(other.infoMessages); + List __this__infoMessages = new ArrayList(); + for (String other_element : other.infoMessages) { + __this__infoMessages.add(other_element); + } this.infoMessages = __this__infoMessages; } if (other.isSetSqlState()) { @@ -484,90 +483,90 @@ public boolean equals(TStatus that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_statusCode = true && (isSetStatusCode()); - list.add(present_statusCode); + builder.append(present_statusCode); if (present_statusCode) - list.add(statusCode.getValue()); + builder.append(statusCode.getValue()); boolean present_infoMessages = true && (isSetInfoMessages()); - list.add(present_infoMessages); + builder.append(present_infoMessages); if (present_infoMessages) - list.add(infoMessages); + builder.append(infoMessages); boolean present_sqlState = true && (isSetSqlState()); - list.add(present_sqlState); + builder.append(present_sqlState); if (present_sqlState) - list.add(sqlState); + builder.append(sqlState); boolean present_errorCode = true && (isSetErrorCode()); - list.add(present_errorCode); + builder.append(present_errorCode); if (present_errorCode) - list.add(errorCode); + builder.append(errorCode); boolean present_errorMessage = true && (isSetErrorMessage()); - list.add(present_errorMessage); + builder.append(present_errorMessage); if (present_errorMessage) - list.add(errorMessage); + builder.append(errorMessage); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TStatus other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TStatus typedOther = (TStatus)other; - lastComparison = Boolean.valueOf(isSetStatusCode()).compareTo(other.isSetStatusCode()); + lastComparison = Boolean.valueOf(isSetStatusCode()).compareTo(typedOther.isSetStatusCode()); if (lastComparison != 0) { return lastComparison; } if (isSetStatusCode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statusCode, other.statusCode); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statusCode, typedOther.statusCode); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetInfoMessages()).compareTo(other.isSetInfoMessages()); + lastComparison = Boolean.valueOf(isSetInfoMessages()).compareTo(typedOther.isSetInfoMessages()); if (lastComparison != 0) { return lastComparison; } if (isSetInfoMessages()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoMessages, other.infoMessages); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.infoMessages, typedOther.infoMessages); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(other.isSetSqlState()); + lastComparison = Boolean.valueOf(isSetSqlState()).compareTo(typedOther.isSetSqlState()); if (lastComparison != 0) { return lastComparison; } if (isSetSqlState()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, other.sqlState); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sqlState, typedOther.sqlState); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(other.isSetErrorCode()); + lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode()); if (lastComparison != 0) { return lastComparison; } if (isSetErrorCode()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, other.errorCode); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetErrorMessage()).compareTo(other.isSetErrorMessage()); + lastComparison = Boolean.valueOf(isSetErrorMessage()).compareTo(typedOther.isSetErrorMessage()); if (lastComparison != 0) { return lastComparison; } if (isSetErrorMessage()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMessage, other.errorMessage); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorMessage, typedOther.errorMessage); if (lastComparison != 0) { return lastComparison; } @@ -686,7 +685,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TStatus struct) thr switch (schemeField.id) { case 1: // STATUS_CODE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.statusCode = org.apache.hive.service.cli.thrift.TStatusCode.findByValue(iprot.readI32()); + struct.statusCode = TStatusCode.findByValue(iprot.readI32()); struct.setStatusCodeIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -697,11 +696,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TStatus struct) thr { org.apache.thrift.protocol.TList _list134 = iprot.readListBegin(); struct.infoMessages = new ArrayList(_list134.size); - String _elem135; - for (int _i136 = 0; _i136 < _list134.size; ++_i136) + for (int _i135 = 0; _i135 < _list134.size; ++_i135) { - _elem135 = iprot.readString(); - struct.infoMessages.add(_elem135); + String _elem136; // required + _elem136 = iprot.readString(); + struct.infoMessages.add(_elem136); } iprot.readListEnd(); } @@ -840,18 +839,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TStatus struct) thr @Override public void read(org.apache.thrift.protocol.TProtocol prot, TStatus struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - struct.statusCode = org.apache.hive.service.cli.thrift.TStatusCode.findByValue(iprot.readI32()); + struct.statusCode = TStatusCode.findByValue(iprot.readI32()); struct.setStatusCodeIsSet(true); BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { org.apache.thrift.protocol.TList _list139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.infoMessages = new ArrayList(_list139.size); - String _elem140; - for (int _i141 = 0; _i141 < _list139.size; ++_i141) + for (int _i140 = 0; _i140 < _list139.size; ++_i140) { - _elem140 = iprot.readString(); - struct.infoMessages.add(_elem140); + String _elem141; // required + _elem141 = iprot.readString(); + struct.infoMessages.add(_elem141); } } struct.setInfoMessagesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatusCode.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatusCode.java index 91d1a97..e7fde45 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatusCode.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStatusCode.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringColumn.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringColumn.java index d996529..5398056 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringColumn.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringColumn.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TStringColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TStringColumn implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStringColumn"); private static final org.apache.thrift.protocol.TField VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("values", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -133,7 +129,7 @@ public TStringColumn( { this(); this.values = values; - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } /** @@ -141,11 +137,15 @@ public TStringColumn( */ public TStringColumn(TStringColumn other) { if (other.isSetValues()) { - List __this__values = new ArrayList(other.values); + List __this__values = new ArrayList(); + for (String other_element : other.values) { + __this__values.add(other_element); + } this.values = __this__values; } if (other.isSetNulls()) { this.nulls = org.apache.thrift.TBaseHelper.copyBinary(other.nulls); +; } } @@ -203,15 +203,15 @@ public void setValuesIsSet(boolean value) { } public ByteBuffer bufferForNulls() { - return org.apache.thrift.TBaseHelper.copyBinary(nulls); + return nulls; } public void setNulls(byte[] nulls) { - this.nulls = nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(nulls, nulls.length)); + setNulls(nulls == null ? (ByteBuffer)null : ByteBuffer.wrap(nulls)); } public void setNulls(ByteBuffer nulls) { - this.nulls = org.apache.thrift.TBaseHelper.copyBinary(nulls); + this.nulls = nulls; } public void unsetNulls() { @@ -313,45 +313,45 @@ public boolean equals(TStringColumn that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_values = true && (isSetValues()); - list.add(present_values); + builder.append(present_values); if (present_values) - list.add(values); + builder.append(values); boolean present_nulls = true && (isSetNulls()); - list.add(present_nulls); + builder.append(present_nulls); if (present_nulls) - list.add(nulls); + builder.append(nulls); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TStringColumn other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TStringColumn typedOther = (TStringColumn)other; - lastComparison = Boolean.valueOf(isSetValues()).compareTo(other.isSetValues()); + lastComparison = Boolean.valueOf(isSetValues()).compareTo(typedOther.isSetValues()); if (lastComparison != 0) { return lastComparison; } if (isSetValues()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, other.values); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.values, typedOther.values); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetNulls()).compareTo(other.isSetNulls()); + lastComparison = Boolean.valueOf(isSetNulls()).compareTo(typedOther.isSetNulls()); if (lastComparison != 0) { return lastComparison; } if (isSetNulls()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, other.nulls); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nulls, typedOther.nulls); if (lastComparison != 0) { return lastComparison; } @@ -447,11 +447,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TStringColumn struc { org.apache.thrift.protocol.TList _list102 = iprot.readListBegin(); struct.values = new ArrayList(_list102.size); - String _elem103; - for (int _i104 = 0; _i104 < _list102.size; ++_i104) + for (int _i103 = 0; _i103 < _list102.size; ++_i103) { - _elem103 = iprot.readString(); - struct.values.add(_elem103); + String _elem104; // required + _elem104 = iprot.readString(); + struct.values.add(_elem104); } iprot.readListEnd(); } @@ -531,11 +531,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TStringColumn struct { org.apache.thrift.protocol.TList _list107 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); struct.values = new ArrayList(_list107.size); - String _elem108; - for (int _i109 = 0; _i109 < _list107.size; ++_i109) + for (int _i108 = 0; _i108 < _list107.size; ++_i108) { - _elem108 = iprot.readString(); - struct.values.add(_elem108); + String _elem109; // required + _elem109 = iprot.readString(); + struct.values.add(_elem109); } } struct.setValuesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringValue.java index 9655f38..af7a109 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStringValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TStringValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TStringValue implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStringValue"); private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -107,7 +103,7 @@ public String getFieldName() { } // isset id assignments - private static final _Fields optionals[] = {_Fields.VALUE}; + private _Fields optionals[] = {_Fields.VALUE}; 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); @@ -223,30 +219,30 @@ public boolean equals(TStringValue that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true && (isSetValue()); - list.add(present_value); + builder.append(present_value); if (present_value) - list.add(value); + builder.append(value); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TStringValue other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TStringValue typedOther = (TStringValue)other; - lastComparison = Boolean.valueOf(isSetValue()).compareTo(other.isSetValue()); + lastComparison = Boolean.valueOf(isSetValue()).compareTo(typedOther.isSetValue()); if (lastComparison != 0) { return lastComparison; } if (isSetValue()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, typedOther.value); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStructTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStructTypeEntry.java index d58184c..20f5fb6 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStructTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TStructTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TStructTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TStructTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TStructTypeEntry"); private static final org.apache.thrift.protocol.TField NAME_TO_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("nameToTypePtr", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -133,7 +129,7 @@ public TStructTypeEntry( */ public TStructTypeEntry(TStructTypeEntry other) { if (other.isSetNameToTypePtr()) { - Map __this__nameToTypePtr = new HashMap(other.nameToTypePtr.size()); + Map __this__nameToTypePtr = new HashMap(); for (Map.Entry other_element : other.nameToTypePtr.entrySet()) { String other_element_key = other_element.getKey(); @@ -254,30 +250,30 @@ public boolean equals(TStructTypeEntry that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_nameToTypePtr = true && (isSetNameToTypePtr()); - list.add(present_nameToTypePtr); + builder.append(present_nameToTypePtr); if (present_nameToTypePtr) - list.add(nameToTypePtr); + builder.append(nameToTypePtr); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TStructTypeEntry other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TStructTypeEntry typedOther = (TStructTypeEntry)other; - lastComparison = Boolean.valueOf(isSetNameToTypePtr()).compareTo(other.isSetNameToTypePtr()); + lastComparison = Boolean.valueOf(isSetNameToTypePtr()).compareTo(typedOther.isSetNameToTypePtr()); if (lastComparison != 0) { return lastComparison; } if (isSetNameToTypePtr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nameToTypePtr, other.nameToTypePtr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nameToTypePtr, typedOther.nameToTypePtr); if (lastComparison != 0) { return lastComparison; } @@ -361,13 +357,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TStructTypeEntry st { org.apache.thrift.protocol.TMap _map10 = iprot.readMapBegin(); struct.nameToTypePtr = new HashMap(2*_map10.size); - String _key11; - int _val12; - for (int _i13 = 0; _i13 < _map10.size; ++_i13) + for (int _i11 = 0; _i11 < _map10.size; ++_i11) { - _key11 = iprot.readString(); - _val12 = iprot.readI32(); - struct.nameToTypePtr.put(_key11, _val12); + String _key12; // required + int _val13; // required + _key12 = iprot.readString(); + _val13 = iprot.readI32(); + struct.nameToTypePtr.put(_key12, _val13); } iprot.readMapEnd(); } @@ -435,13 +431,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TStructTypeEntry str { org.apache.thrift.protocol.TMap _map16 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.nameToTypePtr = new HashMap(2*_map16.size); - String _key17; - int _val18; - for (int _i19 = 0; _i19 < _map16.size; ++_i19) + for (int _i17 = 0; _i17 < _map16.size; ++_i17) { - _key17 = iprot.readString(); - _val18 = iprot.readI32(); - struct.nameToTypePtr.put(_key17, _val18); + String _key18; // required + int _val19; // required + _key18 = iprot.readString(); + _val19 = iprot.readI32(); + struct.nameToTypePtr.put(_key18, _val19); } } struct.setNameToTypePtrIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTableSchema.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTableSchema.java index 796b73b..e2882c2 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTableSchema.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTableSchema.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TTableSchema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TTableSchema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTableSchema"); private static final org.apache.thrift.protocol.TField COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("columns", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public TTableSchema( */ public TTableSchema(TTableSchema other) { if (other.isSetColumns()) { - List __this__columns = new ArrayList(other.columns.size()); + List __this__columns = new ArrayList(); for (TColumnDesc other_element : other.columns) { __this__columns.add(new TColumnDesc(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(TTableSchema that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_columns = true && (isSetColumns()); - list.add(present_columns); + builder.append(present_columns); if (present_columns) - list.add(columns); + builder.append(columns); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TTableSchema other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TTableSchema typedOther = (TTableSchema)other; - lastComparison = Boolean.valueOf(isSetColumns()).compareTo(other.isSetColumns()); + lastComparison = Boolean.valueOf(isSetColumns()).compareTo(typedOther.isSetColumns()); if (lastComparison != 0) { return lastComparison; } if (isSetColumns()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, other.columns); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.columns, typedOther.columns); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TTableSchema struct { org.apache.thrift.protocol.TList _list38 = iprot.readListBegin(); struct.columns = new ArrayList(_list38.size); - TColumnDesc _elem39; - for (int _i40 = 0; _i40 < _list38.size; ++_i40) + for (int _i39 = 0; _i39 < _list38.size; ++_i39) { - _elem39 = new TColumnDesc(); - _elem39.read(iprot); - struct.columns.add(_elem39); + TColumnDesc _elem40; // required + _elem40 = new TColumnDesc(); + _elem40.read(iprot); + struct.columns.add(_elem40); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TTableSchema struct) { org.apache.thrift.protocol.TList _list43 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.columns = new ArrayList(_list43.size); - TColumnDesc _elem44; - for (int _i45 = 0; _i45 < _list43.size; ++_i45) + for (int _i44 = 0; _i44 < _list43.size; ++_i44) { - _elem44 = new TColumnDesc(); - _elem44.read(iprot); - struct.columns.add(_elem44); + TColumnDesc _elem45; // required + _elem45 = new TColumnDesc(); + _elem45.read(iprot); + struct.columns.add(_elem45); } } struct.setColumnsIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeDesc.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeDesc.java index 95b4466..d6a6d23 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeDesc.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeDesc.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TTypeDesc implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TTypeDesc implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTypeDesc"); private static final org.apache.thrift.protocol.TField TYPES_FIELD_DESC = new org.apache.thrift.protocol.TField("types", org.apache.thrift.protocol.TType.LIST, (short)1); @@ -132,7 +128,7 @@ public TTypeDesc( */ public TTypeDesc(TTypeDesc other) { if (other.isSetTypes()) { - List __this__types = new ArrayList(other.types.size()); + List __this__types = new ArrayList(); for (TTypeEntry other_element : other.types) { __this__types.add(new TTypeEntry(other_element)); } @@ -249,30 +245,30 @@ public boolean equals(TTypeDesc that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_types = true && (isSetTypes()); - list.add(present_types); + builder.append(present_types); if (present_types) - list.add(types); + builder.append(types); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TTypeDesc other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TTypeDesc typedOther = (TTypeDesc)other; - lastComparison = Boolean.valueOf(isSetTypes()).compareTo(other.isSetTypes()); + lastComparison = Boolean.valueOf(isSetTypes()).compareTo(typedOther.isSetTypes()); if (lastComparison != 0) { return lastComparison; } if (isSetTypes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.types, other.types); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.types, typedOther.types); if (lastComparison != 0) { return lastComparison; } @@ -356,12 +352,12 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TTypeDesc struct) t { org.apache.thrift.protocol.TList _list30 = iprot.readListBegin(); struct.types = new ArrayList(_list30.size); - TTypeEntry _elem31; - for (int _i32 = 0; _i32 < _list30.size; ++_i32) + for (int _i31 = 0; _i31 < _list30.size; ++_i31) { - _elem31 = new TTypeEntry(); - _elem31.read(iprot); - struct.types.add(_elem31); + TTypeEntry _elem32; // required + _elem32 = new TTypeEntry(); + _elem32.read(iprot); + struct.types.add(_elem32); } iprot.readListEnd(); } @@ -427,12 +423,12 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TTypeDesc struct) th { org.apache.thrift.protocol.TList _list35 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.types = new ArrayList(_list35.size); - TTypeEntry _elem36; - for (int _i37 = 0; _i37 < _list35.size; ++_i37) + for (int _i36 = 0; _i36 < _list35.size; ++_i36) { - _elem36 = new TTypeEntry(); - _elem36.read(iprot); - struct.types.add(_elem36); + TTypeEntry _elem37; // required + _elem37 = new TTypeEntry(); + _elem37.read(iprot); + struct.types.add(_elem37); } } struct.setTypesIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeEntry.java index 203d3b9..af7c0b4 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,11 +28,9 @@ 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"}) public class TTypeEntry extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTypeEntry"); private static final org.apache.thrift.protocol.TField PRIMITIVE_ENTRY_FIELD_DESC = new org.apache.thrift.protocol.TField("primitiveEntry", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -294,7 +291,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -579,19 +575,19 @@ public int compareTo(TTypeEntry other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeId.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeId.java index e6f2336..40f0589 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeId.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeId.java @@ -1,5 +1,5 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifierValue.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifierValue.java index 54df6dc..8c40687 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifierValue.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifierValue.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,11 +28,9 @@ 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"}) public class TTypeQualifierValue extends org.apache.thrift.TUnion { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTypeQualifierValue"); private static final org.apache.thrift.protocol.TField I32_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("i32Value", org.apache.thrift.protocol.TType.I32, (short)1); @@ -184,7 +181,6 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type); return null; } } @@ -330,19 +326,19 @@ public int compareTo(TTypeQualifierValue other) { @Override public int hashCode() { - List list = new ArrayList(); - list.add(this.getClass().getName()); + HashCodeBuilder hcb = new HashCodeBuilder(); + hcb.append(this.getClass().getName()); org.apache.thrift.TFieldIdEnum setField = getSetField(); if (setField != null) { - list.add(setField.getThriftFieldId()); + hcb.append(setField.getThriftFieldId()); Object value = getFieldValue(); if (value instanceof org.apache.thrift.TEnum) { - list.add(((org.apache.thrift.TEnum)getFieldValue()).getValue()); + hcb.append(((org.apache.thrift.TEnum)getFieldValue()).getValue()); } else { - list.add(value); + hcb.append(value); } } - return list.hashCode(); + return hcb.toHashCode(); } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifiers.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifiers.java index 15ac5a9..3935555 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifiers.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TTypeQualifiers.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TTypeQualifiers implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TTypeQualifiers implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TTypeQualifiers"); private static final org.apache.thrift.protocol.TField QUALIFIERS_FIELD_DESC = new org.apache.thrift.protocol.TField("qualifiers", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -133,7 +129,7 @@ public TTypeQualifiers( */ public TTypeQualifiers(TTypeQualifiers other) { if (other.isSetQualifiers()) { - Map __this__qualifiers = new HashMap(other.qualifiers.size()); + Map __this__qualifiers = new HashMap(); for (Map.Entry other_element : other.qualifiers.entrySet()) { String other_element_key = other_element.getKey(); @@ -254,30 +250,30 @@ public boolean equals(TTypeQualifiers that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_qualifiers = true && (isSetQualifiers()); - list.add(present_qualifiers); + builder.append(present_qualifiers); if (present_qualifiers) - list.add(qualifiers); + builder.append(qualifiers); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TTypeQualifiers other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TTypeQualifiers typedOther = (TTypeQualifiers)other; - lastComparison = Boolean.valueOf(isSetQualifiers()).compareTo(other.isSetQualifiers()); + lastComparison = Boolean.valueOf(isSetQualifiers()).compareTo(typedOther.isSetQualifiers()); if (lastComparison != 0) { return lastComparison; } if (isSetQualifiers()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifiers, other.qualifiers); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifiers, typedOther.qualifiers); if (lastComparison != 0) { return lastComparison; } @@ -361,14 +357,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TTypeQualifiers str { org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin(); struct.qualifiers = new HashMap(2*_map0.size); - String _key1; - TTypeQualifierValue _val2; - for (int _i3 = 0; _i3 < _map0.size; ++_i3) + for (int _i1 = 0; _i1 < _map0.size; ++_i1) { - _key1 = iprot.readString(); - _val2 = new TTypeQualifierValue(); - _val2.read(iprot); - struct.qualifiers.put(_key1, _val2); + String _key2; // required + TTypeQualifierValue _val3; // required + _key2 = iprot.readString(); + _val3 = new TTypeQualifierValue(); + _val3.read(iprot); + struct.qualifiers.put(_key2, _val3); } iprot.readMapEnd(); } @@ -436,14 +432,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TTypeQualifiers stru { org.apache.thrift.protocol.TMap _map6 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.qualifiers = new HashMap(2*_map6.size); - String _key7; - TTypeQualifierValue _val8; - for (int _i9 = 0; _i9 < _map6.size; ++_i9) + for (int _i7 = 0; _i7 < _map6.size; ++_i7) { - _key7 = iprot.readString(); - _val8 = new TTypeQualifierValue(); - _val8.read(iprot); - struct.qualifiers.put(_key7, _val8); + String _key8; // required + TTypeQualifierValue _val9; // required + _key8 = iprot.readString(); + _val9 = new TTypeQualifierValue(); + _val9.read(iprot); + struct.qualifiers.put(_key8, _val9); } } struct.setQualifiersIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUnionTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUnionTypeEntry.java index eccf303..73dd45d 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUnionTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUnionTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TUnionTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TUnionTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TUnionTypeEntry"); private static final org.apache.thrift.protocol.TField NAME_TO_TYPE_PTR_FIELD_DESC = new org.apache.thrift.protocol.TField("nameToTypePtr", org.apache.thrift.protocol.TType.MAP, (short)1); @@ -133,7 +129,7 @@ public TUnionTypeEntry( */ public TUnionTypeEntry(TUnionTypeEntry other) { if (other.isSetNameToTypePtr()) { - Map __this__nameToTypePtr = new HashMap(other.nameToTypePtr.size()); + Map __this__nameToTypePtr = new HashMap(); for (Map.Entry other_element : other.nameToTypePtr.entrySet()) { String other_element_key = other_element.getKey(); @@ -254,30 +250,30 @@ public boolean equals(TUnionTypeEntry that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_nameToTypePtr = true && (isSetNameToTypePtr()); - list.add(present_nameToTypePtr); + builder.append(present_nameToTypePtr); if (present_nameToTypePtr) - list.add(nameToTypePtr); + builder.append(nameToTypePtr); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TUnionTypeEntry other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TUnionTypeEntry typedOther = (TUnionTypeEntry)other; - lastComparison = Boolean.valueOf(isSetNameToTypePtr()).compareTo(other.isSetNameToTypePtr()); + lastComparison = Boolean.valueOf(isSetNameToTypePtr()).compareTo(typedOther.isSetNameToTypePtr()); if (lastComparison != 0) { return lastComparison; } if (isSetNameToTypePtr()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nameToTypePtr, other.nameToTypePtr); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nameToTypePtr, typedOther.nameToTypePtr); if (lastComparison != 0) { return lastComparison; } @@ -361,13 +357,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TUnionTypeEntry str { org.apache.thrift.protocol.TMap _map20 = iprot.readMapBegin(); struct.nameToTypePtr = new HashMap(2*_map20.size); - String _key21; - int _val22; - for (int _i23 = 0; _i23 < _map20.size; ++_i23) + for (int _i21 = 0; _i21 < _map20.size; ++_i21) { - _key21 = iprot.readString(); - _val22 = iprot.readI32(); - struct.nameToTypePtr.put(_key21, _val22); + String _key22; // required + int _val23; // required + _key22 = iprot.readString(); + _val23 = iprot.readI32(); + struct.nameToTypePtr.put(_key22, _val23); } iprot.readMapEnd(); } @@ -435,13 +431,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TUnionTypeEntry stru { org.apache.thrift.protocol.TMap _map26 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I32, iprot.readI32()); struct.nameToTypePtr = new HashMap(2*_map26.size); - String _key27; - int _val28; - for (int _i29 = 0; _i29 < _map26.size; ++_i29) + for (int _i27 = 0; _i27 < _map26.size; ++_i27) { - _key27 = iprot.readString(); - _val28 = iprot.readI32(); - struct.nameToTypePtr.put(_key27, _val28); + String _key28; // required + int _val29; // required + _key28 = iprot.readString(); + _val29 = iprot.readI32(); + struct.nameToTypePtr.put(_key28, _val29); } } struct.setNameToTypePtrIsSet(true); diff --git a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUserDefinedTypeEntry.java b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUserDefinedTypeEntry.java index 21da61b..3a111a2 100644 --- a/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUserDefinedTypeEntry.java +++ b/service/src/gen/thrift/gen-javabean/org/apache/hive/service/cli/thrift/TUserDefinedTypeEntry.java @@ -1,11 +1,12 @@ /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hive.service.cli.thrift; +import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache.thrift.scheme.StandardScheme; @@ -15,8 +16,6 @@ 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; @@ -29,13 +28,10 @@ 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.2)", date = "2015-8-3") -public class TUserDefinedTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { +public class TUserDefinedTypeEntry implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TUserDefinedTypeEntry"); private static final org.apache.thrift.protocol.TField TYPE_CLASS_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("typeClassName", org.apache.thrift.protocol.TType.STRING, (short)1); @@ -229,30 +225,30 @@ public boolean equals(TUserDefinedTypeEntry that) { @Override public int hashCode() { - List list = new ArrayList(); + HashCodeBuilder builder = new HashCodeBuilder(); boolean present_typeClassName = true && (isSetTypeClassName()); - list.add(present_typeClassName); + builder.append(present_typeClassName); if (present_typeClassName) - list.add(typeClassName); + builder.append(typeClassName); - return list.hashCode(); + return builder.toHashCode(); } - @Override public int compareTo(TUserDefinedTypeEntry other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; + TUserDefinedTypeEntry typedOther = (TUserDefinedTypeEntry)other; - lastComparison = Boolean.valueOf(isSetTypeClassName()).compareTo(other.isSetTypeClassName()); + lastComparison = Boolean.valueOf(isSetTypeClassName()).compareTo(typedOther.isSetTypeClassName()); if (lastComparison != 0) { return lastComparison; } if (isSetTypeClassName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeClassName, other.typeClassName); + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.typeClassName, typedOther.typeClassName); if (lastComparison != 0) { return lastComparison; } diff --git a/service/src/gen/thrift/gen-php/TCLIService.php b/service/src/gen/thrift/gen-php/TCLIService.php index f5dd904..d246296 100644 --- a/service/src/gen/thrift/gen-php/TCLIService.php +++ b/service/src/gen/thrift/gen-php/TCLIService.php @@ -1,7 +1,7 @@ req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'OpenSession', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -151,7 +74,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_OpenSession() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_OpenSession_result', $this->input_->isStrictRead()); else { @@ -186,7 +109,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_CloseSession_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'CloseSession', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -202,7 +125,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_CloseSession() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_CloseSession_result', $this->input_->isStrictRead()); else { @@ -237,7 +160,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetInfo_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetInfo', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -253,7 +176,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetInfo() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetInfo_result', $this->input_->isStrictRead()); else { @@ -288,7 +211,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_ExecuteStatement_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'ExecuteStatement', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -304,7 +227,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_ExecuteStatement() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_ExecuteStatement_result', $this->input_->isStrictRead()); else { @@ -339,7 +262,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetTypeInfo_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetTypeInfo', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -355,7 +278,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetTypeInfo() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetTypeInfo_result', $this->input_->isStrictRead()); else { @@ -390,7 +313,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetCatalogs_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetCatalogs', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -406,7 +329,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetCatalogs() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetCatalogs_result', $this->input_->isStrictRead()); else { @@ -441,7 +364,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetSchemas_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetSchemas', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -457,7 +380,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetSchemas() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetSchemas_result', $this->input_->isStrictRead()); else { @@ -492,7 +415,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetTables_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetTables', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -508,7 +431,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetTables() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetTables_result', $this->input_->isStrictRead()); else { @@ -543,7 +466,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetTableTypes_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetTableTypes', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -559,7 +482,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetTableTypes() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetTableTypes_result', $this->input_->isStrictRead()); else { @@ -594,7 +517,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetColumns_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetColumns', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -610,7 +533,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetColumns() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetColumns_result', $this->input_->isStrictRead()); else { @@ -645,7 +568,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetFunctions_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetFunctions', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -661,7 +584,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetFunctions() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetFunctions_result', $this->input_->isStrictRead()); else { @@ -696,7 +619,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetOperationStatus_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetOperationStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -712,7 +635,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetOperationStatus() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetOperationStatus_result', $this->input_->isStrictRead()); else { @@ -747,7 +670,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_CancelOperation_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'CancelOperation', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -763,7 +686,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_CancelOperation() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_CancelOperation_result', $this->input_->isStrictRead()); else { @@ -798,7 +721,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_CloseOperation_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'CloseOperation', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -814,7 +737,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_CloseOperation() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_CloseOperation_result', $this->input_->isStrictRead()); else { @@ -849,7 +772,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetResultSetMetadata_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetResultSetMetadata', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -865,7 +788,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetResultSetMetadata() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetResultSetMetadata_result', $this->input_->isStrictRead()); else { @@ -900,7 +823,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_FetchResults_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'FetchResults', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -916,7 +839,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_FetchResults() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_FetchResults_result', $this->input_->isStrictRead()); else { @@ -951,7 +874,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_GetDelegationToken_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'GetDelegationToken', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -967,7 +890,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_GetDelegationToken() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_GetDelegationToken_result', $this->input_->isStrictRead()); else { @@ -1002,7 +925,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_CancelDelegationToken_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'CancelDelegationToken', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1018,7 +941,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_CancelDelegationToken() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_CancelDelegationToken_result', $this->input_->isStrictRead()); else { @@ -1053,7 +976,7 @@ class TCLIServiceClient implements \TCLIServiceIf { { $args = new \TCLIService_RenewDelegationToken_args(); $args->req = $req; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'RenewDelegationToken', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -1069,7 +992,7 @@ class TCLIServiceClient implements \TCLIServiceIf { public function recv_RenewDelegationToken() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\TCLIService_RenewDelegationToken_result', $this->input_->isStrictRead()); else { @@ -1101,9 +1024,6 @@ class TCLIServiceClient implements \TCLIServiceIf { class TCLIService_OpenSession_args { static $_TSPEC; - /** - * @var \TOpenSessionReq - */ public $req = null; public function __construct($vals=null) { @@ -1181,9 +1101,6 @@ class TCLIService_OpenSession_args { class TCLIService_OpenSession_result { static $_TSPEC; - /** - * @var \TOpenSessionResp - */ public $success = null; public function __construct($vals=null) { @@ -1261,9 +1178,6 @@ class TCLIService_OpenSession_result { class TCLIService_CloseSession_args { static $_TSPEC; - /** - * @var \TCloseSessionReq - */ public $req = null; public function __construct($vals=null) { @@ -1341,9 +1255,6 @@ class TCLIService_CloseSession_args { class TCLIService_CloseSession_result { static $_TSPEC; - /** - * @var \TCloseSessionResp - */ public $success = null; public function __construct($vals=null) { @@ -1421,9 +1332,6 @@ class TCLIService_CloseSession_result { class TCLIService_GetInfo_args { static $_TSPEC; - /** - * @var \TGetInfoReq - */ public $req = null; public function __construct($vals=null) { @@ -1501,9 +1409,6 @@ class TCLIService_GetInfo_args { class TCLIService_GetInfo_result { static $_TSPEC; - /** - * @var \TGetInfoResp - */ public $success = null; public function __construct($vals=null) { @@ -1581,9 +1486,6 @@ class TCLIService_GetInfo_result { class TCLIService_ExecuteStatement_args { static $_TSPEC; - /** - * @var \TExecuteStatementReq - */ public $req = null; public function __construct($vals=null) { @@ -1661,9 +1563,6 @@ class TCLIService_ExecuteStatement_args { class TCLIService_ExecuteStatement_result { static $_TSPEC; - /** - * @var \TExecuteStatementResp - */ public $success = null; public function __construct($vals=null) { @@ -1741,9 +1640,6 @@ class TCLIService_ExecuteStatement_result { class TCLIService_GetTypeInfo_args { static $_TSPEC; - /** - * @var \TGetTypeInfoReq - */ public $req = null; public function __construct($vals=null) { @@ -1821,9 +1717,6 @@ class TCLIService_GetTypeInfo_args { class TCLIService_GetTypeInfo_result { static $_TSPEC; - /** - * @var \TGetTypeInfoResp - */ public $success = null; public function __construct($vals=null) { @@ -1901,9 +1794,6 @@ class TCLIService_GetTypeInfo_result { class TCLIService_GetCatalogs_args { static $_TSPEC; - /** - * @var \TGetCatalogsReq - */ public $req = null; public function __construct($vals=null) { @@ -1981,9 +1871,6 @@ class TCLIService_GetCatalogs_args { class TCLIService_GetCatalogs_result { static $_TSPEC; - /** - * @var \TGetCatalogsResp - */ public $success = null; public function __construct($vals=null) { @@ -2061,9 +1948,6 @@ class TCLIService_GetCatalogs_result { class TCLIService_GetSchemas_args { static $_TSPEC; - /** - * @var \TGetSchemasReq - */ public $req = null; public function __construct($vals=null) { @@ -2141,9 +2025,6 @@ class TCLIService_GetSchemas_args { class TCLIService_GetSchemas_result { static $_TSPEC; - /** - * @var \TGetSchemasResp - */ public $success = null; public function __construct($vals=null) { @@ -2221,9 +2102,6 @@ class TCLIService_GetSchemas_result { class TCLIService_GetTables_args { static $_TSPEC; - /** - * @var \TGetTablesReq - */ public $req = null; public function __construct($vals=null) { @@ -2301,9 +2179,6 @@ class TCLIService_GetTables_args { class TCLIService_GetTables_result { static $_TSPEC; - /** - * @var \TGetTablesResp - */ public $success = null; public function __construct($vals=null) { @@ -2381,9 +2256,6 @@ class TCLIService_GetTables_result { class TCLIService_GetTableTypes_args { static $_TSPEC; - /** - * @var \TGetTableTypesReq - */ public $req = null; public function __construct($vals=null) { @@ -2461,9 +2333,6 @@ class TCLIService_GetTableTypes_args { class TCLIService_GetTableTypes_result { static $_TSPEC; - /** - * @var \TGetTableTypesResp - */ public $success = null; public function __construct($vals=null) { @@ -2541,9 +2410,6 @@ class TCLIService_GetTableTypes_result { class TCLIService_GetColumns_args { static $_TSPEC; - /** - * @var \TGetColumnsReq - */ public $req = null; public function __construct($vals=null) { @@ -2621,9 +2487,6 @@ class TCLIService_GetColumns_args { class TCLIService_GetColumns_result { static $_TSPEC; - /** - * @var \TGetColumnsResp - */ public $success = null; public function __construct($vals=null) { @@ -2701,9 +2564,6 @@ class TCLIService_GetColumns_result { class TCLIService_GetFunctions_args { static $_TSPEC; - /** - * @var \TGetFunctionsReq - */ public $req = null; public function __construct($vals=null) { @@ -2781,9 +2641,6 @@ class TCLIService_GetFunctions_args { class TCLIService_GetFunctions_result { static $_TSPEC; - /** - * @var \TGetFunctionsResp - */ public $success = null; public function __construct($vals=null) { @@ -2861,9 +2718,6 @@ class TCLIService_GetFunctions_result { class TCLIService_GetOperationStatus_args { static $_TSPEC; - /** - * @var \TGetOperationStatusReq - */ public $req = null; public function __construct($vals=null) { @@ -2941,9 +2795,6 @@ class TCLIService_GetOperationStatus_args { class TCLIService_GetOperationStatus_result { static $_TSPEC; - /** - * @var \TGetOperationStatusResp - */ public $success = null; public function __construct($vals=null) { @@ -3021,9 +2872,6 @@ class TCLIService_GetOperationStatus_result { class TCLIService_CancelOperation_args { static $_TSPEC; - /** - * @var \TCancelOperationReq - */ public $req = null; public function __construct($vals=null) { @@ -3101,9 +2949,6 @@ class TCLIService_CancelOperation_args { class TCLIService_CancelOperation_result { static $_TSPEC; - /** - * @var \TCancelOperationResp - */ public $success = null; public function __construct($vals=null) { @@ -3181,9 +3026,6 @@ class TCLIService_CancelOperation_result { class TCLIService_CloseOperation_args { static $_TSPEC; - /** - * @var \TCloseOperationReq - */ public $req = null; public function __construct($vals=null) { @@ -3261,9 +3103,6 @@ class TCLIService_CloseOperation_args { class TCLIService_CloseOperation_result { static $_TSPEC; - /** - * @var \TCloseOperationResp - */ public $success = null; public function __construct($vals=null) { @@ -3341,9 +3180,6 @@ class TCLIService_CloseOperation_result { class TCLIService_GetResultSetMetadata_args { static $_TSPEC; - /** - * @var \TGetResultSetMetadataReq - */ public $req = null; public function __construct($vals=null) { @@ -3421,9 +3257,6 @@ class TCLIService_GetResultSetMetadata_args { class TCLIService_GetResultSetMetadata_result { static $_TSPEC; - /** - * @var \TGetResultSetMetadataResp - */ public $success = null; public function __construct($vals=null) { @@ -3501,9 +3334,6 @@ class TCLIService_GetResultSetMetadata_result { class TCLIService_FetchResults_args { static $_TSPEC; - /** - * @var \TFetchResultsReq - */ public $req = null; public function __construct($vals=null) { @@ -3581,9 +3411,6 @@ class TCLIService_FetchResults_args { class TCLIService_FetchResults_result { static $_TSPEC; - /** - * @var \TFetchResultsResp - */ public $success = null; public function __construct($vals=null) { @@ -3661,9 +3488,6 @@ class TCLIService_FetchResults_result { class TCLIService_GetDelegationToken_args { static $_TSPEC; - /** - * @var \TGetDelegationTokenReq - */ public $req = null; public function __construct($vals=null) { @@ -3741,9 +3565,6 @@ class TCLIService_GetDelegationToken_args { class TCLIService_GetDelegationToken_result { static $_TSPEC; - /** - * @var \TGetDelegationTokenResp - */ public $success = null; public function __construct($vals=null) { @@ -3821,9 +3642,6 @@ class TCLIService_GetDelegationToken_result { class TCLIService_CancelDelegationToken_args { static $_TSPEC; - /** - * @var \TCancelDelegationTokenReq - */ public $req = null; public function __construct($vals=null) { @@ -3901,9 +3719,6 @@ class TCLIService_CancelDelegationToken_args { class TCLIService_CancelDelegationToken_result { static $_TSPEC; - /** - * @var \TCancelDelegationTokenResp - */ public $success = null; public function __construct($vals=null) { @@ -3981,9 +3796,6 @@ class TCLIService_CancelDelegationToken_result { class TCLIService_RenewDelegationToken_args { static $_TSPEC; - /** - * @var \TRenewDelegationTokenReq - */ public $req = null; public function __construct($vals=null) { @@ -4061,9 +3873,6 @@ class TCLIService_RenewDelegationToken_args { class TCLIService_RenewDelegationToken_result { static $_TSPEC; - /** - * @var \TRenewDelegationTokenResp - */ public $success = null; public function __construct($vals=null) { diff --git a/service/src/gen/thrift/gen-php/ThriftHive.php b/service/src/gen/thrift/gen-php/ThriftHive.php index 2c783b6..8fc3ff4 100644 --- a/service/src/gen/thrift/gen-php/ThriftHive.php +++ b/service/src/gen/thrift/gen-php/ThriftHive.php @@ -1,7 +1,7 @@ query = $query; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'execute', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -94,7 +58,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_execute() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_execute_result', $this->input_->isStrictRead()); else { @@ -128,7 +92,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_fetchOne() { $args = new \ThriftHive_fetchOne_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'fetchOne', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -144,7 +108,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_fetchOne() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_fetchOne_result', $this->input_->isStrictRead()); else { @@ -182,7 +146,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ { $args = new \ThriftHive_fetchN_args(); $args->numRows = $numRows; - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'fetchN', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -198,7 +162,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_fetchN() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_fetchN_result', $this->input_->isStrictRead()); else { @@ -235,7 +199,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_fetchAll() { $args = new \ThriftHive_fetchAll_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'fetchAll', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -251,7 +215,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_fetchAll() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_fetchAll_result', $this->input_->isStrictRead()); else { @@ -288,7 +252,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_getSchema() { $args = new \ThriftHive_getSchema_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'getSchema', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -304,7 +268,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_getSchema() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_getSchema_result', $this->input_->isStrictRead()); else { @@ -341,7 +305,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_getThriftSchema() { $args = new \ThriftHive_getThriftSchema_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'getThriftSchema', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -357,7 +321,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_getThriftSchema() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_getThriftSchema_result', $this->input_->isStrictRead()); else { @@ -394,7 +358,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_getClusterStatus() { $args = new \ThriftHive_getClusterStatus_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'getClusterStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -410,7 +374,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_getClusterStatus() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_getClusterStatus_result', $this->input_->isStrictRead()); else { @@ -447,7 +411,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_getQueryPlan() { $args = new \ThriftHive_getQueryPlan_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'getQueryPlan', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -463,7 +427,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_getQueryPlan() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_getQueryPlan_result', $this->input_->isStrictRead()); else { @@ -500,7 +464,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function send_clean() { $args = new \ThriftHive_clean_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { thrift_protocol_write_binary($this->output_, 'clean', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); @@ -516,7 +480,7 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ public function recv_clean() { - $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\ThriftHive_clean_result', $this->input_->isStrictRead()); else { @@ -545,9 +509,6 @@ class ThriftHiveClient extends \metastore\ThriftHiveMetastoreClient implements \ class ThriftHive_execute_args { static $_TSPEC; - /** - * @var string - */ public $query = null; public function __construct($vals=null) { @@ -620,9 +581,6 @@ class ThriftHive_execute_args { class ThriftHive_execute_result { static $_TSPEC; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -747,13 +705,7 @@ class ThriftHive_fetchOne_args { class ThriftHive_fetchOne_result { static $_TSPEC; - /** - * @var string - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -847,9 +799,6 @@ class ThriftHive_fetchOne_result { class ThriftHive_fetchN_args { static $_TSPEC; - /** - * @var int - */ public $numRows = null; public function __construct($vals=null) { @@ -922,13 +871,7 @@ class ThriftHive_fetchN_args { class ThriftHive_fetchN_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -1098,13 +1041,7 @@ class ThriftHive_fetchAll_args { class ThriftHive_fetchAll_result { static $_TSPEC; - /** - * @var string[] - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -1274,13 +1211,7 @@ class ThriftHive_getSchema_args { class ThriftHive_getSchema_result { static $_TSPEC; - /** - * @var \metastore\Schema - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -1429,13 +1360,7 @@ class ThriftHive_getThriftSchema_args { class ThriftHive_getThriftSchema_result { static $_TSPEC; - /** - * @var \metastore\Schema - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -1584,13 +1509,7 @@ class ThriftHive_getClusterStatus_args { class ThriftHive_getClusterStatus_result { static $_TSPEC; - /** - * @var \HiveClusterStatus - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { @@ -1739,13 +1658,7 @@ class ThriftHive_getQueryPlan_args { class ThriftHive_getQueryPlan_result { static $_TSPEC; - /** - * @var \QueryPlan - */ public $success = null; - /** - * @var \HiveServerException - */ public $ex = null; public function __construct($vals=null) { diff --git a/service/src/gen/thrift/gen-php/Types.php b/service/src/gen/thrift/gen-php/Types.php index d8f3c5b..f4225ad 100644 --- a/service/src/gen/thrift/gen-php/Types.php +++ b/service/src/gen/thrift/gen-php/Types.php @@ -2,7 +2,7 @@ namespace ; /** - * Autogenerated by Thrift Compiler (0.9.2) + * Autogenerated by Thrift Compiler (0.9.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated @@ -13,7 +13,6 @@ use Thrift\Type\TMessageType; use Thrift\Exception\TException; use Thrift\Exception\TProtocolException; use Thrift\Protocol\TProtocol; -use Thrift\Protocol\TBinaryProtocolAccelerated; use Thrift\Exception\TApplicationException; @@ -29,29 +28,11 @@ final class JobTrackerState { class HiveClusterStatus { static $_TSPEC; - /** - * @var int - */ public $taskTrackers = null; - /** - * @var int - */ public $mapTasks = null; - /** - * @var int - */ public $reduceTasks = null; - /** - * @var int - */ public $maxMapTasks = null; - /** - * @var int - */ public $maxReduceTasks = null; - /** - * @var int - */ public $state = null; public function __construct($vals=null) { @@ -219,17 +200,8 @@ class HiveClusterStatus { class HiveServerException extends TException { static $_TSPEC; - /** - * @var string - */ public $message = null; - /** - * @var int - */ public $errorCode = null; - /** - * @var string - */ public $SQLState = null; public function __construct($vals=null) { diff --git a/service/src/gen/thrift/gen-py/TCLIService/TCLIService-remote b/service/src/gen/thrift/gen-py/TCLIService/TCLIService-remote index 2bfca56..f6ff43f 100755 --- a/service/src/gen/thrift/gen-py/TCLIService/TCLIService-remote +++ b/service/src/gen/thrift/gen-py/TCLIService/TCLIService-remote @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -12,38 +12,37 @@ import pprint from urlparse import urlparse from thrift.transport import TTransport from thrift.transport import TSocket -from thrift.transport import TSSLSocket from thrift.transport import THttpClient from thrift.protocol import TBinaryProtocol -from TCLIService import TCLIService -from TCLIService.ttypes import * +import TCLIService +from ttypes import * if len(sys.argv) <= 1 or sys.argv[1] == '--help': - print('') - print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] function [arg1 [arg2...]]') - print('') - print('Functions:') - print(' TOpenSessionResp OpenSession(TOpenSessionReq req)') - print(' TCloseSessionResp CloseSession(TCloseSessionReq req)') - print(' TGetInfoResp GetInfo(TGetInfoReq req)') - print(' TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req)') - print(' TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req)') - print(' TGetCatalogsResp GetCatalogs(TGetCatalogsReq req)') - print(' TGetSchemasResp GetSchemas(TGetSchemasReq req)') - print(' TGetTablesResp GetTables(TGetTablesReq req)') - print(' TGetTableTypesResp GetTableTypes(TGetTableTypesReq req)') - print(' TGetColumnsResp GetColumns(TGetColumnsReq req)') - print(' TGetFunctionsResp GetFunctions(TGetFunctionsReq req)') - print(' TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req)') - print(' TCancelOperationResp CancelOperation(TCancelOperationReq req)') - print(' TCloseOperationResp CloseOperation(TCloseOperationReq req)') - print(' TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req)') - print(' TFetchResultsResp FetchResults(TFetchResultsReq req)') - print(' TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req)') - print(' TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req)') - print(' TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req)') - print('') + print '' + print 'Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] function [arg1 [arg2...]]' + print '' + print 'Functions:' + print ' TOpenSessionResp OpenSession(TOpenSessionReq req)' + print ' TCloseSessionResp CloseSession(TCloseSessionReq req)' + print ' TGetInfoResp GetInfo(TGetInfoReq req)' + print ' TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req)' + print ' TGetTypeInfoResp GetTypeInfo(TGetTypeInfoReq req)' + print ' TGetCatalogsResp GetCatalogs(TGetCatalogsReq req)' + print ' TGetSchemasResp GetSchemas(TGetSchemasReq req)' + print ' TGetTablesResp GetTables(TGetTablesReq req)' + print ' TGetTableTypesResp GetTableTypes(TGetTableTypesReq req)' + print ' TGetColumnsResp GetColumns(TGetColumnsReq req)' + print ' TGetFunctionsResp GetFunctions(TGetFunctionsReq req)' + print ' TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req)' + print ' TCancelOperationResp CancelOperation(TCancelOperationReq req)' + print ' TCloseOperationResp CloseOperation(TCloseOperationReq req)' + print ' TGetResultSetMetadataResp GetResultSetMetadata(TGetResultSetMetadataReq req)' + print ' TFetchResultsResp FetchResults(TFetchResultsReq req)' + print ' TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req)' + print ' TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req)' + print ' TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req)' + print '' sys.exit(0) pp = pprint.PrettyPrinter(indent = 2) @@ -51,7 +50,6 @@ host = 'localhost' port = 9090 uri = '' framed = False -ssl = False http = False argi = 1 @@ -80,17 +78,13 @@ if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed': framed = True argi += 1 -if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl': - ssl = True - argi += 1 - cmd = sys.argv[argi] args = sys.argv[argi+1:] if http: transport = THttpClient.THttpClient(host, port, uri) else: - socket = TSSLSocket.TSSLSocket(host, port, validate=False) if ssl else TSocket.TSocket(host, port) + socket = TSocket.TSocket(host, port) if framed: transport = TTransport.TFramedTransport(socket) else: @@ -101,120 +95,120 @@ transport.open() if cmd == 'OpenSession': if len(args) != 1: - print('OpenSession requires 1 args') + print 'OpenSession requires 1 args' sys.exit(1) pp.pprint(client.OpenSession(eval(args[0]),)) elif cmd == 'CloseSession': if len(args) != 1: - print('CloseSession requires 1 args') + print 'CloseSession requires 1 args' sys.exit(1) pp.pprint(client.CloseSession(eval(args[0]),)) elif cmd == 'GetInfo': if len(args) != 1: - print('GetInfo requires 1 args') + print 'GetInfo requires 1 args' sys.exit(1) pp.pprint(client.GetInfo(eval(args[0]),)) elif cmd == 'ExecuteStatement': if len(args) != 1: - print('ExecuteStatement requires 1 args') + print 'ExecuteStatement requires 1 args' sys.exit(1) pp.pprint(client.ExecuteStatement(eval(args[0]),)) elif cmd == 'GetTypeInfo': if len(args) != 1: - print('GetTypeInfo requires 1 args') + print 'GetTypeInfo requires 1 args' sys.exit(1) pp.pprint(client.GetTypeInfo(eval(args[0]),)) elif cmd == 'GetCatalogs': if len(args) != 1: - print('GetCatalogs requires 1 args') + print 'GetCatalogs requires 1 args' sys.exit(1) pp.pprint(client.GetCatalogs(eval(args[0]),)) elif cmd == 'GetSchemas': if len(args) != 1: - print('GetSchemas requires 1 args') + print 'GetSchemas requires 1 args' sys.exit(1) pp.pprint(client.GetSchemas(eval(args[0]),)) elif cmd == 'GetTables': if len(args) != 1: - print('GetTables requires 1 args') + print 'GetTables requires 1 args' sys.exit(1) pp.pprint(client.GetTables(eval(args[0]),)) elif cmd == 'GetTableTypes': if len(args) != 1: - print('GetTableTypes requires 1 args') + print 'GetTableTypes requires 1 args' sys.exit(1) pp.pprint(client.GetTableTypes(eval(args[0]),)) elif cmd == 'GetColumns': if len(args) != 1: - print('GetColumns requires 1 args') + print 'GetColumns requires 1 args' sys.exit(1) pp.pprint(client.GetColumns(eval(args[0]),)) elif cmd == 'GetFunctions': if len(args) != 1: - print('GetFunctions requires 1 args') + print 'GetFunctions requires 1 args' sys.exit(1) pp.pprint(client.GetFunctions(eval(args[0]),)) elif cmd == 'GetOperationStatus': if len(args) != 1: - print('GetOperationStatus requires 1 args') + print 'GetOperationStatus requires 1 args' sys.exit(1) pp.pprint(client.GetOperationStatus(eval(args[0]),)) elif cmd == 'CancelOperation': if len(args) != 1: - print('CancelOperation requires 1 args') + print 'CancelOperation requires 1 args' sys.exit(1) pp.pprint(client.CancelOperation(eval(args[0]),)) elif cmd == 'CloseOperation': if len(args) != 1: - print('CloseOperation requires 1 args') + print 'CloseOperation requires 1 args' sys.exit(1) pp.pprint(client.CloseOperation(eval(args[0]),)) elif cmd == 'GetResultSetMetadata': if len(args) != 1: - print('GetResultSetMetadata requires 1 args') + print 'GetResultSetMetadata requires 1 args' sys.exit(1) pp.pprint(client.GetResultSetMetadata(eval(args[0]),)) elif cmd == 'FetchResults': if len(args) != 1: - print('FetchResults requires 1 args') + print 'FetchResults requires 1 args' sys.exit(1) pp.pprint(client.FetchResults(eval(args[0]),)) elif cmd == 'GetDelegationToken': if len(args) != 1: - print('GetDelegationToken requires 1 args') + print 'GetDelegationToken requires 1 args' sys.exit(1) pp.pprint(client.GetDelegationToken(eval(args[0]),)) elif cmd == 'CancelDelegationToken': if len(args) != 1: - print('CancelDelegationToken requires 1 args') + print 'CancelDelegationToken requires 1 args' sys.exit(1) pp.pprint(client.CancelDelegationToken(eval(args[0]),)) elif cmd == 'RenewDelegationToken': if len(args) != 1: - print('RenewDelegationToken requires 1 args') + print 'RenewDelegationToken requires 1 args' sys.exit(1) pp.pprint(client.RenewDelegationToken(eval(args[0]),)) else: - print('Unrecognized method %s' % cmd) + print 'Unrecognized method %s' % cmd sys.exit(1) transport.close() diff --git a/service/src/gen/thrift/gen-py/TCLIService/TCLIService.py b/service/src/gen/thrift/gen-py/TCLIService/TCLIService.py index 0067195..ebc6574 100644 --- a/service/src/gen/thrift/gen-py/TCLIService/TCLIService.py +++ b/service/src/gen/thrift/gen-py/TCLIService/TCLIService.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -175,17 +175,16 @@ def send_OpenSession(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_OpenSession(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_OpenSession(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = OpenSession_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "OpenSession failed: unknown result"); @@ -206,17 +205,16 @@ def send_CloseSession(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_CloseSession(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_CloseSession(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = CloseSession_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "CloseSession failed: unknown result"); @@ -237,17 +235,16 @@ def send_GetInfo(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_GetInfo(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_GetInfo(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = GetInfo_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "GetInfo failed: unknown result"); @@ -268,17 +265,16 @@ def send_ExecuteStatement(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_ExecuteStatement(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_ExecuteStatement(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = ExecuteStatement_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "ExecuteStatement failed: unknown result"); @@ -299,17 +295,16 @@ def send_GetTypeInfo(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_GetTypeInfo(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_GetTypeInfo(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = GetTypeInfo_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "GetTypeInfo failed: unknown result"); @@ -330,17 +325,16 @@ def send_GetCatalogs(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_GetCatalogs(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_GetCatalogs(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = GetCatalogs_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "GetCatalogs failed: unknown result"); @@ -361,17 +355,16 @@ def send_GetSchemas(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_GetSchemas(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_GetSchemas(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = GetSchemas_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "GetSchemas failed: unknown result"); @@ -392,17 +385,16 @@ def send_GetTables(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_GetTables(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_GetTables(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = GetTables_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "GetTables failed: unknown result"); @@ -423,17 +415,16 @@ def send_GetTableTypes(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_GetTableTypes(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_GetTableTypes(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = GetTableTypes_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "GetTableTypes failed: unknown result"); @@ -454,17 +445,16 @@ def send_GetColumns(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_GetColumns(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_GetColumns(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = GetColumns_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "GetColumns failed: unknown result"); @@ -485,17 +475,16 @@ def send_GetFunctions(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_GetFunctions(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_GetFunctions(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = GetFunctions_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "GetFunctions failed: unknown result"); @@ -516,17 +505,16 @@ def send_GetOperationStatus(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_GetOperationStatus(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_GetOperationStatus(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = GetOperationStatus_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "GetOperationStatus failed: unknown result"); @@ -547,17 +535,16 @@ def send_CancelOperation(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_CancelOperation(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_CancelOperation(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = CancelOperation_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "CancelOperation failed: unknown result"); @@ -578,17 +565,16 @@ def send_CloseOperation(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_CloseOperation(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_CloseOperation(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = CloseOperation_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "CloseOperation failed: unknown result"); @@ -609,17 +595,16 @@ def send_GetResultSetMetadata(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_GetResultSetMetadata(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_GetResultSetMetadata(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = GetResultSetMetadata_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "GetResultSetMetadata failed: unknown result"); @@ -640,17 +625,16 @@ def send_FetchResults(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_FetchResults(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_FetchResults(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = FetchResults_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "FetchResults failed: unknown result"); @@ -671,17 +655,16 @@ def send_GetDelegationToken(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_GetDelegationToken(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_GetDelegationToken(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = GetDelegationToken_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "GetDelegationToken failed: unknown result"); @@ -702,17 +685,16 @@ def send_CancelDelegationToken(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_CancelDelegationToken(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_CancelDelegationToken(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = CancelDelegationToken_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "CancelDelegationToken failed: unknown result"); @@ -733,17 +715,16 @@ def send_RenewDelegationToken(self, req): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_RenewDelegationToken(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_RenewDelegationToken(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = RenewDelegationToken_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "RenewDelegationToken failed: unknown result"); @@ -1050,11 +1031,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1115,11 +1091,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1181,11 +1152,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1246,11 +1212,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1312,11 +1273,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1377,11 +1333,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1443,11 +1394,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1508,11 +1454,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1574,11 +1515,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1639,11 +1575,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1705,11 +1636,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1770,11 +1696,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1836,11 +1757,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1901,11 +1817,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1967,11 +1878,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2032,11 +1938,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2098,11 +1999,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2163,11 +2059,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2229,11 +2120,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2294,11 +2180,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2360,11 +2241,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2425,11 +2301,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2491,11 +2362,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2556,11 +2422,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2622,11 +2483,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2687,11 +2543,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2753,11 +2604,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2818,11 +2664,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2884,11 +2725,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2949,11 +2785,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3015,11 +2846,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3080,11 +2906,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3146,11 +2967,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3211,11 +3027,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3277,11 +3088,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3342,11 +3148,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3408,11 +3209,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.req) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3473,11 +3269,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/service/src/gen/thrift/gen-py/TCLIService/constants.py b/service/src/gen/thrift/gen-py/TCLIService/constants.py index 9fb1a86..eafcb05 100644 --- a/service/src/gen/thrift/gen-py/TCLIService/constants.py +++ b/service/src/gen/thrift/gen-py/TCLIService/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/service/src/gen/thrift/gen-py/TCLIService/ttypes.py b/service/src/gen/thrift/gen-py/TCLIService/ttypes.py index efee8ef..068727c 100644 --- a/service/src/gen/thrift/gen-py/TCLIService/ttypes.py +++ b/service/src/gen/thrift/gen-py/TCLIService/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -449,12 +449,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.i32Value) - value = (value * 31) ^ hash(self.stringValue) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -492,7 +486,7 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.qualifiers = {} - (_ktype1, _vtype2, _size0 ) = iprot.readMapBegin() + (_ktype1, _vtype2, _size0 ) = iprot.readMapBegin() for _i4 in xrange(_size0): _key5 = iprot.readString(); _val6 = TTypeQualifierValue() @@ -528,11 +522,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.qualifiers) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -608,12 +597,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.type) - value = (value * 31) ^ hash(self.typeQualifiers) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -676,11 +659,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.objectTypePtr) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -757,12 +735,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.keyTypePtr) - value = (value * 31) ^ hash(self.valueTypePtr) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -800,7 +772,7 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.nameToTypePtr = {} - (_ktype10, _vtype11, _size9 ) = iprot.readMapBegin() + (_ktype10, _vtype11, _size9 ) = iprot.readMapBegin() for _i13 in xrange(_size9): _key14 = iprot.readString(); _val15 = iprot.readI32(); @@ -835,11 +807,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.nameToTypePtr) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -877,7 +844,7 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.nameToTypePtr = {} - (_ktype19, _vtype20, _size18 ) = iprot.readMapBegin() + (_ktype19, _vtype20, _size18 ) = iprot.readMapBegin() for _i22 in xrange(_size18): _key23 = iprot.readString(); _val24 = iprot.readI32(); @@ -912,11 +879,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.nameToTypePtr) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -979,11 +941,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.typeClassName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1110,16 +1067,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.primitiveEntry) - value = (value * 31) ^ hash(self.arrayEntry) - value = (value * 31) ^ hash(self.mapEntry) - value = (value * 31) ^ hash(self.structEntry) - value = (value * 31) ^ hash(self.unionEntry) - value = (value * 31) ^ hash(self.userDefinedTypeEntry) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1191,11 +1138,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.types) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1299,14 +1241,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.columnName) - value = (value * 31) ^ hash(self.typeDesc) - value = (value * 31) ^ hash(self.position) - value = (value * 31) ^ hash(self.comment) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1378,11 +1312,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.columns) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1443,11 +1372,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.value) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1508,11 +1432,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.value) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1573,11 +1492,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.value) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1638,11 +1552,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.value) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1703,11 +1612,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.value) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1768,11 +1672,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.value) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1833,11 +1732,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.value) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1977,17 +1871,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.boolVal) - value = (value * 31) ^ hash(self.byteVal) - value = (value * 31) ^ hash(self.i16Val) - value = (value * 31) ^ hash(self.i32Val) - value = (value * 31) ^ hash(self.i64Val) - value = (value * 31) ^ hash(self.doubleVal) - value = (value * 31) ^ hash(self.stringVal) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2059,11 +1942,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.colVals) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2148,12 +2026,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.nulls) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2238,12 +2110,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.nulls) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2328,12 +2194,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.nulls) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2418,12 +2278,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.nulls) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2508,12 +2362,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.nulls) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2598,12 +2446,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.nulls) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2688,12 +2530,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.nulls) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2778,12 +2614,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.values) - value = (value * 31) ^ hash(self.nulls) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -2936,18 +2766,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.boolVal) - value = (value * 31) ^ hash(self.byteVal) - value = (value * 31) ^ hash(self.i16Val) - value = (value * 31) ^ hash(self.i32Val) - value = (value * 31) ^ hash(self.i64Val) - value = (value * 31) ^ hash(self.doubleVal) - value = (value * 31) ^ hash(self.stringVal) - value = (value * 31) ^ hash(self.binaryVal) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3054,13 +2872,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.startRowOffset) - value = (value * 31) ^ hash(self.rows) - value = (value * 31) ^ hash(self.columns) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3179,15 +2990,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.statusCode) - value = (value * 31) ^ hash(self.infoMessages) - value = (value * 31) ^ hash(self.sqlState) - value = (value * 31) ^ hash(self.errorCode) - value = (value * 31) ^ hash(self.errorMessage) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3264,12 +3066,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.guid) - value = (value * 31) ^ hash(self.secret) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3333,11 +3129,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionId) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3441,14 +3232,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.operationId) - value = (value * 31) ^ hash(self.operationType) - value = (value * 31) ^ hash(self.hasResultSet) - value = (value * 31) ^ hash(self.modifiedRowCount) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3510,7 +3293,7 @@ def read(self, iprot): elif fid == 4: if ftype == TType.MAP: self.configuration = {} - (_ktype126, _vtype127, _size125 ) = iprot.readMapBegin() + (_ktype126, _vtype127, _size125 ) = iprot.readMapBegin() for _i129 in xrange(_size125): _key130 = iprot.readString(); _val131 = iprot.readString(); @@ -3557,14 +3340,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.client_protocol) - value = (value * 31) ^ hash(self.username) - value = (value * 31) ^ hash(self.password) - value = (value * 31) ^ hash(self.configuration) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3628,7 +3403,7 @@ def read(self, iprot): elif fid == 4: if ftype == TType.MAP: self.configuration = {} - (_ktype135, _vtype136, _size134 ) = iprot.readMapBegin() + (_ktype135, _vtype136, _size134 ) = iprot.readMapBegin() for _i138 in xrange(_size134): _key139 = iprot.readString(); _val140 = iprot.readString(); @@ -3677,14 +3452,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.serverProtocolVersion) - value = (value * 31) ^ hash(self.sessionHandle) - value = (value * 31) ^ hash(self.configuration) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3748,11 +3515,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3816,11 +3578,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -3941,16 +3698,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.stringValue) - value = (value * 31) ^ hash(self.smallIntValue) - value = (value * 31) ^ hash(self.integerBitmask) - value = (value * 31) ^ hash(self.integerFlag) - value = (value * 31) ^ hash(self.binaryValue) - value = (value * 31) ^ hash(self.lenValue) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4028,12 +3775,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionHandle) - value = (value * 31) ^ hash(self.infoType) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4112,12 +3853,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.infoValue) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4175,7 +3910,7 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.confOverlay = {} - (_ktype144, _vtype145, _size143 ) = iprot.readMapBegin() + (_ktype144, _vtype145, _size143 ) = iprot.readMapBegin() for _i147 in xrange(_size143): _key148 = iprot.readString(); _val149 = iprot.readString(); @@ -4229,14 +3964,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionHandle) - value = (value * 31) ^ hash(self.statement) - value = (value * 31) ^ hash(self.confOverlay) - value = (value * 31) ^ hash(self.runAsync) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4313,12 +4040,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.operationHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4382,11 +4103,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4463,12 +4179,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.operationHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4532,11 +4242,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4613,12 +4318,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.operationHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4706,13 +4405,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionHandle) - value = (value * 31) ^ hash(self.catalogName) - value = (value * 31) ^ hash(self.schemaName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4789,12 +4481,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.operationHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4914,15 +4600,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionHandle) - value = (value * 31) ^ hash(self.catalogName) - value = (value * 31) ^ hash(self.schemaName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.tableTypes) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -4999,12 +4676,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.operationHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5068,11 +4739,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5149,12 +4815,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.operationHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5266,15 +4926,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionHandle) - value = (value * 31) ^ hash(self.catalogName) - value = (value * 31) ^ hash(self.schemaName) - value = (value * 31) ^ hash(self.tableName) - value = (value * 31) ^ hash(self.columnName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5351,12 +5002,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.operationHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5458,14 +5103,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionHandle) - value = (value * 31) ^ hash(self.catalogName) - value = (value * 31) ^ hash(self.schemaName) - value = (value * 31) ^ hash(self.functionName) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5542,12 +5179,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.operationHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5611,11 +5242,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.operationHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5727,15 +5353,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.operationState) - value = (value * 31) ^ hash(self.sqlState) - value = (value * 31) ^ hash(self.errorCode) - value = (value * 31) ^ hash(self.errorMessage) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5799,11 +5416,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.operationHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5867,11 +5479,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -5935,11 +5542,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.operationHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6003,11 +5605,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6071,11 +5668,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.operationHandle) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6152,12 +5744,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.schema) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6261,14 +5847,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.operationHandle) - value = (value * 31) ^ hash(self.orientation) - value = (value * 31) ^ hash(self.maxRows) - value = (value * 31) ^ hash(self.fetchType) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6357,13 +5935,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.hasMoreRows) - value = (value * 31) ^ hash(self.results) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6455,13 +6026,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionHandle) - value = (value * 31) ^ hash(self.owner) - value = (value * 31) ^ hash(self.renewer) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6537,12 +6101,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - value = (value * 31) ^ hash(self.delegationToken) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6620,12 +6178,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionHandle) - value = (value * 31) ^ hash(self.delegationToken) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6689,11 +6241,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6771,12 +6318,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.sessionHandle) - value = (value * 31) ^ hash(self.delegationToken) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -6840,11 +6381,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.status) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/service/src/gen/thrift/gen-py/hive_service/ThriftHive-remote b/service/src/gen/thrift/gen-py/hive_service/ThriftHive-remote index 747c2be..1a5cf83 100755 --- a/service/src/gen/thrift/gen-py/hive_service/ThriftHive-remote +++ b/service/src/gen/thrift/gen-py/hive_service/ThriftHive-remote @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -12,165 +12,27 @@ import pprint from urlparse import urlparse from thrift.transport import TTransport from thrift.transport import TSocket -from thrift.transport import TSSLSocket from thrift.transport import THttpClient from thrift.protocol import TBinaryProtocol -from hive_service import ThriftHive -from hive_service.ttypes import * +import ThriftHive +from ttypes import * if len(sys.argv) <= 1 or sys.argv[1] == '--help': - print('') - print('Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] [-s[sl]] function [arg1 [arg2...]]') - print('') - print('Functions:') - print(' void execute(string query)') - print(' string fetchOne()') - print(' fetchN(i32 numRows)') - print(' fetchAll()') - print(' Schema getSchema()') - print(' Schema getThriftSchema()') - print(' HiveClusterStatus getClusterStatus()') - print(' QueryPlan getQueryPlan()') - print(' void clean()') - print(' string getMetaConf(string key)') - print(' void setMetaConf(string key, string value)') - print(' void create_database(Database database)') - print(' Database get_database(string name)') - print(' void drop_database(string name, bool deleteData, bool cascade)') - print(' get_databases(string pattern)') - print(' get_all_databases()') - print(' void alter_database(string dbname, Database db)') - print(' Type get_type(string name)') - print(' bool create_type(Type type)') - print(' bool drop_type(string type)') - print(' get_type_all(string name)') - print(' get_fields(string db_name, string table_name)') - print(' get_fields_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)') - print(' get_schema(string db_name, string table_name)') - print(' get_schema_with_environment_context(string db_name, string table_name, EnvironmentContext environment_context)') - print(' void create_table(Table tbl)') - print(' void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context)') - print(' void drop_table(string dbname, string name, bool deleteData)') - print(' void drop_table_with_environment_context(string dbname, string name, bool deleteData, EnvironmentContext environment_context)') - print(' get_tables(string db_name, string pattern)') - print(' get_all_tables(string db_name)') - print(' Table get_table(string dbname, string tbl_name)') - print(' get_table_objects_by_name(string dbname, tbl_names)') - print(' get_table_names_by_filter(string dbname, string filter, i16 max_tables)') - print(' void alter_table(string dbname, string tbl_name, Table new_tbl)') - print(' void alter_table_with_environment_context(string dbname, string tbl_name, Table new_tbl, EnvironmentContext environment_context)') - print(' void alter_table_with_cascade(string dbname, string tbl_name, Table new_tbl, bool cascade)') - print(' Partition add_partition(Partition new_part)') - print(' Partition add_partition_with_environment_context(Partition new_part, EnvironmentContext environment_context)') - print(' i32 add_partitions( new_parts)') - print(' i32 add_partitions_pspec( new_parts)') - print(' Partition append_partition(string db_name, string tbl_name, part_vals)') - print(' AddPartitionsResult add_partitions_req(AddPartitionsRequest request)') - print(' Partition append_partition_with_environment_context(string db_name, string tbl_name, part_vals, EnvironmentContext environment_context)') - print(' Partition append_partition_by_name(string db_name, string tbl_name, string part_name)') - print(' Partition append_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, EnvironmentContext environment_context)') - print(' bool drop_partition(string db_name, string tbl_name, part_vals, bool deleteData)') - print(' bool drop_partition_with_environment_context(string db_name, string tbl_name, part_vals, bool deleteData, EnvironmentContext environment_context)') - print(' bool drop_partition_by_name(string db_name, string tbl_name, string part_name, bool deleteData)') - print(' bool drop_partition_by_name_with_environment_context(string db_name, string tbl_name, string part_name, bool deleteData, EnvironmentContext environment_context)') - print(' DropPartitionsResult drop_partitions_req(DropPartitionsRequest req)') - print(' Partition get_partition(string db_name, string tbl_name, part_vals)') - print(' Partition exchange_partition( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)') - print(' Partition get_partition_with_auth(string db_name, string tbl_name, part_vals, string user_name, group_names)') - print(' Partition get_partition_by_name(string db_name, string tbl_name, string part_name)') - print(' get_partitions(string db_name, string tbl_name, i16 max_parts)') - print(' get_partitions_with_auth(string db_name, string tbl_name, i16 max_parts, string user_name, group_names)') - print(' get_partitions_pspec(string db_name, string tbl_name, i32 max_parts)') - print(' get_partition_names(string db_name, string tbl_name, i16 max_parts)') - print(' get_partitions_ps(string db_name, string tbl_name, part_vals, i16 max_parts)') - print(' get_partitions_ps_with_auth(string db_name, string tbl_name, part_vals, i16 max_parts, string user_name, group_names)') - print(' get_partition_names_ps(string db_name, string tbl_name, part_vals, i16 max_parts)') - print(' get_partitions_by_filter(string db_name, string tbl_name, string filter, i16 max_parts)') - print(' get_part_specs_by_filter(string db_name, string tbl_name, string filter, i32 max_parts)') - print(' PartitionsByExprResult get_partitions_by_expr(PartitionsByExprRequest req)') - print(' get_partitions_by_names(string db_name, string tbl_name, names)') - print(' void alter_partition(string db_name, string tbl_name, Partition new_part)') - print(' void alter_partitions(string db_name, string tbl_name, new_parts)') - print(' void alter_partition_with_environment_context(string db_name, string tbl_name, Partition new_part, EnvironmentContext environment_context)') - print(' void rename_partition(string db_name, string tbl_name, part_vals, Partition new_part)') - print(' bool partition_name_has_valid_characters( part_vals, bool throw_exception)') - print(' string get_config_value(string name, string defaultValue)') - print(' partition_name_to_vals(string part_name)') - print(' partition_name_to_spec(string part_name)') - print(' void markPartitionForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)') - print(' bool isPartitionMarkedForEvent(string db_name, string tbl_name, part_vals, PartitionEventType eventType)') - print(' Index add_index(Index new_index, Table index_table)') - print(' void alter_index(string dbname, string base_tbl_name, string idx_name, Index new_idx)') - print(' bool drop_index_by_name(string db_name, string tbl_name, string index_name, bool deleteData)') - 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(' 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)') - print(' ColumnStatistics get_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)') - print(' TableStatsResult get_table_statistics_req(TableStatsRequest request)') - print(' PartitionsStatsResult get_partitions_statistics_req(PartitionsStatsRequest request)') - print(' AggrStats get_aggr_stats_for(PartitionsStatsRequest request)') - print(' bool set_aggr_stats_for(SetPartitionsStatsRequest request)') - print(' bool delete_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)') - print(' bool delete_table_column_statistics(string db_name, string tbl_name, string col_name)') - print(' void create_function(Function func)') - print(' void drop_function(string dbName, string funcName)') - print(' void alter_function(string dbName, string funcName, Function newFunc)') - print(' get_functions(string dbName, string pattern)') - print(' Function get_function(string dbName, string funcName)') - print(' GetAllFunctionsResponse get_all_functions()') - print(' bool create_role(Role role)') - print(' bool drop_role(string role_name)') - print(' get_role_names()') - print(' bool grant_role(string role_name, string principal_name, PrincipalType principal_type, string grantor, PrincipalType grantorType, bool grant_option)') - print(' bool revoke_role(string role_name, string principal_name, PrincipalType principal_type)') - print(' list_roles(string principal_name, PrincipalType principal_type)') - print(' GrantRevokeRoleResponse grant_revoke_role(GrantRevokeRoleRequest request)') - print(' GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request)') - print(' GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request)') - print(' PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, string user_name, group_names)') - print(' list_privileges(string principal_name, PrincipalType principal_type, HiveObjectRef hiveObject)') - print(' bool grant_privileges(PrivilegeBag privileges)') - print(' bool revoke_privileges(PrivilegeBag privileges)') - print(' GrantRevokePrivilegeResponse grant_revoke_privileges(GrantRevokePrivilegeRequest request)') - print(' set_ugi(string user_name, group_names)') - print(' string get_delegation_token(string token_owner, string renewer_kerberos_principal_name)') - print(' i64 renew_delegation_token(string token_str_form)') - print(' void cancel_delegation_token(string token_str_form)') - print(' GetOpenTxnsResponse get_open_txns()') - print(' GetOpenTxnsInfoResponse get_open_txns_info()') - print(' OpenTxnsResponse open_txns(OpenTxnRequest rqst)') - print(' void abort_txn(AbortTxnRequest rqst)') - print(' void commit_txn(CommitTxnRequest rqst)') - print(' LockResponse lock(LockRequest rqst)') - print(' LockResponse check_lock(CheckLockRequest rqst)') - print(' void unlock(UnlockRequest rqst)') - print(' ShowLocksResponse show_locks(ShowLocksRequest rqst)') - print(' void heartbeat(HeartbeatRequest ids)') - print(' HeartbeatTxnRangeResponse heartbeat_txn_range(HeartbeatTxnRangeRequest txns)') - print(' void compact(CompactionRequest rqst)') - print(' ShowCompactResponse show_compact(ShowCompactRequest rqst)') - print(' void add_dynamic_partitions(AddDynamicPartitions rqst)') - print(' NotificationEventResponse get_next_notification(NotificationEventRequest rqst)') - print(' CurrentNotificationEventId get_current_notificationEventId()') - print(' FireEventResponse fire_listener_event(FireEventRequest rqst)') - print(' string getName()') - print(' string getVersion()') - print(' fb_status getStatus()') - print(' string getStatusDetails()') - print(' getCounters()') - print(' i64 getCounter(string key)') - print(' void setOption(string key, string value)') - print(' string getOption(string key)') - print(' getOptions()') - print(' i64 aliveSince()') - print(' reflection_limited.Service getLimitedReflection()') - print(' void reinitialize()') - print(' void shutdown()') - print('') + print '' + print 'Usage: ' + sys.argv[0] + ' [-h host[:port]] [-u url] [-f[ramed]] function [arg1 [arg2...]]' + print '' + print 'Functions:' + print ' void execute(string query)' + print ' string fetchOne()' + print ' fetchN(i32 numRows)' + print ' fetchAll()' + print ' Schema getSchema()' + print ' Schema getThriftSchema()' + print ' HiveClusterStatus getClusterStatus()' + print ' QueryPlan getQueryPlan()' + print ' void clean()' + print '' sys.exit(0) pp = pprint.PrettyPrinter(indent = 2) @@ -178,7 +40,6 @@ host = 'localhost' port = 9090 uri = '' framed = False -ssl = False http = False argi = 1 @@ -207,17 +68,13 @@ if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed': framed = True argi += 1 -if sys.argv[argi] == '-s' or sys.argv[argi] == '-ssl': - ssl = True - argi += 1 - cmd = sys.argv[argi] args = sys.argv[argi+1:] if http: transport = THttpClient.THttpClient(host, port, uri) else: - socket = TSSLSocket.TSSLSocket(host, port, validate=False) if ssl else TSocket.TSocket(host, port) + socket = TSocket.TSocket(host, port) if framed: transport = TTransport.TFramedTransport(socket) else: @@ -228,882 +85,60 @@ transport.open() if cmd == 'execute': if len(args) != 1: - print('execute requires 1 args') + print 'execute requires 1 args' sys.exit(1) pp.pprint(client.execute(args[0],)) elif cmd == 'fetchOne': if len(args) != 0: - print('fetchOne requires 0 args') + print 'fetchOne requires 0 args' sys.exit(1) pp.pprint(client.fetchOne()) elif cmd == 'fetchN': if len(args) != 1: - print('fetchN requires 1 args') + print 'fetchN requires 1 args' sys.exit(1) pp.pprint(client.fetchN(eval(args[0]),)) elif cmd == 'fetchAll': if len(args) != 0: - print('fetchAll requires 0 args') + print 'fetchAll requires 0 args' sys.exit(1) pp.pprint(client.fetchAll()) elif cmd == 'getSchema': if len(args) != 0: - print('getSchema requires 0 args') + print 'getSchema requires 0 args' sys.exit(1) pp.pprint(client.getSchema()) elif cmd == 'getThriftSchema': if len(args) != 0: - print('getThriftSchema requires 0 args') + print 'getThriftSchema requires 0 args' sys.exit(1) pp.pprint(client.getThriftSchema()) elif cmd == 'getClusterStatus': if len(args) != 0: - print('getClusterStatus requires 0 args') + print 'getClusterStatus requires 0 args' sys.exit(1) pp.pprint(client.getClusterStatus()) elif cmd == 'getQueryPlan': if len(args) != 0: - print('getQueryPlan requires 0 args') + print 'getQueryPlan requires 0 args' sys.exit(1) pp.pprint(client.getQueryPlan()) elif cmd == 'clean': if len(args) != 0: - print('clean requires 0 args') + print 'clean requires 0 args' sys.exit(1) pp.pprint(client.clean()) -elif cmd == 'getMetaConf': - if len(args) != 1: - print('getMetaConf requires 1 args') - sys.exit(1) - pp.pprint(client.getMetaConf(args[0],)) - -elif cmd == 'setMetaConf': - if len(args) != 2: - print('setMetaConf requires 2 args') - sys.exit(1) - pp.pprint(client.setMetaConf(args[0],args[1],)) - -elif cmd == 'create_database': - if len(args) != 1: - print('create_database requires 1 args') - sys.exit(1) - pp.pprint(client.create_database(eval(args[0]),)) - -elif cmd == 'get_database': - if len(args) != 1: - print('get_database requires 1 args') - sys.exit(1) - pp.pprint(client.get_database(args[0],)) - -elif cmd == 'drop_database': - if len(args) != 3: - print('drop_database requires 3 args') - sys.exit(1) - pp.pprint(client.drop_database(args[0],eval(args[1]),eval(args[2]),)) - -elif cmd == 'get_databases': - if len(args) != 1: - print('get_databases requires 1 args') - sys.exit(1) - pp.pprint(client.get_databases(args[0],)) - -elif cmd == 'get_all_databases': - if len(args) != 0: - print('get_all_databases requires 0 args') - sys.exit(1) - pp.pprint(client.get_all_databases()) - -elif cmd == 'alter_database': - if len(args) != 2: - print('alter_database requires 2 args') - sys.exit(1) - pp.pprint(client.alter_database(args[0],eval(args[1]),)) - -elif cmd == 'get_type': - if len(args) != 1: - print('get_type requires 1 args') - sys.exit(1) - pp.pprint(client.get_type(args[0],)) - -elif cmd == 'create_type': - if len(args) != 1: - print('create_type requires 1 args') - sys.exit(1) - pp.pprint(client.create_type(eval(args[0]),)) - -elif cmd == 'drop_type': - if len(args) != 1: - print('drop_type requires 1 args') - sys.exit(1) - pp.pprint(client.drop_type(args[0],)) - -elif cmd == 'get_type_all': - if len(args) != 1: - print('get_type_all requires 1 args') - sys.exit(1) - pp.pprint(client.get_type_all(args[0],)) - -elif cmd == 'get_fields': - if len(args) != 2: - print('get_fields requires 2 args') - sys.exit(1) - pp.pprint(client.get_fields(args[0],args[1],)) - -elif cmd == 'get_fields_with_environment_context': - if len(args) != 3: - print('get_fields_with_environment_context requires 3 args') - sys.exit(1) - pp.pprint(client.get_fields_with_environment_context(args[0],args[1],eval(args[2]),)) - -elif cmd == 'get_schema': - if len(args) != 2: - print('get_schema requires 2 args') - sys.exit(1) - pp.pprint(client.get_schema(args[0],args[1],)) - -elif cmd == 'get_schema_with_environment_context': - if len(args) != 3: - print('get_schema_with_environment_context requires 3 args') - sys.exit(1) - pp.pprint(client.get_schema_with_environment_context(args[0],args[1],eval(args[2]),)) - -elif cmd == 'create_table': - if len(args) != 1: - print('create_table requires 1 args') - sys.exit(1) - pp.pprint(client.create_table(eval(args[0]),)) - -elif cmd == 'create_table_with_environment_context': - if len(args) != 2: - print('create_table_with_environment_context requires 2 args') - sys.exit(1) - pp.pprint(client.create_table_with_environment_context(eval(args[0]),eval(args[1]),)) - -elif cmd == 'drop_table': - if len(args) != 3: - print('drop_table requires 3 args') - sys.exit(1) - pp.pprint(client.drop_table(args[0],args[1],eval(args[2]),)) - -elif cmd == 'drop_table_with_environment_context': - if len(args) != 4: - print('drop_table_with_environment_context requires 4 args') - sys.exit(1) - pp.pprint(client.drop_table_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),)) - -elif cmd == 'get_tables': - if len(args) != 2: - print('get_tables requires 2 args') - sys.exit(1) - pp.pprint(client.get_tables(args[0],args[1],)) - -elif cmd == 'get_all_tables': - if len(args) != 1: - print('get_all_tables requires 1 args') - sys.exit(1) - pp.pprint(client.get_all_tables(args[0],)) - -elif cmd == 'get_table': - if len(args) != 2: - print('get_table requires 2 args') - sys.exit(1) - pp.pprint(client.get_table(args[0],args[1],)) - -elif cmd == 'get_table_objects_by_name': - if len(args) != 2: - print('get_table_objects_by_name requires 2 args') - sys.exit(1) - pp.pprint(client.get_table_objects_by_name(args[0],eval(args[1]),)) - -elif cmd == 'get_table_names_by_filter': - if len(args) != 3: - print('get_table_names_by_filter requires 3 args') - sys.exit(1) - pp.pprint(client.get_table_names_by_filter(args[0],args[1],eval(args[2]),)) - -elif cmd == 'alter_table': - if len(args) != 3: - print('alter_table requires 3 args') - sys.exit(1) - pp.pprint(client.alter_table(args[0],args[1],eval(args[2]),)) - -elif cmd == 'alter_table_with_environment_context': - if len(args) != 4: - print('alter_table_with_environment_context requires 4 args') - sys.exit(1) - pp.pprint(client.alter_table_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),)) - -elif cmd == 'alter_table_with_cascade': - if len(args) != 4: - print('alter_table_with_cascade requires 4 args') - sys.exit(1) - pp.pprint(client.alter_table_with_cascade(args[0],args[1],eval(args[2]),eval(args[3]),)) - -elif cmd == 'add_partition': - if len(args) != 1: - print('add_partition requires 1 args') - sys.exit(1) - pp.pprint(client.add_partition(eval(args[0]),)) - -elif cmd == 'add_partition_with_environment_context': - if len(args) != 2: - print('add_partition_with_environment_context requires 2 args') - sys.exit(1) - pp.pprint(client.add_partition_with_environment_context(eval(args[0]),eval(args[1]),)) - -elif cmd == 'add_partitions': - if len(args) != 1: - print('add_partitions requires 1 args') - sys.exit(1) - pp.pprint(client.add_partitions(eval(args[0]),)) - -elif cmd == 'add_partitions_pspec': - if len(args) != 1: - print('add_partitions_pspec requires 1 args') - sys.exit(1) - pp.pprint(client.add_partitions_pspec(eval(args[0]),)) - -elif cmd == 'append_partition': - if len(args) != 3: - print('append_partition requires 3 args') - sys.exit(1) - pp.pprint(client.append_partition(args[0],args[1],eval(args[2]),)) - -elif cmd == 'add_partitions_req': - if len(args) != 1: - print('add_partitions_req requires 1 args') - sys.exit(1) - pp.pprint(client.add_partitions_req(eval(args[0]),)) - -elif cmd == 'append_partition_with_environment_context': - if len(args) != 4: - print('append_partition_with_environment_context requires 4 args') - sys.exit(1) - pp.pprint(client.append_partition_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),)) - -elif cmd == 'append_partition_by_name': - if len(args) != 3: - print('append_partition_by_name requires 3 args') - sys.exit(1) - pp.pprint(client.append_partition_by_name(args[0],args[1],args[2],)) - -elif cmd == 'append_partition_by_name_with_environment_context': - if len(args) != 4: - print('append_partition_by_name_with_environment_context requires 4 args') - sys.exit(1) - pp.pprint(client.append_partition_by_name_with_environment_context(args[0],args[1],args[2],eval(args[3]),)) - -elif cmd == 'drop_partition': - if len(args) != 4: - print('drop_partition requires 4 args') - sys.exit(1) - pp.pprint(client.drop_partition(args[0],args[1],eval(args[2]),eval(args[3]),)) - -elif cmd == 'drop_partition_with_environment_context': - if len(args) != 5: - print('drop_partition_with_environment_context requires 5 args') - sys.exit(1) - pp.pprint(client.drop_partition_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),eval(args[4]),)) - -elif cmd == 'drop_partition_by_name': - if len(args) != 4: - print('drop_partition_by_name requires 4 args') - sys.exit(1) - pp.pprint(client.drop_partition_by_name(args[0],args[1],args[2],eval(args[3]),)) - -elif cmd == 'drop_partition_by_name_with_environment_context': - if len(args) != 5: - print('drop_partition_by_name_with_environment_context requires 5 args') - sys.exit(1) - pp.pprint(client.drop_partition_by_name_with_environment_context(args[0],args[1],args[2],eval(args[3]),eval(args[4]),)) - -elif cmd == 'drop_partitions_req': - if len(args) != 1: - print('drop_partitions_req requires 1 args') - sys.exit(1) - pp.pprint(client.drop_partitions_req(eval(args[0]),)) - -elif cmd == 'get_partition': - if len(args) != 3: - print('get_partition requires 3 args') - sys.exit(1) - pp.pprint(client.get_partition(args[0],args[1],eval(args[2]),)) - -elif cmd == 'exchange_partition': - if len(args) != 5: - print('exchange_partition requires 5 args') - sys.exit(1) - pp.pprint(client.exchange_partition(eval(args[0]),args[1],args[2],args[3],args[4],)) - -elif cmd == 'get_partition_with_auth': - if len(args) != 5: - print('get_partition_with_auth requires 5 args') - sys.exit(1) - pp.pprint(client.get_partition_with_auth(args[0],args[1],eval(args[2]),args[3],eval(args[4]),)) - -elif cmd == 'get_partition_by_name': - if len(args) != 3: - print('get_partition_by_name requires 3 args') - sys.exit(1) - pp.pprint(client.get_partition_by_name(args[0],args[1],args[2],)) - -elif cmd == 'get_partitions': - if len(args) != 3: - print('get_partitions requires 3 args') - sys.exit(1) - pp.pprint(client.get_partitions(args[0],args[1],eval(args[2]),)) - -elif cmd == 'get_partitions_with_auth': - if len(args) != 5: - print('get_partitions_with_auth requires 5 args') - sys.exit(1) - pp.pprint(client.get_partitions_with_auth(args[0],args[1],eval(args[2]),args[3],eval(args[4]),)) - -elif cmd == 'get_partitions_pspec': - if len(args) != 3: - print('get_partitions_pspec requires 3 args') - sys.exit(1) - pp.pprint(client.get_partitions_pspec(args[0],args[1],eval(args[2]),)) - -elif cmd == 'get_partition_names': - if len(args) != 3: - print('get_partition_names requires 3 args') - sys.exit(1) - pp.pprint(client.get_partition_names(args[0],args[1],eval(args[2]),)) - -elif cmd == 'get_partitions_ps': - if len(args) != 4: - print('get_partitions_ps requires 4 args') - sys.exit(1) - pp.pprint(client.get_partitions_ps(args[0],args[1],eval(args[2]),eval(args[3]),)) - -elif cmd == 'get_partitions_ps_with_auth': - if len(args) != 6: - print('get_partitions_ps_with_auth requires 6 args') - sys.exit(1) - pp.pprint(client.get_partitions_ps_with_auth(args[0],args[1],eval(args[2]),eval(args[3]),args[4],eval(args[5]),)) - -elif cmd == 'get_partition_names_ps': - if len(args) != 4: - print('get_partition_names_ps requires 4 args') - sys.exit(1) - pp.pprint(client.get_partition_names_ps(args[0],args[1],eval(args[2]),eval(args[3]),)) - -elif cmd == 'get_partitions_by_filter': - if len(args) != 4: - print('get_partitions_by_filter requires 4 args') - sys.exit(1) - pp.pprint(client.get_partitions_by_filter(args[0],args[1],args[2],eval(args[3]),)) - -elif cmd == 'get_part_specs_by_filter': - if len(args) != 4: - print('get_part_specs_by_filter requires 4 args') - sys.exit(1) - pp.pprint(client.get_part_specs_by_filter(args[0],args[1],args[2],eval(args[3]),)) - -elif cmd == 'get_partitions_by_expr': - if len(args) != 1: - print('get_partitions_by_expr requires 1 args') - sys.exit(1) - pp.pprint(client.get_partitions_by_expr(eval(args[0]),)) - -elif cmd == 'get_partitions_by_names': - if len(args) != 3: - print('get_partitions_by_names requires 3 args') - sys.exit(1) - pp.pprint(client.get_partitions_by_names(args[0],args[1],eval(args[2]),)) - -elif cmd == 'alter_partition': - if len(args) != 3: - print('alter_partition requires 3 args') - sys.exit(1) - pp.pprint(client.alter_partition(args[0],args[1],eval(args[2]),)) - -elif cmd == 'alter_partitions': - if len(args) != 3: - print('alter_partitions requires 3 args') - sys.exit(1) - pp.pprint(client.alter_partitions(args[0],args[1],eval(args[2]),)) - -elif cmd == 'alter_partition_with_environment_context': - if len(args) != 4: - print('alter_partition_with_environment_context requires 4 args') - sys.exit(1) - pp.pprint(client.alter_partition_with_environment_context(args[0],args[1],eval(args[2]),eval(args[3]),)) - -elif cmd == 'rename_partition': - if len(args) != 4: - print('rename_partition requires 4 args') - sys.exit(1) - pp.pprint(client.rename_partition(args[0],args[1],eval(args[2]),eval(args[3]),)) - -elif cmd == 'partition_name_has_valid_characters': - if len(args) != 2: - print('partition_name_has_valid_characters requires 2 args') - sys.exit(1) - pp.pprint(client.partition_name_has_valid_characters(eval(args[0]),eval(args[1]),)) - -elif cmd == 'get_config_value': - if len(args) != 2: - print('get_config_value requires 2 args') - sys.exit(1) - pp.pprint(client.get_config_value(args[0],args[1],)) - -elif cmd == 'partition_name_to_vals': - if len(args) != 1: - print('partition_name_to_vals requires 1 args') - sys.exit(1) - pp.pprint(client.partition_name_to_vals(args[0],)) - -elif cmd == 'partition_name_to_spec': - if len(args) != 1: - print('partition_name_to_spec requires 1 args') - sys.exit(1) - pp.pprint(client.partition_name_to_spec(args[0],)) - -elif cmd == 'markPartitionForEvent': - if len(args) != 4: - print('markPartitionForEvent requires 4 args') - sys.exit(1) - pp.pprint(client.markPartitionForEvent(args[0],args[1],eval(args[2]),eval(args[3]),)) - -elif cmd == 'isPartitionMarkedForEvent': - if len(args) != 4: - print('isPartitionMarkedForEvent requires 4 args') - sys.exit(1) - pp.pprint(client.isPartitionMarkedForEvent(args[0],args[1],eval(args[2]),eval(args[3]),)) - -elif cmd == 'add_index': - if len(args) != 2: - print('add_index requires 2 args') - sys.exit(1) - pp.pprint(client.add_index(eval(args[0]),eval(args[1]),)) - -elif cmd == 'alter_index': - if len(args) != 4: - print('alter_index requires 4 args') - sys.exit(1) - pp.pprint(client.alter_index(args[0],args[1],args[2],eval(args[3]),)) - -elif cmd == 'drop_index_by_name': - if len(args) != 4: - print('drop_index_by_name requires 4 args') - sys.exit(1) - pp.pprint(client.drop_index_by_name(args[0],args[1],args[2],eval(args[3]),)) - -elif cmd == 'get_index_by_name': - if len(args) != 3: - print('get_index_by_name requires 3 args') - sys.exit(1) - pp.pprint(client.get_index_by_name(args[0],args[1],args[2],)) - -elif cmd == 'get_indexes': - if len(args) != 3: - print('get_indexes requires 3 args') - sys.exit(1) - pp.pprint(client.get_indexes(args[0],args[1],eval(args[2]),)) - -elif cmd == 'get_index_names': - if len(args) != 3: - print('get_index_names requires 3 args') - sys.exit(1) - pp.pprint(client.get_index_names(args[0],args[1],eval(args[2]),)) - -elif cmd == 'update_table_column_statistics': - if len(args) != 1: - print('update_table_column_statistics requires 1 args') - sys.exit(1) - pp.pprint(client.update_table_column_statistics(eval(args[0]),)) - -elif cmd == 'update_partition_column_statistics': - if len(args) != 1: - print('update_partition_column_statistics requires 1 args') - sys.exit(1) - pp.pprint(client.update_partition_column_statistics(eval(args[0]),)) - -elif cmd == 'get_table_column_statistics': - if len(args) != 3: - print('get_table_column_statistics requires 3 args') - sys.exit(1) - pp.pprint(client.get_table_column_statistics(args[0],args[1],args[2],)) - -elif cmd == 'get_partition_column_statistics': - if len(args) != 4: - print('get_partition_column_statistics requires 4 args') - sys.exit(1) - pp.pprint(client.get_partition_column_statistics(args[0],args[1],args[2],args[3],)) - -elif cmd == 'get_table_statistics_req': - if len(args) != 1: - print('get_table_statistics_req requires 1 args') - sys.exit(1) - pp.pprint(client.get_table_statistics_req(eval(args[0]),)) - -elif cmd == 'get_partitions_statistics_req': - if len(args) != 1: - print('get_partitions_statistics_req requires 1 args') - sys.exit(1) - pp.pprint(client.get_partitions_statistics_req(eval(args[0]),)) - -elif cmd == 'get_aggr_stats_for': - if len(args) != 1: - print('get_aggr_stats_for requires 1 args') - sys.exit(1) - pp.pprint(client.get_aggr_stats_for(eval(args[0]),)) - -elif cmd == 'set_aggr_stats_for': - if len(args) != 1: - print('set_aggr_stats_for requires 1 args') - sys.exit(1) - pp.pprint(client.set_aggr_stats_for(eval(args[0]),)) - -elif cmd == 'delete_partition_column_statistics': - if len(args) != 4: - print('delete_partition_column_statistics requires 4 args') - sys.exit(1) - pp.pprint(client.delete_partition_column_statistics(args[0],args[1],args[2],args[3],)) - -elif cmd == 'delete_table_column_statistics': - if len(args) != 3: - print('delete_table_column_statistics requires 3 args') - sys.exit(1) - pp.pprint(client.delete_table_column_statistics(args[0],args[1],args[2],)) - -elif cmd == 'create_function': - if len(args) != 1: - print('create_function requires 1 args') - sys.exit(1) - pp.pprint(client.create_function(eval(args[0]),)) - -elif cmd == 'drop_function': - if len(args) != 2: - print('drop_function requires 2 args') - sys.exit(1) - pp.pprint(client.drop_function(args[0],args[1],)) - -elif cmd == 'alter_function': - if len(args) != 3: - print('alter_function requires 3 args') - sys.exit(1) - pp.pprint(client.alter_function(args[0],args[1],eval(args[2]),)) - -elif cmd == 'get_functions': - if len(args) != 2: - print('get_functions requires 2 args') - sys.exit(1) - pp.pprint(client.get_functions(args[0],args[1],)) - -elif cmd == 'get_function': - if len(args) != 2: - print('get_function requires 2 args') - sys.exit(1) - pp.pprint(client.get_function(args[0],args[1],)) - -elif cmd == 'get_all_functions': - if len(args) != 0: - print('get_all_functions requires 0 args') - sys.exit(1) - pp.pprint(client.get_all_functions()) - -elif cmd == 'create_role': - if len(args) != 1: - print('create_role requires 1 args') - sys.exit(1) - pp.pprint(client.create_role(eval(args[0]),)) - -elif cmd == 'drop_role': - if len(args) != 1: - print('drop_role requires 1 args') - sys.exit(1) - pp.pprint(client.drop_role(args[0],)) - -elif cmd == 'get_role_names': - if len(args) != 0: - print('get_role_names requires 0 args') - sys.exit(1) - pp.pprint(client.get_role_names()) - -elif cmd == 'grant_role': - if len(args) != 6: - print('grant_role requires 6 args') - sys.exit(1) - pp.pprint(client.grant_role(args[0],args[1],eval(args[2]),args[3],eval(args[4]),eval(args[5]),)) - -elif cmd == 'revoke_role': - if len(args) != 3: - print('revoke_role requires 3 args') - sys.exit(1) - pp.pprint(client.revoke_role(args[0],args[1],eval(args[2]),)) - -elif cmd == 'list_roles': - if len(args) != 2: - print('list_roles requires 2 args') - sys.exit(1) - pp.pprint(client.list_roles(args[0],eval(args[1]),)) - -elif cmd == 'grant_revoke_role': - if len(args) != 1: - print('grant_revoke_role requires 1 args') - sys.exit(1) - pp.pprint(client.grant_revoke_role(eval(args[0]),)) - -elif cmd == 'get_principals_in_role': - if len(args) != 1: - print('get_principals_in_role requires 1 args') - sys.exit(1) - pp.pprint(client.get_principals_in_role(eval(args[0]),)) - -elif cmd == 'get_role_grants_for_principal': - if len(args) != 1: - print('get_role_grants_for_principal requires 1 args') - sys.exit(1) - pp.pprint(client.get_role_grants_for_principal(eval(args[0]),)) - -elif cmd == 'get_privilege_set': - if len(args) != 3: - print('get_privilege_set requires 3 args') - sys.exit(1) - pp.pprint(client.get_privilege_set(eval(args[0]),args[1],eval(args[2]),)) - -elif cmd == 'list_privileges': - if len(args) != 3: - print('list_privileges requires 3 args') - sys.exit(1) - pp.pprint(client.list_privileges(args[0],eval(args[1]),eval(args[2]),)) - -elif cmd == 'grant_privileges': - if len(args) != 1: - print('grant_privileges requires 1 args') - sys.exit(1) - pp.pprint(client.grant_privileges(eval(args[0]),)) - -elif cmd == 'revoke_privileges': - if len(args) != 1: - print('revoke_privileges requires 1 args') - sys.exit(1) - pp.pprint(client.revoke_privileges(eval(args[0]),)) - -elif cmd == 'grant_revoke_privileges': - if len(args) != 1: - print('grant_revoke_privileges requires 1 args') - sys.exit(1) - pp.pprint(client.grant_revoke_privileges(eval(args[0]),)) - -elif cmd == 'set_ugi': - if len(args) != 2: - print('set_ugi requires 2 args') - sys.exit(1) - pp.pprint(client.set_ugi(args[0],eval(args[1]),)) - -elif cmd == 'get_delegation_token': - if len(args) != 2: - print('get_delegation_token requires 2 args') - sys.exit(1) - pp.pprint(client.get_delegation_token(args[0],args[1],)) - -elif cmd == 'renew_delegation_token': - if len(args) != 1: - print('renew_delegation_token requires 1 args') - sys.exit(1) - pp.pprint(client.renew_delegation_token(args[0],)) - -elif cmd == 'cancel_delegation_token': - if len(args) != 1: - print('cancel_delegation_token requires 1 args') - sys.exit(1) - pp.pprint(client.cancel_delegation_token(args[0],)) - -elif cmd == 'get_open_txns': - if len(args) != 0: - print('get_open_txns requires 0 args') - sys.exit(1) - pp.pprint(client.get_open_txns()) - -elif cmd == 'get_open_txns_info': - if len(args) != 0: - print('get_open_txns_info requires 0 args') - sys.exit(1) - pp.pprint(client.get_open_txns_info()) - -elif cmd == 'open_txns': - if len(args) != 1: - print('open_txns requires 1 args') - sys.exit(1) - pp.pprint(client.open_txns(eval(args[0]),)) - -elif cmd == 'abort_txn': - if len(args) != 1: - print('abort_txn requires 1 args') - sys.exit(1) - pp.pprint(client.abort_txn(eval(args[0]),)) - -elif cmd == 'commit_txn': - if len(args) != 1: - print('commit_txn requires 1 args') - sys.exit(1) - pp.pprint(client.commit_txn(eval(args[0]),)) - -elif cmd == 'lock': - if len(args) != 1: - print('lock requires 1 args') - sys.exit(1) - pp.pprint(client.lock(eval(args[0]),)) - -elif cmd == 'check_lock': - if len(args) != 1: - print('check_lock requires 1 args') - sys.exit(1) - pp.pprint(client.check_lock(eval(args[0]),)) - -elif cmd == 'unlock': - if len(args) != 1: - print('unlock requires 1 args') - sys.exit(1) - pp.pprint(client.unlock(eval(args[0]),)) - -elif cmd == 'show_locks': - if len(args) != 1: - print('show_locks requires 1 args') - sys.exit(1) - pp.pprint(client.show_locks(eval(args[0]),)) - -elif cmd == 'heartbeat': - if len(args) != 1: - print('heartbeat requires 1 args') - sys.exit(1) - pp.pprint(client.heartbeat(eval(args[0]),)) - -elif cmd == 'heartbeat_txn_range': - if len(args) != 1: - print('heartbeat_txn_range requires 1 args') - sys.exit(1) - pp.pprint(client.heartbeat_txn_range(eval(args[0]),)) - -elif cmd == 'compact': - if len(args) != 1: - print('compact requires 1 args') - sys.exit(1) - pp.pprint(client.compact(eval(args[0]),)) - -elif cmd == 'show_compact': - if len(args) != 1: - print('show_compact requires 1 args') - sys.exit(1) - pp.pprint(client.show_compact(eval(args[0]),)) - -elif cmd == 'add_dynamic_partitions': - if len(args) != 1: - print('add_dynamic_partitions requires 1 args') - sys.exit(1) - pp.pprint(client.add_dynamic_partitions(eval(args[0]),)) - -elif cmd == 'get_next_notification': - if len(args) != 1: - print('get_next_notification requires 1 args') - sys.exit(1) - pp.pprint(client.get_next_notification(eval(args[0]),)) - -elif cmd == 'get_current_notificationEventId': - if len(args) != 0: - print('get_current_notificationEventId requires 0 args') - sys.exit(1) - pp.pprint(client.get_current_notificationEventId()) - -elif cmd == 'fire_listener_event': - if len(args) != 1: - print('fire_listener_event requires 1 args') - sys.exit(1) - pp.pprint(client.fire_listener_event(eval(args[0]),)) - -elif cmd == 'getName': - if len(args) != 0: - print('getName requires 0 args') - sys.exit(1) - pp.pprint(client.getName()) - -elif cmd == 'getVersion': - if len(args) != 0: - print('getVersion requires 0 args') - sys.exit(1) - pp.pprint(client.getVersion()) - -elif cmd == 'getStatus': - if len(args) != 0: - print('getStatus requires 0 args') - sys.exit(1) - pp.pprint(client.getStatus()) - -elif cmd == 'getStatusDetails': - if len(args) != 0: - print('getStatusDetails requires 0 args') - sys.exit(1) - pp.pprint(client.getStatusDetails()) - -elif cmd == 'getCounters': - if len(args) != 0: - print('getCounters requires 0 args') - sys.exit(1) - pp.pprint(client.getCounters()) - -elif cmd == 'getCounter': - if len(args) != 1: - print('getCounter requires 1 args') - sys.exit(1) - pp.pprint(client.getCounter(args[0],)) - -elif cmd == 'setOption': - if len(args) != 2: - print('setOption requires 2 args') - sys.exit(1) - pp.pprint(client.setOption(args[0],args[1],)) - -elif cmd == 'getOption': - if len(args) != 1: - print('getOption requires 1 args') - sys.exit(1) - pp.pprint(client.getOption(args[0],)) - -elif cmd == 'getOptions': - if len(args) != 0: - print('getOptions requires 0 args') - sys.exit(1) - pp.pprint(client.getOptions()) - -elif cmd == 'aliveSince': - if len(args) != 0: - print('aliveSince requires 0 args') - sys.exit(1) - pp.pprint(client.aliveSince()) - -elif cmd == 'getLimitedReflection': - if len(args) != 0: - print('getLimitedReflection requires 0 args') - sys.exit(1) - pp.pprint(client.getLimitedReflection()) - -elif cmd == 'reinitialize': - if len(args) != 0: - print('reinitialize requires 0 args') - sys.exit(1) - pp.pprint(client.reinitialize()) - -elif cmd == 'shutdown': - if len(args) != 0: - print('shutdown requires 0 args') - sys.exit(1) - pp.pprint(client.shutdown()) - else: - print('Unrecognized method %s' % cmd) + print 'Unrecognized method %s' % cmd sys.exit(1) transport.close() diff --git a/service/src/gen/thrift/gen-py/hive_service/ThriftHive.py b/service/src/gen/thrift/gen-py/hive_service/ThriftHive.py index 177531d..33912f9 100644 --- a/service/src/gen/thrift/gen-py/hive_service/ThriftHive.py +++ b/service/src/gen/thrift/gen-py/hive_service/ThriftHive.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -26,7 +26,7 @@ def execute(self, query): """ pass - def fetchOne(self): + def fetchOne(self, ): pass def fetchN(self, numRows): @@ -36,22 +36,22 @@ def fetchN(self, numRows): """ pass - def fetchAll(self): + def fetchAll(self, ): pass - def getSchema(self): + def getSchema(self, ): pass - def getThriftSchema(self): + def getThriftSchema(self, ): pass - def getClusterStatus(self): + def getClusterStatus(self, ): pass - def getQueryPlan(self): + def getQueryPlan(self, ): pass - def clean(self): + def clean(self, ): pass @@ -75,43 +75,41 @@ def send_execute(self, query): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_execute(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_execute(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = execute_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.ex is not None: raise result.ex return - def fetchOne(self): + def fetchOne(self, ): self.send_fetchOne() return self.recv_fetchOne() - def send_fetchOne(self): + def send_fetchOne(self, ): self._oprot.writeMessageBegin('fetchOne', TMessageType.CALL, self._seqid) args = fetchOne_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_fetchOne(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_fetchOne(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = fetchOne_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ex is not None: @@ -134,185 +132,178 @@ def send_fetchN(self, numRows): self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_fetchN(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_fetchN(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = fetchN_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ex is not None: raise result.ex raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchN failed: unknown result"); - def fetchAll(self): + def fetchAll(self, ): self.send_fetchAll() return self.recv_fetchAll() - def send_fetchAll(self): + def send_fetchAll(self, ): self._oprot.writeMessageBegin('fetchAll', TMessageType.CALL, self._seqid) args = fetchAll_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_fetchAll(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_fetchAll(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = fetchAll_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ex is not None: raise result.ex raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchAll failed: unknown result"); - def getSchema(self): + def getSchema(self, ): self.send_getSchema() return self.recv_getSchema() - def send_getSchema(self): + def send_getSchema(self, ): self._oprot.writeMessageBegin('getSchema', TMessageType.CALL, self._seqid) args = getSchema_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getSchema(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_getSchema(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = getSchema_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ex is not None: raise result.ex raise TApplicationException(TApplicationException.MISSING_RESULT, "getSchema failed: unknown result"); - def getThriftSchema(self): + def getThriftSchema(self, ): self.send_getThriftSchema() return self.recv_getThriftSchema() - def send_getThriftSchema(self): + def send_getThriftSchema(self, ): self._oprot.writeMessageBegin('getThriftSchema', TMessageType.CALL, self._seqid) args = getThriftSchema_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getThriftSchema(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_getThriftSchema(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = getThriftSchema_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ex is not None: raise result.ex raise TApplicationException(TApplicationException.MISSING_RESULT, "getThriftSchema failed: unknown result"); - def getClusterStatus(self): + def getClusterStatus(self, ): self.send_getClusterStatus() return self.recv_getClusterStatus() - def send_getClusterStatus(self): + def send_getClusterStatus(self, ): self._oprot.writeMessageBegin('getClusterStatus', TMessageType.CALL, self._seqid) args = getClusterStatus_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getClusterStatus(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_getClusterStatus(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = getClusterStatus_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ex is not None: raise result.ex raise TApplicationException(TApplicationException.MISSING_RESULT, "getClusterStatus failed: unknown result"); - def getQueryPlan(self): + def getQueryPlan(self, ): self.send_getQueryPlan() return self.recv_getQueryPlan() - def send_getQueryPlan(self): + def send_getQueryPlan(self, ): self._oprot.writeMessageBegin('getQueryPlan', TMessageType.CALL, self._seqid) args = getQueryPlan_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_getQueryPlan(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_getQueryPlan(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = getQueryPlan_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() if result.success is not None: return result.success if result.ex is not None: raise result.ex raise TApplicationException(TApplicationException.MISSING_RESULT, "getQueryPlan failed: unknown result"); - def clean(self): + def clean(self, ): self.send_clean() self.recv_clean() - def send_clean(self): + def send_clean(self, ): self._oprot.writeMessageBegin('clean', TMessageType.CALL, self._seqid) args = clean_args() args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() - def recv_clean(self): - iprot = self._iprot - (fname, mtype, rseqid) = iprot.readMessageBegin() + def recv_clean(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() - x.read(iprot) - iprot.readMessageEnd() + x.read(self._iprot) + self._iprot.readMessageEnd() raise x result = clean_result() - result.read(iprot) - iprot.readMessageEnd() + result.read(self._iprot) + self._iprot.readMessageEnd() return @@ -351,7 +342,7 @@ def process_execute(self, seqid, iprot, oprot): result = execute_result() try: self._handler.execute(args.query) - except HiveServerException, ex: + except HiveServerException as ex: result.ex = ex oprot.writeMessageBegin("execute", TMessageType.REPLY, seqid) result.write(oprot) @@ -365,7 +356,7 @@ def process_fetchOne(self, seqid, iprot, oprot): result = fetchOne_result() try: result.success = self._handler.fetchOne() - except HiveServerException, ex: + except HiveServerException as ex: result.ex = ex oprot.writeMessageBegin("fetchOne", TMessageType.REPLY, seqid) result.write(oprot) @@ -379,7 +370,7 @@ def process_fetchN(self, seqid, iprot, oprot): result = fetchN_result() try: result.success = self._handler.fetchN(args.numRows) - except HiveServerException, ex: + except HiveServerException as ex: result.ex = ex oprot.writeMessageBegin("fetchN", TMessageType.REPLY, seqid) result.write(oprot) @@ -393,7 +384,7 @@ def process_fetchAll(self, seqid, iprot, oprot): result = fetchAll_result() try: result.success = self._handler.fetchAll() - except HiveServerException, ex: + except HiveServerException as ex: result.ex = ex oprot.writeMessageBegin("fetchAll", TMessageType.REPLY, seqid) result.write(oprot) @@ -407,7 +398,7 @@ def process_getSchema(self, seqid, iprot, oprot): result = getSchema_result() try: result.success = self._handler.getSchema() - except HiveServerException, ex: + except HiveServerException as ex: result.ex = ex oprot.writeMessageBegin("getSchema", TMessageType.REPLY, seqid) result.write(oprot) @@ -421,7 +412,7 @@ def process_getThriftSchema(self, seqid, iprot, oprot): result = getThriftSchema_result() try: result.success = self._handler.getThriftSchema() - except HiveServerException, ex: + except HiveServerException as ex: result.ex = ex oprot.writeMessageBegin("getThriftSchema", TMessageType.REPLY, seqid) result.write(oprot) @@ -435,7 +426,7 @@ def process_getClusterStatus(self, seqid, iprot, oprot): result = getClusterStatus_result() try: result.success = self._handler.getClusterStatus() - except HiveServerException, ex: + except HiveServerException as ex: result.ex = ex oprot.writeMessageBegin("getClusterStatus", TMessageType.REPLY, seqid) result.write(oprot) @@ -449,7 +440,7 @@ def process_getQueryPlan(self, seqid, iprot, oprot): result = getQueryPlan_result() try: result.success = self._handler.getQueryPlan() - except HiveServerException, ex: + except HiveServerException as ex: result.ex = ex oprot.writeMessageBegin("getQueryPlan", TMessageType.REPLY, seqid) result.write(oprot) @@ -519,11 +510,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.query) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -585,11 +571,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.ex) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -632,10 +613,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -708,12 +685,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ex) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -774,11 +745,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.numRows) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -859,12 +825,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ex) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -907,10 +867,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -991,12 +947,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ex) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1039,10 +989,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1116,12 +1062,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ex) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1164,10 +1104,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1241,12 +1177,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ex) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1289,10 +1219,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1366,12 +1292,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ex) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1414,10 +1334,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1491,12 +1407,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.success) - value = (value * 31) ^ hash(self.ex) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1539,10 +1449,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -1585,10 +1491,6 @@ def validate(self): return - def __hash__(self): - value = 17 - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/service/src/gen/thrift/gen-py/hive_service/constants.py b/service/src/gen/thrift/gen-py/hive_service/constants.py index 99717a9..a236326 100644 --- a/service/src/gen/thrift/gen-py/hive_service/constants.py +++ b/service/src/gen/thrift/gen-py/hive_service/constants.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/service/src/gen/thrift/gen-py/hive_service/ttypes.py b/service/src/gen/thrift/gen-py/hive_service/ttypes.py index 29eb916..e5f4095 100644 --- a/service/src/gen/thrift/gen-py/hive_service/ttypes.py +++ b/service/src/gen/thrift/gen-py/hive_service/ttypes.py @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @@ -144,16 +144,6 @@ def validate(self): return - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.taskTrackers) - value = (value * 31) ^ hash(self.mapTasks) - value = (value * 31) ^ hash(self.reduceTasks) - value = (value * 31) ^ hash(self.maxMapTasks) - value = (value * 31) ^ hash(self.maxReduceTasks) - value = (value * 31) ^ hash(self.state) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] @@ -241,13 +231,6 @@ def validate(self): def __str__(self): return repr(self) - def __hash__(self): - value = 17 - value = (value * 31) ^ hash(self.message) - value = (value * 31) ^ hash(self.errorCode) - value = (value * 31) ^ hash(self.SQLState) - return value - def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.iteritems()] diff --git a/service/src/gen/thrift/gen-rb/hive_service_constants.rb b/service/src/gen/thrift/gen-rb/hive_service_constants.rb index 73f4d7b..0f908b5 100644 --- a/service/src/gen/thrift/gen-rb/hive_service_constants.rb +++ b/service/src/gen/thrift/gen-rb/hive_service_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/service/src/gen/thrift/gen-rb/hive_service_types.rb b/service/src/gen/thrift/gen-rb/hive_service_types.rb index f97a6fb..e5913bd 100644 --- a/service/src/gen/thrift/gen-rb/hive_service_types.rb +++ b/service/src/gen/thrift/gen-rb/hive_service_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/service/src/gen/thrift/gen-rb/t_c_l_i_service.rb b/service/src/gen/thrift/gen-rb/t_c_l_i_service.rb index f754d7d..fd1ca9a 100644 --- a/service/src/gen/thrift/gen-rb/t_c_l_i_service.rb +++ b/service/src/gen/thrift/gen-rb/t_c_l_i_service.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/service/src/gen/thrift/gen-rb/t_c_l_i_service_constants.rb b/service/src/gen/thrift/gen-rb/t_c_l_i_service_constants.rb index 3f72769..4b8ddae 100644 --- a/service/src/gen/thrift/gen-rb/t_c_l_i_service_constants.rb +++ b/service/src/gen/thrift/gen-rb/t_c_l_i_service_constants.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb b/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb index bfb2b69..b482533 100644 --- a/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb +++ b/service/src/gen/thrift/gen-rb/t_c_l_i_service_types.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # diff --git a/service/src/gen/thrift/gen-rb/thrift_hive.rb b/service/src/gen/thrift/gen-rb/thrift_hive.rb index 6859ceb..8da94bb 100644 --- a/service/src/gen/thrift/gen-rb/thrift_hive.rb +++ b/service/src/gen/thrift/gen-rb/thrift_hive.rb @@ -1,5 +1,5 @@ # -# Autogenerated by Thrift Compiler (0.9.2) +# Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING #