diff --git metastore/if/hive_metastore.thrift metastore/if/hive_metastore.thrift index eef1b80..5a40ba6 100755 --- metastore/if/hive_metastore.thrift +++ metastore/if/hive_metastore.thrift @@ -799,6 +799,9 @@ service ThriftHiveMetastore extends fb303.FacebookService list get_partition_names(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1) throws(1:MetaException o2) + list get_partition_names_by_filter(1:string db_name, 2:string tbl_name, 3:string filter, 4:i16 max_parts=-1) + throws(1:MetaException o2) + // get_partition*_ps methods allow filtering by a partial partition specification, // as needed for dynamic partitions. The values that are not restricted should // be empty strings. Nulls were considered (instead of "") but caused errors in diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 9567874..52348ee 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -10553,7 +10553,7 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: return xfer; } -uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partition_names_by_filter_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -10590,17 +10590,279 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::prot } 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_partition_names_by_filter_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_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_partition_names_by_filter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_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_partition_names_by_filter_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_LIST) { { - this->part_vals.clear(); + this->success.clear(); uint32_t _size574; ::apache::thrift::protocol::TType _etype577; xfer += iprot->readListBegin(_etype577, _size574); - this->part_vals.resize(_size574); + this->success.resize(_size574); uint32_t _i578; for (_i578 = 0; _i578 < _size574; ++_i578) { - xfer += iprot->readString(this->part_vals[_i578]); + xfer += iprot->readString(this->success[_i578]); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + 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_partition_names_by_filter_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_by_filter_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); + std::vector ::const_iterator _iter579; + for (_iter579 = this->success.begin(); _iter579 != this->success.end(); ++_iter579) + { + xfer += oprot->writeString((*_iter579)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_get_partition_names_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_LIST) { + { + (*(this->success)).clear(); + uint32_t _size580; + ::apache::thrift::protocol::TType _etype583; + xfer += iprot->readListBegin(_etype583, _size580); + (*(this->success)).resize(_size580); + uint32_t _i584; + for (_i584 = 0; _i584 < _size580; ++_i584) + { + xfer += iprot->readString((*(this->success))[_i584]); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + 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_ps_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_LIST) { + { + this->part_vals.clear(); + uint32_t _size585; + ::apache::thrift::protocol::TType _etype588; + xfer += iprot->readListBegin(_etype588, _size585); + this->part_vals.resize(_size585); + uint32_t _i589; + for (_i589 = 0; _i589 < _size585; ++_i589) + { + xfer += iprot->readString(this->part_vals[_i589]); } xfer += iprot->readListEnd(); } @@ -10644,10 +10906,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 _iter579; - for (_iter579 = this->part_vals.begin(); _iter579 != this->part_vals.end(); ++_iter579) + std::vector ::const_iterator _iter590; + for (_iter590 = this->part_vals.begin(); _iter590 != this->part_vals.end(); ++_iter590) { - xfer += oprot->writeString((*_iter579)); + xfer += oprot->writeString((*_iter590)); } xfer += oprot->writeListEnd(); } @@ -10677,10 +10939,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 _iter580; - for (_iter580 = (*(this->part_vals)).begin(); _iter580 != (*(this->part_vals)).end(); ++_iter580) + std::vector ::const_iterator _iter591; + for (_iter591 = (*(this->part_vals)).begin(); _iter591 != (*(this->part_vals)).end(); ++_iter591) { - xfer += oprot->writeString((*_iter580)); + xfer += oprot->writeString((*_iter591)); } xfer += oprot->writeListEnd(); } @@ -10719,14 +10981,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size581; - ::apache::thrift::protocol::TType _etype584; - xfer += iprot->readListBegin(_etype584, _size581); - this->success.resize(_size581); - uint32_t _i585; - for (_i585 = 0; _i585 < _size581; ++_i585) + uint32_t _size592; + ::apache::thrift::protocol::TType _etype595; + xfer += iprot->readListBegin(_etype595, _size592); + this->success.resize(_size592); + uint32_t _i596; + for (_i596 = 0; _i596 < _size592; ++_i596) { - xfer += this->success[_i585].read(iprot); + xfer += this->success[_i596].read(iprot); } xfer += iprot->readListEnd(); } @@ -10773,10 +11035,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 _iter586; - for (_iter586 = this->success.begin(); _iter586 != this->success.end(); ++_iter586) + std::vector ::const_iterator _iter597; + for (_iter597 = this->success.begin(); _iter597 != this->success.end(); ++_iter597) { - xfer += (*_iter586).write(oprot); + xfer += (*_iter597).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10819,14 +11081,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size587; - ::apache::thrift::protocol::TType _etype590; - xfer += iprot->readListBegin(_etype590, _size587); - (*(this->success)).resize(_size587); - uint32_t _i591; - for (_i591 = 0; _i591 < _size587; ++_i591) + uint32_t _size598; + ::apache::thrift::protocol::TType _etype601; + xfer += iprot->readListBegin(_etype601, _size598); + (*(this->success)).resize(_size598); + uint32_t _i602; + for (_i602 = 0; _i602 < _size598; ++_i602) { - xfer += (*(this->success))[_i591].read(iprot); + xfer += (*(this->success))[_i602].read(iprot); } xfer += iprot->readListEnd(); } @@ -10903,14 +11165,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 _size592; - ::apache::thrift::protocol::TType _etype595; - xfer += iprot->readListBegin(_etype595, _size592); - this->part_vals.resize(_size592); - uint32_t _i596; - for (_i596 = 0; _i596 < _size592; ++_i596) + uint32_t _size603; + ::apache::thrift::protocol::TType _etype606; + xfer += iprot->readListBegin(_etype606, _size603); + this->part_vals.resize(_size603); + uint32_t _i607; + for (_i607 = 0; _i607 < _size603; ++_i607) { - xfer += iprot->readString(this->part_vals[_i596]); + xfer += iprot->readString(this->part_vals[_i607]); } xfer += iprot->readListEnd(); } @@ -10939,14 +11201,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 _size597; - ::apache::thrift::protocol::TType _etype600; - xfer += iprot->readListBegin(_etype600, _size597); - this->group_names.resize(_size597); - uint32_t _i601; - for (_i601 = 0; _i601 < _size597; ++_i601) + uint32_t _size608; + ::apache::thrift::protocol::TType _etype611; + xfer += iprot->readListBegin(_etype611, _size608); + this->group_names.resize(_size608); + uint32_t _i612; + for (_i612 = 0; _i612 < _size608; ++_i612) { - xfer += iprot->readString(this->group_names[_i601]); + xfer += iprot->readString(this->group_names[_i612]); } xfer += iprot->readListEnd(); } @@ -10982,10 +11244,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 _iter602; - for (_iter602 = this->part_vals.begin(); _iter602 != this->part_vals.end(); ++_iter602) + std::vector ::const_iterator _iter613; + for (_iter613 = this->part_vals.begin(); _iter613 != this->part_vals.end(); ++_iter613) { - xfer += oprot->writeString((*_iter602)); + xfer += oprot->writeString((*_iter613)); } xfer += oprot->writeListEnd(); } @@ -11002,10 +11264,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 _iter603; - for (_iter603 = this->group_names.begin(); _iter603 != this->group_names.end(); ++_iter603) + std::vector ::const_iterator _iter614; + for (_iter614 = this->group_names.begin(); _iter614 != this->group_names.end(); ++_iter614) { - xfer += oprot->writeString((*_iter603)); + xfer += oprot->writeString((*_iter614)); } xfer += oprot->writeListEnd(); } @@ -11031,10 +11293,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 _iter604; - for (_iter604 = (*(this->part_vals)).begin(); _iter604 != (*(this->part_vals)).end(); ++_iter604) + std::vector ::const_iterator _iter615; + for (_iter615 = (*(this->part_vals)).begin(); _iter615 != (*(this->part_vals)).end(); ++_iter615) { - xfer += oprot->writeString((*_iter604)); + xfer += oprot->writeString((*_iter615)); } xfer += oprot->writeListEnd(); } @@ -11051,10 +11313,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 _iter605; - for (_iter605 = (*(this->group_names)).begin(); _iter605 != (*(this->group_names)).end(); ++_iter605) + std::vector ::const_iterator _iter616; + for (_iter616 = (*(this->group_names)).begin(); _iter616 != (*(this->group_names)).end(); ++_iter616) { - xfer += oprot->writeString((*_iter605)); + xfer += oprot->writeString((*_iter616)); } xfer += oprot->writeListEnd(); } @@ -11089,14 +11351,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size606; - ::apache::thrift::protocol::TType _etype609; - xfer += iprot->readListBegin(_etype609, _size606); - this->success.resize(_size606); - uint32_t _i610; - for (_i610 = 0; _i610 < _size606; ++_i610) + uint32_t _size617; + ::apache::thrift::protocol::TType _etype620; + xfer += iprot->readListBegin(_etype620, _size617); + this->success.resize(_size617); + uint32_t _i621; + for (_i621 = 0; _i621 < _size617; ++_i621) { - xfer += this->success[_i610].read(iprot); + xfer += this->success[_i621].read(iprot); } xfer += iprot->readListEnd(); } @@ -11143,10 +11405,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 _iter611; - for (_iter611 = this->success.begin(); _iter611 != this->success.end(); ++_iter611) + std::vector ::const_iterator _iter622; + for (_iter622 = this->success.begin(); _iter622 != this->success.end(); ++_iter622) { - xfer += (*_iter611).write(oprot); + xfer += (*_iter622).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11189,14 +11451,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size612; - ::apache::thrift::protocol::TType _etype615; - xfer += iprot->readListBegin(_etype615, _size612); - (*(this->success)).resize(_size612); - uint32_t _i616; - for (_i616 = 0; _i616 < _size612; ++_i616) + uint32_t _size623; + ::apache::thrift::protocol::TType _etype626; + xfer += iprot->readListBegin(_etype626, _size623); + (*(this->success)).resize(_size623); + uint32_t _i627; + for (_i627 = 0; _i627 < _size623; ++_i627) { - xfer += (*(this->success))[_i616].read(iprot); + xfer += (*(this->success))[_i627].read(iprot); } xfer += iprot->readListEnd(); } @@ -11273,14 +11535,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 _size617; - ::apache::thrift::protocol::TType _etype620; - xfer += iprot->readListBegin(_etype620, _size617); - this->part_vals.resize(_size617); - uint32_t _i621; - for (_i621 = 0; _i621 < _size617; ++_i621) + uint32_t _size628; + ::apache::thrift::protocol::TType _etype631; + xfer += iprot->readListBegin(_etype631, _size628); + this->part_vals.resize(_size628); + uint32_t _i632; + for (_i632 = 0; _i632 < _size628; ++_i632) { - xfer += iprot->readString(this->part_vals[_i621]); + xfer += iprot->readString(this->part_vals[_i632]); } xfer += iprot->readListEnd(); } @@ -11324,10 +11586,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 _iter622; - for (_iter622 = this->part_vals.begin(); _iter622 != this->part_vals.end(); ++_iter622) + std::vector ::const_iterator _iter633; + for (_iter633 = this->part_vals.begin(); _iter633 != this->part_vals.end(); ++_iter633) { - xfer += oprot->writeString((*_iter622)); + xfer += oprot->writeString((*_iter633)); } xfer += oprot->writeListEnd(); } @@ -11357,10 +11619,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 _iter623; - for (_iter623 = (*(this->part_vals)).begin(); _iter623 != (*(this->part_vals)).end(); ++_iter623) + std::vector ::const_iterator _iter634; + for (_iter634 = (*(this->part_vals)).begin(); _iter634 != (*(this->part_vals)).end(); ++_iter634) { - xfer += oprot->writeString((*_iter623)); + xfer += oprot->writeString((*_iter634)); } xfer += oprot->writeListEnd(); } @@ -11399,14 +11661,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size624; - ::apache::thrift::protocol::TType _etype627; - xfer += iprot->readListBegin(_etype627, _size624); - this->success.resize(_size624); - uint32_t _i628; - for (_i628 = 0; _i628 < _size624; ++_i628) + uint32_t _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 += iprot->readString(this->success[_i628]); + xfer += iprot->readString(this->success[_i639]); } xfer += iprot->readListEnd(); } @@ -11453,10 +11715,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 _iter629; - for (_iter629 = this->success.begin(); _iter629 != this->success.end(); ++_iter629) + std::vector ::const_iterator _iter640; + for (_iter640 = this->success.begin(); _iter640 != this->success.end(); ++_iter640) { - xfer += oprot->writeString((*_iter629)); + xfer += oprot->writeString((*_iter640)); } xfer += oprot->writeListEnd(); } @@ -11499,14 +11761,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size630; - ::apache::thrift::protocol::TType _etype633; - xfer += iprot->readListBegin(_etype633, _size630); - (*(this->success)).resize(_size630); - uint32_t _i634; - for (_i634 = 0; _i634 < _size630; ++_i634) + uint32_t _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 += iprot->readString((*(this->success))[_i634]); + xfer += iprot->readString((*(this->success))[_i645]); } xfer += iprot->readListEnd(); } @@ -11676,19 +11938,19 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr break; } switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - 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) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size646; + ::apache::thrift::protocol::TType _etype649; + xfer += iprot->readListBegin(_etype649, _size646); + this->success.resize(_size646); + uint32_t _i650; + for (_i650 = 0; _i650 < _size646; ++_i650) { - xfer += this->success[_i639].read(iprot); + xfer += this->success[_i650].read(iprot); } xfer += iprot->readListEnd(); } @@ -11735,10 +11997,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 _iter640; - for (_iter640 = this->success.begin(); _iter640 != this->success.end(); ++_iter640) + std::vector ::const_iterator _iter651; + for (_iter651 = this->success.begin(); _iter651 != this->success.end(); ++_iter651) { - xfer += (*_iter640).write(oprot); + xfer += (*_iter651).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11781,14 +12043,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size652; + ::apache::thrift::protocol::TType _etype655; + xfer += iprot->readListBegin(_etype655, _size652); + (*(this->success)).resize(_size652); + uint32_t _i656; + for (_i656 = 0; _i656 < _size652; ++_i656) { - xfer += (*(this->success))[_i645].read(iprot); + xfer += (*(this->success))[_i656].read(iprot); } xfer += iprot->readListEnd(); } @@ -12067,14 +12329,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size646; - ::apache::thrift::protocol::TType _etype649; - xfer += iprot->readListBegin(_etype649, _size646); - this->names.resize(_size646); - uint32_t _i650; - for (_i650 = 0; _i650 < _size646; ++_i650) + uint32_t _size657; + ::apache::thrift::protocol::TType _etype660; + xfer += iprot->readListBegin(_etype660, _size657); + this->names.resize(_size657); + uint32_t _i661; + for (_i661 = 0; _i661 < _size657; ++_i661) { - xfer += iprot->readString(this->names[_i650]); + xfer += iprot->readString(this->names[_i661]); } xfer += iprot->readListEnd(); } @@ -12110,10 +12372,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 _iter651; - for (_iter651 = this->names.begin(); _iter651 != this->names.end(); ++_iter651) + std::vector ::const_iterator _iter662; + for (_iter662 = this->names.begin(); _iter662 != this->names.end(); ++_iter662) { - xfer += oprot->writeString((*_iter651)); + xfer += oprot->writeString((*_iter662)); } xfer += oprot->writeListEnd(); } @@ -12139,10 +12401,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 _iter652; - for (_iter652 = (*(this->names)).begin(); _iter652 != (*(this->names)).end(); ++_iter652) + std::vector ::const_iterator _iter663; + for (_iter663 = (*(this->names)).begin(); _iter663 != (*(this->names)).end(); ++_iter663) { - xfer += oprot->writeString((*_iter652)); + xfer += oprot->writeString((*_iter663)); } xfer += oprot->writeListEnd(); } @@ -12177,14 +12439,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + 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[_i657].read(iprot); + xfer += this->success[_i668].read(iprot); } xfer += iprot->readListEnd(); } @@ -12231,10 +12493,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 _iter658; - for (_iter658 = this->success.begin(); _iter658 != this->success.end(); ++_iter658) + std::vector ::const_iterator _iter669; + for (_iter669 = this->success.begin(); _iter669 != this->success.end(); ++_iter669) { - xfer += (*_iter658).write(oprot); + xfer += (*_iter669).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12277,14 +12539,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + 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))[_i663].read(iprot); + xfer += (*(this->success))[_i674].read(iprot); } xfer += iprot->readListEnd(); } @@ -12575,14 +12837,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size664; - ::apache::thrift::protocol::TType _etype667; - xfer += iprot->readListBegin(_etype667, _size664); - this->new_parts.resize(_size664); - uint32_t _i668; - for (_i668 = 0; _i668 < _size664; ++_i668) + uint32_t _size675; + ::apache::thrift::protocol::TType _etype678; + xfer += iprot->readListBegin(_etype678, _size675); + this->new_parts.resize(_size675); + uint32_t _i679; + for (_i679 = 0; _i679 < _size675; ++_i679) { - xfer += this->new_parts[_i668].read(iprot); + xfer += this->new_parts[_i679].read(iprot); } xfer += iprot->readListEnd(); } @@ -12618,10 +12880,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 _iter669; - for (_iter669 = this->new_parts.begin(); _iter669 != this->new_parts.end(); ++_iter669) + std::vector ::const_iterator _iter680; + for (_iter680 = this->new_parts.begin(); _iter680 != this->new_parts.end(); ++_iter680) { - xfer += (*_iter669).write(oprot); + xfer += (*_iter680).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12647,10 +12909,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 _iter670; - for (_iter670 = (*(this->new_parts)).begin(); _iter670 != (*(this->new_parts)).end(); ++_iter670) + std::vector ::const_iterator _iter681; + for (_iter681 = (*(this->new_parts)).begin(); _iter681 != (*(this->new_parts)).end(); ++_iter681) { - xfer += (*_iter670).write(oprot); + xfer += (*_iter681).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13047,14 +13309,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size671; - ::apache::thrift::protocol::TType _etype674; - xfer += iprot->readListBegin(_etype674, _size671); - this->part_vals.resize(_size671); - uint32_t _i675; - for (_i675 = 0; _i675 < _size671; ++_i675) + uint32_t _size682; + ::apache::thrift::protocol::TType _etype685; + xfer += iprot->readListBegin(_etype685, _size682); + this->part_vals.resize(_size682); + uint32_t _i686; + for (_i686 = 0; _i686 < _size682; ++_i686) { - xfer += iprot->readString(this->part_vals[_i675]); + xfer += iprot->readString(this->part_vals[_i686]); } xfer += iprot->readListEnd(); } @@ -13098,10 +13360,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 _iter676; - for (_iter676 = this->part_vals.begin(); _iter676 != this->part_vals.end(); ++_iter676) + std::vector ::const_iterator _iter687; + for (_iter687 = this->part_vals.begin(); _iter687 != this->part_vals.end(); ++_iter687) { - xfer += oprot->writeString((*_iter676)); + xfer += oprot->writeString((*_iter687)); } xfer += oprot->writeListEnd(); } @@ -13131,10 +13393,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 _iter677; - for (_iter677 = (*(this->part_vals)).begin(); _iter677 != (*(this->part_vals)).end(); ++_iter677) + std::vector ::const_iterator _iter688; + for (_iter688 = (*(this->part_vals)).begin(); _iter688 != (*(this->part_vals)).end(); ++_iter688) { - xfer += oprot->writeString((*_iter677)); + xfer += oprot->writeString((*_iter688)); } xfer += oprot->writeListEnd(); } @@ -13289,14 +13551,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 _size678; - ::apache::thrift::protocol::TType _etype681; - xfer += iprot->readListBegin(_etype681, _size678); - this->part_vals.resize(_size678); - uint32_t _i682; - for (_i682 = 0; _i682 < _size678; ++_i682) + uint32_t _size689; + ::apache::thrift::protocol::TType _etype692; + xfer += iprot->readListBegin(_etype692, _size689); + this->part_vals.resize(_size689); + uint32_t _i693; + for (_i693 = 0; _i693 < _size689; ++_i693) { - xfer += iprot->readString(this->part_vals[_i682]); + xfer += iprot->readString(this->part_vals[_i693]); } xfer += iprot->readListEnd(); } @@ -13332,10 +13594,10 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::write(::a xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter683; - for (_iter683 = this->part_vals.begin(); _iter683 != this->part_vals.end(); ++_iter683) + std::vector ::const_iterator _iter694; + for (_iter694 = this->part_vals.begin(); _iter694 != this->part_vals.end(); ++_iter694) { - xfer += oprot->writeString((*_iter683)); + xfer += oprot->writeString((*_iter694)); } xfer += oprot->writeListEnd(); } @@ -13357,10 +13619,10 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_pargs::write(:: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter684; - for (_iter684 = (*(this->part_vals)).begin(); _iter684 != (*(this->part_vals)).end(); ++_iter684) + std::vector ::const_iterator _iter695; + for (_iter695 = (*(this->part_vals)).begin(); _iter695 != (*(this->part_vals)).end(); ++_iter695) { - xfer += oprot->writeString((*_iter684)); + xfer += oprot->writeString((*_iter695)); } xfer += oprot->writeListEnd(); } @@ -13779,14 +14041,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size685; - ::apache::thrift::protocol::TType _etype688; - xfer += iprot->readListBegin(_etype688, _size685); - this->success.resize(_size685); - uint32_t _i689; - for (_i689 = 0; _i689 < _size685; ++_i689) + uint32_t _size696; + ::apache::thrift::protocol::TType _etype699; + xfer += iprot->readListBegin(_etype699, _size696); + this->success.resize(_size696); + uint32_t _i700; + for (_i700 = 0; _i700 < _size696; ++_i700) { - xfer += iprot->readString(this->success[_i689]); + xfer += iprot->readString(this->success[_i700]); } xfer += iprot->readListEnd(); } @@ -13825,10 +14087,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 _iter690; - for (_iter690 = this->success.begin(); _iter690 != this->success.end(); ++_iter690) + std::vector ::const_iterator _iter701; + for (_iter701 = this->success.begin(); _iter701 != this->success.end(); ++_iter701) { - xfer += oprot->writeString((*_iter690)); + xfer += oprot->writeString((*_iter701)); } xfer += oprot->writeListEnd(); } @@ -13867,14 +14129,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size691; - ::apache::thrift::protocol::TType _etype694; - xfer += iprot->readListBegin(_etype694, _size691); - (*(this->success)).resize(_size691); - uint32_t _i695; - for (_i695 = 0; _i695 < _size691; ++_i695) + uint32_t _size702; + ::apache::thrift::protocol::TType _etype705; + xfer += iprot->readListBegin(_etype705, _size702); + (*(this->success)).resize(_size702); + uint32_t _i706; + for (_i706 = 0; _i706 < _size702; ++_i706) { - xfer += iprot->readString((*(this->success))[_i695]); + xfer += iprot->readString((*(this->success))[_i706]); } xfer += iprot->readListEnd(); } @@ -13993,17 +14255,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size696; - ::apache::thrift::protocol::TType _ktype697; - ::apache::thrift::protocol::TType _vtype698; - xfer += iprot->readMapBegin(_ktype697, _vtype698, _size696); - uint32_t _i700; - for (_i700 = 0; _i700 < _size696; ++_i700) + uint32_t _size707; + ::apache::thrift::protocol::TType _ktype708; + ::apache::thrift::protocol::TType _vtype709; + xfer += iprot->readMapBegin(_ktype708, _vtype709, _size707); + uint32_t _i711; + for (_i711 = 0; _i711 < _size707; ++_i711) { - std::string _key701; - xfer += iprot->readString(_key701); - std::string& _val702 = this->success[_key701]; - xfer += iprot->readString(_val702); + std::string _key712; + xfer += iprot->readString(_key712); + std::string& _val713 = this->success[_key712]; + xfer += iprot->readString(_val713); } xfer += iprot->readMapEnd(); } @@ -14042,11 +14304,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 _iter703; - for (_iter703 = this->success.begin(); _iter703 != this->success.end(); ++_iter703) + std::map ::const_iterator _iter714; + for (_iter714 = this->success.begin(); _iter714 != this->success.end(); ++_iter714) { - xfer += oprot->writeString(_iter703->first); - xfer += oprot->writeString(_iter703->second); + xfer += oprot->writeString(_iter714->first); + xfer += oprot->writeString(_iter714->second); } xfer += oprot->writeMapEnd(); } @@ -14085,17 +14347,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size704; - ::apache::thrift::protocol::TType _ktype705; - ::apache::thrift::protocol::TType _vtype706; - xfer += iprot->readMapBegin(_ktype705, _vtype706, _size704); - uint32_t _i708; - for (_i708 = 0; _i708 < _size704; ++_i708) + uint32_t _size715; + ::apache::thrift::protocol::TType _ktype716; + ::apache::thrift::protocol::TType _vtype717; + xfer += iprot->readMapBegin(_ktype716, _vtype717, _size715); + uint32_t _i719; + for (_i719 = 0; _i719 < _size715; ++_i719) { - std::string _key709; - xfer += iprot->readString(_key709); - std::string& _val710 = (*(this->success))[_key709]; - xfer += iprot->readString(_val710); + std::string _key720; + xfer += iprot->readString(_key720); + std::string& _val721 = (*(this->success))[_key720]; + xfer += iprot->readString(_val721); } xfer += iprot->readMapEnd(); } @@ -14164,17 +14426,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size711; - ::apache::thrift::protocol::TType _ktype712; - ::apache::thrift::protocol::TType _vtype713; - xfer += iprot->readMapBegin(_ktype712, _vtype713, _size711); - uint32_t _i715; - for (_i715 = 0; _i715 < _size711; ++_i715) + uint32_t _size722; + ::apache::thrift::protocol::TType _ktype723; + ::apache::thrift::protocol::TType _vtype724; + xfer += iprot->readMapBegin(_ktype723, _vtype724, _size722); + uint32_t _i726; + for (_i726 = 0; _i726 < _size722; ++_i726) { - std::string _key716; - xfer += iprot->readString(_key716); - std::string& _val717 = this->part_vals[_key716]; - xfer += iprot->readString(_val717); + std::string _key727; + xfer += iprot->readString(_key727); + std::string& _val728 = this->part_vals[_key727]; + xfer += iprot->readString(_val728); } xfer += iprot->readMapEnd(); } @@ -14185,9 +14447,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast718; - xfer += iprot->readI32(ecast718); - this->eventType = (PartitionEventType::type)ecast718; + int32_t ecast729; + xfer += iprot->readI32(ecast729); + this->eventType = (PartitionEventType::type)ecast729; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -14220,11 +14482,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 _iter719; - for (_iter719 = this->part_vals.begin(); _iter719 != this->part_vals.end(); ++_iter719) + std::map ::const_iterator _iter730; + for (_iter730 = this->part_vals.begin(); _iter730 != this->part_vals.end(); ++_iter730) { - xfer += oprot->writeString(_iter719->first); - xfer += oprot->writeString(_iter719->second); + xfer += oprot->writeString(_iter730->first); + xfer += oprot->writeString(_iter730->second); } xfer += oprot->writeMapEnd(); } @@ -14254,11 +14516,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 _iter720; - for (_iter720 = (*(this->part_vals)).begin(); _iter720 != (*(this->part_vals)).end(); ++_iter720) + std::map ::const_iterator _iter731; + for (_iter731 = (*(this->part_vals)).begin(); _iter731 != (*(this->part_vals)).end(); ++_iter731) { - xfer += oprot->writeString(_iter720->first); - xfer += oprot->writeString(_iter720->second); + xfer += oprot->writeString(_iter731->first); + xfer += oprot->writeString(_iter731->second); } xfer += oprot->writeMapEnd(); } @@ -14509,17 +14771,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size721; - ::apache::thrift::protocol::TType _ktype722; - ::apache::thrift::protocol::TType _vtype723; - xfer += iprot->readMapBegin(_ktype722, _vtype723, _size721); - uint32_t _i725; - for (_i725 = 0; _i725 < _size721; ++_i725) + uint32_t _size732; + ::apache::thrift::protocol::TType _ktype733; + ::apache::thrift::protocol::TType _vtype734; + xfer += iprot->readMapBegin(_ktype733, _vtype734, _size732); + uint32_t _i736; + for (_i736 = 0; _i736 < _size732; ++_i736) { - std::string _key726; - xfer += iprot->readString(_key726); - std::string& _val727 = this->part_vals[_key726]; - xfer += iprot->readString(_val727); + std::string _key737; + xfer += iprot->readString(_key737); + std::string& _val738 = this->part_vals[_key737]; + xfer += iprot->readString(_val738); } xfer += iprot->readMapEnd(); } @@ -14530,9 +14792,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast728; - xfer += iprot->readI32(ecast728); - this->eventType = (PartitionEventType::type)ecast728; + int32_t ecast739; + xfer += iprot->readI32(ecast739); + this->eventType = (PartitionEventType::type)ecast739; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -14565,11 +14827,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 _iter729; - for (_iter729 = this->part_vals.begin(); _iter729 != this->part_vals.end(); ++_iter729) + std::map ::const_iterator _iter740; + for (_iter740 = this->part_vals.begin(); _iter740 != this->part_vals.end(); ++_iter740) { - xfer += oprot->writeString(_iter729->first); - xfer += oprot->writeString(_iter729->second); + xfer += oprot->writeString(_iter740->first); + xfer += oprot->writeString(_iter740->second); } xfer += oprot->writeMapEnd(); } @@ -14599,11 +14861,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 _iter730; - for (_iter730 = (*(this->part_vals)).begin(); _iter730 != (*(this->part_vals)).end(); ++_iter730) + std::map ::const_iterator _iter741; + for (_iter741 = (*(this->part_vals)).begin(); _iter741 != (*(this->part_vals)).end(); ++_iter741) { - xfer += oprot->writeString(_iter730->first); - xfer += oprot->writeString(_iter730->second); + xfer += oprot->writeString(_iter741->first); + xfer += oprot->writeString(_iter741->second); } xfer += oprot->writeMapEnd(); } @@ -15908,14 +16170,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size731; - ::apache::thrift::protocol::TType _etype734; - xfer += iprot->readListBegin(_etype734, _size731); - this->success.resize(_size731); - uint32_t _i735; - for (_i735 = 0; _i735 < _size731; ++_i735) + uint32_t _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 += this->success[_i735].read(iprot); + xfer += this->success[_i746].read(iprot); } xfer += iprot->readListEnd(); } @@ -15962,10 +16224,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 _iter736; - for (_iter736 = this->success.begin(); _iter736 != this->success.end(); ++_iter736) + std::vector ::const_iterator _iter747; + for (_iter747 = this->success.begin(); _iter747 != this->success.end(); ++_iter747) { - xfer += (*_iter736).write(oprot); + xfer += (*_iter747).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16008,14 +16270,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size737; - ::apache::thrift::protocol::TType _etype740; - xfer += iprot->readListBegin(_etype740, _size737); - (*(this->success)).resize(_size737); - uint32_t _i741; - for (_i741 = 0; _i741 < _size737; ++_i741) + uint32_t _size748; + ::apache::thrift::protocol::TType _etype751; + xfer += iprot->readListBegin(_etype751, _size748); + (*(this->success)).resize(_size748); + uint32_t _i752; + for (_i752 = 0; _i752 < _size748; ++_i752) { - xfer += (*(this->success))[_i741].read(iprot); + xfer += (*(this->success))[_i752].read(iprot); } xfer += iprot->readListEnd(); } @@ -16174,14 +16436,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size742; - ::apache::thrift::protocol::TType _etype745; - xfer += iprot->readListBegin(_etype745, _size742); - this->success.resize(_size742); - uint32_t _i746; - for (_i746 = 0; _i746 < _size742; ++_i746) + uint32_t _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 += iprot->readString(this->success[_i746]); + xfer += iprot->readString(this->success[_i757]); } xfer += iprot->readListEnd(); } @@ -16220,10 +16482,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 _iter747; - for (_iter747 = this->success.begin(); _iter747 != this->success.end(); ++_iter747) + std::vector ::const_iterator _iter758; + for (_iter758 = this->success.begin(); _iter758 != this->success.end(); ++_iter758) { - xfer += oprot->writeString((*_iter747)); + xfer += oprot->writeString((*_iter758)); } xfer += oprot->writeListEnd(); } @@ -16262,14 +16524,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size748; - ::apache::thrift::protocol::TType _etype751; - xfer += iprot->readListBegin(_etype751, _size748); - (*(this->success)).resize(_size748); - uint32_t _i752; - for (_i752 = 0; _i752 < _size748; ++_i752) + 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) { - xfer += iprot->readString((*(this->success))[_i752]); + xfer += iprot->readString((*(this->success))[_i763]); } xfer += iprot->readListEnd(); } @@ -19054,14 +19316,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + 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 += iprot->readString(this->success[_i757]); + xfer += iprot->readString(this->success[_i768]); } xfer += iprot->readListEnd(); } @@ -19100,10 +19362,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 _iter758; - for (_iter758 = this->success.begin(); _iter758 != this->success.end(); ++_iter758) + std::vector ::const_iterator _iter769; + for (_iter769 = this->success.begin(); _iter769 != this->success.end(); ++_iter769) { - xfer += oprot->writeString((*_iter758)); + xfer += oprot->writeString((*_iter769)); } xfer += oprot->writeListEnd(); } @@ -19142,14 +19404,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto 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 _size770; + ::apache::thrift::protocol::TType _etype773; + xfer += iprot->readListBegin(_etype773, _size770); + (*(this->success)).resize(_size770); + uint32_t _i774; + for (_i774 = 0; _i774 < _size770; ++_i774) { - xfer += iprot->readString((*(this->success))[_i763]); + xfer += iprot->readString((*(this->success))[_i774]); } xfer += iprot->readListEnd(); } @@ -19829,14 +20091,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size775; + ::apache::thrift::protocol::TType _etype778; + xfer += iprot->readListBegin(_etype778, _size775); + this->success.resize(_size775); + uint32_t _i779; + for (_i779 = 0; _i779 < _size775; ++_i779) { - xfer += iprot->readString(this->success[_i768]); + xfer += iprot->readString(this->success[_i779]); } xfer += iprot->readListEnd(); } @@ -19875,10 +20137,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 _iter769; - for (_iter769 = this->success.begin(); _iter769 != this->success.end(); ++_iter769) + std::vector ::const_iterator _iter780; + for (_iter780 = this->success.begin(); _iter780 != this->success.end(); ++_iter780) { - xfer += oprot->writeString((*_iter769)); + xfer += oprot->writeString((*_iter780)); } xfer += oprot->writeListEnd(); } @@ -19917,14 +20179,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot 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 _size781; + ::apache::thrift::protocol::TType _etype784; + xfer += iprot->readListBegin(_etype784, _size781); + (*(this->success)).resize(_size781); + uint32_t _i785; + for (_i785 = 0; _i785 < _size781; ++_i785) { - xfer += iprot->readString((*(this->success))[_i774]); + xfer += iprot->readString((*(this->success))[_i785]); } xfer += iprot->readListEnd(); } @@ -19991,9 +20253,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast775; - xfer += iprot->readI32(ecast775); - this->principal_type = (PrincipalType::type)ecast775; + int32_t ecast786; + xfer += iprot->readI32(ecast786); + this->principal_type = (PrincipalType::type)ecast786; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20009,9 +20271,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast776; - xfer += iprot->readI32(ecast776); - this->grantorType = (PrincipalType::type)ecast776; + int32_t ecast787; + xfer += iprot->readI32(ecast787); + this->grantorType = (PrincipalType::type)ecast787; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -20257,9 +20519,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast777; - xfer += iprot->readI32(ecast777); - this->principal_type = (PrincipalType::type)ecast777; + int32_t ecast788; + xfer += iprot->readI32(ecast788); + this->principal_type = (PrincipalType::type)ecast788; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20465,9 +20727,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast778; - xfer += iprot->readI32(ecast778); - this->principal_type = (PrincipalType::type)ecast778; + int32_t ecast789; + xfer += iprot->readI32(ecast789); + this->principal_type = (PrincipalType::type)ecast789; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20543,14 +20805,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size779; - ::apache::thrift::protocol::TType _etype782; - xfer += iprot->readListBegin(_etype782, _size779); - this->success.resize(_size779); - uint32_t _i783; - for (_i783 = 0; _i783 < _size779; ++_i783) + uint32_t _size790; + ::apache::thrift::protocol::TType _etype793; + xfer += iprot->readListBegin(_etype793, _size790); + this->success.resize(_size790); + uint32_t _i794; + for (_i794 = 0; _i794 < _size790; ++_i794) { - xfer += this->success[_i783].read(iprot); + xfer += this->success[_i794].read(iprot); } xfer += iprot->readListEnd(); } @@ -20589,10 +20851,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 _iter784; - for (_iter784 = this->success.begin(); _iter784 != this->success.end(); ++_iter784) + std::vector ::const_iterator _iter795; + for (_iter795 = this->success.begin(); _iter795 != this->success.end(); ++_iter795) { - xfer += (*_iter784).write(oprot); + xfer += (*_iter795).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20631,14 +20893,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size785; - ::apache::thrift::protocol::TType _etype788; - xfer += iprot->readListBegin(_etype788, _size785); - (*(this->success)).resize(_size785); - uint32_t _i789; - for (_i789 = 0; _i789 < _size785; ++_i789) + uint32_t _size796; + ::apache::thrift::protocol::TType _etype799; + xfer += iprot->readListBegin(_etype799, _size796); + (*(this->success)).resize(_size796); + uint32_t _i800; + for (_i800 = 0; _i800 < _size796; ++_i800) { - xfer += (*(this->success))[_i789].read(iprot); + xfer += (*(this->success))[_i800].read(iprot); } xfer += iprot->readListEnd(); } @@ -21071,14 +21333,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 _size790; - ::apache::thrift::protocol::TType _etype793; - xfer += iprot->readListBegin(_etype793, _size790); - this->group_names.resize(_size790); - uint32_t _i794; - for (_i794 = 0; _i794 < _size790; ++_i794) + uint32_t _size801; + ::apache::thrift::protocol::TType _etype804; + xfer += iprot->readListBegin(_etype804, _size801); + this->group_names.resize(_size801); + uint32_t _i805; + for (_i805 = 0; _i805 < _size801; ++_i805) { - xfer += iprot->readString(this->group_names[_i794]); + xfer += iprot->readString(this->group_names[_i805]); } xfer += iprot->readListEnd(); } @@ -21114,10 +21376,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 _iter795; - for (_iter795 = this->group_names.begin(); _iter795 != this->group_names.end(); ++_iter795) + std::vector ::const_iterator _iter806; + for (_iter806 = this->group_names.begin(); _iter806 != this->group_names.end(); ++_iter806) { - xfer += oprot->writeString((*_iter795)); + xfer += oprot->writeString((*_iter806)); } xfer += oprot->writeListEnd(); } @@ -21143,10 +21405,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 _iter796; - for (_iter796 = (*(this->group_names)).begin(); _iter796 != (*(this->group_names)).end(); ++_iter796) + std::vector ::const_iterator _iter807; + for (_iter807 = (*(this->group_names)).begin(); _iter807 != (*(this->group_names)).end(); ++_iter807) { - xfer += oprot->writeString((*_iter796)); + xfer += oprot->writeString((*_iter807)); } xfer += oprot->writeListEnd(); } @@ -21303,9 +21565,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast797; - xfer += iprot->readI32(ecast797); - this->principal_type = (PrincipalType::type)ecast797; + int32_t ecast808; + xfer += iprot->readI32(ecast808); + this->principal_type = (PrincipalType::type)ecast808; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -21397,14 +21659,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size798; - ::apache::thrift::protocol::TType _etype801; - xfer += iprot->readListBegin(_etype801, _size798); - this->success.resize(_size798); - uint32_t _i802; - for (_i802 = 0; _i802 < _size798; ++_i802) + uint32_t _size809; + ::apache::thrift::protocol::TType _etype812; + xfer += iprot->readListBegin(_etype812, _size809); + this->success.resize(_size809); + uint32_t _i813; + for (_i813 = 0; _i813 < _size809; ++_i813) { - xfer += this->success[_i802].read(iprot); + xfer += this->success[_i813].read(iprot); } xfer += iprot->readListEnd(); } @@ -21443,10 +21705,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 _iter803; - for (_iter803 = this->success.begin(); _iter803 != this->success.end(); ++_iter803) + std::vector ::const_iterator _iter814; + for (_iter814 = this->success.begin(); _iter814 != this->success.end(); ++_iter814) { - xfer += (*_iter803).write(oprot); + xfer += (*_iter814).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21485,14 +21747,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size804; - ::apache::thrift::protocol::TType _etype807; - xfer += iprot->readListBegin(_etype807, _size804); - (*(this->success)).resize(_size804); - uint32_t _i808; - for (_i808 = 0; _i808 < _size804; ++_i808) + uint32_t _size815; + ::apache::thrift::protocol::TType _etype818; + xfer += iprot->readListBegin(_etype818, _size815); + (*(this->success)).resize(_size815); + uint32_t _i819; + for (_i819 = 0; _i819 < _size815; ++_i819) { - xfer += (*(this->success))[_i808].read(iprot); + xfer += (*(this->success))[_i819].read(iprot); } xfer += iprot->readListEnd(); } @@ -21917,14 +22179,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 _size809; - ::apache::thrift::protocol::TType _etype812; - xfer += iprot->readListBegin(_etype812, _size809); - this->group_names.resize(_size809); - uint32_t _i813; - for (_i813 = 0; _i813 < _size809; ++_i813) + uint32_t _size820; + ::apache::thrift::protocol::TType _etype823; + xfer += iprot->readListBegin(_etype823, _size820); + this->group_names.resize(_size820); + uint32_t _i824; + for (_i824 = 0; _i824 < _size820; ++_i824) { - xfer += iprot->readString(this->group_names[_i813]); + xfer += iprot->readString(this->group_names[_i824]); } xfer += iprot->readListEnd(); } @@ -21956,10 +22218,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 _iter814; - for (_iter814 = this->group_names.begin(); _iter814 != this->group_names.end(); ++_iter814) + std::vector ::const_iterator _iter825; + for (_iter825 = this->group_names.begin(); _iter825 != this->group_names.end(); ++_iter825) { - xfer += oprot->writeString((*_iter814)); + xfer += oprot->writeString((*_iter825)); } xfer += oprot->writeListEnd(); } @@ -21981,10 +22243,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 _iter815; - for (_iter815 = (*(this->group_names)).begin(); _iter815 != (*(this->group_names)).end(); ++_iter815) + std::vector ::const_iterator _iter826; + for (_iter826 = (*(this->group_names)).begin(); _iter826 != (*(this->group_names)).end(); ++_iter826) { - xfer += oprot->writeString((*_iter815)); + xfer += oprot->writeString((*_iter826)); } xfer += oprot->writeListEnd(); } @@ -22019,14 +22281,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size816; - ::apache::thrift::protocol::TType _etype819; - xfer += iprot->readListBegin(_etype819, _size816); - this->success.resize(_size816); - uint32_t _i820; - for (_i820 = 0; _i820 < _size816; ++_i820) + uint32_t _size827; + ::apache::thrift::protocol::TType _etype830; + xfer += iprot->readListBegin(_etype830, _size827); + this->success.resize(_size827); + uint32_t _i831; + for (_i831 = 0; _i831 < _size827; ++_i831) { - xfer += iprot->readString(this->success[_i820]); + xfer += iprot->readString(this->success[_i831]); } xfer += iprot->readListEnd(); } @@ -22065,10 +22327,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 _iter821; - for (_iter821 = this->success.begin(); _iter821 != this->success.end(); ++_iter821) + std::vector ::const_iterator _iter832; + for (_iter832 = this->success.begin(); _iter832 != this->success.end(); ++_iter832) { - xfer += oprot->writeString((*_iter821)); + xfer += oprot->writeString((*_iter832)); } xfer += oprot->writeListEnd(); } @@ -22107,14 +22369,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size822; - ::apache::thrift::protocol::TType _etype825; - xfer += iprot->readListBegin(_etype825, _size822); - (*(this->success)).resize(_size822); - uint32_t _i826; - for (_i826 = 0; _i826 < _size822; ++_i826) + uint32_t _size833; + ::apache::thrift::protocol::TType _etype836; + xfer += iprot->readListBegin(_etype836, _size833); + (*(this->success)).resize(_size833); + uint32_t _i837; + for (_i837 = 0; _i837 < _size833; ++_i837) { - xfer += iprot->readString((*(this->success))[_i826]); + xfer += iprot->readString((*(this->success))[_i837]); } xfer += iprot->readListEnd(); } @@ -27715,6 +27977,70 @@ void ThriftHiveMetastoreClient::recv_get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts) +{ + send_get_partition_names_by_filter(db_name, tbl_name, filter, max_parts); + recv_get_partition_names_by_filter(_return); +} + +void ThriftHiveMetastoreClient::send_get_partition_names_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_partition_names_by_filter", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_partition_names_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(); +} + +void ThriftHiveMetastoreClient::recv_get_partition_names_by_filter(std::vector & _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("get_partition_names_by_filter") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_partition_names_by_filter_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.o2) { + throw result.o2; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_names_by_filter failed: unknown result"); +} + void ThriftHiveMetastoreClient::get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) { send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts); @@ -34399,6 +34725,63 @@ void ThriftHiveMetastoreProcessor::process_get_partition_names(int32_t seqid, :: } } +void ThriftHiveMetastoreProcessor::process_get_partition_names_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_partition_names_by_filter", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partition_names_by_filter"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partition_names_by_filter"); + } + + ThriftHiveMetastore_get_partition_names_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_partition_names_by_filter", bytes); + } + + ThriftHiveMetastore_get_partition_names_by_filter_result result; + try { + iface_->get_partition_names_by_filter(result.success, args.db_name, args.tbl_name, args.filter, args.max_parts); + result.__isset.success = true; + } catch (MetaException &o2) { + result.o2 = o2; + result.__isset.o2 = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partition_names_by_filter"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_partition_names_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_partition_names_by_filter"); + } + + oprot->writeMessageBegin("get_partition_names_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_partition_names_by_filter", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_get_partitions_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index 2a1b4d7..a364003 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -59,6 +59,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void get_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) = 0; virtual void get_partitions_with_auth(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts, const std::string& user_name, const std::vector & group_names) = 0; virtual void get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) = 0; + virtual void get_partition_names_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_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) = 0; virtual void get_partitions_ps_with_auth(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts, const std::string& user_name, const std::vector & group_names) = 0; virtual void get_partition_names_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) = 0; @@ -288,6 +289,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void get_partition_names(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const int16_t /* max_parts */) { return; } + void get_partition_names_by_filter(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::string& /* filter */, const int16_t /* max_parts */) { + return; + } void get_partitions_ps(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */, const int16_t /* max_parts */) { return; } @@ -6640,6 +6644,151 @@ class ThriftHiveMetastore_get_partition_names_presult { }; +typedef struct _ThriftHiveMetastore_get_partition_names_by_filter_args__isset { + _ThriftHiveMetastore_get_partition_names_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_partition_names_by_filter_args__isset; + +class ThriftHiveMetastore_get_partition_names_by_filter_args { + public: + + ThriftHiveMetastore_get_partition_names_by_filter_args() : db_name(), tbl_name(), filter(), max_parts(-1) { + } + + virtual ~ThriftHiveMetastore_get_partition_names_by_filter_args() throw() {} + + std::string db_name; + std::string tbl_name; + std::string filter; + int16_t max_parts; + + _ThriftHiveMetastore_get_partition_names_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_partition_names_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_partition_names_by_filter_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_partition_names_by_filter_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_partition_names_by_filter_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_partition_names_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_partition_names_by_filter_result__isset { + _ThriftHiveMetastore_get_partition_names_by_filter_result__isset() : success(false), o2(false) {} + bool success; + bool o2; +} _ThriftHiveMetastore_get_partition_names_by_filter_result__isset; + +class ThriftHiveMetastore_get_partition_names_by_filter_result { + public: + + ThriftHiveMetastore_get_partition_names_by_filter_result() { + } + + virtual ~ThriftHiveMetastore_get_partition_names_by_filter_result() throw() {} + + std::vector success; + MetaException o2; + + _ThriftHiveMetastore_get_partition_names_by_filter_result__isset __isset; + + void __set_success(const std::vector & val) { + success = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + + bool operator == (const ThriftHiveMetastore_get_partition_names_by_filter_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(o2 == rhs.o2)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_partition_names_by_filter_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_partition_names_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_partition_names_by_filter_presult__isset { + _ThriftHiveMetastore_get_partition_names_by_filter_presult__isset() : success(false), o2(false) {} + bool success; + bool o2; +} _ThriftHiveMetastore_get_partition_names_by_filter_presult__isset; + +class ThriftHiveMetastore_get_partition_names_by_filter_presult { + public: + + + virtual ~ThriftHiveMetastore_get_partition_names_by_filter_presult() throw() {} + + std::vector * success; + MetaException o2; + + _ThriftHiveMetastore_get_partition_names_by_filter_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + 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; @@ -15335,6 +15484,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts); void send_get_partition_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts); void recv_get_partition_names(std::vector & _return); + void get_partition_names_by_filter(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts); + void send_get_partition_names_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts); + void recv_get_partition_names_by_filter(std::vector & _return); void get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts); void send_get_partitions_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts); void recv_get_partitions_ps(std::vector & _return); @@ -15580,6 +15732,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_get_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partitions_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partition_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_partition_names_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partitions_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partitions_ps_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partition_names_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -15691,6 +15844,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["get_partitions"] = &ThriftHiveMetastoreProcessor::process_get_partitions; processMap_["get_partitions_with_auth"] = &ThriftHiveMetastoreProcessor::process_get_partitions_with_auth; processMap_["get_partition_names"] = &ThriftHiveMetastoreProcessor::process_get_partition_names; + processMap_["get_partition_names_by_filter"] = &ThriftHiveMetastoreProcessor::process_get_partition_names_by_filter; processMap_["get_partitions_ps"] = &ThriftHiveMetastoreProcessor::process_get_partitions_ps; processMap_["get_partitions_ps_with_auth"] = &ThriftHiveMetastoreProcessor::process_get_partitions_ps_with_auth; processMap_["get_partition_names_ps"] = &ThriftHiveMetastoreProcessor::process_get_partition_names_ps; @@ -16202,6 +16356,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void get_partition_names_by_filter(std::vector & _return, 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_partition_names_by_filter(_return, db_name, tbl_name, filter, max_parts); + } + ifaces_[i]->get_partition_names_by_filter(_return, db_name, tbl_name, filter, max_parts); + return; + } + void get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) { size_t sz = ifaces_.size(); size_t i = 0; diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index b18009c..845927e 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -237,6 +237,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("get_partition_names\n"); } + void get_partition_names_by_filter(std::vector & _return, 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_partition_names_by_filter\n"); + } + void get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) { // Your implementation goes here printf("get_partitions_ps\n"); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index 4f051af..6c60abf 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -124,6 +124,8 @@ public List get_partition_names(String db_name, String tbl_name, short max_parts) throws MetaException, org.apache.thrift.TException; + public List get_partition_names_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException, org.apache.thrift.TException; + public List get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; public List get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; @@ -342,6 +344,8 @@ 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_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_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; @@ -1822,6 +1826,35 @@ public void send_get_partition_names(String db_name, String tbl_name, short max_ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result"); } + public List get_partition_names_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException, org.apache.thrift.TException + { + send_get_partition_names_by_filter(db_name, tbl_name, filter, max_parts); + return recv_get_partition_names_by_filter(); + } + + public void send_get_partition_names_by_filter(String db_name, String tbl_name, String filter, short max_parts) throws org.apache.thrift.TException + { + get_partition_names_by_filter_args args = new get_partition_names_by_filter_args(); + args.setDb_name(db_name); + args.setTbl_name(tbl_name); + args.setFilter(filter); + args.setMax_parts(max_parts); + sendBase("get_partition_names_by_filter", args); + } + + public List recv_get_partition_names_by_filter() throws MetaException, org.apache.thrift.TException + { + get_partition_names_by_filter_result result = new get_partition_names_by_filter_result(); + receiveBase(result, "get_partition_names_by_filter"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o2 != null) { + throw result.o2; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition_names_by_filter failed: unknown result"); + } + public List get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts); @@ -5259,6 +5292,47 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } + public void get_partition_names_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_partition_names_by_filter_call method_call = new get_partition_names_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_partition_names_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_partition_names_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_partition_names_by_filter", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_partition_names_by_filter_args args = new get_partition_names_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 List getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_partition_names_by_filter(); + } + } + 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); @@ -7582,6 +7656,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public get_partition_names_by_filter() { + super("get_partition_names_by_filter"); + } + + public get_partition_names_by_filter_args getEmptyArgsInstance() { + return new get_partition_names_by_filter_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_partition_names_by_filter_result getResult(I iface, get_partition_names_by_filter_args args) throws org.apache.thrift.TException { + get_partition_names_by_filter_result result = new get_partition_names_by_filter_result(); + try { + result.success = iface.get_partition_names_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts); + } catch (MetaException o2) { + result.o2 = o2; + } + return result; + } + } + public static class get_partitions_ps extends org.apache.thrift.ProcessFunction { public get_partitions_ps() { super("get_partitions_ps"); @@ -59138,30 +59237,30 @@ 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 { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_args"); + public static class get_partition_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_partition_names_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_partitions_ps_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_by_filter_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_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(); @@ -59181,8 +59280,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: @@ -59234,30 +59333,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_partitions_ps_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_by_filter_args.class, metaDataMap); } - public get_partitions_ps_args() { + public get_partition_names_by_filter_args() { this.max_parts = (short)-1; } - public get_partitions_ps_args( + public get_partition_names_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); } @@ -59265,7 +59363,7 @@ public get_partitions_ps_args( /** * Performs a deep copy on other. */ - public get_partitions_ps_args(get_partitions_ps_args other) { + public get_partition_names_by_filter_args(get_partition_names_by_filter_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -59273,25 +59371,21 @@ public get_partitions_ps_args(get_partitions_ps_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; + if (other.isSetFilter()) { + this.filter = other.filter; } this.max_parts = other.max_parts; } - public get_partitions_ps_args deepCopy() { - return new get_partitions_ps_args(this); + public get_partition_names_by_filter_args deepCopy() { + return new get_partition_names_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; } @@ -59342,41 +59436,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; } } @@ -59420,11 +59499,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; @@ -59447,8 +59526,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()); @@ -59468,8 +59547,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(); } @@ -59480,12 +59559,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_partition_names_by_filter_args) + return this.equals((get_partition_names_by_filter_args)that); return false; } - public boolean equals(get_partitions_ps_args that) { + public boolean equals(get_partition_names_by_filter_args that) { if (that == null) return false; @@ -59507,12 +59586,12 @@ public boolean equals(get_partitions_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; } @@ -59542,10 +59621,10 @@ public int hashCode() { 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_filter = true && (isSetFilter()); + builder.append(present_filter); + if (present_filter) + builder.append(filter); boolean present_max_parts = true; builder.append(present_max_parts); @@ -59555,13 +59634,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(get_partitions_ps_args other) { + public int compareTo(get_partition_names_by_filter_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; + get_partition_names_by_filter_args typedOther = (get_partition_names_by_filter_args)other; lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { @@ -59583,12 +59662,12 @@ public int compareTo(get_partitions_ps_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(typedOther.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, typedOther.part_vals); + if (isSetFilter()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, typedOther.filter); if (lastComparison != 0) { return lastComparison; } @@ -59620,7 +59699,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_partition_names_by_filter_args("); boolean first = true; sb.append("db_name:"); @@ -59639,11 +59718,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(", "); @@ -59677,15 +59756,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_partition_names_by_filter_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_names_by_filter_argsStandardScheme getScheme() { + return new get_partition_names_by_filter_argsStandardScheme(); } } - private static class get_partitions_ps_argsStandardScheme extends StandardScheme { + private static class get_partition_names_by_filter_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_partition_names_by_filter_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -59711,20 +59790,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a 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 _list630 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list630.size); - for (int _i631 = 0; _i631 < _list630.size; ++_i631) - { - String _elem632; // required - _elem632 = iprot.readString(); - struct.part_vals.add(_elem632); - } - 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); } @@ -59746,7 +59815,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_partition_names_by_filter_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -59760,16 +59829,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ 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 _iter633 : struct.part_vals) - { - oprot.writeString(_iter633); - } - oprot.writeListEnd(); - } + if (struct.filter != null) { + oprot.writeFieldBegin(FILTER_FIELD_DESC); + oprot.writeString(struct.filter); oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); @@ -59781,16 +59843,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ } - 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_by_filter_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_names_by_filter_argsTupleScheme getScheme() { + return new get_partition_names_by_filter_argsTupleScheme(); } } - private static class get_partitions_ps_argsTupleScheme extends TupleScheme { + private static class get_partition_names_by_filter_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_partition_names_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -59799,7 +59861,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_a if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetFilter()) { optionals.set(2); } if (struct.isSetMax_parts()) { @@ -59812,14 +59874,8 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_a if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter634 : struct.part_vals) - { - oprot.writeString(_iter634); - } - } + if (struct.isSetFilter()) { + oprot.writeString(struct.filter); } if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); @@ -59827,7 +59883,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_a } @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_partition_names_by_filter_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { @@ -59839,17 +59895,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list635.size); - for (int _i636 = 0; _i636 < _list635.size; ++_i636) - { - String _elem637; // required - _elem637 = iprot.readString(); - struct.part_vals.add(_elem637); - } - } - struct.setPart_valsIsSet(true); + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); } if (incoming.get(3)) { struct.max_parts = iprot.readI16(); @@ -59860,28 +59907,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } - 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"); + public static class get_partition_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_partition_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); - 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_ps_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_by_filter_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_by_filter_resultTupleSchemeFactory()); } - private List success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private List success; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)1, "o2"); private static final Map byName = new HashMap(); @@ -59898,9 +59942,1250 @@ 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; + } + } + + /** + * 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.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_by_filter_result.class, metaDataMap); + } + + public get_partition_names_by_filter_result() { + } + + public get_partition_names_by_filter_result( + List success, + MetaException o2) + { + this(); + this.success = success; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public get_partition_names_by_filter_result(get_partition_names_by_filter_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.isSetO2()) { + this.o2 = new MetaException(other.o2); + } + } + + public get_partition_names_by_filter_result deepCopy() { + return new get_partition_names_by_filter_result(this); + } + + @Override + public void clear() { + this.success = 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() { + 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 getO2() { + return this.o2; + } + + public void setO2(MetaException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + 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 O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_partition_names_by_filter_result) + return this.equals((get_partition_names_by_filter_result)that); + return false; + } + + public boolean equals(get_partition_names_by_filter_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_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_o2 = true && (isSetO2()); + builder.append(present_o2); + if (present_o2) + builder.append(o2); + + return builder.toHashCode(); + } + + public int compareTo(get_partition_names_by_filter_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + get_partition_names_by_filter_result typedOther = (get_partition_names_by_filter_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(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("get_partition_names_by_filter_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("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 get_partition_names_by_filter_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_names_by_filter_resultStandardScheme getScheme() { + return new get_partition_names_by_filter_resultStandardScheme(); + } + } + + private static class get_partition_names_by_filter_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_by_filter_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list630 = iprot.readListBegin(); + struct.success = new ArrayList(_list630.size); + for (int _i631 = 0; _i631 < _list630.size; ++_i631) + { + String _elem632; // required + _elem632 = iprot.readString(); + struct.success.add(_elem632); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_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.STRING, struct.success.size())); + for (String _iter633 : struct.success) + { + oprot.writeString(_iter633); + } + oprot.writeListEnd(); + } + 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_partition_names_by_filter_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_names_by_filter_resultTupleScheme getScheme() { + return new get_partition_names_by_filter_resultTupleScheme(); + } + } + + private static class get_partition_names_by_filter_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_by_filter_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetO2()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (String _iter634 : struct.success) + { + oprot.writeString(_iter634); + } + } + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_by_filter_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 _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list635.size); + for (int _i636 = 0; _i636 < _list635.size; ++_i636) + { + String _elem637; // required + _elem637 = iprot.readString(); + struct.success.add(_elem637); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + 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 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_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"), + PART_VALS((short)3, "part_vals"), + MAX_PARTS((short)4, "max_parts"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_VALS + return PART_VALS; + case 4: // MAX_PARTS + return MAX_PARTS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __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.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_partitions_ps_args.class, metaDataMap); + } + + public get_partitions_ps_args() { + this.max_parts = (short)-1; + + } + + 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); + } + + /** + * Performs a deep copy on 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; + } + 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_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; + + } + + 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); + } + + 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; + } + + 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 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: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); + } + break; + + case MAX_PARTS: + if (value == null) { + unsetMax_parts(); + } else { + setMax_parts((Short)value); + } + break; + + } + } + + 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 MAX_PARTS: + return Short.valueOf(getMax_parts()); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); + case MAX_PARTS: + return isSetMax_parts(); + } + throw new IllegalStateException(); + } + + @Override + 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); + return false; + } + + public boolean equals(get_partitions_ps_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)) + 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) { + if (!(this_present_max_parts && that_present_max_parts)) + return false; + if (this.max_parts != that.max_parts) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + 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_max_parts = true; + builder.append(present_max_parts); + if (present_max_parts) + builder.append(max_parts); + + return builder.toHashCode(); + } + + 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(typedOther.isSetDb_name()); + if (lastComparison != 0) { + return lastComparison; + } + 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(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; + } + } + 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_partitions_ps_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("null"); + } else { + sb.append(this.part_vals); + } + first = false; + if (!first) sb.append(", "); + sb.append("max_parts:"); + sb.append(this.max_parts); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_partitions_ps_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_argsStandardScheme getScheme() { + return new get_partitions_ps_argsStandardScheme(); + } + } + + private static class get_partitions_ps_argsStandardScheme extends StandardScheme { + + 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) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list638.size); + for (int _i639 = 0; _i639 < _list638.size; ++_i639) + { + String _elem640; // required + _elem640 = iprot.readString(); + struct.part_vals.add(_elem640); + } + 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); + } 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_partitions_ps_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 _iter641 : struct.part_vals) + { + oprot.writeString(_iter641); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI16(struct.max_parts); + 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_argsTupleScheme extends TupleScheme { + + @Override + 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()) { + optionals.set(0); + } + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetPart_vals()) { + 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.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter642 : struct.part_vals) + { + oprot.writeString(_iter642); + } + } + } + if (struct.isSetMax_parts()) { + oprot.writeI16(struct.max_parts); + } + } + + @Override + 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(4); + if (incoming.get(0)) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list643.size); + for (int _i644 = 0; _i644 < _list643.size; ++_i644) + { + String _elem645; // required + _elem645 = iprot.readString(); + struct.part_vals.add(_elem645); + } + } + struct.setPart_valsIsSet(true); + } + if (incoming.get(3)) { + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); + } + } + } + + } + + 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 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_ps_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_resultTupleSchemeFactory()); + } + + 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"), + 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; @@ -60337,14 +61622,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); - struct.success = new ArrayList(_list638.size); - for (int _i639 = 0; _i639 < _list638.size; ++_i639) + org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); + struct.success = new ArrayList(_list646.size); + for (int _i647 = 0; _i647 < _list646.size; ++_i647) { - Partition _elem640; // required - _elem640 = new Partition(); - _elem640.read(iprot); - struct.success.add(_elem640); + Partition _elem648; // required + _elem648 = new Partition(); + _elem648.read(iprot); + struct.success.add(_elem648); } iprot.readListEnd(); } @@ -60388,9 +61673,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter641 : struct.success) + for (Partition _iter649 : struct.success) { - _iter641.write(oprot); + _iter649.write(oprot); } oprot.writeListEnd(); } @@ -60437,9 +61722,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter642 : struct.success) + for (Partition _iter650 : struct.success) { - _iter642.write(oprot); + _iter650.write(oprot); } } } @@ -60457,14 +61742,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list643.size); - for (int _i644 = 0; _i644 < _list643.size; ++_i644) + org.apache.thrift.protocol.TList _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list651.size); + for (int _i652 = 0; _i652 < _list651.size; ++_i652) { - Partition _elem645; // required - _elem645 = new Partition(); - _elem645.read(iprot); - struct.success.add(_elem645); + Partition _elem653; // required + _elem653 = new Partition(); + _elem653.read(iprot); + struct.success.add(_elem653); } } struct.setSuccessIsSet(true); @@ -61242,13 +62527,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list646.size); - for (int _i647 = 0; _i647 < _list646.size; ++_i647) + org.apache.thrift.protocol.TList _list654 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list654.size); + for (int _i655 = 0; _i655 < _list654.size; ++_i655) { - String _elem648; // required - _elem648 = iprot.readString(); - struct.part_vals.add(_elem648); + String _elem656; // required + _elem656 = iprot.readString(); + struct.part_vals.add(_elem656); } iprot.readListEnd(); } @@ -61276,13 +62561,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 6: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list649 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list649.size); - for (int _i650 = 0; _i650 < _list649.size; ++_i650) + org.apache.thrift.protocol.TList _list657 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list657.size); + for (int _i658 = 0; _i658 < _list657.size; ++_i658) { - String _elem651; // required - _elem651 = iprot.readString(); - struct.group_names.add(_elem651); + String _elem659; // required + _elem659 = iprot.readString(); + struct.group_names.add(_elem659); } iprot.readListEnd(); } @@ -61318,9 +62603,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter652 : struct.part_vals) + for (String _iter660 : struct.part_vals) { - oprot.writeString(_iter652); + oprot.writeString(_iter660); } oprot.writeListEnd(); } @@ -61338,9 +62623,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter653 : struct.group_names) + for (String _iter661 : struct.group_names) { - oprot.writeString(_iter653); + oprot.writeString(_iter661); } oprot.writeListEnd(); } @@ -61392,9 +62677,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter654 : struct.part_vals) + for (String _iter662 : struct.part_vals) { - oprot.writeString(_iter654); + oprot.writeString(_iter662); } } } @@ -61407,9 +62692,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter655 : struct.group_names) + for (String _iter663 : struct.group_names) { - oprot.writeString(_iter655); + oprot.writeString(_iter663); } } } @@ -61429,13 +62714,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list656 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list656.size); - for (int _i657 = 0; _i657 < _list656.size; ++_i657) + org.apache.thrift.protocol.TList _list664 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list664.size); + for (int _i665 = 0; _i665 < _list664.size; ++_i665) { - String _elem658; // required - _elem658 = iprot.readString(); - struct.part_vals.add(_elem658); + String _elem666; // required + _elem666 = iprot.readString(); + struct.part_vals.add(_elem666); } } struct.setPart_valsIsSet(true); @@ -61450,13 +62735,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list659.size); - for (int _i660 = 0; _i660 < _list659.size; ++_i660) + org.apache.thrift.protocol.TList _list667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list667.size); + for (int _i668 = 0; _i668 < _list667.size; ++_i668) { - String _elem661; // required - _elem661 = iprot.readString(); - struct.group_names.add(_elem661); + String _elem669; // required + _elem669 = iprot.readString(); + struct.group_names.add(_elem669); } } struct.setGroup_namesIsSet(true); @@ -61943,14 +63228,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list662 = iprot.readListBegin(); - struct.success = new ArrayList(_list662.size); - for (int _i663 = 0; _i663 < _list662.size; ++_i663) + org.apache.thrift.protocol.TList _list670 = iprot.readListBegin(); + struct.success = new ArrayList(_list670.size); + for (int _i671 = 0; _i671 < _list670.size; ++_i671) { - Partition _elem664; // required - _elem664 = new Partition(); - _elem664.read(iprot); - struct.success.add(_elem664); + Partition _elem672; // required + _elem672 = new Partition(); + _elem672.read(iprot); + struct.success.add(_elem672); } iprot.readListEnd(); } @@ -61994,9 +63279,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter665 : struct.success) + for (Partition _iter673 : struct.success) { - _iter665.write(oprot); + _iter673.write(oprot); } oprot.writeListEnd(); } @@ -62043,9 +63328,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter666 : struct.success) + for (Partition _iter674 : struct.success) { - _iter666.write(oprot); + _iter674.write(oprot); } } } @@ -62063,14 +63348,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list667.size); - for (int _i668 = 0; _i668 < _list667.size; ++_i668) + org.apache.thrift.protocol.TList _list675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list675.size); + for (int _i676 = 0; _i676 < _list675.size; ++_i676) { - Partition _elem669; // required - _elem669 = new Partition(); - _elem669.read(iprot); - struct.success.add(_elem669); + Partition _elem677; // required + _elem677 = new Partition(); + _elem677.read(iprot); + struct.success.add(_elem677); } } struct.setSuccessIsSet(true); @@ -62666,13 +63951,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list670 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list670.size); - for (int _i671 = 0; _i671 < _list670.size; ++_i671) + org.apache.thrift.protocol.TList _list678 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list678.size); + for (int _i679 = 0; _i679 < _list678.size; ++_i679) { - String _elem672; // required - _elem672 = iprot.readString(); - struct.part_vals.add(_elem672); + String _elem680; // required + _elem680 = iprot.readString(); + struct.part_vals.add(_elem680); } iprot.readListEnd(); } @@ -62716,9 +64001,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter673 : struct.part_vals) + for (String _iter681 : struct.part_vals) { - oprot.writeString(_iter673); + oprot.writeString(_iter681); } oprot.writeListEnd(); } @@ -62767,9 +64052,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter674 : struct.part_vals) + for (String _iter682 : struct.part_vals) { - oprot.writeString(_iter674); + oprot.writeString(_iter682); } } } @@ -62792,13 +64077,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list675.size); - for (int _i676 = 0; _i676 < _list675.size; ++_i676) + org.apache.thrift.protocol.TList _list683 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list683.size); + for (int _i684 = 0; _i684 < _list683.size; ++_i684) { - String _elem677; // required - _elem677 = iprot.readString(); - struct.part_vals.add(_elem677); + String _elem685; // required + _elem685 = iprot.readString(); + struct.part_vals.add(_elem685); } } struct.setPart_valsIsSet(true); @@ -63289,13 +64574,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list678 = iprot.readListBegin(); - struct.success = new ArrayList(_list678.size); - for (int _i679 = 0; _i679 < _list678.size; ++_i679) + org.apache.thrift.protocol.TList _list686 = iprot.readListBegin(); + struct.success = new ArrayList(_list686.size); + for (int _i687 = 0; _i687 < _list686.size; ++_i687) { - String _elem680; // required - _elem680 = iprot.readString(); - struct.success.add(_elem680); + String _elem688; // required + _elem688 = iprot.readString(); + struct.success.add(_elem688); } iprot.readListEnd(); } @@ -63339,9 +64624,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter681 : struct.success) + for (String _iter689 : struct.success) { - oprot.writeString(_iter681); + oprot.writeString(_iter689); } oprot.writeListEnd(); } @@ -63388,9 +64673,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter682 : struct.success) + for (String _iter690 : struct.success) { - oprot.writeString(_iter682); + oprot.writeString(_iter690); } } } @@ -63408,13 +64693,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list683 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list683.size); - for (int _i684 = 0; _i684 < _list683.size; ++_i684) + org.apache.thrift.protocol.TList _list691 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list691.size); + for (int _i692 = 0; _i692 < _list691.size; ++_i692) { - String _elem685; // required - _elem685 = iprot.readString(); - struct.success.add(_elem685); + String _elem693; // required + _elem693 = iprot.readString(); + struct.success.add(_elem693); } } struct.setSuccessIsSet(true); @@ -64581,14 +65866,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list686 = iprot.readListBegin(); - struct.success = new ArrayList(_list686.size); - for (int _i687 = 0; _i687 < _list686.size; ++_i687) + org.apache.thrift.protocol.TList _list694 = iprot.readListBegin(); + struct.success = new ArrayList(_list694.size); + for (int _i695 = 0; _i695 < _list694.size; ++_i695) { - Partition _elem688; // required - _elem688 = new Partition(); - _elem688.read(iprot); - struct.success.add(_elem688); + Partition _elem696; // required + _elem696 = new Partition(); + _elem696.read(iprot); + struct.success.add(_elem696); } iprot.readListEnd(); } @@ -64632,9 +65917,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter689 : struct.success) + for (Partition _iter697 : struct.success) { - _iter689.write(oprot); + _iter697.write(oprot); } oprot.writeListEnd(); } @@ -64681,9 +65966,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter690 : struct.success) + for (Partition _iter698 : struct.success) { - _iter690.write(oprot); + _iter698.write(oprot); } } } @@ -64701,14 +65986,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list691 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list691.size); - for (int _i692 = 0; _i692 < _list691.size; ++_i692) + org.apache.thrift.protocol.TList _list699 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list699.size); + for (int _i700 = 0; _i700 < _list699.size; ++_i700) { - Partition _elem693; // required - _elem693 = new Partition(); - _elem693.read(iprot); - struct.success.add(_elem693); + Partition _elem701; // required + _elem701 = new Partition(); + _elem701.read(iprot); + struct.success.add(_elem701); } } struct.setSuccessIsSet(true); @@ -66159,13 +67444,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 3: // NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list694 = iprot.readListBegin(); - struct.names = new ArrayList(_list694.size); - for (int _i695 = 0; _i695 < _list694.size; ++_i695) + org.apache.thrift.protocol.TList _list702 = iprot.readListBegin(); + struct.names = new ArrayList(_list702.size); + for (int _i703 = 0; _i703 < _list702.size; ++_i703) { - String _elem696; // required - _elem696 = iprot.readString(); - struct.names.add(_elem696); + String _elem704; // required + _elem704 = iprot.readString(); + struct.names.add(_elem704); } iprot.readListEnd(); } @@ -66201,9 +67486,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.names.size())); - for (String _iter697 : struct.names) + for (String _iter705 : struct.names) { - oprot.writeString(_iter697); + oprot.writeString(_iter705); } oprot.writeListEnd(); } @@ -66246,9 +67531,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter698 : struct.names) + for (String _iter706 : struct.names) { - oprot.writeString(_iter698); + oprot.writeString(_iter706); } } } @@ -66268,13 +67553,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list699 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list699.size); - for (int _i700 = 0; _i700 < _list699.size; ++_i700) + org.apache.thrift.protocol.TList _list707 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list707.size); + for (int _i708 = 0; _i708 < _list707.size; ++_i708) { - String _elem701; // required - _elem701 = iprot.readString(); - struct.names.add(_elem701); + String _elem709; // required + _elem709 = iprot.readString(); + struct.names.add(_elem709); } } struct.setNamesIsSet(true); @@ -66761,14 +68046,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list702 = iprot.readListBegin(); - struct.success = new ArrayList(_list702.size); - for (int _i703 = 0; _i703 < _list702.size; ++_i703) + org.apache.thrift.protocol.TList _list710 = iprot.readListBegin(); + struct.success = new ArrayList(_list710.size); + for (int _i711 = 0; _i711 < _list710.size; ++_i711) { - Partition _elem704; // required - _elem704 = new Partition(); - _elem704.read(iprot); - struct.success.add(_elem704); + Partition _elem712; // required + _elem712 = new Partition(); + _elem712.read(iprot); + struct.success.add(_elem712); } iprot.readListEnd(); } @@ -66812,9 +68097,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter705 : struct.success) + for (Partition _iter713 : struct.success) { - _iter705.write(oprot); + _iter713.write(oprot); } oprot.writeListEnd(); } @@ -66861,9 +68146,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter706 : struct.success) + for (Partition _iter714 : struct.success) { - _iter706.write(oprot); + _iter714.write(oprot); } } } @@ -66881,14 +68166,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list707 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list707.size); - for (int _i708 = 0; _i708 < _list707.size; ++_i708) + org.apache.thrift.protocol.TList _list715 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list715.size); + for (int _i716 = 0; _i716 < _list715.size; ++_i716) { - Partition _elem709; // required - _elem709 = new Partition(); - _elem709.read(iprot); - struct.success.add(_elem709); + Partition _elem717; // required + _elem717 = new Partition(); + _elem717.read(iprot); + struct.success.add(_elem717); } } struct.setSuccessIsSet(true); @@ -68438,14 +69723,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_ar case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list710 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list710.size); - for (int _i711 = 0; _i711 < _list710.size; ++_i711) + org.apache.thrift.protocol.TList _list718 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list718.size); + for (int _i719 = 0; _i719 < _list718.size; ++_i719) { - Partition _elem712; // required - _elem712 = new Partition(); - _elem712.read(iprot); - struct.new_parts.add(_elem712); + Partition _elem720; // required + _elem720 = new Partition(); + _elem720.read(iprot); + struct.new_parts.add(_elem720); } iprot.readListEnd(); } @@ -68481,9 +69766,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_a oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter713 : struct.new_parts) + for (Partition _iter721 : struct.new_parts) { - _iter713.write(oprot); + _iter721.write(oprot); } oprot.writeListEnd(); } @@ -68526,9 +69811,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_ar if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter714 : struct.new_parts) + for (Partition _iter722 : struct.new_parts) { - _iter714.write(oprot); + _iter722.write(oprot); } } } @@ -68548,14 +69833,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list715 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list715.size); - for (int _i716 = 0; _i716 < _list715.size; ++_i716) + org.apache.thrift.protocol.TList _list723 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list723.size); + for (int _i724 = 0; _i724 < _list723.size; ++_i724) { - Partition _elem717; // required - _elem717 = new Partition(); - _elem717.read(iprot); - struct.new_parts.add(_elem717); + Partition _elem725; // required + _elem725 = new Partition(); + _elem725.read(iprot); + struct.new_parts.add(_elem725); } } struct.setNew_partsIsSet(true); @@ -70754,13 +72039,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list718 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list718.size); - for (int _i719 = 0; _i719 < _list718.size; ++_i719) + org.apache.thrift.protocol.TList _list726 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list726.size); + for (int _i727 = 0; _i727 < _list726.size; ++_i727) { - String _elem720; // required - _elem720 = iprot.readString(); - struct.part_vals.add(_elem720); + String _elem728; // required + _elem728 = iprot.readString(); + struct.part_vals.add(_elem728); } iprot.readListEnd(); } @@ -70805,9 +72090,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter721 : struct.part_vals) + for (String _iter729 : struct.part_vals) { - oprot.writeString(_iter721); + oprot.writeString(_iter729); } oprot.writeListEnd(); } @@ -70858,9 +72143,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter722 : struct.part_vals) + for (String _iter730 : struct.part_vals) { - oprot.writeString(_iter722); + oprot.writeString(_iter730); } } } @@ -70883,13 +72168,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list723 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list723.size); - for (int _i724 = 0; _i724 < _list723.size; ++_i724) + org.apache.thrift.protocol.TList _list731 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list731.size); + for (int _i732 = 0; _i732 < _list731.size; ++_i732) { - String _elem725; // required - _elem725 = iprot.readString(); - struct.part_vals.add(_elem725); + String _elem733; // required + _elem733 = iprot.readString(); + struct.part_vals.add(_elem733); } } struct.setPart_valsIsSet(true); @@ -71766,13 +73051,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ case 1: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list726 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list726.size); - for (int _i727 = 0; _i727 < _list726.size; ++_i727) + org.apache.thrift.protocol.TList _list734 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list734.size); + for (int _i735 = 0; _i735 < _list734.size; ++_i735) { - String _elem728; // required - _elem728 = iprot.readString(); - struct.part_vals.add(_elem728); + String _elem736; // required + _elem736 = iprot.readString(); + struct.part_vals.add(_elem736); } iprot.readListEnd(); } @@ -71806,9 +73091,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_has oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter729 : struct.part_vals) + for (String _iter737 : struct.part_vals) { - oprot.writeString(_iter729); + oprot.writeString(_iter737); } oprot.writeListEnd(); } @@ -71845,9 +73130,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_has_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter730 : struct.part_vals) + for (String _iter738 : struct.part_vals) { - oprot.writeString(_iter730); + oprot.writeString(_iter738); } } } @@ -71862,13 +73147,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list731 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list731.size); - for (int _i732 = 0; _i732 < _list731.size; ++_i732) + org.apache.thrift.protocol.TList _list739 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list739.size); + for (int _i740 = 0; _i740 < _list739.size; ++_i740) { - String _elem733; // required - _elem733 = iprot.readString(); - struct.part_vals.add(_elem733); + String _elem741; // required + _elem741 = iprot.readString(); + struct.part_vals.add(_elem741); } } struct.setPart_valsIsSet(true); @@ -74026,13 +75311,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list734 = iprot.readListBegin(); - struct.success = new ArrayList(_list734.size); - for (int _i735 = 0; _i735 < _list734.size; ++_i735) + org.apache.thrift.protocol.TList _list742 = iprot.readListBegin(); + struct.success = new ArrayList(_list742.size); + for (int _i743 = 0; _i743 < _list742.size; ++_i743) { - String _elem736; // required - _elem736 = iprot.readString(); - struct.success.add(_elem736); + String _elem744; // required + _elem744 = iprot.readString(); + struct.success.add(_elem744); } iprot.readListEnd(); } @@ -74067,9 +75352,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter737 : struct.success) + for (String _iter745 : struct.success) { - oprot.writeString(_iter737); + oprot.writeString(_iter745); } oprot.writeListEnd(); } @@ -74108,9 +75393,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter738 : struct.success) + for (String _iter746 : struct.success) { - oprot.writeString(_iter738); + oprot.writeString(_iter746); } } } @@ -74125,13 +75410,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list739 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list739.size); - for (int _i740 = 0; _i740 < _list739.size; ++_i740) + org.apache.thrift.protocol.TList _list747 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list747.size); + for (int _i748 = 0; _i748 < _list747.size; ++_i748) { - String _elem741; // required - _elem741 = iprot.readString(); - struct.success.add(_elem741); + String _elem749; // required + _elem749 = iprot.readString(); + struct.success.add(_elem749); } } struct.setSuccessIsSet(true); @@ -74905,15 +76190,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map742 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map742.size); - for (int _i743 = 0; _i743 < _map742.size; ++_i743) + org.apache.thrift.protocol.TMap _map750 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map750.size); + for (int _i751 = 0; _i751 < _map750.size; ++_i751) { - String _key744; // required - String _val745; // required - _key744 = iprot.readString(); - _val745 = iprot.readString(); - struct.success.put(_key744, _val745); + String _key752; // required + String _val753; // required + _key752 = iprot.readString(); + _val753 = iprot.readString(); + struct.success.put(_key752, _val753); } iprot.readMapEnd(); } @@ -74948,10 +76233,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter746 : struct.success.entrySet()) + for (Map.Entry _iter754 : struct.success.entrySet()) { - oprot.writeString(_iter746.getKey()); - oprot.writeString(_iter746.getValue()); + oprot.writeString(_iter754.getKey()); + oprot.writeString(_iter754.getValue()); } oprot.writeMapEnd(); } @@ -74990,10 +76275,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter747 : struct.success.entrySet()) + for (Map.Entry _iter755 : struct.success.entrySet()) { - oprot.writeString(_iter747.getKey()); - oprot.writeString(_iter747.getValue()); + oprot.writeString(_iter755.getKey()); + oprot.writeString(_iter755.getValue()); } } } @@ -75008,15 +76293,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map748 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map748.size); - for (int _i749 = 0; _i749 < _map748.size; ++_i749) + org.apache.thrift.protocol.TMap _map756 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map756.size); + for (int _i757 = 0; _i757 < _map756.size; ++_i757) { - String _key750; // required - String _val751; // required - _key750 = iprot.readString(); - _val751 = iprot.readString(); - struct.success.put(_key750, _val751); + String _key758; // required + String _val759; // required + _key758 = iprot.readString(); + _val759 = iprot.readString(); + struct.success.put(_key758, _val759); } } struct.setSuccessIsSet(true); @@ -75622,15 +76907,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map752 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map752.size); - for (int _i753 = 0; _i753 < _map752.size; ++_i753) + org.apache.thrift.protocol.TMap _map760 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map760.size); + for (int _i761 = 0; _i761 < _map760.size; ++_i761) { - String _key754; // required - String _val755; // required - _key754 = iprot.readString(); - _val755 = iprot.readString(); - struct.part_vals.put(_key754, _val755); + String _key762; // required + String _val763; // required + _key762 = iprot.readString(); + _val763 = iprot.readString(); + struct.part_vals.put(_key762, _val763); } iprot.readMapEnd(); } @@ -75674,10 +76959,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, markPartitionForEv oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter756 : struct.part_vals.entrySet()) + for (Map.Entry _iter764 : struct.part_vals.entrySet()) { - oprot.writeString(_iter756.getKey()); - oprot.writeString(_iter756.getValue()); + oprot.writeString(_iter764.getKey()); + oprot.writeString(_iter764.getValue()); } oprot.writeMapEnd(); } @@ -75728,10 +77013,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter757 : struct.part_vals.entrySet()) + for (Map.Entry _iter765 : struct.part_vals.entrySet()) { - oprot.writeString(_iter757.getKey()); - oprot.writeString(_iter757.getValue()); + oprot.writeString(_iter765.getKey()); + oprot.writeString(_iter765.getValue()); } } } @@ -75754,15 +77039,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map758 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map758.size); - for (int _i759 = 0; _i759 < _map758.size; ++_i759) + org.apache.thrift.protocol.TMap _map766 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map766.size); + for (int _i767 = 0; _i767 < _map766.size; ++_i767) { - String _key760; // required - String _val761; // required - _key760 = iprot.readString(); - _val761 = iprot.readString(); - struct.part_vals.put(_key760, _val761); + String _key768; // required + String _val769; // required + _key768 = iprot.readString(); + _val769 = iprot.readString(); + struct.part_vals.put(_key768, _val769); } } struct.setPart_valsIsSet(true); @@ -77257,15 +78542,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map762 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map762.size); - for (int _i763 = 0; _i763 < _map762.size; ++_i763) + org.apache.thrift.protocol.TMap _map770 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map770.size); + for (int _i771 = 0; _i771 < _map770.size; ++_i771) { - String _key764; // required - String _val765; // required - _key764 = iprot.readString(); - _val765 = iprot.readString(); - struct.part_vals.put(_key764, _val765); + String _key772; // required + String _val773; // required + _key772 = iprot.readString(); + _val773 = iprot.readString(); + struct.part_vals.put(_key772, _val773); } iprot.readMapEnd(); } @@ -77309,10 +78594,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isPartitionMarkedF oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter766 : struct.part_vals.entrySet()) + for (Map.Entry _iter774 : struct.part_vals.entrySet()) { - oprot.writeString(_iter766.getKey()); - oprot.writeString(_iter766.getValue()); + oprot.writeString(_iter774.getKey()); + oprot.writeString(_iter774.getValue()); } oprot.writeMapEnd(); } @@ -77363,10 +78648,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter767 : struct.part_vals.entrySet()) + for (Map.Entry _iter775 : struct.part_vals.entrySet()) { - oprot.writeString(_iter767.getKey()); - oprot.writeString(_iter767.getValue()); + oprot.writeString(_iter775.getKey()); + oprot.writeString(_iter775.getValue()); } } } @@ -77389,15 +78674,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map768 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map768.size); - for (int _i769 = 0; _i769 < _map768.size; ++_i769) + org.apache.thrift.protocol.TMap _map776 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map776.size); + for (int _i777 = 0; _i777 < _map776.size; ++_i777) { - String _key770; // required - String _val771; // required - _key770 = iprot.readString(); - _val771 = iprot.readString(); - struct.part_vals.put(_key770, _val771); + String _key778; // required + String _val779; // required + _key778 = iprot.readString(); + _val779 = iprot.readString(); + struct.part_vals.put(_key778, _val779); } } struct.setPart_valsIsSet(true); @@ -84121,14 +85406,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list772 = iprot.readListBegin(); - struct.success = new ArrayList(_list772.size); - for (int _i773 = 0; _i773 < _list772.size; ++_i773) + org.apache.thrift.protocol.TList _list780 = iprot.readListBegin(); + struct.success = new ArrayList(_list780.size); + for (int _i781 = 0; _i781 < _list780.size; ++_i781) { - Index _elem774; // required - _elem774 = new Index(); - _elem774.read(iprot); - struct.success.add(_elem774); + Index _elem782; // required + _elem782 = new Index(); + _elem782.read(iprot); + struct.success.add(_elem782); } iprot.readListEnd(); } @@ -84172,9 +85457,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Index _iter775 : struct.success) + for (Index _iter783 : struct.success) { - _iter775.write(oprot); + _iter783.write(oprot); } oprot.writeListEnd(); } @@ -84221,9 +85506,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter776 : struct.success) + for (Index _iter784 : struct.success) { - _iter776.write(oprot); + _iter784.write(oprot); } } } @@ -84241,14 +85526,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list777.size); - for (int _i778 = 0; _i778 < _list777.size; ++_i778) + org.apache.thrift.protocol.TList _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list785.size); + for (int _i786 = 0; _i786 < _list785.size; ++_i786) { - Index _elem779; // required - _elem779 = new Index(); - _elem779.read(iprot); - struct.success.add(_elem779); + Index _elem787; // required + _elem787 = new Index(); + _elem787.read(iprot); + struct.success.add(_elem787); } } struct.setSuccessIsSet(true); @@ -85230,13 +86515,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list780 = iprot.readListBegin(); - struct.success = new ArrayList(_list780.size); - for (int _i781 = 0; _i781 < _list780.size; ++_i781) + org.apache.thrift.protocol.TList _list788 = iprot.readListBegin(); + struct.success = new ArrayList(_list788.size); + for (int _i789 = 0; _i789 < _list788.size; ++_i789) { - String _elem782; // required - _elem782 = iprot.readString(); - struct.success.add(_elem782); + String _elem790; // required + _elem790 = iprot.readString(); + struct.success.add(_elem790); } iprot.readListEnd(); } @@ -85271,9 +86556,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter783 : struct.success) + for (String _iter791 : struct.success) { - oprot.writeString(_iter783); + oprot.writeString(_iter791); } oprot.writeListEnd(); } @@ -85312,9 +86597,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter784 : struct.success) + for (String _iter792 : struct.success) { - oprot.writeString(_iter784); + oprot.writeString(_iter792); } } } @@ -85329,13 +86614,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_resu BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list785.size); - for (int _i786 = 0; _i786 < _list785.size; ++_i786) + org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list793.size); + for (int _i794 = 0; _i794 < _list793.size; ++_i794) { - String _elem787; // required - _elem787 = iprot.readString(); - struct.success.add(_elem787); + String _elem795; // required + _elem795 = iprot.readString(); + struct.success.add(_elem795); } } struct.setSuccessIsSet(true); @@ -98990,13 +100275,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_functions_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list788 = iprot.readListBegin(); - struct.success = new ArrayList(_list788.size); - for (int _i789 = 0; _i789 < _list788.size; ++_i789) + org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); + struct.success = new ArrayList(_list796.size); + for (int _i797 = 0; _i797 < _list796.size; ++_i797) { - String _elem790; // required - _elem790 = iprot.readString(); - struct.success.add(_elem790); + String _elem798; // required + _elem798 = iprot.readString(); + struct.success.add(_elem798); } iprot.readListEnd(); } @@ -99031,9 +100316,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_functions_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter791 : struct.success) + for (String _iter799 : struct.success) { - oprot.writeString(_iter791); + oprot.writeString(_iter799); } oprot.writeListEnd(); } @@ -99072,9 +100357,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter792 : struct.success) + for (String _iter800 : struct.success) { - oprot.writeString(_iter792); + oprot.writeString(_iter800); } } } @@ -99089,13 +100374,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_functions_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list793.size); - for (int _i794 = 0; _i794 < _list793.size; ++_i794) + org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list801.size); + for (int _i802 = 0; _i802 < _list801.size; ++_i802) { - String _elem795; // required - _elem795 = iprot.readString(); - struct.success.add(_elem795); + String _elem803; // required + _elem803 = iprot.readString(); + struct.success.add(_elem803); } } struct.setSuccessIsSet(true); @@ -102438,13 +103723,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_role_names_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); - struct.success = new ArrayList(_list796.size); - for (int _i797 = 0; _i797 < _list796.size; ++_i797) + org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); + struct.success = new ArrayList(_list804.size); + for (int _i805 = 0; _i805 < _list804.size; ++_i805) { - String _elem798; // required - _elem798 = iprot.readString(); - struct.success.add(_elem798); + String _elem806; // required + _elem806 = iprot.readString(); + struct.success.add(_elem806); } iprot.readListEnd(); } @@ -102479,9 +103764,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_role_names_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter799 : struct.success) + for (String _iter807 : struct.success) { - oprot.writeString(_iter799); + oprot.writeString(_iter807); } oprot.writeListEnd(); } @@ -102520,9 +103805,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter800 : struct.success) + for (String _iter808 : struct.success) { - oprot.writeString(_iter800); + oprot.writeString(_iter808); } } } @@ -102537,13 +103822,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_names_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list801.size); - for (int _i802 = 0; _i802 < _list801.size; ++_i802) + org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list809.size); + for (int _i810 = 0; _i810 < _list809.size; ++_i810) { - String _elem803; // required - _elem803 = iprot.readString(); - struct.success.add(_elem803); + String _elem811; // required + _elem811 = iprot.readString(); + struct.success.add(_elem811); } } struct.setSuccessIsSet(true); @@ -105834,14 +107119,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); - struct.success = new ArrayList(_list804.size); - for (int _i805 = 0; _i805 < _list804.size; ++_i805) + org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); + struct.success = new ArrayList(_list812.size); + for (int _i813 = 0; _i813 < _list812.size; ++_i813) { - Role _elem806; // required - _elem806 = new Role(); - _elem806.read(iprot); - struct.success.add(_elem806); + Role _elem814; // required + _elem814 = new Role(); + _elem814.read(iprot); + struct.success.add(_elem814); } iprot.readListEnd(); } @@ -105876,9 +107161,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_roles_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Role _iter807 : struct.success) + for (Role _iter815 : struct.success) { - _iter807.write(oprot); + _iter815.write(oprot); } oprot.writeListEnd(); } @@ -105917,9 +107202,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter808 : struct.success) + for (Role _iter816 : struct.success) { - _iter808.write(oprot); + _iter816.write(oprot); } } } @@ -105934,14 +107219,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list809.size); - for (int _i810 = 0; _i810 < _list809.size; ++_i810) + org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list817.size); + for (int _i818 = 0; _i818 < _list817.size; ++_i818) { - Role _elem811; // required - _elem811 = new Role(); - _elem811.read(iprot); - struct.success.add(_elem811); + Role _elem819; // required + _elem819 = new Role(); + _elem819.read(iprot); + struct.success.add(_elem819); } } struct.setSuccessIsSet(true); @@ -108117,13 +109402,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_privilege_set_a case 3: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list812.size); - for (int _i813 = 0; _i813 < _list812.size; ++_i813) + org.apache.thrift.protocol.TList _list820 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list820.size); + for (int _i821 = 0; _i821 < _list820.size; ++_i821) { - String _elem814; // required - _elem814 = iprot.readString(); - struct.group_names.add(_elem814); + String _elem822; // required + _elem822 = iprot.readString(); + struct.group_names.add(_elem822); } iprot.readListEnd(); } @@ -108159,9 +109444,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_privilege_set_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter815 : struct.group_names) + for (String _iter823 : struct.group_names) { - oprot.writeString(_iter815); + oprot.writeString(_iter823); } oprot.writeListEnd(); } @@ -108204,9 +109489,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_a if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter816 : struct.group_names) + for (String _iter824 : struct.group_names) { - oprot.writeString(_iter816); + oprot.writeString(_iter824); } } } @@ -108227,13 +109512,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list817.size); - for (int _i818 = 0; _i818 < _list817.size; ++_i818) + org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list825.size); + for (int _i826 = 0; _i826 < _list825.size; ++_i826) { - String _elem819; // required - _elem819 = iprot.readString(); - struct.group_names.add(_elem819); + String _elem827; // required + _elem827 = iprot.readString(); + struct.group_names.add(_elem827); } } struct.setGroup_namesIsSet(true); @@ -109691,14 +110976,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_privileges_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list820 = iprot.readListBegin(); - struct.success = new ArrayList(_list820.size); - for (int _i821 = 0; _i821 < _list820.size; ++_i821) + org.apache.thrift.protocol.TList _list828 = iprot.readListBegin(); + struct.success = new ArrayList(_list828.size); + for (int _i829 = 0; _i829 < _list828.size; ++_i829) { - HiveObjectPrivilege _elem822; // required - _elem822 = new HiveObjectPrivilege(); - _elem822.read(iprot); - struct.success.add(_elem822); + HiveObjectPrivilege _elem830; // required + _elem830 = new HiveObjectPrivilege(); + _elem830.read(iprot); + struct.success.add(_elem830); } iprot.readListEnd(); } @@ -109733,9 +111018,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_privileges_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (HiveObjectPrivilege _iter823 : struct.success) + for (HiveObjectPrivilege _iter831 : struct.success) { - _iter823.write(oprot); + _iter831.write(oprot); } oprot.writeListEnd(); } @@ -109774,9 +111059,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter824 : struct.success) + for (HiveObjectPrivilege _iter832 : struct.success) { - _iter824.write(oprot); + _iter832.write(oprot); } } } @@ -109791,14 +111076,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_resu BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list825.size); - for (int _i826 = 0; _i826 < _list825.size; ++_i826) + org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list833.size); + for (int _i834 = 0; _i834 < _list833.size; ++_i834) { - HiveObjectPrivilege _elem827; // required - _elem827 = new HiveObjectPrivilege(); - _elem827.read(iprot); - struct.success.add(_elem827); + HiveObjectPrivilege _elem835; // required + _elem835 = new HiveObjectPrivilege(); + _elem835.read(iprot); + struct.success.add(_elem835); } } struct.setSuccessIsSet(true); @@ -111871,13 +113156,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_args struct case 2: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list828 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list828.size); - for (int _i829 = 0; _i829 < _list828.size; ++_i829) + org.apache.thrift.protocol.TList _list836 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list836.size); + for (int _i837 = 0; _i837 < _list836.size; ++_i837) { - String _elem830; // required - _elem830 = iprot.readString(); - struct.group_names.add(_elem830); + String _elem838; // required + _elem838 = iprot.readString(); + struct.group_names.add(_elem838); } iprot.readListEnd(); } @@ -111908,9 +113193,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_args struc oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter831 : struct.group_names) + for (String _iter839 : struct.group_names) { - oprot.writeString(_iter831); + oprot.writeString(_iter839); } oprot.writeListEnd(); } @@ -111947,9 +113232,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter832 : struct.group_names) + for (String _iter840 : struct.group_names) { - oprot.writeString(_iter832); + oprot.writeString(_iter840); } } } @@ -111965,13 +113250,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list833.size); - for (int _i834 = 0; _i834 < _list833.size; ++_i834) + org.apache.thrift.protocol.TList _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list841.size); + for (int _i842 = 0; _i842 < _list841.size; ++_i842) { - String _elem835; // required - _elem835 = iprot.readString(); - struct.group_names.add(_elem835); + String _elem843; // required + _elem843 = iprot.readString(); + struct.group_names.add(_elem843); } } struct.setGroup_namesIsSet(true); @@ -112377,13 +113662,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_result stru case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list836 = iprot.readListBegin(); - struct.success = new ArrayList(_list836.size); - for (int _i837 = 0; _i837 < _list836.size; ++_i837) + org.apache.thrift.protocol.TList _list844 = iprot.readListBegin(); + struct.success = new ArrayList(_list844.size); + for (int _i845 = 0; _i845 < _list844.size; ++_i845) { - String _elem838; // required - _elem838 = iprot.readString(); - struct.success.add(_elem838); + String _elem846; // required + _elem846 = iprot.readString(); + struct.success.add(_elem846); } iprot.readListEnd(); } @@ -112418,9 +113703,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_result str oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter839 : struct.success) + for (String _iter847 : struct.success) { - oprot.writeString(_iter839); + oprot.writeString(_iter847); } oprot.writeListEnd(); } @@ -112459,9 +113744,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter840 : struct.success) + for (String _iter848 : struct.success) { - oprot.writeString(_iter840); + oprot.writeString(_iter848); } } } @@ -112476,13 +113761,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_result struc BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list841.size); - for (int _i842 = 0; _i842 < _list841.size; ++_i842) + org.apache.thrift.protocol.TList _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list849.size); + for (int _i850 = 0; _i850 < _list849.size; ++_i850) { - String _elem843; // required - _elem843 = iprot.readString(); - struct.success.add(_elem843); + String _elem851; // required + _elem851 = iprot.readString(); + struct.success.add(_elem851); } } struct.setSuccessIsSet(true); diff --git metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index c79624f..ea45deb 100644 --- metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -59,6 +59,7 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { public function get_partitions($db_name, $tbl_name, $max_parts); public function get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names); public function get_partition_names($db_name, $tbl_name, $max_parts); + public function get_partition_names_by_filter($db_name, $tbl_name, $filter, $max_parts); public function get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts); public function get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names); public function get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts); @@ -2664,6 +2665,63 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partition_names failed: unknown result"); } + public function get_partition_names_by_filter($db_name, $tbl_name, $filter, $max_parts) + { + $this->send_get_partition_names_by_filter($db_name, $tbl_name, $filter, $max_parts); + return $this->recv_get_partition_names_by_filter(); + } + + public function send_get_partition_names_by_filter($db_name, $tbl_name, $filter, $max_parts) + { + $args = new \metastore\ThriftHiveMetastore_get_partition_names_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_partition_names_by_filter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_partition_names_by_filter', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_partition_names_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_partition_names_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_partition_names_by_filter_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o2 !== null) { + throw $result->o2; + } + throw new \Exception("get_partition_names_by_filter failed: unknown result"); + } + 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); @@ -16638,12 +16696,12 @@ class ThriftHiveMetastore_get_partition_names_result { } -class ThriftHiveMetastore_get_partitions_ps_args { +class ThriftHiveMetastore_get_partition_names_by_filter_args { static $_TSPEC; public $db_name = null; public $tbl_name = null; - public $part_vals = null; + public $filter = null; public $max_parts = -1; public function __construct($vals=null) { @@ -16658,12 +16716,8 @@ class ThriftHiveMetastore_get_partitions_ps_args { 'type' => TType::STRING, ), 3 => array( - 'var' => 'part_vals', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), + 'var' => 'filter', + 'type' => TType::STRING, ), 4 => array( 'var' => 'max_parts', @@ -16678,8 +16732,8 @@ class ThriftHiveMetastore_get_partitions_ps_args { if (isset($vals['tbl_name'])) { $this->tbl_name = $vals['tbl_name']; } - if (isset($vals['part_vals'])) { - $this->part_vals = $vals['part_vals']; + if (isset($vals['filter'])) { + $this->filter = $vals['filter']; } if (isset($vals['max_parts'])) { $this->max_parts = $vals['max_parts']; @@ -16688,7 +16742,7 @@ class ThriftHiveMetastore_get_partitions_ps_args { } public function getName() { - return 'ThriftHiveMetastore_get_partitions_ps_args'; + return 'ThriftHiveMetastore_get_partition_names_by_filter_args'; } public function read($input) @@ -16721,18 +16775,8 @@ class ThriftHiveMetastore_get_partitions_ps_args { } break; case 3: - if ($ftype == TType::LST) { - $this->part_vals = array(); - $_size558 = 0; - $_etype561 = 0; - $xfer += $input->readListBegin($_etype561, $_size558); - for ($_i562 = 0; $_i562 < $_size558; ++$_i562) - { - $elem563 = null; - $xfer += $input->readString($elem563); - $this->part_vals []= $elem563; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->filter); } else { $xfer += $input->skip($ftype); } @@ -16756,7 +16800,7 @@ class ThriftHiveMetastore_get_partitions_ps_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_names_by_filter_args'); if ($this->db_name !== null) { $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); $xfer += $output->writeString($this->db_name); @@ -16767,21 +16811,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { $xfer += $output->writeString($this->tbl_name); $xfer += $output->writeFieldEnd(); } - if ($this->part_vals !== null) { - if (!is_array($this->part_vals)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3); - { - $output->writeListBegin(TType::STRING, count($this->part_vals)); - { - foreach ($this->part_vals as $iter564) - { - $xfer += $output->writeString($iter564); - } - } - $output->writeListEnd(); - } + if ($this->filter !== null) { + $xfer += $output->writeFieldBegin('filter', TType::STRING, 3); + $xfer += $output->writeString($this->filter); $xfer += $output->writeFieldEnd(); } if ($this->max_parts !== null) { @@ -16796,11 +16828,10 @@ class ThriftHiveMetastore_get_partitions_ps_args { } -class ThriftHiveMetastore_get_partitions_ps_result { +class ThriftHiveMetastore_get_partition_names_by_filter_result { static $_TSPEC; public $success = null; - public $o1 = null; public $o2 = null; public function __construct($vals=null) { @@ -16809,21 +16840,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { 0 => array( 'var' => 'success', 'type' => TType::LST, - 'etype' => TType::STRUCT, + 'etype' => TType::STRING, 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\metastore\Partition', + 'type' => TType::STRING, ), ), 1 => array( - 'var' => 'o1', - 'type' => TType::STRUCT, - 'class' => '\metastore\MetaException', - ), - 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => '\metastore\NoSuchObjectException', + 'class' => '\metastore\MetaException', ), ); } @@ -16831,9 +16856,6 @@ class ThriftHiveMetastore_get_partitions_ps_result { if (isset($vals['success'])) { $this->success = $vals['success']; } - if (isset($vals['o1'])) { - $this->o1 = $vals['o1']; - } if (isset($vals['o2'])) { $this->o2 = $vals['o2']; } @@ -16841,7 +16863,7 @@ class ThriftHiveMetastore_get_partitions_ps_result { } public function getName() { - return 'ThriftHiveMetastore_get_partitions_ps_result'; + return 'ThriftHiveMetastore_get_partition_names_by_filter_result'; } public function read($input) @@ -16862,15 +16884,14 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size565 = 0; - $_etype568 = 0; - $xfer += $input->readListBegin($_etype568, $_size565); - for ($_i569 = 0; $_i569 < $_size565; ++$_i569) + $_size558 = 0; + $_etype561 = 0; + $xfer += $input->readListBegin($_etype561, $_size558); + for ($_i562 = 0; $_i562 < $_size558; ++$_i562) { - $elem570 = null; - $elem570 = new \metastore\Partition(); - $xfer += $elem570->read($input); - $this->success []= $elem570; + $elem563 = null; + $xfer += $input->readString($elem563); + $this->success []= $elem563; } $xfer += $input->readListEnd(); } else { @@ -16879,15 +16900,7 @@ class ThriftHiveMetastore_get_partitions_ps_result { 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(); + $this->o2 = new \metastore\MetaException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -16905,31 +16918,26 @@ class ThriftHiveMetastore_get_partitions_ps_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_names_by_filter_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } $xfer += $output->writeFieldBegin('success', TType::LST, 0); { - $output->writeListBegin(TType::STRUCT, count($this->success)); + $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter571) + foreach ($this->success as $iter564) { - $xfer += $iter571->write($output); + $xfer += $output->writeString($iter564); } } $output->writeListEnd(); } $xfer += $output->writeFieldEnd(); } - if ($this->o1 !== null) { - $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); - $xfer += $this->o1->write($output); - $xfer += $output->writeFieldEnd(); - } if ($this->o2 !== null) { - $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 1); $xfer += $this->o2->write($output); $xfer += $output->writeFieldEnd(); } @@ -16940,15 +16948,13 @@ class ThriftHiveMetastore_get_partitions_ps_result { } -class ThriftHiveMetastore_get_partitions_ps_with_auth_args { +class ThriftHiveMetastore_get_partitions_ps_args { static $_TSPEC; public $db_name = null; public $tbl_name = null; public $part_vals = null; public $max_parts = -1; - public $user_name = null; - public $group_names = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -16973,18 +16979,6 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { 'var' => 'max_parts', 'type' => TType::I16, ), - 5 => array( - 'var' => 'user_name', - 'type' => TType::STRING, - ), - 6 => array( - 'var' => 'group_names', - 'type' => TType::LST, - 'etype' => TType::STRING, - 'elem' => array( - 'type' => TType::STRING, - ), - ), ); } if (is_array($vals)) { @@ -17000,17 +16994,11 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { if (isset($vals['max_parts'])) { $this->max_parts = $vals['max_parts']; } - if (isset($vals['user_name'])) { - $this->user_name = $vals['user_name']; - } - if (isset($vals['group_names'])) { - $this->group_names = $vals['group_names']; - } } } public function getName() { - return 'ThriftHiveMetastore_get_partitions_ps_with_auth_args'; + return 'ThriftHiveMetastore_get_partitions_ps_args'; } public function read($input) @@ -17045,14 +17033,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size572 = 0; - $_etype575 = 0; - $xfer += $input->readListBegin($_etype575, $_size572); - for ($_i576 = 0; $_i576 < $_size572; ++$_i576) + $_size565 = 0; + $_etype568 = 0; + $xfer += $input->readListBegin($_etype568, $_size565); + for ($_i569 = 0; $_i569 < $_size565; ++$_i569) { - $elem577 = null; - $xfer += $input->readString($elem577); - $this->part_vals []= $elem577; + $elem570 = null; + $xfer += $input->readString($elem570); + $this->part_vals []= $elem570; } $xfer += $input->readListEnd(); } else { @@ -17066,30 +17054,6 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { $xfer += $input->skip($ftype); } break; - case 5: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->user_name); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::LST) { - $this->group_names = array(); - $_size578 = 0; - $_etype581 = 0; - $xfer += $input->readListBegin($_etype581, $_size578); - for ($_i582 = 0; $_i582 < $_size578; ++$_i582) - { - $elem583 = null; - $xfer += $input->readString($elem583); - $this->group_names []= $elem583; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -17102,7 +17066,7 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_with_auth_args'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_args'); if ($this->db_name !== null) { $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); $xfer += $output->writeString($this->db_name); @@ -17121,9 +17085,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter584) + foreach ($this->part_vals as $iter571) { - $xfer += $output->writeString($iter584); + $xfer += $output->writeString($iter571); } } $output->writeListEnd(); @@ -17135,28 +17099,6 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { $xfer += $output->writeI16($this->max_parts); $xfer += $output->writeFieldEnd(); } - if ($this->user_name !== null) { - $xfer += $output->writeFieldBegin('user_name', TType::STRING, 5); - $xfer += $output->writeString($this->user_name); - $xfer += $output->writeFieldEnd(); - } - if ($this->group_names !== null) { - if (!is_array($this->group_names)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('group_names', TType::LST, 6); - { - $output->writeListBegin(TType::STRING, count($this->group_names)); - { - foreach ($this->group_names as $iter585) - { - $xfer += $output->writeString($iter585); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -17164,7 +17106,7 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { } -class ThriftHiveMetastore_get_partitions_ps_with_auth_result { +class ThriftHiveMetastore_get_partitions_ps_result { static $_TSPEC; public $success = null; @@ -17186,12 +17128,12 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { 1 => array( 'var' => 'o1', 'type' => TType::STRUCT, - 'class' => '\metastore\NoSuchObjectException', + 'class' => '\metastore\MetaException', ), 2 => array( 'var' => 'o2', 'type' => TType::STRUCT, - 'class' => '\metastore\MetaException', + 'class' => '\metastore\NoSuchObjectException', ), ); } @@ -17209,7 +17151,7 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { } public function getName() { - return 'ThriftHiveMetastore_get_partitions_ps_with_auth_result'; + return 'ThriftHiveMetastore_get_partitions_ps_result'; } public function read($input) @@ -17230,15 +17172,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size586 = 0; - $_etype589 = 0; - $xfer += $input->readListBegin($_etype589, $_size586); - for ($_i590 = 0; $_i590 < $_size586; ++$_i590) + $_size572 = 0; + $_etype575 = 0; + $xfer += $input->readListBegin($_etype575, $_size572); + for ($_i576 = 0; $_i576 < $_size572; ++$_i576) { - $elem591 = null; - $elem591 = new \metastore\Partition(); - $xfer += $elem591->read($input); - $this->success []= $elem591; + $elem577 = null; + $elem577 = new \metastore\Partition(); + $xfer += $elem577->read($input); + $this->success []= $elem577; } $xfer += $input->readListEnd(); } else { @@ -17247,7 +17189,7 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { break; case 1: if ($ftype == TType::STRUCT) { - $this->o1 = new \metastore\NoSuchObjectException(); + $this->o1 = new \metastore\MetaException(); $xfer += $this->o1->read($input); } else { $xfer += $input->skip($ftype); @@ -17255,7 +17197,7 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { break; case 2: if ($ftype == TType::STRUCT) { - $this->o2 = new \metastore\MetaException(); + $this->o2 = new \metastore\NoSuchObjectException(); $xfer += $this->o2->read($input); } else { $xfer += $input->skip($ftype); @@ -17273,7 +17215,7 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_with_auth_result'); + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -17282,9 +17224,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter592) + foreach ($this->success as $iter578) { - $xfer += $iter592->write($output); + $xfer += $iter578->write($output); } } $output->writeListEnd(); @@ -17308,13 +17250,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { } -class ThriftHiveMetastore_get_partition_names_ps_args { +class ThriftHiveMetastore_get_partitions_ps_with_auth_args { static $_TSPEC; public $db_name = null; public $tbl_name = null; public $part_vals = null; public $max_parts = -1; + public $user_name = null; + public $group_names = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -17339,6 +17283,18 @@ class ThriftHiveMetastore_get_partition_names_ps_args { 'var' => 'max_parts', 'type' => TType::I16, ), + 5 => array( + 'var' => 'user_name', + 'type' => TType::STRING, + ), + 6 => array( + 'var' => 'group_names', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), ); } if (is_array($vals)) { @@ -17354,11 +17310,365 @@ class ThriftHiveMetastore_get_partition_names_ps_args { if (isset($vals['max_parts'])) { $this->max_parts = $vals['max_parts']; } - } - } - - public function getName() { - return 'ThriftHiveMetastore_get_partition_names_ps_args'; + if (isset($vals['user_name'])) { + $this->user_name = $vals['user_name']; + } + if (isset($vals['group_names'])) { + $this->group_names = $vals['group_names']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partitions_ps_with_auth_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::LST) { + $this->part_vals = array(); + $_size579 = 0; + $_etype582 = 0; + $xfer += $input->readListBegin($_etype582, $_size579); + for ($_i583 = 0; $_i583 < $_size579; ++$_i583) + { + $elem584 = null; + $xfer += $input->readString($elem584); + $this->part_vals []= $elem584; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I16) { + $xfer += $input->readI16($this->max_parts); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->user_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::LST) { + $this->group_names = array(); + $_size585 = 0; + $_etype588 = 0; + $xfer += $input->readListBegin($_etype588, $_size585); + for ($_i589 = 0; $_i589 < $_size585; ++$_i589) + { + $elem590 = null; + $xfer += $input->readString($elem590); + $this->group_names []= $elem590; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_with_auth_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->part_vals !== null) { + if (!is_array($this->part_vals)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3); + { + $output->writeListBegin(TType::STRING, count($this->part_vals)); + { + foreach ($this->part_vals as $iter591) + { + $xfer += $output->writeString($iter591); + } + } + $output->writeListEnd(); + } + $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(); + } + if ($this->user_name !== null) { + $xfer += $output->writeFieldBegin('user_name', TType::STRING, 5); + $xfer += $output->writeString($this->user_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->group_names !== null) { + if (!is_array($this->group_names)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('group_names', TType::LST, 6); + { + $output->writeListBegin(TType::STRING, count($this->group_names)); + { + foreach ($this->group_names as $iter592) + { + $xfer += $output->writeString($iter592); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_partitions_ps_with_auth_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::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\Partition', + ), + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partitions_ps_with_auth_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size593 = 0; + $_etype596 = 0; + $xfer += $input->readListBegin($_etype596, $_size593); + for ($_i597 = 0; $_i597 < $_size593; ++$_i597) + { + $elem598 = null; + $elem598 = new \metastore\Partition(); + $xfer += $elem598->read($input); + $this->success []= $elem598; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\NoSuchObjectException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\MetaException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partitions_ps_with_auth_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter599) + { + $xfer += $iter599->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_partition_names_ps_args { + static $_TSPEC; + + public $db_name = null; + public $tbl_name = null; + public $part_vals = 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' => 'part_vals', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + '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['part_vals'])) { + $this->part_vals = $vals['part_vals']; + } + if (isset($vals['max_parts'])) { + $this->max_parts = $vals['max_parts']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partition_names_ps_args'; } public function read($input) @@ -17393,14 +17703,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size593 = 0; - $_etype596 = 0; - $xfer += $input->readListBegin($_etype596, $_size593); - for ($_i597 = 0; $_i597 < $_size593; ++$_i597) + $_size600 = 0; + $_etype603 = 0; + $xfer += $input->readListBegin($_etype603, $_size600); + for ($_i604 = 0; $_i604 < $_size600; ++$_i604) { - $elem598 = null; - $xfer += $input->readString($elem598); - $this->part_vals []= $elem598; + $elem605 = null; + $xfer += $input->readString($elem605); + $this->part_vals []= $elem605; } $xfer += $input->readListEnd(); } else { @@ -17445,9 +17755,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter599) + foreach ($this->part_vals as $iter606) { - $xfer += $output->writeString($iter599); + $xfer += $output->writeString($iter606); } } $output->writeListEnd(); @@ -17531,14 +17841,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size600 = 0; - $_etype603 = 0; - $xfer += $input->readListBegin($_etype603, $_size600); - for ($_i604 = 0; $_i604 < $_size600; ++$_i604) + $_size607 = 0; + $_etype610 = 0; + $xfer += $input->readListBegin($_etype610, $_size607); + for ($_i611 = 0; $_i611 < $_size607; ++$_i611) { - $elem605 = null; - $xfer += $input->readString($elem605); - $this->success []= $elem605; + $elem612 = null; + $xfer += $input->readString($elem612); + $this->success []= $elem612; } $xfer += $input->readListEnd(); } else { @@ -17582,9 +17892,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter606) + foreach ($this->success as $iter613) { - $xfer += $output->writeString($iter606); + $xfer += $output->writeString($iter613); } } $output->writeListEnd(); @@ -17806,15 +18116,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size607 = 0; - $_etype610 = 0; - $xfer += $input->readListBegin($_etype610, $_size607); - for ($_i611 = 0; $_i611 < $_size607; ++$_i611) + $_size614 = 0; + $_etype617 = 0; + $xfer += $input->readListBegin($_etype617, $_size614); + for ($_i618 = 0; $_i618 < $_size614; ++$_i618) { - $elem612 = null; - $elem612 = new \metastore\Partition(); - $xfer += $elem612->read($input); - $this->success []= $elem612; + $elem619 = null; + $elem619 = new \metastore\Partition(); + $xfer += $elem619->read($input); + $this->success []= $elem619; } $xfer += $input->readListEnd(); } else { @@ -17858,9 +18168,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter613) + foreach ($this->success as $iter620) { - $xfer += $iter613->write($output); + $xfer += $iter620->write($output); } } $output->writeListEnd(); @@ -18159,14 +18469,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size614 = 0; - $_etype617 = 0; - $xfer += $input->readListBegin($_etype617, $_size614); - for ($_i618 = 0; $_i618 < $_size614; ++$_i618) + $_size621 = 0; + $_etype624 = 0; + $xfer += $input->readListBegin($_etype624, $_size621); + for ($_i625 = 0; $_i625 < $_size621; ++$_i625) { - $elem619 = null; - $xfer += $input->readString($elem619); - $this->names []= $elem619; + $elem626 = null; + $xfer += $input->readString($elem626); + $this->names []= $elem626; } $xfer += $input->readListEnd(); } else { @@ -18204,9 +18514,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter620) + foreach ($this->names as $iter627) { - $xfer += $output->writeString($iter620); + $xfer += $output->writeString($iter627); } } $output->writeListEnd(); @@ -18286,15 +18596,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size621 = 0; - $_etype624 = 0; - $xfer += $input->readListBegin($_etype624, $_size621); - for ($_i625 = 0; $_i625 < $_size621; ++$_i625) + $_size628 = 0; + $_etype631 = 0; + $xfer += $input->readListBegin($_etype631, $_size628); + for ($_i632 = 0; $_i632 < $_size628; ++$_i632) { - $elem626 = null; - $elem626 = new \metastore\Partition(); - $xfer += $elem626->read($input); - $this->success []= $elem626; + $elem633 = null; + $elem633 = new \metastore\Partition(); + $xfer += $elem633->read($input); + $this->success []= $elem633; } $xfer += $input->readListEnd(); } else { @@ -18338,9 +18648,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter627) + foreach ($this->success as $iter634) { - $xfer += $iter627->write($output); + $xfer += $iter634->write($output); } } $output->writeListEnd(); @@ -18655,15 +18965,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size628 = 0; - $_etype631 = 0; - $xfer += $input->readListBegin($_etype631, $_size628); - for ($_i632 = 0; $_i632 < $_size628; ++$_i632) + $_size635 = 0; + $_etype638 = 0; + $xfer += $input->readListBegin($_etype638, $_size635); + for ($_i639 = 0; $_i639 < $_size635; ++$_i639) { - $elem633 = null; - $elem633 = new \metastore\Partition(); - $xfer += $elem633->read($input); - $this->new_parts []= $elem633; + $elem640 = null; + $elem640 = new \metastore\Partition(); + $xfer += $elem640->read($input); + $this->new_parts []= $elem640; } $xfer += $input->readListEnd(); } else { @@ -18701,9 +19011,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter634) + foreach ($this->new_parts as $iter641) { - $xfer += $iter634->write($output); + $xfer += $iter641->write($output); } } $output->writeListEnd(); @@ -19137,14 +19447,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size635 = 0; - $_etype638 = 0; - $xfer += $input->readListBegin($_etype638, $_size635); - for ($_i639 = 0; $_i639 < $_size635; ++$_i639) + $_size642 = 0; + $_etype645 = 0; + $xfer += $input->readListBegin($_etype645, $_size642); + for ($_i646 = 0; $_i646 < $_size642; ++$_i646) { - $elem640 = null; - $xfer += $input->readString($elem640); - $this->part_vals []= $elem640; + $elem647 = null; + $xfer += $input->readString($elem647); + $this->part_vals []= $elem647; } $xfer += $input->readListEnd(); } else { @@ -19190,9 +19500,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter641) + foreach ($this->part_vals as $iter648) { - $xfer += $output->writeString($iter641); + $xfer += $output->writeString($iter648); } } $output->writeListEnd(); @@ -19365,14 +19675,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size642 = 0; - $_etype645 = 0; - $xfer += $input->readListBegin($_etype645, $_size642); - for ($_i646 = 0; $_i646 < $_size642; ++$_i646) + $_size649 = 0; + $_etype652 = 0; + $xfer += $input->readListBegin($_etype652, $_size649); + for ($_i653 = 0; $_i653 < $_size649; ++$_i653) { - $elem647 = null; - $xfer += $input->readString($elem647); - $this->part_vals []= $elem647; + $elem654 = null; + $xfer += $input->readString($elem654); + $this->part_vals []= $elem654; } $xfer += $input->readListEnd(); } else { @@ -19407,9 +19717,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter648) + foreach ($this->part_vals as $iter655) { - $xfer += $output->writeString($iter648); + $xfer += $output->writeString($iter655); } } $output->writeListEnd(); @@ -19836,14 +20146,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size649 = 0; - $_etype652 = 0; - $xfer += $input->readListBegin($_etype652, $_size649); - for ($_i653 = 0; $_i653 < $_size649; ++$_i653) + $_size656 = 0; + $_etype659 = 0; + $xfer += $input->readListBegin($_etype659, $_size656); + for ($_i660 = 0; $_i660 < $_size656; ++$_i660) { - $elem654 = null; - $xfer += $input->readString($elem654); - $this->success []= $elem654; + $elem661 = null; + $xfer += $input->readString($elem661); + $this->success []= $elem661; } $xfer += $input->readListEnd(); } else { @@ -19879,9 +20189,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter655) + foreach ($this->success as $iter662) { - $xfer += $output->writeString($iter655); + $xfer += $output->writeString($iter662); } } $output->writeListEnd(); @@ -20032,17 +20342,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size656 = 0; - $_ktype657 = 0; - $_vtype658 = 0; - $xfer += $input->readMapBegin($_ktype657, $_vtype658, $_size656); - for ($_i660 = 0; $_i660 < $_size656; ++$_i660) + $_size663 = 0; + $_ktype664 = 0; + $_vtype665 = 0; + $xfer += $input->readMapBegin($_ktype664, $_vtype665, $_size663); + for ($_i667 = 0; $_i667 < $_size663; ++$_i667) { - $key661 = ''; - $val662 = ''; - $xfer += $input->readString($key661); - $xfer += $input->readString($val662); - $this->success[$key661] = $val662; + $key668 = ''; + $val669 = ''; + $xfer += $input->readString($key668); + $xfer += $input->readString($val669); + $this->success[$key668] = $val669; } $xfer += $input->readMapEnd(); } else { @@ -20078,10 +20388,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter663 => $viter664) + foreach ($this->success as $kiter670 => $viter671) { - $xfer += $output->writeString($kiter663); - $xfer += $output->writeString($viter664); + $xfer += $output->writeString($kiter670); + $xfer += $output->writeString($viter671); } } $output->writeMapEnd(); @@ -20189,17 +20499,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size665 = 0; - $_ktype666 = 0; - $_vtype667 = 0; - $xfer += $input->readMapBegin($_ktype666, $_vtype667, $_size665); - for ($_i669 = 0; $_i669 < $_size665; ++$_i669) + $_size672 = 0; + $_ktype673 = 0; + $_vtype674 = 0; + $xfer += $input->readMapBegin($_ktype673, $_vtype674, $_size672); + for ($_i676 = 0; $_i676 < $_size672; ++$_i676) { - $key670 = ''; - $val671 = ''; - $xfer += $input->readString($key670); - $xfer += $input->readString($val671); - $this->part_vals[$key670] = $val671; + $key677 = ''; + $val678 = ''; + $xfer += $input->readString($key677); + $xfer += $input->readString($val678); + $this->part_vals[$key677] = $val678; } $xfer += $input->readMapEnd(); } else { @@ -20244,10 +20554,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter672 => $viter673) + foreach ($this->part_vals as $kiter679 => $viter680) { - $xfer += $output->writeString($kiter672); - $xfer += $output->writeString($viter673); + $xfer += $output->writeString($kiter679); + $xfer += $output->writeString($viter680); } } $output->writeMapEnd(); @@ -20539,17 +20849,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size674 = 0; - $_ktype675 = 0; - $_vtype676 = 0; - $xfer += $input->readMapBegin($_ktype675, $_vtype676, $_size674); - for ($_i678 = 0; $_i678 < $_size674; ++$_i678) + $_size681 = 0; + $_ktype682 = 0; + $_vtype683 = 0; + $xfer += $input->readMapBegin($_ktype682, $_vtype683, $_size681); + for ($_i685 = 0; $_i685 < $_size681; ++$_i685) { - $key679 = ''; - $val680 = ''; - $xfer += $input->readString($key679); - $xfer += $input->readString($val680); - $this->part_vals[$key679] = $val680; + $key686 = ''; + $val687 = ''; + $xfer += $input->readString($key686); + $xfer += $input->readString($val687); + $this->part_vals[$key686] = $val687; } $xfer += $input->readMapEnd(); } else { @@ -20594,10 +20904,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter681 => $viter682) + foreach ($this->part_vals as $kiter688 => $viter689) { - $xfer += $output->writeString($kiter681); - $xfer += $output->writeString($viter682); + $xfer += $output->writeString($kiter688); + $xfer += $output->writeString($viter689); } } $output->writeMapEnd(); @@ -21957,15 +22267,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size683 = 0; - $_etype686 = 0; - $xfer += $input->readListBegin($_etype686, $_size683); - for ($_i687 = 0; $_i687 < $_size683; ++$_i687) + $_size690 = 0; + $_etype693 = 0; + $xfer += $input->readListBegin($_etype693, $_size690); + for ($_i694 = 0; $_i694 < $_size690; ++$_i694) { - $elem688 = null; - $elem688 = new \metastore\Index(); - $xfer += $elem688->read($input); - $this->success []= $elem688; + $elem695 = null; + $elem695 = new \metastore\Index(); + $xfer += $elem695->read($input); + $this->success []= $elem695; } $xfer += $input->readListEnd(); } else { @@ -22009,9 +22319,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter689) + foreach ($this->success as $iter696) { - $xfer += $iter689->write($output); + $xfer += $iter696->write($output); } } $output->writeListEnd(); @@ -22203,14 +22513,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size690 = 0; - $_etype693 = 0; - $xfer += $input->readListBegin($_etype693, $_size690); - for ($_i694 = 0; $_i694 < $_size690; ++$_i694) + $_size697 = 0; + $_etype700 = 0; + $xfer += $input->readListBegin($_etype700, $_size697); + for ($_i701 = 0; $_i701 < $_size697; ++$_i701) { - $elem695 = null; - $xfer += $input->readString($elem695); - $this->success []= $elem695; + $elem702 = null; + $xfer += $input->readString($elem702); + $this->success []= $elem702; } $xfer += $input->readListEnd(); } else { @@ -22246,9 +22556,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter696) + foreach ($this->success as $iter703) { - $xfer += $output->writeString($iter696); + $xfer += $output->writeString($iter703); } } $output->writeListEnd(); @@ -25041,14 +25351,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size697 = 0; - $_etype700 = 0; - $xfer += $input->readListBegin($_etype700, $_size697); - for ($_i701 = 0; $_i701 < $_size697; ++$_i701) + $_size704 = 0; + $_etype707 = 0; + $xfer += $input->readListBegin($_etype707, $_size704); + for ($_i708 = 0; $_i708 < $_size704; ++$_i708) { - $elem702 = null; - $xfer += $input->readString($elem702); - $this->success []= $elem702; + $elem709 = null; + $xfer += $input->readString($elem709); + $this->success []= $elem709; } $xfer += $input->readListEnd(); } else { @@ -25084,9 +25394,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter703) + foreach ($this->success as $iter710) { - $xfer += $output->writeString($iter703); + $xfer += $output->writeString($iter710); } } $output->writeListEnd(); @@ -25761,14 +26071,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size704 = 0; - $_etype707 = 0; - $xfer += $input->readListBegin($_etype707, $_size704); - for ($_i708 = 0; $_i708 < $_size704; ++$_i708) + $_size711 = 0; + $_etype714 = 0; + $xfer += $input->readListBegin($_etype714, $_size711); + for ($_i715 = 0; $_i715 < $_size711; ++$_i715) { - $elem709 = null; - $xfer += $input->readString($elem709); - $this->success []= $elem709; + $elem716 = null; + $xfer += $input->readString($elem716); + $this->success []= $elem716; } $xfer += $input->readListEnd(); } else { @@ -25804,9 +26114,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter710) + foreach ($this->success as $iter717) { - $xfer += $output->writeString($iter710); + $xfer += $output->writeString($iter717); } } $output->writeListEnd(); @@ -26446,15 +26756,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size711 = 0; - $_etype714 = 0; - $xfer += $input->readListBegin($_etype714, $_size711); - for ($_i715 = 0; $_i715 < $_size711; ++$_i715) + $_size718 = 0; + $_etype721 = 0; + $xfer += $input->readListBegin($_etype721, $_size718); + for ($_i722 = 0; $_i722 < $_size718; ++$_i722) { - $elem716 = null; - $elem716 = new \metastore\Role(); - $xfer += $elem716->read($input); - $this->success []= $elem716; + $elem723 = null; + $elem723 = new \metastore\Role(); + $xfer += $elem723->read($input); + $this->success []= $elem723; } $xfer += $input->readListEnd(); } else { @@ -26490,9 +26800,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter717) + foreach ($this->success as $iter724) { - $xfer += $iter717->write($output); + $xfer += $iter724->write($output); } } $output->writeListEnd(); @@ -26942,14 +27252,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size718 = 0; - $_etype721 = 0; - $xfer += $input->readListBegin($_etype721, $_size718); - for ($_i722 = 0; $_i722 < $_size718; ++$_i722) + $_size725 = 0; + $_etype728 = 0; + $xfer += $input->readListBegin($_etype728, $_size725); + for ($_i729 = 0; $_i729 < $_size725; ++$_i729) { - $elem723 = null; - $xfer += $input->readString($elem723); - $this->group_names []= $elem723; + $elem730 = null; + $xfer += $input->readString($elem730); + $this->group_names []= $elem730; } $xfer += $input->readListEnd(); } else { @@ -26990,9 +27300,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter724) + foreach ($this->group_names as $iter731) { - $xfer += $output->writeString($iter724); + $xfer += $output->writeString($iter731); } } $output->writeListEnd(); @@ -27279,15 +27589,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size725 = 0; - $_etype728 = 0; - $xfer += $input->readListBegin($_etype728, $_size725); - for ($_i729 = 0; $_i729 < $_size725; ++$_i729) + $_size732 = 0; + $_etype735 = 0; + $xfer += $input->readListBegin($_etype735, $_size732); + for ($_i736 = 0; $_i736 < $_size732; ++$_i736) { - $elem730 = null; - $elem730 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem730->read($input); - $this->success []= $elem730; + $elem737 = null; + $elem737 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem737->read($input); + $this->success []= $elem737; } $xfer += $input->readListEnd(); } else { @@ -27323,9 +27633,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter731) + foreach ($this->success as $iter738) { - $xfer += $iter731->write($output); + $xfer += $iter738->write($output); } } $output->writeListEnd(); @@ -27748,14 +28058,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size732 = 0; - $_etype735 = 0; - $xfer += $input->readListBegin($_etype735, $_size732); - for ($_i736 = 0; $_i736 < $_size732; ++$_i736) + $_size739 = 0; + $_etype742 = 0; + $xfer += $input->readListBegin($_etype742, $_size739); + for ($_i743 = 0; $_i743 < $_size739; ++$_i743) { - $elem737 = null; - $xfer += $input->readString($elem737); - $this->group_names []= $elem737; + $elem744 = null; + $xfer += $input->readString($elem744); + $this->group_names []= $elem744; } $xfer += $input->readListEnd(); } else { @@ -27788,9 +28098,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter738) + foreach ($this->group_names as $iter745) { - $xfer += $output->writeString($iter738); + $xfer += $output->writeString($iter745); } } $output->writeListEnd(); @@ -27860,14 +28170,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size739 = 0; - $_etype742 = 0; - $xfer += $input->readListBegin($_etype742, $_size739); - for ($_i743 = 0; $_i743 < $_size739; ++$_i743) + $_size746 = 0; + $_etype749 = 0; + $xfer += $input->readListBegin($_etype749, $_size746); + for ($_i750 = 0; $_i750 < $_size746; ++$_i750) { - $elem744 = null; - $xfer += $input->readString($elem744); - $this->success []= $elem744; + $elem751 = null; + $xfer += $input->readString($elem751); + $this->success []= $elem751; } $xfer += $input->readListEnd(); } else { @@ -27903,9 +28213,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter745) + foreach ($this->success as $iter752) { - $xfer += $output->writeString($iter745); + $xfer += $output->writeString($iter752); } } $output->writeListEnd(); diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote old mode 100644 new mode 100755 index fdedb57..fe35c07 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -66,6 +66,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': 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_partition_names(string db_name, string tbl_name, i16 max_parts)' + print ' get_partition_names_by_filter(string db_name, string tbl_name, string filter, 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)' @@ -439,6 +440,12 @@ elif cmd == 'get_partition_names': sys.exit(1) pp.pprint(client.get_partition_names(args[0],args[1],eval(args[2]),)) +elif cmd == 'get_partition_names_by_filter': + if len(args) != 4: + print 'get_partition_names_by_filter requires 4 args' + sys.exit(1) + pp.pprint(client.get_partition_names_by_filter(args[0],args[1],args[2],eval(args[3]),)) + elif cmd == 'get_partitions_ps': if len(args) != 4: print 'get_partitions_ps requires 4 args' diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 23679be..2771152 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -385,6 +385,16 @@ def get_partition_names(self, db_name, tbl_name, max_parts): """ pass + def get_partition_names_by_filter(self, db_name, tbl_name, filter, max_parts): + """ + Parameters: + - db_name + - tbl_name + - filter + - max_parts + """ + pass + def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts): """ Parameters: @@ -2506,6 +2516,44 @@ def recv_get_partition_names(self, ): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result"); + def get_partition_names_by_filter(self, db_name, tbl_name, filter, max_parts): + """ + Parameters: + - db_name + - tbl_name + - filter + - max_parts + """ + self.send_get_partition_names_by_filter(db_name, tbl_name, filter, max_parts) + return self.recv_get_partition_names_by_filter() + + def send_get_partition_names_by_filter(self, db_name, tbl_name, filter, max_parts): + self._oprot.writeMessageBegin('get_partition_names_by_filter', TMessageType.CALL, self._seqid) + args = get_partition_names_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_partition_names_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_partition_names_by_filter_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names_by_filter failed: unknown result"); + def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts): """ Parameters: @@ -4812,6 +4860,7 @@ def __init__(self, handler): self._processMap["get_partitions"] = Processor.process_get_partitions self._processMap["get_partitions_with_auth"] = Processor.process_get_partitions_with_auth self._processMap["get_partition_names"] = Processor.process_get_partition_names + self._processMap["get_partition_names_by_filter"] = Processor.process_get_partition_names_by_filter self._processMap["get_partitions_ps"] = Processor.process_get_partitions_ps self._processMap["get_partitions_ps_with_auth"] = Processor.process_get_partitions_ps_with_auth self._processMap["get_partition_names_ps"] = Processor.process_get_partition_names_ps @@ -5610,6 +5659,20 @@ def process_get_partition_names(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_partition_names_by_filter(self, seqid, iprot, oprot): + args = get_partition_names_by_filter_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_partition_names_by_filter_result() + try: + result.success = self._handler.get_partition_names_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts) + except MetaException as o2: + result.o2 = o2 + oprot.writeMessageBegin("get_partition_names_by_filter", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_partitions_ps(self, seqid, iprot, oprot): args = get_partitions_ps_args() args.read(iprot) @@ -13940,6 +14003,182 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_partition_names_by_filter_args: + """ + Attributes: + - db_name + - tbl_name + - filter + - max_parts + """ + + thrift_spec = ( + None, # 0 + (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, 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: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.db_name = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString(); + else: + iprot.skip(ftype) + 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: + 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_partition_names_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() + + 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_partition_names_by_filter_result: + """ + Attributes: + - success + - o2 + """ + + thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0 + (1, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 1 + ) + + def __init__(self, success=None, o2=None,): + self.success = success + 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 = [] + (_etype558, _size555) = iprot.readListBegin() + for _i559 in xrange(_size555): + _elem560 = iprot.readString(); + self.success.append(_elem560) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o2 = MetaException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_partition_names_by_filter_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRING, len(self.success)) + for iter561 in self.success: + oprot.writeString(iter561) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 1) + 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_ps_args: """ Attributes: @@ -13985,10 +14224,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype558, _size555) = iprot.readListBegin() - for _i559 in xrange(_size555): - _elem560 = iprot.readString(); - self.part_vals.append(_elem560) + (_etype565, _size562) = iprot.readListBegin() + for _i566 in xrange(_size562): + _elem567 = iprot.readString(); + self.part_vals.append(_elem567) iprot.readListEnd() else: iprot.skip(ftype) @@ -14018,8 +14257,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter561 in self.part_vals: - oprot.writeString(iter561) + for iter568 in self.part_vals: + oprot.writeString(iter568) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14075,11 +14314,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype565, _size562) = iprot.readListBegin() - for _i566 in xrange(_size562): - _elem567 = Partition() - _elem567.read(iprot) - self.success.append(_elem567) + (_etype572, _size569) = iprot.readListBegin() + for _i573 in xrange(_size569): + _elem574 = Partition() + _elem574.read(iprot) + self.success.append(_elem574) iprot.readListEnd() else: iprot.skip(ftype) @@ -14108,8 +14347,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter568 in self.success: - iter568.write(oprot) + for iter575 in self.success: + iter575.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14189,10 +14428,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype572, _size569) = iprot.readListBegin() - for _i573 in xrange(_size569): - _elem574 = iprot.readString(); - self.part_vals.append(_elem574) + (_etype579, _size576) = iprot.readListBegin() + for _i580 in xrange(_size576): + _elem581 = iprot.readString(); + self.part_vals.append(_elem581) iprot.readListEnd() else: iprot.skip(ftype) @@ -14209,10 +14448,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype578, _size575) = iprot.readListBegin() - for _i579 in xrange(_size575): - _elem580 = iprot.readString(); - self.group_names.append(_elem580) + (_etype585, _size582) = iprot.readListBegin() + for _i586 in xrange(_size582): + _elem587 = iprot.readString(); + self.group_names.append(_elem587) iprot.readListEnd() else: iprot.skip(ftype) @@ -14237,8 +14476,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter581 in self.part_vals: - oprot.writeString(iter581) + for iter588 in self.part_vals: + oprot.writeString(iter588) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14252,8 +14491,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter582 in self.group_names: - oprot.writeString(iter582) + for iter589 in self.group_names: + oprot.writeString(iter589) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14305,11 +14544,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype586, _size583) = iprot.readListBegin() - for _i587 in xrange(_size583): - _elem588 = Partition() - _elem588.read(iprot) - self.success.append(_elem588) + (_etype593, _size590) = iprot.readListBegin() + for _i594 in xrange(_size590): + _elem595 = Partition() + _elem595.read(iprot) + self.success.append(_elem595) iprot.readListEnd() else: iprot.skip(ftype) @@ -14338,8 +14577,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter589 in self.success: - iter589.write(oprot) + for iter596 in self.success: + iter596.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14413,10 +14652,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype593, _size590) = iprot.readListBegin() - for _i594 in xrange(_size590): - _elem595 = iprot.readString(); - self.part_vals.append(_elem595) + (_etype600, _size597) = iprot.readListBegin() + for _i601 in xrange(_size597): + _elem602 = iprot.readString(); + self.part_vals.append(_elem602) iprot.readListEnd() else: iprot.skip(ftype) @@ -14446,8 +14685,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter596 in self.part_vals: - oprot.writeString(iter596) + for iter603 in self.part_vals: + oprot.writeString(iter603) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14503,10 +14742,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype600, _size597) = iprot.readListBegin() - for _i601 in xrange(_size597): - _elem602 = iprot.readString(); - self.success.append(_elem602) + (_etype607, _size604) = iprot.readListBegin() + for _i608 in xrange(_size604): + _elem609 = iprot.readString(); + self.success.append(_elem609) iprot.readListEnd() else: iprot.skip(ftype) @@ -14535,8 +14774,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter603 in self.success: - oprot.writeString(iter603) + for iter610 in self.success: + oprot.writeString(iter610) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14692,11 +14931,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype607, _size604) = iprot.readListBegin() - for _i608 in xrange(_size604): - _elem609 = Partition() - _elem609.read(iprot) - self.success.append(_elem609) + (_etype614, _size611) = iprot.readListBegin() + for _i615 in xrange(_size611): + _elem616 = Partition() + _elem616.read(iprot) + self.success.append(_elem616) iprot.readListEnd() else: iprot.skip(ftype) @@ -14725,8 +14964,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter610 in self.success: - iter610.write(oprot) + for iter617 in self.success: + iter617.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14944,10 +15183,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype614, _size611) = iprot.readListBegin() - for _i615 in xrange(_size611): - _elem616 = iprot.readString(); - self.names.append(_elem616) + (_etype621, _size618) = iprot.readListBegin() + for _i622 in xrange(_size618): + _elem623 = iprot.readString(); + self.names.append(_elem623) iprot.readListEnd() else: iprot.skip(ftype) @@ -14972,8 +15211,8 @@ def write(self, oprot): if self.names is not None: oprot.writeFieldBegin('names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter617 in self.names: - oprot.writeString(iter617) + for iter624 in self.names: + oprot.writeString(iter624) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15025,11 +15264,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype621, _size618) = iprot.readListBegin() - for _i622 in xrange(_size618): - _elem623 = Partition() - _elem623.read(iprot) - self.success.append(_elem623) + (_etype628, _size625) = iprot.readListBegin() + for _i629 in xrange(_size625): + _elem630 = Partition() + _elem630.read(iprot) + self.success.append(_elem630) iprot.readListEnd() else: iprot.skip(ftype) @@ -15058,8 +15297,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter624 in self.success: - iter624.write(oprot) + for iter631 in self.success: + iter631.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15289,11 +15528,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype628, _size625) = iprot.readListBegin() - for _i629 in xrange(_size625): - _elem630 = Partition() - _elem630.read(iprot) - self.new_parts.append(_elem630) + (_etype635, _size632) = iprot.readListBegin() + for _i636 in xrange(_size632): + _elem637 = Partition() + _elem637.read(iprot) + self.new_parts.append(_elem637) iprot.readListEnd() else: iprot.skip(ftype) @@ -15318,8 +15557,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter631 in self.new_parts: - iter631.write(oprot) + for iter638 in self.new_parts: + iter638.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15631,10 +15870,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype635, _size632) = iprot.readListBegin() - for _i636 in xrange(_size632): - _elem637 = iprot.readString(); - self.part_vals.append(_elem637) + (_etype642, _size639) = iprot.readListBegin() + for _i643 in xrange(_size639): + _elem644 = iprot.readString(); + self.part_vals.append(_elem644) iprot.readListEnd() else: iprot.skip(ftype) @@ -15665,8 +15904,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter638 in self.part_vals: - oprot.writeString(iter638) + for iter645 in self.part_vals: + oprot.writeString(iter645) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -15794,10 +16033,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype642, _size639) = iprot.readListBegin() - for _i643 in xrange(_size639): - _elem644 = iprot.readString(); - self.part_vals.append(_elem644) + (_etype649, _size646) = iprot.readListBegin() + for _i650 in xrange(_size646): + _elem651 = iprot.readString(); + self.part_vals.append(_elem651) iprot.readListEnd() else: iprot.skip(ftype) @@ -15819,8 +16058,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter645 in self.part_vals: - oprot.writeString(iter645) + for iter652 in self.part_vals: + oprot.writeString(iter652) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -16149,10 +16388,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype649, _size646) = iprot.readListBegin() - for _i650 in xrange(_size646): - _elem651 = iprot.readString(); - self.success.append(_elem651) + (_etype656, _size653) = iprot.readListBegin() + for _i657 in xrange(_size653): + _elem658 = iprot.readString(); + self.success.append(_elem658) iprot.readListEnd() else: iprot.skip(ftype) @@ -16175,8 +16414,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter652 in self.success: - oprot.writeString(iter652) + for iter659 in self.success: + oprot.writeString(iter659) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16289,11 +16528,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype654, _vtype655, _size653 ) = iprot.readMapBegin() - for _i657 in xrange(_size653): - _key658 = iprot.readString(); - _val659 = iprot.readString(); - self.success[_key658] = _val659 + (_ktype661, _vtype662, _size660 ) = iprot.readMapBegin() + for _i664 in xrange(_size660): + _key665 = iprot.readString(); + _val666 = iprot.readString(); + self.success[_key665] = _val666 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16316,9 +16555,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter660,viter661 in self.success.items(): - oprot.writeString(kiter660) - oprot.writeString(viter661) + for kiter667,viter668 in self.success.items(): + oprot.writeString(kiter667) + oprot.writeString(viter668) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16388,11 +16627,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype663, _vtype664, _size662 ) = iprot.readMapBegin() - for _i666 in xrange(_size662): - _key667 = iprot.readString(); - _val668 = iprot.readString(); - self.part_vals[_key667] = _val668 + (_ktype670, _vtype671, _size669 ) = iprot.readMapBegin() + for _i673 in xrange(_size669): + _key674 = iprot.readString(); + _val675 = iprot.readString(); + self.part_vals[_key674] = _val675 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16422,9 +16661,9 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter669,viter670 in self.part_vals.items(): - oprot.writeString(kiter669) - oprot.writeString(viter670) + for kiter676,viter677 in self.part_vals.items(): + oprot.writeString(kiter676) + oprot.writeString(viter677) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -16620,11 +16859,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype672, _vtype673, _size671 ) = iprot.readMapBegin() - for _i675 in xrange(_size671): - _key676 = iprot.readString(); - _val677 = iprot.readString(); - self.part_vals[_key676] = _val677 + (_ktype679, _vtype680, _size678 ) = iprot.readMapBegin() + for _i682 in xrange(_size678): + _key683 = iprot.readString(); + _val684 = iprot.readString(); + self.part_vals[_key683] = _val684 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16654,9 +16893,9 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter678,viter679 in self.part_vals.items(): - oprot.writeString(kiter678) - oprot.writeString(viter679) + for kiter685,viter686 in self.part_vals.items(): + oprot.writeString(kiter685) + oprot.writeString(viter686) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -17628,11 +17867,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype683, _size680) = iprot.readListBegin() - for _i684 in xrange(_size680): - _elem685 = Index() - _elem685.read(iprot) - self.success.append(_elem685) + (_etype690, _size687) = iprot.readListBegin() + for _i691 in xrange(_size687): + _elem692 = Index() + _elem692.read(iprot) + self.success.append(_elem692) iprot.readListEnd() else: iprot.skip(ftype) @@ -17661,8 +17900,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter686 in self.success: - iter686.write(oprot) + for iter693 in self.success: + iter693.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17803,10 +18042,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype690, _size687) = iprot.readListBegin() - for _i691 in xrange(_size687): - _elem692 = iprot.readString(); - self.success.append(_elem692) + (_etype697, _size694) = iprot.readListBegin() + for _i698 in xrange(_size694): + _elem699 = iprot.readString(); + self.success.append(_elem699) iprot.readListEnd() else: iprot.skip(ftype) @@ -17829,8 +18068,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter693 in self.success: - oprot.writeString(iter693) + for iter700 in self.success: + oprot.writeString(iter700) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -19865,10 +20104,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype697, _size694) = iprot.readListBegin() - for _i698 in xrange(_size694): - _elem699 = iprot.readString(); - self.success.append(_elem699) + (_etype704, _size701) = iprot.readListBegin() + for _i705 in xrange(_size701): + _elem706 = iprot.readString(); + self.success.append(_elem706) iprot.readListEnd() else: iprot.skip(ftype) @@ -19891,8 +20130,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter700 in self.success: - oprot.writeString(iter700) + for iter707 in self.success: + oprot.writeString(iter707) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20410,10 +20649,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype704, _size701) = iprot.readListBegin() - for _i705 in xrange(_size701): - _elem706 = iprot.readString(); - self.success.append(_elem706) + (_etype711, _size708) = iprot.readListBegin() + for _i712 in xrange(_size708): + _elem713 = iprot.readString(); + self.success.append(_elem713) iprot.readListEnd() else: iprot.skip(ftype) @@ -20436,8 +20675,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter707 in self.success: - oprot.writeString(iter707) + for iter714 in self.success: + oprot.writeString(iter714) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20910,11 +21149,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype711, _size708) = iprot.readListBegin() - for _i712 in xrange(_size708): - _elem713 = Role() - _elem713.read(iprot) - self.success.append(_elem713) + (_etype718, _size715) = iprot.readListBegin() + for _i719 in xrange(_size715): + _elem720 = Role() + _elem720.read(iprot) + self.success.append(_elem720) iprot.readListEnd() else: iprot.skip(ftype) @@ -20937,8 +21176,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter714 in self.success: - iter714.write(oprot) + for iter721 in self.success: + iter721.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21274,10 +21513,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype718, _size715) = iprot.readListBegin() - for _i719 in xrange(_size715): - _elem720 = iprot.readString(); - self.group_names.append(_elem720) + (_etype725, _size722) = iprot.readListBegin() + for _i726 in xrange(_size722): + _elem727 = iprot.readString(); + self.group_names.append(_elem727) iprot.readListEnd() else: iprot.skip(ftype) @@ -21302,8 +21541,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter721 in self.group_names: - oprot.writeString(iter721) + for iter728 in self.group_names: + oprot.writeString(iter728) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21510,11 +21749,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype725, _size722) = iprot.readListBegin() - for _i726 in xrange(_size722): - _elem727 = HiveObjectPrivilege() - _elem727.read(iprot) - self.success.append(_elem727) + (_etype732, _size729) = iprot.readListBegin() + for _i733 in xrange(_size729): + _elem734 = HiveObjectPrivilege() + _elem734.read(iprot) + self.success.append(_elem734) iprot.readListEnd() else: iprot.skip(ftype) @@ -21537,8 +21776,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter728 in self.success: - iter728.write(oprot) + for iter735 in self.success: + iter735.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21863,10 +22102,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype732, _size729) = iprot.readListBegin() - for _i733 in xrange(_size729): - _elem734 = iprot.readString(); - self.group_names.append(_elem734) + (_etype739, _size736) = iprot.readListBegin() + for _i740 in xrange(_size736): + _elem741 = iprot.readString(); + self.group_names.append(_elem741) iprot.readListEnd() else: iprot.skip(ftype) @@ -21887,8 +22126,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter735 in self.group_names: - oprot.writeString(iter735) + for iter742 in self.group_names: + oprot.writeString(iter742) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21937,10 +22176,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype739, _size736) = iprot.readListBegin() - for _i740 in xrange(_size736): - _elem741 = iprot.readString(); - self.success.append(_elem741) + (_etype746, _size743) = iprot.readListBegin() + for _i747 in xrange(_size743): + _elem748 = iprot.readString(); + self.success.append(_elem748) iprot.readListEnd() else: iprot.skip(ftype) @@ -21963,8 +22202,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter742 in self.success: - oprot.writeString(iter742) + for iter749 in self.success: + oprot.writeString(iter749) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: diff --git metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 56c23e6..898b99f 100644 --- metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -749,6 +749,22 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names failed: unknown result') end + def get_partition_names_by_filter(db_name, tbl_name, filter, max_parts) + send_get_partition_names_by_filter(db_name, tbl_name, filter, max_parts) + return recv_get_partition_names_by_filter() + end + + def send_get_partition_names_by_filter(db_name, tbl_name, filter, max_parts) + send_message('get_partition_names_by_filter', Get_partition_names_by_filter_args, :db_name => db_name, :tbl_name => tbl_name, :filter => filter, :max_parts => max_parts) + end + + def recv_get_partition_names_by_filter() + result = receive_message(Get_partition_names_by_filter_result) + return result.success unless result.success.nil? + raise result.o2 unless result.o2.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names_by_filter failed: unknown result') + end + def get_partitions_ps(db_name, tbl_name, part_vals, max_parts) send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts) return recv_get_partitions_ps() @@ -2404,6 +2420,17 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_partition_names', seqid) end + def process_get_partition_names_by_filter(seqid, iprot, oprot) + args = read_args(iprot, Get_partition_names_by_filter_args) + result = Get_partition_names_by_filter_result.new() + begin + result.success = @handler.get_partition_names_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts) + rescue ::MetaException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_partition_names_by_filter', seqid) + end + def process_get_partitions_ps(seqid, iprot, oprot) args = read_args(iprot, Get_partitions_ps_args) result = Get_partitions_ps_result.new() @@ -4893,6 +4920,46 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_partition_names_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_partition_names_by_filter_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O2 = 1 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_partitions_ps_args include ::Thrift::Struct, ::Thrift::Struct_Union DB_NAME = 1 diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index 487d292..d02394c 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -2575,6 +2575,31 @@ public Partition get_partition_with_auth(final String db_name, } @Override + public List get_partition_names_by_filter(final String db_name, + final String tbl_name, final String filter, final short max_parts) + throws MetaException, TException { + startTableFunction("get_partition_names_by_filter", db_name, tbl_name); + + List ret = null; + Exception ex = null; + try { + ret = getMS().listPartitionNamesByFilter(db_name, tbl_name, filter, max_parts); + } catch (Exception e) { + ex = e; + if (e instanceof MetaException) { + throw (MetaException) e; + } else { + MetaException me = new MetaException(e.toString()); + me.initCause(e); + throw me; + } + } finally { + endFunction("get_partition_names_by_filter", ret != null, ex, tbl_name); + } + return ret; + } + + @Override public void alter_partition(final String db_name, final String tbl_name, final Partition new_part) throws InvalidOperationException, MetaException, diff --git metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index 0c2209b..d20ec10 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -21,7 +21,6 @@ import org.apache.hadoop.hive.common.ValidTxnList; import org.apache.hadoop.hive.metastore.api.CompactionType; import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; -import org.apache.hadoop.hive.metastore.api.GetOpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeResponse; import org.apache.hadoop.hive.metastore.api.LockRequest; import org.apache.hadoop.hive.metastore.api.LockResponse; @@ -41,13 +40,10 @@ import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; -import org.apache.hadoop.hive.metastore.api.CompactionType; import org.apache.hadoop.hive.metastore.api.ConfigValSecurityException; import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.Function; -import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; -import org.apache.hadoop.hive.metastore.api.GetOpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; @@ -59,28 +55,18 @@ import org.apache.hadoop.hive.metastore.api.InvalidObjectException; import org.apache.hadoop.hive.metastore.api.InvalidOperationException; import org.apache.hadoop.hive.metastore.api.InvalidPartitionException; -import org.apache.hadoop.hive.metastore.api.LockRequest; -import org.apache.hadoop.hive.metastore.api.LockResponse; import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.api.NoSuchLockException; import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; -import org.apache.hadoop.hive.metastore.api.NoSuchTxnException; -import org.apache.hadoop.hive.metastore.api.OpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; import org.apache.hadoop.hive.metastore.api.Role; -import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; -import org.apache.hadoop.hive.metastore.api.ShowLocksResponse; import org.apache.hadoop.hive.metastore.api.Table; -import org.apache.hadoop.hive.metastore.api.TxnAbortedException; -import org.apache.hadoop.hive.metastore.api.TxnOpenException; import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; import org.apache.hadoop.hive.metastore.api.UnknownTableException; -import org.apache.thrift.TException; /** * TODO Unnecessary when the server sides for both dbstore and filestore are diff --git metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java index 5a56ced..5263279 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java @@ -370,15 +370,12 @@ static public Deserializer getDeserializer(Configuration conf, * if any problems instantiating the Deserializer * */ - static public Deserializer getDeserializer(Configuration conf, - org.apache.hadoop.hive.metastore.api.Partition part, - org.apache.hadoop.hive.metastore.api.Table table) throws MetaException { - String lib = part.getSd().getSerdeInfo().getSerializationLib(); + public static Deserializer getDeserializer(String lib, Properties properties, + Configuration conf) throws MetaException { try { Deserializer deserializer = ReflectionUtils.newInstance(conf.getClassByName(lib). asSubclass(Deserializer.class), conf); - SerDeUtils.initializeSerDe(deserializer, conf, MetaStoreUtils.getTableMetadata(table), - MetaStoreUtils.getPartitionMetadata(part, table)); + deserializer.initialize(conf, properties); return deserializer; } catch (RuntimeException e) { throw e; @@ -747,26 +744,35 @@ public static String getDDLFromFieldSchema(String structName, return ddl.toString(); } - public static Properties getTableMetadata( - org.apache.hadoop.hive.metastore.api.Table table) { - return MetaStoreUtils.getSchema(table.getSd(), table.getSd(), table - .getParameters(), table.getDbName(), table.getTableName(), table.getPartitionKeys()); + public static boolean isFullManaged(Table table) { + String fullManaged = table.getParameters().get("FULL_MANAGED"); + return fullManaged != null && "TRUE".equalsIgnoreCase(fullManaged); + } + + public static Properties getTableMetadata(Table table) { + return MetaStoreUtils.getSchema(table.getSd(), null, table.getParameters(), table); + } + + // passive partition + public static Properties getPartitionMetadata(Table table, String location) { + return MetaStoreUtils.getSchema(table.getSd(), location, table.getParameters(), table); + } + + // active partition + public static Properties getPartitionMetadata(Table table, Partition partition) { + return MetaStoreUtils.getSchema(partition.getSd(), null, partition.getParameters(), table); } - public static Properties getPartitionMetadata( - org.apache.hadoop.hive.metastore.api.Partition partition, - org.apache.hadoop.hive.metastore.api.Table table) { - return MetaStoreUtils - .getSchema(partition.getSd(), partition.getSd(), partition - .getParameters(), table.getDbName(), table.getTableName(), - table.getPartitionKeys()); + // passive partition + public static Properties getPartSchemaFromTableSchema(Table table, String location, Properties tblSchema) { + return MetaStoreUtils.getPartSchemaFromTableSchema( + table.getSd(), location, table.getParameters(), tblSchema); } - public static Properties getSchema( - org.apache.hadoop.hive.metastore.api.Partition part, - org.apache.hadoop.hive.metastore.api.Table table) { - return MetaStoreUtils.getSchema(part.getSd(), table.getSd(), table - .getParameters(), table.getDbName(), table.getTableName(), table.getPartitionKeys()); + // active partition + public static Properties getPartSchemaFromTableSchema(Table table, Partition partition, Properties tblSchema) { + return MetaStoreUtils.getPartSchemaFromTableSchema( + partition.getSd(), partition.getSd().getLocation(), partition.getParameters(), tblSchema); } /** @@ -778,21 +784,13 @@ public static Properties getSchema( * retrieve the data. If we know the data will be the same as the table level schema * and they are immutable, we should just reuse the table level schema objects. * - * @param sd The Partition level Storage Descriptor. - * @param tblsd The Table level Storage Descriptor. + * @param sd Storage Descriptor. * @param parameters partition level parameters - * @param databaseName DB name - * @param tableName table name - * @param partitionKeys partition columns * @param tblSchema The table level schema from which this partition should be copied. * @return the properties */ - public static Properties getPartSchemaFromTableSchema( - org.apache.hadoop.hive.metastore.api.StorageDescriptor sd, - org.apache.hadoop.hive.metastore.api.StorageDescriptor tblsd, - Map parameters, String databaseName, String tableName, - List partitionKeys, - Properties tblSchema) { + private static Properties getPartSchemaFromTableSchema(StorageDescriptor sd, String location, + Map parameters, Properties tblSchema) { // Inherent most properties from table level schema and overwrite some properties // in the following code. @@ -829,9 +827,10 @@ public static Properties getPartSchemaFromTableSchema( outputFormat); // Location - if (sd.getLocation() != null) { + location = location != null ? location : sd.getLocation(); + if (location != null) { schema.setProperty(org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.META_TABLE_LOCATION, - sd.getLocation()); + location); } // Bucket count @@ -880,11 +879,8 @@ public static Properties getPartSchemaFromTableSchema( return schema; } - public static Properties getSchema( - org.apache.hadoop.hive.metastore.api.StorageDescriptor sd, - org.apache.hadoop.hive.metastore.api.StorageDescriptor tblsd, - Map parameters, String databaseName, String tableName, - List partitionKeys) { + private static Properties getSchema(StorageDescriptor sd, String location, + Map parameters, Table table) { Properties schema = new Properties(); String inputFormat = sd.getInputFormat(); if (inputFormat == null || inputFormat.length() == 0) { @@ -905,12 +901,13 @@ public static Properties getSchema( schema.setProperty( org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.META_TABLE_NAME, - databaseName + "." + tableName); + table.getDbName() + "." + table.getTableName()); - if (sd.getLocation() != null) { + location = location != null ? location : sd.getLocation(); + if (location != null) { schema.setProperty( org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.META_TABLE_LOCATION, - sd.getLocation()); + location); } schema.setProperty( org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.BUCKET_COUNT, Integer @@ -935,7 +932,7 @@ public static Properties getSchema( StringBuilder colTypeBuf = new StringBuilder(); StringBuilder colComment = new StringBuilder(); boolean first = true; - for (FieldSchema col : tblsd.getCols()) { + for (FieldSchema col : sd.getCols()) { if (!first) { colNameBuf.append(","); colTypeBuf.append(":"); @@ -958,14 +955,14 @@ public static Properties getSchema( if (sd.getCols() != null) { schema.setProperty( org.apache.hadoop.hive.serde.serdeConstants.SERIALIZATION_DDL, - getDDLFromFieldSchema(tableName, sd.getCols())); + getDDLFromFieldSchema(table.getTableName(), sd.getCols())); } String partString = ""; String partStringSep = ""; String partTypesString = ""; String partTypesStringSep = ""; - for (FieldSchema partKey : partitionKeys) { + for (FieldSchema partKey : table.getPartitionKeys()) { partString = partString.concat(partStringSep); partString = partString.concat(partKey.getName()); partTypesString = partTypesString.concat(partTypesStringSep); diff --git metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java index c1790b4..078d48d 100755 --- metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java @@ -44,7 +44,6 @@ import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.permission.FsAction; -import org.apache.hadoop.fs.permission.FsPermission; import org.apache.hadoop.hive.common.FileUtils; import org.apache.hadoop.hive.common.HiveStatsUtils; import org.apache.hadoop.hive.common.JavaUtils; @@ -52,8 +51,6 @@ import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.MetaException; -import org.apache.hadoop.hive.metastore.api.Partition; -import org.apache.hadoop.hive.metastore.api.SkewedInfo; import org.apache.hadoop.hive.metastore.api.StorageDescriptor; import org.apache.hadoop.hive.metastore.api.Table; import org.apache.hadoop.hive.shims.ShimLoader; @@ -390,6 +387,10 @@ public static void makeValsFromName( } } + public static List makeValuesFromName(String name) throws MetaException { + return new ArrayList(makeSpecFromName(name).values()); + } + public static LinkedHashMap makeSpecFromName(String name) throws MetaException { if (name == null || name.isEmpty()) { diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java index 7c175aa..778c421 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java @@ -1522,6 +1522,9 @@ private int archive(Hive db, AlterTableSimpleDesc simpleDesc, if (tbl.getTableType() != TableType.MANAGED_TABLE) { throw new HiveException("ARCHIVE can only be performed on managed tables"); } + if (tbl.isFullManaged()) { + throw new HiveException("ARCHIVE can not be performed on full managed tables"); + } Map partSpec = simpleDesc.getPartSpec(); PartSpecInfo partSpecInfo = PartSpecInfo.create(tbl, partSpec); @@ -3553,6 +3556,9 @@ private int alterTable(Hive db, AlterTableDesc alterTbl) throws HiveException { Partition part = null; List allPartitions = null; if (alterTbl.getPartSpec() != null) { + if (tbl.isFullManaged()) { + throw new HiveException(); + } if (alterTbl.getOp() != AlterTableDesc.AlterTableTypes.ALTERPROTECTMODE) { part = db.getPartition(tbl, alterTbl.getPartSpec(), false); if (part == null) { diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java index 0da886b..e6c3129 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java @@ -700,7 +700,7 @@ public ObjectInspector getOutputObjectInspector() throws HiveException { // Both T1 and T2 and partitioned tables, but T1 does not have any partitions // FetchOperator is invoked for T1, and listParts is empty. In that case, // use T1's schema to get the ObjectInspector. - if (listParts == null || listParts.isEmpty()) { + if (listParts == null || listParts.isEmpty() || work.isFullManaged()) { return getRowInspectorFromPartitionedTable(work.getTblDesc()); } diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java index 26cdc5a..4232628 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java @@ -1108,7 +1108,7 @@ public static TableDesc getTableDesc(String cols, String colTypes) { } public static PartitionDesc getPartitionDesc(Partition part) throws HiveException { - return (new PartitionDesc(part)); + return new PartitionDesc(part); } public static PartitionDesc getPartitionDescFromTableDesc(TableDesc tblDesc, Partition part) diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/Partition.java ql/src/java/org/apache/hadoop/hive/ql/metadata/Partition.java index 3a1e7fd..f75b2c3 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/Partition.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/Partition.java @@ -33,6 +33,7 @@ import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.common.JavaUtils; +import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; import org.apache.hadoop.hive.metastore.MetaStoreUtils; import org.apache.hadoop.hive.metastore.ProtectMode; @@ -46,7 +47,6 @@ import org.apache.hadoop.hive.ql.io.HiveOutputFormat; import org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat; import org.apache.hadoop.hive.serde2.Deserializer; -import org.apache.hadoop.hive.serde2.SerDeUtils; import org.apache.hadoop.mapred.InputFormat; import org.apache.thrift.TException; import org.apache.thrift.protocol.TBinaryProtocol; @@ -67,6 +67,7 @@ private Table table; private org.apache.hadoop.hive.metastore.api.Partition tPartition; + private boolean fullManaged; /** * These fields are cached. The information comes from tPartition. @@ -74,6 +75,7 @@ private Deserializer deserializer; private Class outputFormatClass; private Class inputFormatClass; + private Path location; /** * @return The values of the partition @@ -183,34 +185,29 @@ protected void initialize(Table table, this.table = table; this.tPartition = tPartition; + this.fullManaged = table.isFullManaged(); - if (table.isView()) { + if (!isActivePartition()) { return; } - String partName = ""; - if (table.isPartitioned()) { - try { - partName = Warehouse.makePartName(table.getPartCols(), tPartition.getValues()); - if (tPartition.getSd().getLocation() == null) { - // set default if location is not set and this is a physical - // table partition (not a view partition) - if (table.getDataLocation() != null) { - Path partPath = new Path( - table.getDataLocation().toString(), partName); - tPartition.getSd().setLocation(partPath.toString()); - } - } - // set default if columns are not set - if (tPartition.getSd().getCols() == null) { - if (table.getCols() != null) { - tPartition.getSd().setCols(table.getCols()); - } + try { + StorageDescriptor partSD = tPartition.getSd(); + if (partSD.getLocation() == null) { + // set default if location is not set and this is a physical + // table partition (not a view partition) + if (table.getDataLocation() != null) { + String partName = Warehouse.makePartName(table.getPartCols(), tPartition.getValues()); + Path partPath = new Path(table.getDataLocation(), partName); + partSD.setLocation(partPath.toString()); } - } catch (MetaException e) { - throw new HiveException("Invalid partition for table " + table.getTableName(), - e); } + // set default if columns are not set + if (partSD.getCols() == null && table.getCols() != null) { + partSD.setCols(table.getCols()); + } + } catch (MetaException e) { + throw new HiveException("Invalid partition for table " + table.getTableName(), e); } // Note that we do not set up fields like inputFormatClass, outputFormatClass @@ -231,50 +228,63 @@ public String getName() { } public Path[] getPath() { - Path[] ret = new Path[]{getDataLocation()}; - return ret; + Path location = getDataLocation(); + return location == null ? new Path[0] : new Path[] {location}; } public Path getDataLocation() { + if (location != null || table.isView()) { + return location; + } + if (isActivePartition() && + tPartition.getSd() != null && tPartition.getSd().getLocation() != null) { + return location = new Path(tPartition.getSd().getLocation()); + } + String tableLocation = table.getTTable().getSd().getLocation(); if (table.isPartitioned()) { - return new Path(tPartition.getSd().getLocation()); - } else { - return new Path(table.getTTable().getSd().getLocation()); + return location = new Path(tableLocation, getName()); } + return location = new Path(tableLocation); } - final public Deserializer getDeserializer() { - if (deserializer == null) { - try { - deserializer = MetaStoreUtils.getDeserializer(Hive.get().getConf(), - tPartition, table.getTTable()); - } catch (HiveException e) { - throw new RuntimeException(e); - } catch (MetaException e) { - throw new RuntimeException(e); - } + private Deserializer getDeserializer() { + if (!isActivePartition()) { + return table.getDeserializer(); + } + if (deserializer != null) { + return deserializer; + } + try { + HiveConf conf = Hive.get().getConf(); + Properties properties = getMetadataFromPartitionSchema(); + String serializationLib = getActiveSd().getSerdeInfo().getSerializationLib(); + return deserializer = MetaStoreUtils.getDeserializer(serializationLib, properties, conf); + } catch (HiveException e) { + throw new RuntimeException(e); + } catch (MetaException e) { + throw new RuntimeException(e); } - return deserializer; - } - - public Properties getSchema() { - return MetaStoreUtils.getSchema(tPartition, table.getTTable()); } public Properties getMetadataFromPartitionSchema() { - return MetaStoreUtils.getPartitionMetadata(tPartition, table.getTTable()); + return isActivePartition() ? + MetaStoreUtils.getPartitionMetadata(table.getTTable(), tPartition) : + MetaStoreUtils.getPartitionMetadata(table.getTTable(), getLocation()); } public Properties getSchemaFromTableSchema(Properties tblSchema) { - return MetaStoreUtils.getPartSchemaFromTableSchema(tPartition.getSd(), table.getTTable().getSd(), - tPartition.getParameters(), table.getDbName(), table.getTableName(), table.getPartitionKeys(), - tblSchema); + return isActivePartition() ? + MetaStoreUtils.getPartSchemaFromTableSchema(table.getTTable(), tPartition, tblSchema) : + MetaStoreUtils.getPartSchemaFromTableSchema(table.getTTable(), getLocation(), tblSchema); } /** * @param inputFormatClass */ public void setInputFormatClass(Class inputFormatClass) { + if (!isActivePartition()) { + throw new IllegalStateException("setInputFormatClass"); + } this.inputFormatClass = inputFormatClass; tPartition.getSd().setInputFormat(inputFormatClass.getName()); } @@ -283,6 +293,9 @@ public void setInputFormatClass(Class inputFormatClass) { * @param outputFormatClass */ public void setOutputFormatClass(Class outputFormatClass) { + if (!isActivePartition()) { + throw new IllegalStateException("setOutputFormatClass"); + } this.outputFormatClass = outputFormatClass; tPartition.getSd().setOutputFormat(HiveFileFormatUtils .getOutputFormatSubstitute(outputFormatClass, false).toString()); @@ -290,11 +303,11 @@ public void setOutputFormatClass(Class outputFormatC final public Class getInputFormatClass() throws HiveException { + if (!isActivePartition()) { + return table.getInputFormatClass(); + } if (inputFormatClass == null) { - String clsName = null; - if (tPartition != null && tPartition.getSd() != null) { - clsName = tPartition.getSd().getInputFormat(); - } + String clsName = getActiveSd().getInputFormat(); if (clsName == null) { clsName = org.apache.hadoop.mapred.SequenceFileInputFormat.class.getName(); } @@ -310,11 +323,11 @@ public void setOutputFormatClass(Class outputFormatC final public Class getOutputFormatClass() throws HiveException { + if (!isActivePartition()) { + return table.getOutputFormatClass(); + } if (outputFormatClass == null) { - String clsName = null; - if (tPartition != null && tPartition.getSd() != null) { - clsName = tPartition.getSd().getOutputFormat(); - } + String clsName = getActiveSd().getOutputFormat(); if (clsName == null) { clsName = HiveSequenceFileOutputFormat.class.getName(); } @@ -335,7 +348,7 @@ public void setOutputFormatClass(Class outputFormatC } public int getBucketCount() { - return tPartition.getSd().getNumBuckets(); + return getActiveSd().getNumBuckets(); /* * TODO: Keeping this code around for later use when we will support * sampling on tables which are not created with CLUSTERED INTO clause @@ -352,16 +365,30 @@ public int getBucketCount() { */ } + private StorageDescriptor getActiveSd() { + if (isActivePartition()) { + return tPartition.getSd(); + } + return table.getTTable().getSd(); + } + + private boolean isActivePartition() { + return table.isPartitioned() && !table.isView() && !fullManaged; + } + public void setBucketCount(int newBucketNum) { - tPartition.getSd().setNumBuckets(newBucketNum); + if (!isActivePartition()) { + throw new IllegalStateException("setBucketCount"); + } + getActiveSd().setNumBuckets(newBucketNum); } public List getBucketCols() { - return tPartition.getSd().getBucketCols(); + return getActiveSd().getBucketCols(); } public List getSortCols() { - return tPartition.getSd().getSortCols(); + return getActiveSd().getSortCols(); } public List getSortColNames() { @@ -373,11 +400,15 @@ public void setBucketCount(int newBucketNum) { */ @SuppressWarnings("nls") public FileStatus[] getSortedPaths() { + Path location = getDataLocation(); + if (location == null) { + return null; + } try { // Previously, this got the filesystem of the Table, which could be // different from the filesystem of the partition. - FileSystem fs = getDataLocation().getFileSystem(Hive.get().getConf()); - String pathPattern = getDataLocation().toString(); + FileSystem fs = location.getFileSystem(Hive.get().getConf()); + String pathPattern = location.toString(); if (getBucketCount() > 0) { pathPattern = pathPattern + "/*"; } @@ -409,51 +440,6 @@ public Path getBucketPath(int bucketNum) { return srcs[bucketNum].getPath(); } - @SuppressWarnings("nls") - public Path[] getPath(Sample s) throws HiveException { - if (s == null) { - return getPath(); - } else { - int bcount = getBucketCount(); - if (bcount == 0) { - return getPath(); - } - - Dimension d = s.getSampleDimension(); - if (!d.getDimensionId().equals(table.getBucketingDimensionId())) { - // if the bucket dimension is not the same as the sampling dimension - // we must scan all the data - return getPath(); - } - - int scount = s.getSampleFraction(); - ArrayList ret = new ArrayList(); - - if (bcount == scount) { - ret.add(getBucketPath(s.getSampleNum() - 1)); - } else if (bcount < scount) { - if ((scount / bcount) * bcount != scount) { - throw new HiveException("Sample Count" + scount - + " is not a multiple of bucket count " + bcount + " for table " - + table.getTableName()); - } - // undersampling a bucket - ret.add(getBucketPath((s.getSampleNum() - 1) % bcount)); - } else if (bcount > scount) { - if ((bcount / scount) * scount != bcount) { - throw new HiveException("Sample Count" + scount - + " is not a divisor of bucket count " + bcount + " for table " - + table.getTableName()); - } - // sampling multiple buckets - for (int i = 0; i < bcount / scount; i++) { - ret.add(getBucketPath(i * scount + (s.getSampleNum() - 1))); - } - } - return (ret.toArray(new Path[ret.size()])); - } - } - public LinkedHashMap getSpec() { return table.createSpec(tPartition); } @@ -489,24 +475,16 @@ public void setTable(Table table) { return tPartition; } - /** - * Should be only used by serialization. - */ - public void setTPartition( - org.apache.hadoop.hive.metastore.api.Partition partition) { - tPartition = partition; - } - public Map getParameters() { - return tPartition.getParameters(); + return isActivePartition() ? tPartition.getParameters() : table.getParameters(); } public List getCols() { - + StorageDescriptor activeSD = getActiveSd(); try { if (Hive.get().getConf().getStringCollection(ConfVars.SERDESUSINGMETASTOREFORSCHEMA.varname) - .contains(tPartition.getSd().getSerdeInfo().getSerializationLib())) { - return tPartition.getSd().getCols(); + .contains(activeSD.getSerdeInfo().getSerializationLib())) { + return activeSD.getCols(); } return Hive.getFieldsFromDeserializer(table.getTableName(), getDeserializer()); } catch (HiveException e) { @@ -518,14 +496,14 @@ public void setTPartition( } public String getLocation() { - if (tPartition.getSd() == null) { - return null; - } else { - return tPartition.getSd().getLocation(); - } + Path location = getDataLocation(); + return location == null ? null : location.toString(); } public void setLocation(String location) { + if (!isActivePartition()) { + throw new IllegalStateException("setLocation"); + } tPartition.getSd().setLocation(location); } @@ -555,6 +533,9 @@ public void setValues(Map partSpec) * @param protectMode */ public void setProtectMode(ProtectMode protectMode){ + if (!isActivePartition()) { + throw new IllegalStateException("setProtectMode"); + } Map parameters = tPartition.getParameters(); String pm = protectMode.toString(); if (pm != null) { @@ -569,6 +550,9 @@ public void setProtectMode(ProtectMode protectMode){ * @return protect mode */ public ProtectMode getProtectMode(){ + if (!isActivePartition()) { + return table.getProtectMode(); + } return MetaStoreUtils.getProtectMode(tPartition); } @@ -577,11 +561,7 @@ public ProtectMode getProtectMode(){ */ public boolean isOffline(){ ProtectMode pm = getProtectMode(); - if (pm == null) { - return false; - } else { - return pm.offline; - } + return pm != null && pm.offline; } /** @@ -617,24 +597,27 @@ public void setLastAccessTime(int lastAccessTime) { } public boolean isStoredAsSubDirectories() { - return tPartition.getSd().isStoredAsSubDirectories(); + return getActiveSd().isStoredAsSubDirectories(); } public List> getSkewedColValues(){ - return tPartition.getSd().getSkewedInfo().getSkewedColValues(); + return getActiveSd().getSkewedInfo().getSkewedColValues(); } public List getSkewedColNames() { - return tPartition.getSd().getSkewedInfo().getSkewedColNames(); + return getActiveSd().getSkewedInfo().getSkewedColNames(); } public void setSkewedValueLocationMap(List valList, String dirName) throws HiveException { - Map, String> mappings = tPartition.getSd().getSkewedInfo() + if (!isActivePartition()) { + throw new IllegalStateException("setSkewedValueLocationMap"); + } + Map, String> mappings = getActiveSd().getSkewedInfo() .getSkewedColValueLocationMaps(); if (null == mappings) { mappings = new HashMap, String>(); - tPartition.getSd().getSkewedInfo().setSkewedColValueLocationMaps(mappings); + getActiveSd().getSkewedInfo().setSkewedColValueLocationMaps(mappings); } // Add or update new mapping @@ -642,6 +625,6 @@ public void setSkewedValueLocationMap(List valList, String dirName) } public Map, String> getSkewedColValueLocationMaps() { - return tPartition.getSd().getSkewedInfo().getSkewedColValueLocationMaps(); + return getActiveSd().getSkewedInfo().getSkewedColValueLocationMaps(); } } diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java index 3df2690..66a9e6a 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java @@ -58,7 +58,6 @@ import org.apache.hadoop.hive.serde2.Deserializer; import org.apache.hadoop.hive.serde2.MetadataTypedColumnsetSerDe; import org.apache.hadoop.hive.serde2.SerDeException; -import org.apache.hadoop.hive.serde2.SerDeUtils; import org.apache.hadoop.hive.serde2.objectinspector.StructField; import org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector; import org.apache.hadoop.io.Writable; @@ -909,6 +908,16 @@ public boolean isNonNative() { != null; } + public boolean isExternal() { + String external = getParameters().get("EXTERNAL"); + return external != null && "TRUE".equalsIgnoreCase(external); + } + + public boolean isFullManaged() { + String fullManaged = getParameters().get("FULL_MANAGED"); + return fullManaged != null && "TRUE".equalsIgnoreCase(fullManaged); + } + /** * @param protectMode */ diff --git ql/src/java/org/apache/hadoop/hive/ql/optimizer/SimpleFetchOptimizer.java ql/src/java/org/apache/hadoop/hive/ql/optimizer/SimpleFetchOptimizer.java index 7413d2b..da8b397 100644 --- ql/src/java/org/apache/hadoop/hive/ql/optimizer/SimpleFetchOptimizer.java +++ ql/src/java/org/apache/hadoop/hive/ql/optimizer/SimpleFetchOptimizer.java @@ -23,6 +23,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Properties; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; diff --git ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartExprEvalUtils.java ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartExprEvalUtils.java index 6159c7d..68f3164 100644 --- ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartExprEvalUtils.java +++ ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartExprEvalUtils.java @@ -55,7 +55,7 @@ static synchronized public Object evalExprWithPart(ExprNodeDesc expr, Partition p, List vcs, StructObjectInspector rowObjectInspector) throws HiveException { LinkedHashMap partSpec = p.getSpec(); - Properties partProps = p.getSchema(); + Properties partProps = p.getMetadataFromPartitionSchema(); String pcolTypes = partProps.getProperty(hive_metastoreConstants.META_TABLE_PARTITION_COLUMN_TYPES); String[] partKeyTypes = pcolTypes.trim().split(":"); diff --git ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java index 6bdf394..84fc7c2 100644 --- ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java +++ ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java @@ -178,6 +178,48 @@ private static PrunedPartitionList prune(Table tab, ExprNodeDesc prunerExpr, return ret; } + private static Set getAllPartitions(Table tab) throws Exception { + PerfLogger perfLogger = PerfLogger.getPerfLogger(); + perfLogger.PerfLogBegin(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING); + Set partitions = _getAllPartitions(tab); + perfLogger.PerfLogEnd(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING); + return partitions; + } + + private static Set getAllPartitions(Table tab, List names) throws Exception { + PerfLogger perfLogger = PerfLogger.getPerfLogger(); + perfLogger.PerfLogBegin(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING); + Set partitions = _getAllPartitions(tab, names); + perfLogger.PerfLogEnd(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING); + return partitions; + } + + private static Set _getAllPartitions(Table tab) throws Exception { + if (tab.isFullManaged()) { + return createPassivePartitions(tab, + Hive.get().getPartitionNames(tab.getDbName(), tab.getTableName(), (short) -1)); + } + return Hive.get().getAllPartitionsOf(tab); + } + + private static Set _getAllPartitions(Table tab, List names) throws Exception { + if (tab.isFullManaged()) { + return createPassivePartitions(tab, names); + } + return new LinkedHashSet(Hive.get().getPartitionsByNames(tab, names)); + } + + private static Set createPassivePartitions(Table tab, List names) + throws HiveException, MetaException { + Set partitions = new LinkedHashSet(); + for (String partName : names) { + Partition partition = new Partition(tab); + partition.getTPartition().setValues(Warehouse.makeValuesFromName(partName)); + partitions.add(partition); + } + return partitions; + } + /** * Taking a partition pruning expression, remove the null operands and non-partition columns. * The reason why there are null operands is ExprProcFactory classes, for example @@ -212,7 +254,7 @@ static private ExprNodeDesc compactExpr(ExprNodeDesc expr) { return isAnd ? children.get(0) : null; } } - return (ExprNodeGenericFuncDesc)expr; + return expr; } else { throw new IllegalStateException("Unexpected type of ExprNodeDesc: " + expr.getExprString()); } @@ -334,14 +376,6 @@ private static PrunedPartitionList getPartitionsFromServer(Table tab, } } - private static Set getAllPartitions(Table tab) throws HiveException { - PerfLogger perfLogger = PerfLogger.getPerfLogger(); - perfLogger.PerfLogBegin(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING); - Set result = Hive.get().getAllPartitionsOf(tab); - perfLogger.PerfLogEnd(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING); - return result; - } - /** * Pruning partition by getting the partition names first and pruning using Hive expression * evaluator on client. @@ -352,7 +386,7 @@ private static PrunedPartitionList getPartitionsFromServer(Table tab, * @return true iff the partition pruning expression contains non-partition columns. */ static private boolean pruneBySequentialScan(Table tab, List partitions, - ExprNodeGenericFuncDesc prunerExpr, HiveConf conf) throws HiveException, MetaException { + ExprNodeGenericFuncDesc prunerExpr, HiveConf conf) throws Exception { PerfLogger perfLogger = PerfLogger.getPerfLogger(); perfLogger.PerfLogBegin(CLASS_NAME, PerfLogger.PRUNE_LISTING); @@ -368,7 +402,7 @@ static private boolean pruneBySequentialScan(Table tab, List partitio perfLogger.PerfLogBegin(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING); if (!partNames.isEmpty()) { - partitions.addAll(Hive.get().getPartitionsByNames(tab, partNames)); + partitions.addAll(getAllPartitions(tab, partNames)); } perfLogger.PerfLogEnd(CLASS_NAME, PerfLogger.PARTITION_RETRIEVING); return hasUnknownPartitions; diff --git ql/src/java/org/apache/hadoop/hive/ql/plan/FetchWork.java ql/src/java/org/apache/hadoop/hive/ql/plan/FetchWork.java index 32d84ea..c308ad5 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/FetchWork.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/FetchWork.java @@ -117,6 +117,10 @@ public boolean isNotPartitioned() { return tblDir != null; } + public boolean isFullManaged() { + return tblDesc.isFullManaged(); + } + public boolean isPartitioned() { return tblDir == null; } diff --git ql/src/java/org/apache/hadoop/hive/ql/plan/TableDesc.java ql/src/java/org/apache/hadoop/hive/ql/plan/TableDesc.java index 39f1793..c631c38 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/TableDesc.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/TableDesc.java @@ -149,6 +149,16 @@ public boolean isNonNative() { return (properties.getProperty(hive_metastoreConstants.META_TABLE_STORAGE) != null); } + public boolean isExternal() { + String external = properties.getProperty("EXTERNAL"); + return external != null && "TRUE".equalsIgnoreCase(external); + } + + public boolean isFullManaged() { + String fullManaged = properties.getProperty("FULL_MANAGED"); + return fullManaged != null && "TRUE".equalsIgnoreCase(fullManaged); + } + @Override public Object clone() { TableDesc ret = new TableDesc();