diff --git metastore/if/hive_metastore.thrift metastore/if/hive_metastore.thrift index f5a0e64..5404477 100755 --- metastore/if/hive_metastore.thrift +++ metastore/if/hive_metastore.thrift @@ -875,6 +875,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 68cc668..401ae7e 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -11659,7 +11659,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; @@ -11696,17 +11696,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 _size634; ::apache::thrift::protocol::TType _etype637; xfer += iprot->readListBegin(_etype637, _size634); - this->part_vals.resize(_size634); + this->success.resize(_size634); uint32_t _i638; for (_i638 = 0; _i638 < _size634; ++_i638) { - xfer += iprot->readString(this->part_vals[_i638]); + xfer += iprot->readString(this->success[_i638]); + } + 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 _iter639; + for (_iter639 = this->success.begin(); _iter639 != this->success.end(); ++_iter639) + { + xfer += oprot->writeString((*_iter639)); + } + 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 _size640; + ::apache::thrift::protocol::TType _etype643; + xfer += iprot->readListBegin(_etype643, _size640); + (*(this->success)).resize(_size640); + uint32_t _i644; + for (_i644 = 0; _i644 < _size640; ++_i644) + { + xfer += iprot->readString((*(this->success))[_i644]); + } + 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 _size645; + ::apache::thrift::protocol::TType _etype648; + xfer += iprot->readListBegin(_etype648, _size645); + this->part_vals.resize(_size645); + uint32_t _i649; + for (_i649 = 0; _i649 < _size645; ++_i649) + { + xfer += iprot->readString(this->part_vals[_i649]); } xfer += iprot->readListEnd(); } @@ -11750,10 +12012,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 _iter639; - for (_iter639 = this->part_vals.begin(); _iter639 != this->part_vals.end(); ++_iter639) + std::vector ::const_iterator _iter650; + for (_iter650 = this->part_vals.begin(); _iter650 != this->part_vals.end(); ++_iter650) { - xfer += oprot->writeString((*_iter639)); + xfer += oprot->writeString((*_iter650)); } xfer += oprot->writeListEnd(); } @@ -11783,10 +12045,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 _iter640; - for (_iter640 = (*(this->part_vals)).begin(); _iter640 != (*(this->part_vals)).end(); ++_iter640) + std::vector ::const_iterator _iter651; + for (_iter651 = (*(this->part_vals)).begin(); _iter651 != (*(this->part_vals)).end(); ++_iter651) { - xfer += oprot->writeString((*_iter640)); + xfer += oprot->writeString((*_iter651)); } xfer += oprot->writeListEnd(); } @@ -11825,14 +12087,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr 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(); } @@ -11879,10 +12141,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 _iter646; - for (_iter646 = this->success.begin(); _iter646 != this->success.end(); ++_iter646) + std::vector ::const_iterator _iter657; + for (_iter657 = this->success.begin(); _iter657 != this->success.end(); ++_iter657) { - xfer += (*_iter646).write(oprot); + xfer += (*_iter657).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11925,14 +12187,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size647; - ::apache::thrift::protocol::TType _etype650; - xfer += iprot->readListBegin(_etype650, _size647); - (*(this->success)).resize(_size647); - uint32_t _i651; - for (_i651 = 0; _i651 < _size647; ++_i651) + uint32_t _size658; + ::apache::thrift::protocol::TType _etype661; + xfer += iprot->readListBegin(_etype661, _size658); + (*(this->success)).resize(_size658); + uint32_t _i662; + for (_i662 = 0; _i662 < _size658; ++_i662) { - xfer += (*(this->success))[_i651].read(iprot); + xfer += (*(this->success))[_i662].read(iprot); } xfer += iprot->readListEnd(); } @@ -12009,14 +12271,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 _size652; - ::apache::thrift::protocol::TType _etype655; - xfer += iprot->readListBegin(_etype655, _size652); - this->part_vals.resize(_size652); - uint32_t _i656; - for (_i656 = 0; _i656 < _size652; ++_i656) + uint32_t _size663; + ::apache::thrift::protocol::TType _etype666; + xfer += iprot->readListBegin(_etype666, _size663); + this->part_vals.resize(_size663); + uint32_t _i667; + for (_i667 = 0; _i667 < _size663; ++_i667) { - xfer += iprot->readString(this->part_vals[_i656]); + xfer += iprot->readString(this->part_vals[_i667]); } xfer += iprot->readListEnd(); } @@ -12045,14 +12307,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 _size657; - ::apache::thrift::protocol::TType _etype660; - xfer += iprot->readListBegin(_etype660, _size657); - this->group_names.resize(_size657); - uint32_t _i661; - for (_i661 = 0; _i661 < _size657; ++_i661) + uint32_t _size668; + ::apache::thrift::protocol::TType _etype671; + xfer += iprot->readListBegin(_etype671, _size668); + this->group_names.resize(_size668); + uint32_t _i672; + for (_i672 = 0; _i672 < _size668; ++_i672) { - xfer += iprot->readString(this->group_names[_i661]); + xfer += iprot->readString(this->group_names[_i672]); } xfer += iprot->readListEnd(); } @@ -12088,10 +12350,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 _iter662; - for (_iter662 = this->part_vals.begin(); _iter662 != this->part_vals.end(); ++_iter662) + std::vector ::const_iterator _iter673; + for (_iter673 = this->part_vals.begin(); _iter673 != this->part_vals.end(); ++_iter673) { - xfer += oprot->writeString((*_iter662)); + xfer += oprot->writeString((*_iter673)); } xfer += oprot->writeListEnd(); } @@ -12108,10 +12370,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 _iter663; - for (_iter663 = this->group_names.begin(); _iter663 != this->group_names.end(); ++_iter663) + std::vector ::const_iterator _iter674; + for (_iter674 = this->group_names.begin(); _iter674 != this->group_names.end(); ++_iter674) { - xfer += oprot->writeString((*_iter663)); + xfer += oprot->writeString((*_iter674)); } xfer += oprot->writeListEnd(); } @@ -12137,10 +12399,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 _iter664; - for (_iter664 = (*(this->part_vals)).begin(); _iter664 != (*(this->part_vals)).end(); ++_iter664) + std::vector ::const_iterator _iter675; + for (_iter675 = (*(this->part_vals)).begin(); _iter675 != (*(this->part_vals)).end(); ++_iter675) { - xfer += oprot->writeString((*_iter664)); + xfer += oprot->writeString((*_iter675)); } xfer += oprot->writeListEnd(); } @@ -12157,10 +12419,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 _iter665; - for (_iter665 = (*(this->group_names)).begin(); _iter665 != (*(this->group_names)).end(); ++_iter665) + std::vector ::const_iterator _iter676; + for (_iter676 = (*(this->group_names)).begin(); _iter676 != (*(this->group_names)).end(); ++_iter676) { - xfer += oprot->writeString((*_iter665)); + xfer += oprot->writeString((*_iter676)); } xfer += oprot->writeListEnd(); } @@ -12195,14 +12457,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size666; - ::apache::thrift::protocol::TType _etype669; - xfer += iprot->readListBegin(_etype669, _size666); - this->success.resize(_size666); - uint32_t _i670; - for (_i670 = 0; _i670 < _size666; ++_i670) + uint32_t _size677; + ::apache::thrift::protocol::TType _etype680; + xfer += iprot->readListBegin(_etype680, _size677); + this->success.resize(_size677); + uint32_t _i681; + for (_i681 = 0; _i681 < _size677; ++_i681) { - xfer += this->success[_i670].read(iprot); + xfer += this->success[_i681].read(iprot); } xfer += iprot->readListEnd(); } @@ -12249,10 +12511,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 _iter671; - for (_iter671 = this->success.begin(); _iter671 != this->success.end(); ++_iter671) + std::vector ::const_iterator _iter682; + for (_iter682 = this->success.begin(); _iter682 != this->success.end(); ++_iter682) { - xfer += (*_iter671).write(oprot); + xfer += (*_iter682).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12295,14 +12557,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size672; - ::apache::thrift::protocol::TType _etype675; - xfer += iprot->readListBegin(_etype675, _size672); - (*(this->success)).resize(_size672); - uint32_t _i676; - for (_i676 = 0; _i676 < _size672; ++_i676) + uint32_t _size683; + ::apache::thrift::protocol::TType _etype686; + xfer += iprot->readListBegin(_etype686, _size683); + (*(this->success)).resize(_size683); + uint32_t _i687; + for (_i687 = 0; _i687 < _size683; ++_i687) { - xfer += (*(this->success))[_i676].read(iprot); + xfer += (*(this->success))[_i687].read(iprot); } xfer += iprot->readListEnd(); } @@ -12379,14 +12641,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 _size677; - ::apache::thrift::protocol::TType _etype680; - xfer += iprot->readListBegin(_etype680, _size677); - this->part_vals.resize(_size677); - uint32_t _i681; - for (_i681 = 0; _i681 < _size677; ++_i681) + uint32_t _size688; + ::apache::thrift::protocol::TType _etype691; + xfer += iprot->readListBegin(_etype691, _size688); + this->part_vals.resize(_size688); + uint32_t _i692; + for (_i692 = 0; _i692 < _size688; ++_i692) { - xfer += iprot->readString(this->part_vals[_i681]); + xfer += iprot->readString(this->part_vals[_i692]); } xfer += iprot->readListEnd(); } @@ -12430,10 +12692,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 _iter682; - for (_iter682 = this->part_vals.begin(); _iter682 != this->part_vals.end(); ++_iter682) + std::vector ::const_iterator _iter693; + for (_iter693 = this->part_vals.begin(); _iter693 != this->part_vals.end(); ++_iter693) { - xfer += oprot->writeString((*_iter682)); + xfer += oprot->writeString((*_iter693)); } xfer += oprot->writeListEnd(); } @@ -12463,10 +12725,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 _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(); } @@ -12505,14 +12767,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size684; - ::apache::thrift::protocol::TType _etype687; - xfer += iprot->readListBegin(_etype687, _size684); - this->success.resize(_size684); - uint32_t _i688; - for (_i688 = 0; _i688 < _size684; ++_i688) + uint32_t _size695; + ::apache::thrift::protocol::TType _etype698; + xfer += iprot->readListBegin(_etype698, _size695); + this->success.resize(_size695); + uint32_t _i699; + for (_i699 = 0; _i699 < _size695; ++_i699) { - xfer += iprot->readString(this->success[_i688]); + xfer += iprot->readString(this->success[_i699]); } xfer += iprot->readListEnd(); } @@ -12559,10 +12821,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 _iter689; - for (_iter689 = this->success.begin(); _iter689 != this->success.end(); ++_iter689) + std::vector ::const_iterator _iter700; + for (_iter700 = this->success.begin(); _iter700 != this->success.end(); ++_iter700) { - xfer += oprot->writeString((*_iter689)); + xfer += oprot->writeString((*_iter700)); } xfer += oprot->writeListEnd(); } @@ -12605,14 +12867,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size690; - ::apache::thrift::protocol::TType _etype693; - xfer += iprot->readListBegin(_etype693, _size690); - (*(this->success)).resize(_size690); - uint32_t _i694; - for (_i694 = 0; _i694 < _size690; ++_i694) + uint32_t _size701; + ::apache::thrift::protocol::TType _etype704; + xfer += iprot->readListBegin(_etype704, _size701); + (*(this->success)).resize(_size701); + uint32_t _i705; + for (_i705 = 0; _i705 < _size701; ++_i705) { - xfer += iprot->readString((*(this->success))[_i694]); + xfer += iprot->readString((*(this->success))[_i705]); } xfer += iprot->readListEnd(); } @@ -12787,14 +13049,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size695; - ::apache::thrift::protocol::TType _etype698; - xfer += iprot->readListBegin(_etype698, _size695); - this->success.resize(_size695); - uint32_t _i699; - for (_i699 = 0; _i699 < _size695; ++_i699) + uint32_t _size706; + ::apache::thrift::protocol::TType _etype709; + xfer += iprot->readListBegin(_etype709, _size706); + this->success.resize(_size706); + uint32_t _i710; + for (_i710 = 0; _i710 < _size706; ++_i710) { - xfer += this->success[_i699].read(iprot); + xfer += this->success[_i710].read(iprot); } xfer += iprot->readListEnd(); } @@ -12841,10 +13103,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 _iter700; - for (_iter700 = this->success.begin(); _iter700 != this->success.end(); ++_iter700) + std::vector ::const_iterator _iter711; + for (_iter711 = this->success.begin(); _iter711 != this->success.end(); ++_iter711) { - xfer += (*_iter700).write(oprot); + xfer += (*_iter711).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12887,14 +13149,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size701; - ::apache::thrift::protocol::TType _etype704; - xfer += iprot->readListBegin(_etype704, _size701); - (*(this->success)).resize(_size701); - uint32_t _i705; - for (_i705 = 0; _i705 < _size701; ++_i705) + uint32_t _size712; + ::apache::thrift::protocol::TType _etype715; + xfer += iprot->readListBegin(_etype715, _size712); + (*(this->success)).resize(_size712); + uint32_t _i716; + for (_i716 = 0; _i716 < _size712; ++_i716) { - xfer += (*(this->success))[_i705].read(iprot); + xfer += (*(this->success))[_i716].read(iprot); } xfer += iprot->readListEnd(); } @@ -13067,16 +13329,16 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::read(::apache::thr { case 0: if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size706; - ::apache::thrift::protocol::TType _etype709; - xfer += iprot->readListBegin(_etype709, _size706); - this->success.resize(_size706); - uint32_t _i710; - for (_i710 = 0; _i710 < _size706; ++_i710) + { + this->success.clear(); + uint32_t _size717; + ::apache::thrift::protocol::TType _etype720; + xfer += iprot->readListBegin(_etype720, _size717); + this->success.resize(_size717); + uint32_t _i721; + for (_i721 = 0; _i721 < _size717; ++_i721) { - xfer += this->success[_i710].read(iprot); + xfer += this->success[_i721].read(iprot); } xfer += iprot->readListEnd(); } @@ -13123,10 +13385,10 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter711; - for (_iter711 = this->success.begin(); _iter711 != this->success.end(); ++_iter711) + std::vector ::const_iterator _iter722; + for (_iter722 = this->success.begin(); _iter722 != this->success.end(); ++_iter722) { - xfer += (*_iter711).write(oprot); + xfer += (*_iter722).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13169,14 +13431,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size712; - ::apache::thrift::protocol::TType _etype715; - xfer += iprot->readListBegin(_etype715, _size712); - (*(this->success)).resize(_size712); - uint32_t _i716; - for (_i716 = 0; _i716 < _size712; ++_i716) + uint32_t _size723; + ::apache::thrift::protocol::TType _etype726; + xfer += iprot->readListBegin(_etype726, _size723); + (*(this->success)).resize(_size723); + uint32_t _i727; + for (_i727 = 0; _i727 < _size723; ++_i727) { - xfer += (*(this->success))[_i716].read(iprot); + xfer += (*(this->success))[_i727].read(iprot); } xfer += iprot->readListEnd(); } @@ -13455,14 +13717,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size717; - ::apache::thrift::protocol::TType _etype720; - xfer += iprot->readListBegin(_etype720, _size717); - this->names.resize(_size717); - uint32_t _i721; - for (_i721 = 0; _i721 < _size717; ++_i721) + uint32_t _size728; + ::apache::thrift::protocol::TType _etype731; + xfer += iprot->readListBegin(_etype731, _size728); + this->names.resize(_size728); + uint32_t _i732; + for (_i732 = 0; _i732 < _size728; ++_i732) { - xfer += iprot->readString(this->names[_i721]); + xfer += iprot->readString(this->names[_i732]); } xfer += iprot->readListEnd(); } @@ -13498,10 +13760,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 _iter722; - for (_iter722 = this->names.begin(); _iter722 != this->names.end(); ++_iter722) + std::vector ::const_iterator _iter733; + for (_iter733 = this->names.begin(); _iter733 != this->names.end(); ++_iter733) { - xfer += oprot->writeString((*_iter722)); + xfer += oprot->writeString((*_iter733)); } xfer += oprot->writeListEnd(); } @@ -13527,10 +13789,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 _iter723; - for (_iter723 = (*(this->names)).begin(); _iter723 != (*(this->names)).end(); ++_iter723) + std::vector ::const_iterator _iter734; + for (_iter734 = (*(this->names)).begin(); _iter734 != (*(this->names)).end(); ++_iter734) { - xfer += oprot->writeString((*_iter723)); + xfer += oprot->writeString((*_iter734)); } xfer += oprot->writeListEnd(); } @@ -13565,14 +13827,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size724; - ::apache::thrift::protocol::TType _etype727; - xfer += iprot->readListBegin(_etype727, _size724); - this->success.resize(_size724); - uint32_t _i728; - for (_i728 = 0; _i728 < _size724; ++_i728) + uint32_t _size735; + ::apache::thrift::protocol::TType _etype738; + xfer += iprot->readListBegin(_etype738, _size735); + this->success.resize(_size735); + uint32_t _i739; + for (_i739 = 0; _i739 < _size735; ++_i739) { - xfer += this->success[_i728].read(iprot); + xfer += this->success[_i739].read(iprot); } xfer += iprot->readListEnd(); } @@ -13619,10 +13881,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 _iter729; - for (_iter729 = this->success.begin(); _iter729 != this->success.end(); ++_iter729) + std::vector ::const_iterator _iter740; + for (_iter740 = this->success.begin(); _iter740 != this->success.end(); ++_iter740) { - xfer += (*_iter729).write(oprot); + xfer += (*_iter740).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13665,14 +13927,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size730; - ::apache::thrift::protocol::TType _etype733; - xfer += iprot->readListBegin(_etype733, _size730); - (*(this->success)).resize(_size730); - uint32_t _i734; - for (_i734 = 0; _i734 < _size730; ++_i734) + uint32_t _size741; + ::apache::thrift::protocol::TType _etype744; + xfer += iprot->readListBegin(_etype744, _size741); + (*(this->success)).resize(_size741); + uint32_t _i745; + for (_i745 = 0; _i745 < _size741; ++_i745) { - xfer += (*(this->success))[_i734].read(iprot); + xfer += (*(this->success))[_i745].read(iprot); } xfer += iprot->readListEnd(); } @@ -13963,14 +14225,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size735; - ::apache::thrift::protocol::TType _etype738; - xfer += iprot->readListBegin(_etype738, _size735); - this->new_parts.resize(_size735); - uint32_t _i739; - for (_i739 = 0; _i739 < _size735; ++_i739) + uint32_t _size746; + ::apache::thrift::protocol::TType _etype749; + xfer += iprot->readListBegin(_etype749, _size746); + this->new_parts.resize(_size746); + uint32_t _i750; + for (_i750 = 0; _i750 < _size746; ++_i750) { - xfer += this->new_parts[_i739].read(iprot); + xfer += this->new_parts[_i750].read(iprot); } xfer += iprot->readListEnd(); } @@ -14006,10 +14268,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 _iter740; - for (_iter740 = this->new_parts.begin(); _iter740 != this->new_parts.end(); ++_iter740) + std::vector ::const_iterator _iter751; + for (_iter751 = this->new_parts.begin(); _iter751 != this->new_parts.end(); ++_iter751) { - xfer += (*_iter740).write(oprot); + xfer += (*_iter751).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14035,10 +14297,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 _iter741; - for (_iter741 = (*(this->new_parts)).begin(); _iter741 != (*(this->new_parts)).end(); ++_iter741) + std::vector ::const_iterator _iter752; + for (_iter752 = (*(this->new_parts)).begin(); _iter752 != (*(this->new_parts)).end(); ++_iter752) { - xfer += (*_iter741).write(oprot); + xfer += (*_iter752).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14435,14 +14697,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size742; - ::apache::thrift::protocol::TType _etype745; - xfer += iprot->readListBegin(_etype745, _size742); - this->part_vals.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->part_vals.resize(_size753); + uint32_t _i757; + for (_i757 = 0; _i757 < _size753; ++_i757) { - xfer += iprot->readString(this->part_vals[_i746]); + xfer += iprot->readString(this->part_vals[_i757]); } xfer += iprot->readListEnd(); } @@ -14486,10 +14748,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 _iter747; - for (_iter747 = this->part_vals.begin(); _iter747 != this->part_vals.end(); ++_iter747) + std::vector ::const_iterator _iter758; + for (_iter758 = this->part_vals.begin(); _iter758 != this->part_vals.end(); ++_iter758) { - xfer += oprot->writeString((*_iter747)); + xfer += oprot->writeString((*_iter758)); } xfer += oprot->writeListEnd(); } @@ -14519,10 +14781,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 _iter748; - for (_iter748 = (*(this->part_vals)).begin(); _iter748 != (*(this->part_vals)).end(); ++_iter748) + std::vector ::const_iterator _iter759; + for (_iter759 = (*(this->part_vals)).begin(); _iter759 != (*(this->part_vals)).end(); ++_iter759) { - xfer += oprot->writeString((*_iter748)); + xfer += oprot->writeString((*_iter759)); } xfer += oprot->writeListEnd(); } @@ -14677,14 +14939,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 _size749; - ::apache::thrift::protocol::TType _etype752; - xfer += iprot->readListBegin(_etype752, _size749); - this->part_vals.resize(_size749); - uint32_t _i753; - for (_i753 = 0; _i753 < _size749; ++_i753) + uint32_t _size760; + ::apache::thrift::protocol::TType _etype763; + xfer += iprot->readListBegin(_etype763, _size760); + this->part_vals.resize(_size760); + uint32_t _i764; + for (_i764 = 0; _i764 < _size760; ++_i764) { - xfer += iprot->readString(this->part_vals[_i753]); + xfer += iprot->readString(this->part_vals[_i764]); } xfer += iprot->readListEnd(); } @@ -14720,10 +14982,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 _iter754; - for (_iter754 = this->part_vals.begin(); _iter754 != this->part_vals.end(); ++_iter754) + std::vector ::const_iterator _iter765; + for (_iter765 = this->part_vals.begin(); _iter765 != this->part_vals.end(); ++_iter765) { - xfer += oprot->writeString((*_iter754)); + xfer += oprot->writeString((*_iter765)); } xfer += oprot->writeListEnd(); } @@ -14745,10 +15007,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 _iter755; - for (_iter755 = (*(this->part_vals)).begin(); _iter755 != (*(this->part_vals)).end(); ++_iter755) + std::vector ::const_iterator _iter766; + for (_iter766 = (*(this->part_vals)).begin(); _iter766 != (*(this->part_vals)).end(); ++_iter766) { - xfer += oprot->writeString((*_iter755)); + xfer += oprot->writeString((*_iter766)); } xfer += oprot->writeListEnd(); } @@ -15167,14 +15429,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size756; - ::apache::thrift::protocol::TType _etype759; - xfer += iprot->readListBegin(_etype759, _size756); - this->success.resize(_size756); - uint32_t _i760; - for (_i760 = 0; _i760 < _size756; ++_i760) + uint32_t _size767; + ::apache::thrift::protocol::TType _etype770; + xfer += iprot->readListBegin(_etype770, _size767); + this->success.resize(_size767); + uint32_t _i771; + for (_i771 = 0; _i771 < _size767; ++_i771) { - xfer += iprot->readString(this->success[_i760]); + xfer += iprot->readString(this->success[_i771]); } xfer += iprot->readListEnd(); } @@ -15213,10 +15475,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 _iter761; - for (_iter761 = this->success.begin(); _iter761 != this->success.end(); ++_iter761) + std::vector ::const_iterator _iter772; + for (_iter772 = this->success.begin(); _iter772 != this->success.end(); ++_iter772) { - xfer += oprot->writeString((*_iter761)); + xfer += oprot->writeString((*_iter772)); } xfer += oprot->writeListEnd(); } @@ -15255,14 +15517,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size762; - ::apache::thrift::protocol::TType _etype765; - xfer += iprot->readListBegin(_etype765, _size762); - (*(this->success)).resize(_size762); - uint32_t _i766; - for (_i766 = 0; _i766 < _size762; ++_i766) + uint32_t _size773; + ::apache::thrift::protocol::TType _etype776; + xfer += iprot->readListBegin(_etype776, _size773); + (*(this->success)).resize(_size773); + uint32_t _i777; + for (_i777 = 0; _i777 < _size773; ++_i777) { - xfer += iprot->readString((*(this->success))[_i766]); + xfer += iprot->readString((*(this->success))[_i777]); } xfer += iprot->readListEnd(); } @@ -15381,17 +15643,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size767; - ::apache::thrift::protocol::TType _ktype768; - ::apache::thrift::protocol::TType _vtype769; - xfer += iprot->readMapBegin(_ktype768, _vtype769, _size767); - uint32_t _i771; - for (_i771 = 0; _i771 < _size767; ++_i771) + uint32_t _size778; + ::apache::thrift::protocol::TType _ktype779; + ::apache::thrift::protocol::TType _vtype780; + xfer += iprot->readMapBegin(_ktype779, _vtype780, _size778); + uint32_t _i782; + for (_i782 = 0; _i782 < _size778; ++_i782) { - std::string _key772; - xfer += iprot->readString(_key772); - std::string& _val773 = this->success[_key772]; - xfer += iprot->readString(_val773); + std::string _key783; + xfer += iprot->readString(_key783); + std::string& _val784 = this->success[_key783]; + xfer += iprot->readString(_val784); } xfer += iprot->readMapEnd(); } @@ -15430,11 +15692,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 _iter774; - for (_iter774 = this->success.begin(); _iter774 != this->success.end(); ++_iter774) + std::map ::const_iterator _iter785; + for (_iter785 = this->success.begin(); _iter785 != this->success.end(); ++_iter785) { - xfer += oprot->writeString(_iter774->first); - xfer += oprot->writeString(_iter774->second); + xfer += oprot->writeString(_iter785->first); + xfer += oprot->writeString(_iter785->second); } xfer += oprot->writeMapEnd(); } @@ -15473,17 +15735,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size775; - ::apache::thrift::protocol::TType _ktype776; - ::apache::thrift::protocol::TType _vtype777; - xfer += iprot->readMapBegin(_ktype776, _vtype777, _size775); - uint32_t _i779; - for (_i779 = 0; _i779 < _size775; ++_i779) + uint32_t _size786; + ::apache::thrift::protocol::TType _ktype787; + ::apache::thrift::protocol::TType _vtype788; + xfer += iprot->readMapBegin(_ktype787, _vtype788, _size786); + uint32_t _i790; + for (_i790 = 0; _i790 < _size786; ++_i790) { - std::string _key780; - xfer += iprot->readString(_key780); - std::string& _val781 = (*(this->success))[_key780]; - xfer += iprot->readString(_val781); + std::string _key791; + xfer += iprot->readString(_key791); + std::string& _val792 = (*(this->success))[_key791]; + xfer += iprot->readString(_val792); } xfer += iprot->readMapEnd(); } @@ -15552,17 +15814,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size782; - ::apache::thrift::protocol::TType _ktype783; - ::apache::thrift::protocol::TType _vtype784; - xfer += iprot->readMapBegin(_ktype783, _vtype784, _size782); - uint32_t _i786; - for (_i786 = 0; _i786 < _size782; ++_i786) + uint32_t _size793; + ::apache::thrift::protocol::TType _ktype794; + ::apache::thrift::protocol::TType _vtype795; + xfer += iprot->readMapBegin(_ktype794, _vtype795, _size793); + uint32_t _i797; + for (_i797 = 0; _i797 < _size793; ++_i797) { - std::string _key787; - xfer += iprot->readString(_key787); - std::string& _val788 = this->part_vals[_key787]; - xfer += iprot->readString(_val788); + std::string _key798; + xfer += iprot->readString(_key798); + std::string& _val799 = this->part_vals[_key798]; + xfer += iprot->readString(_val799); } xfer += iprot->readMapEnd(); } @@ -15573,9 +15835,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast789; - xfer += iprot->readI32(ecast789); - this->eventType = (PartitionEventType::type)ecast789; + int32_t ecast800; + xfer += iprot->readI32(ecast800); + this->eventType = (PartitionEventType::type)ecast800; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -15608,11 +15870,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 _iter790; - for (_iter790 = this->part_vals.begin(); _iter790 != this->part_vals.end(); ++_iter790) + std::map ::const_iterator _iter801; + for (_iter801 = this->part_vals.begin(); _iter801 != this->part_vals.end(); ++_iter801) { - xfer += oprot->writeString(_iter790->first); - xfer += oprot->writeString(_iter790->second); + xfer += oprot->writeString(_iter801->first); + xfer += oprot->writeString(_iter801->second); } xfer += oprot->writeMapEnd(); } @@ -15642,11 +15904,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 _iter791; - for (_iter791 = (*(this->part_vals)).begin(); _iter791 != (*(this->part_vals)).end(); ++_iter791) + std::map ::const_iterator _iter802; + for (_iter802 = (*(this->part_vals)).begin(); _iter802 != (*(this->part_vals)).end(); ++_iter802) { - xfer += oprot->writeString(_iter791->first); - xfer += oprot->writeString(_iter791->second); + xfer += oprot->writeString(_iter802->first); + xfer += oprot->writeString(_iter802->second); } xfer += oprot->writeMapEnd(); } @@ -15897,17 +16159,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size792; - ::apache::thrift::protocol::TType _ktype793; - ::apache::thrift::protocol::TType _vtype794; - xfer += iprot->readMapBegin(_ktype793, _vtype794, _size792); - uint32_t _i796; - for (_i796 = 0; _i796 < _size792; ++_i796) + uint32_t _size803; + ::apache::thrift::protocol::TType _ktype804; + ::apache::thrift::protocol::TType _vtype805; + xfer += iprot->readMapBegin(_ktype804, _vtype805, _size803); + uint32_t _i807; + for (_i807 = 0; _i807 < _size803; ++_i807) { - std::string _key797; - xfer += iprot->readString(_key797); - std::string& _val798 = this->part_vals[_key797]; - xfer += iprot->readString(_val798); + std::string _key808; + xfer += iprot->readString(_key808); + std::string& _val809 = this->part_vals[_key808]; + xfer += iprot->readString(_val809); } xfer += iprot->readMapEnd(); } @@ -15918,9 +16180,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast799; - xfer += iprot->readI32(ecast799); - this->eventType = (PartitionEventType::type)ecast799; + int32_t ecast810; + xfer += iprot->readI32(ecast810); + this->eventType = (PartitionEventType::type)ecast810; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -15953,11 +16215,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 _iter800; - for (_iter800 = this->part_vals.begin(); _iter800 != this->part_vals.end(); ++_iter800) + std::map ::const_iterator _iter811; + for (_iter811 = this->part_vals.begin(); _iter811 != this->part_vals.end(); ++_iter811) { - xfer += oprot->writeString(_iter800->first); - xfer += oprot->writeString(_iter800->second); + xfer += oprot->writeString(_iter811->first); + xfer += oprot->writeString(_iter811->second); } xfer += oprot->writeMapEnd(); } @@ -15987,11 +16249,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 _iter801; - for (_iter801 = (*(this->part_vals)).begin(); _iter801 != (*(this->part_vals)).end(); ++_iter801) + std::map ::const_iterator _iter812; + for (_iter812 = (*(this->part_vals)).begin(); _iter812 != (*(this->part_vals)).end(); ++_iter812) { - xfer += oprot->writeString(_iter801->first); - xfer += oprot->writeString(_iter801->second); + xfer += oprot->writeString(_iter812->first); + xfer += oprot->writeString(_iter812->second); } xfer += oprot->writeMapEnd(); } @@ -17296,14 +17558,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size802; - ::apache::thrift::protocol::TType _etype805; - xfer += iprot->readListBegin(_etype805, _size802); - this->success.resize(_size802); - uint32_t _i806; - for (_i806 = 0; _i806 < _size802; ++_i806) + uint32_t _size813; + ::apache::thrift::protocol::TType _etype816; + xfer += iprot->readListBegin(_etype816, _size813); + this->success.resize(_size813); + uint32_t _i817; + for (_i817 = 0; _i817 < _size813; ++_i817) { - xfer += this->success[_i806].read(iprot); + xfer += this->success[_i817].read(iprot); } xfer += iprot->readListEnd(); } @@ -17350,10 +17612,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 _iter807; - for (_iter807 = this->success.begin(); _iter807 != this->success.end(); ++_iter807) + std::vector ::const_iterator _iter818; + for (_iter818 = this->success.begin(); _iter818 != this->success.end(); ++_iter818) { - xfer += (*_iter807).write(oprot); + xfer += (*_iter818).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17396,14 +17658,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size808; - ::apache::thrift::protocol::TType _etype811; - xfer += iprot->readListBegin(_etype811, _size808); - (*(this->success)).resize(_size808); - uint32_t _i812; - for (_i812 = 0; _i812 < _size808; ++_i812) + uint32_t _size819; + ::apache::thrift::protocol::TType _etype822; + xfer += iprot->readListBegin(_etype822, _size819); + (*(this->success)).resize(_size819); + uint32_t _i823; + for (_i823 = 0; _i823 < _size819; ++_i823) { - xfer += (*(this->success))[_i812].read(iprot); + xfer += (*(this->success))[_i823].read(iprot); } xfer += iprot->readListEnd(); } @@ -17562,14 +17824,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size813; - ::apache::thrift::protocol::TType _etype816; - xfer += iprot->readListBegin(_etype816, _size813); - this->success.resize(_size813); - uint32_t _i817; - for (_i817 = 0; _i817 < _size813; ++_i817) + uint32_t _size824; + ::apache::thrift::protocol::TType _etype827; + xfer += iprot->readListBegin(_etype827, _size824); + this->success.resize(_size824); + uint32_t _i828; + for (_i828 = 0; _i828 < _size824; ++_i828) { - xfer += iprot->readString(this->success[_i817]); + xfer += iprot->readString(this->success[_i828]); } xfer += iprot->readListEnd(); } @@ -17608,10 +17870,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 _iter818; - for (_iter818 = this->success.begin(); _iter818 != this->success.end(); ++_iter818) + std::vector ::const_iterator _iter829; + for (_iter829 = this->success.begin(); _iter829 != this->success.end(); ++_iter829) { - xfer += oprot->writeString((*_iter818)); + xfer += oprot->writeString((*_iter829)); } xfer += oprot->writeListEnd(); } @@ -17650,14 +17912,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size819; - ::apache::thrift::protocol::TType _etype822; - xfer += iprot->readListBegin(_etype822, _size819); - (*(this->success)).resize(_size819); - uint32_t _i823; - for (_i823 = 0; _i823 < _size819; ++_i823) + uint32_t _size830; + ::apache::thrift::protocol::TType _etype833; + xfer += iprot->readListBegin(_etype833, _size830); + (*(this->success)).resize(_size830); + uint32_t _i834; + for (_i834 = 0; _i834 < _size830; ++_i834) { - xfer += iprot->readString((*(this->success))[_i823]); + xfer += iprot->readString((*(this->success))[_i834]); } xfer += iprot->readListEnd(); } @@ -20886,14 +21148,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size824; - ::apache::thrift::protocol::TType _etype827; - xfer += iprot->readListBegin(_etype827, _size824); - this->success.resize(_size824); - uint32_t _i828; - for (_i828 = 0; _i828 < _size824; ++_i828) + uint32_t _size835; + ::apache::thrift::protocol::TType _etype838; + xfer += iprot->readListBegin(_etype838, _size835); + this->success.resize(_size835); + uint32_t _i839; + for (_i839 = 0; _i839 < _size835; ++_i839) { - xfer += iprot->readString(this->success[_i828]); + xfer += iprot->readString(this->success[_i839]); } xfer += iprot->readListEnd(); } @@ -20932,10 +21194,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 _iter829; - for (_iter829 = this->success.begin(); _iter829 != this->success.end(); ++_iter829) + std::vector ::const_iterator _iter840; + for (_iter840 = this->success.begin(); _iter840 != this->success.end(); ++_iter840) { - xfer += oprot->writeString((*_iter829)); + xfer += oprot->writeString((*_iter840)); } xfer += oprot->writeListEnd(); } @@ -20974,14 +21236,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size830; - ::apache::thrift::protocol::TType _etype833; - xfer += iprot->readListBegin(_etype833, _size830); - (*(this->success)).resize(_size830); - uint32_t _i834; - for (_i834 = 0; _i834 < _size830; ++_i834) + uint32_t _size841; + ::apache::thrift::protocol::TType _etype844; + xfer += iprot->readListBegin(_etype844, _size841); + (*(this->success)).resize(_size841); + uint32_t _i845; + for (_i845 = 0; _i845 < _size841; ++_i845) { - xfer += iprot->readString((*(this->success))[_i834]); + xfer += iprot->readString((*(this->success))[_i845]); } xfer += iprot->readListEnd(); } @@ -21661,14 +21923,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size835; - ::apache::thrift::protocol::TType _etype838; - xfer += iprot->readListBegin(_etype838, _size835); - this->success.resize(_size835); - uint32_t _i839; - for (_i839 = 0; _i839 < _size835; ++_i839) + uint32_t _size846; + ::apache::thrift::protocol::TType _etype849; + xfer += iprot->readListBegin(_etype849, _size846); + this->success.resize(_size846); + uint32_t _i850; + for (_i850 = 0; _i850 < _size846; ++_i850) { - xfer += iprot->readString(this->success[_i839]); + xfer += iprot->readString(this->success[_i850]); } xfer += iprot->readListEnd(); } @@ -21707,10 +21969,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 _iter840; - for (_iter840 = this->success.begin(); _iter840 != this->success.end(); ++_iter840) + std::vector ::const_iterator _iter851; + for (_iter851 = this->success.begin(); _iter851 != this->success.end(); ++_iter851) { - xfer += oprot->writeString((*_iter840)); + xfer += oprot->writeString((*_iter851)); } xfer += oprot->writeListEnd(); } @@ -21749,14 +22011,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size841; - ::apache::thrift::protocol::TType _etype844; - xfer += iprot->readListBegin(_etype844, _size841); - (*(this->success)).resize(_size841); - uint32_t _i845; - for (_i845 = 0; _i845 < _size841; ++_i845) + uint32_t _size852; + ::apache::thrift::protocol::TType _etype855; + xfer += iprot->readListBegin(_etype855, _size852); + (*(this->success)).resize(_size852); + uint32_t _i856; + for (_i856 = 0; _i856 < _size852; ++_i856) { - xfer += iprot->readString((*(this->success))[_i845]); + xfer += iprot->readString((*(this->success))[_i856]); } xfer += iprot->readListEnd(); } @@ -21823,9 +22085,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast846; - xfer += iprot->readI32(ecast846); - this->principal_type = (PrincipalType::type)ecast846; + int32_t ecast857; + xfer += iprot->readI32(ecast857); + this->principal_type = (PrincipalType::type)ecast857; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -21841,9 +22103,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast847; - xfer += iprot->readI32(ecast847); - this->grantorType = (PrincipalType::type)ecast847; + int32_t ecast858; + xfer += iprot->readI32(ecast858); + this->grantorType = (PrincipalType::type)ecast858; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -22089,9 +22351,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast848; - xfer += iprot->readI32(ecast848); - this->principal_type = (PrincipalType::type)ecast848; + int32_t ecast859; + xfer += iprot->readI32(ecast859); + this->principal_type = (PrincipalType::type)ecast859; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -22297,9 +22559,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast849; - xfer += iprot->readI32(ecast849); - this->principal_type = (PrincipalType::type)ecast849; + int32_t ecast860; + xfer += iprot->readI32(ecast860); + this->principal_type = (PrincipalType::type)ecast860; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -22375,14 +22637,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size850; - ::apache::thrift::protocol::TType _etype853; - xfer += iprot->readListBegin(_etype853, _size850); - this->success.resize(_size850); - uint32_t _i854; - for (_i854 = 0; _i854 < _size850; ++_i854) + uint32_t _size861; + ::apache::thrift::protocol::TType _etype864; + xfer += iprot->readListBegin(_etype864, _size861); + this->success.resize(_size861); + uint32_t _i865; + for (_i865 = 0; _i865 < _size861; ++_i865) { - xfer += this->success[_i854].read(iprot); + xfer += this->success[_i865].read(iprot); } xfer += iprot->readListEnd(); } @@ -22421,10 +22683,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 _iter855; - for (_iter855 = this->success.begin(); _iter855 != this->success.end(); ++_iter855) + std::vector ::const_iterator _iter866; + for (_iter866 = this->success.begin(); _iter866 != this->success.end(); ++_iter866) { - xfer += (*_iter855).write(oprot); + xfer += (*_iter866).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22463,14 +22725,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size856; - ::apache::thrift::protocol::TType _etype859; - xfer += iprot->readListBegin(_etype859, _size856); - (*(this->success)).resize(_size856); - uint32_t _i860; - for (_i860 = 0; _i860 < _size856; ++_i860) + uint32_t _size867; + ::apache::thrift::protocol::TType _etype870; + xfer += iprot->readListBegin(_etype870, _size867); + (*(this->success)).resize(_size867); + uint32_t _i871; + for (_i871 = 0; _i871 < _size867; ++_i871) { - xfer += (*(this->success))[_i860].read(iprot); + xfer += (*(this->success))[_i871].read(iprot); } xfer += iprot->readListEnd(); } @@ -23085,14 +23347,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 _size861; - ::apache::thrift::protocol::TType _etype864; - xfer += iprot->readListBegin(_etype864, _size861); - this->group_names.resize(_size861); - uint32_t _i865; - for (_i865 = 0; _i865 < _size861; ++_i865) + uint32_t _size872; + ::apache::thrift::protocol::TType _etype875; + xfer += iprot->readListBegin(_etype875, _size872); + this->group_names.resize(_size872); + uint32_t _i876; + for (_i876 = 0; _i876 < _size872; ++_i876) { - xfer += iprot->readString(this->group_names[_i865]); + xfer += iprot->readString(this->group_names[_i876]); } xfer += iprot->readListEnd(); } @@ -23128,10 +23390,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 _iter866; - for (_iter866 = this->group_names.begin(); _iter866 != this->group_names.end(); ++_iter866) + std::vector ::const_iterator _iter877; + for (_iter877 = this->group_names.begin(); _iter877 != this->group_names.end(); ++_iter877) { - xfer += oprot->writeString((*_iter866)); + xfer += oprot->writeString((*_iter877)); } xfer += oprot->writeListEnd(); } @@ -23157,10 +23419,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 _iter867; - for (_iter867 = (*(this->group_names)).begin(); _iter867 != (*(this->group_names)).end(); ++_iter867) + std::vector ::const_iterator _iter878; + for (_iter878 = (*(this->group_names)).begin(); _iter878 != (*(this->group_names)).end(); ++_iter878) { - xfer += oprot->writeString((*_iter867)); + xfer += oprot->writeString((*_iter878)); } xfer += oprot->writeListEnd(); } @@ -23317,9 +23579,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast868; - xfer += iprot->readI32(ecast868); - this->principal_type = (PrincipalType::type)ecast868; + int32_t ecast879; + xfer += iprot->readI32(ecast879); + this->principal_type = (PrincipalType::type)ecast879; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -23411,14 +23673,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size869; - ::apache::thrift::protocol::TType _etype872; - xfer += iprot->readListBegin(_etype872, _size869); - this->success.resize(_size869); - uint32_t _i873; - for (_i873 = 0; _i873 < _size869; ++_i873) + uint32_t _size880; + ::apache::thrift::protocol::TType _etype883; + xfer += iprot->readListBegin(_etype883, _size880); + this->success.resize(_size880); + uint32_t _i884; + for (_i884 = 0; _i884 < _size880; ++_i884) { - xfer += this->success[_i873].read(iprot); + xfer += this->success[_i884].read(iprot); } xfer += iprot->readListEnd(); } @@ -23457,10 +23719,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 _iter874; - for (_iter874 = this->success.begin(); _iter874 != this->success.end(); ++_iter874) + std::vector ::const_iterator _iter885; + for (_iter885 = this->success.begin(); _iter885 != this->success.end(); ++_iter885) { - xfer += (*_iter874).write(oprot); + xfer += (*_iter885).write(oprot); } xfer += oprot->writeListEnd(); } @@ -23499,14 +23761,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size875; - ::apache::thrift::protocol::TType _etype878; - xfer += iprot->readListBegin(_etype878, _size875); - (*(this->success)).resize(_size875); - uint32_t _i879; - for (_i879 = 0; _i879 < _size875; ++_i879) + uint32_t _size886; + ::apache::thrift::protocol::TType _etype889; + xfer += iprot->readListBegin(_etype889, _size886); + (*(this->success)).resize(_size886); + uint32_t _i890; + for (_i890 = 0; _i890 < _size886; ++_i890) { - xfer += (*(this->success))[_i879].read(iprot); + xfer += (*(this->success))[_i890].read(iprot); } xfer += iprot->readListEnd(); } @@ -24113,14 +24375,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 _size880; - ::apache::thrift::protocol::TType _etype883; - xfer += iprot->readListBegin(_etype883, _size880); - this->group_names.resize(_size880); - uint32_t _i884; - for (_i884 = 0; _i884 < _size880; ++_i884) + uint32_t _size891; + ::apache::thrift::protocol::TType _etype894; + xfer += iprot->readListBegin(_etype894, _size891); + this->group_names.resize(_size891); + uint32_t _i895; + for (_i895 = 0; _i895 < _size891; ++_i895) { - xfer += iprot->readString(this->group_names[_i884]); + xfer += iprot->readString(this->group_names[_i895]); } xfer += iprot->readListEnd(); } @@ -24152,10 +24414,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 _iter885; - for (_iter885 = this->group_names.begin(); _iter885 != this->group_names.end(); ++_iter885) + std::vector ::const_iterator _iter896; + for (_iter896 = this->group_names.begin(); _iter896 != this->group_names.end(); ++_iter896) { - xfer += oprot->writeString((*_iter885)); + xfer += oprot->writeString((*_iter896)); } xfer += oprot->writeListEnd(); } @@ -24177,10 +24439,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 _iter886; - for (_iter886 = (*(this->group_names)).begin(); _iter886 != (*(this->group_names)).end(); ++_iter886) + std::vector ::const_iterator _iter897; + for (_iter897 = (*(this->group_names)).begin(); _iter897 != (*(this->group_names)).end(); ++_iter897) { - xfer += oprot->writeString((*_iter886)); + xfer += oprot->writeString((*_iter897)); } xfer += oprot->writeListEnd(); } @@ -24215,14 +24477,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size887; - ::apache::thrift::protocol::TType _etype890; - xfer += iprot->readListBegin(_etype890, _size887); - this->success.resize(_size887); - uint32_t _i891; - for (_i891 = 0; _i891 < _size887; ++_i891) + uint32_t _size898; + ::apache::thrift::protocol::TType _etype901; + xfer += iprot->readListBegin(_etype901, _size898); + this->success.resize(_size898); + uint32_t _i902; + for (_i902 = 0; _i902 < _size898; ++_i902) { - xfer += iprot->readString(this->success[_i891]); + xfer += iprot->readString(this->success[_i902]); } xfer += iprot->readListEnd(); } @@ -24261,10 +24523,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 _iter892; - for (_iter892 = this->success.begin(); _iter892 != this->success.end(); ++_iter892) + std::vector ::const_iterator _iter903; + for (_iter903 = this->success.begin(); _iter903 != this->success.end(); ++_iter903) { - xfer += oprot->writeString((*_iter892)); + xfer += oprot->writeString((*_iter903)); } xfer += oprot->writeListEnd(); } @@ -24303,14 +24565,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size893; - ::apache::thrift::protocol::TType _etype896; - xfer += iprot->readListBegin(_etype896, _size893); - (*(this->success)).resize(_size893); - uint32_t _i897; - for (_i897 = 0; _i897 < _size893; ++_i897) + uint32_t _size904; + ::apache::thrift::protocol::TType _etype907; + xfer += iprot->readListBegin(_etype907, _size904); + (*(this->success)).resize(_size904); + uint32_t _i908; + for (_i908 = 0; _i908 < _size904; ++_i908) { - xfer += iprot->readString((*(this->success))[_i897]); + xfer += iprot->readString((*(this->success))[_i908]); } xfer += iprot->readListEnd(); } @@ -30224,6 +30486,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); @@ -37526,6 +37852,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 7ebb423..d4f244c 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -64,6 +64,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService 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_partitions_pspec(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int32_t max_parts) = 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; @@ -314,6 +315,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; } @@ -7346,6 +7350,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; @@ -16723,6 +16872,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); @@ -16988,6 +17140,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_get_partitions_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partitions_pspec(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); @@ -17109,6 +17262,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["get_partitions_with_auth"] = &ThriftHiveMetastoreProcessor::process_get_partitions_with_auth; processMap_["get_partitions_pspec"] = &ThriftHiveMetastoreProcessor::process_get_partitions_pspec; 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; @@ -17672,6 +17826,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 e5c1fcb..56465b5 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -262,6 +262,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 09fd71b..2129bd1 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 @@ -134,6 +134,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; @@ -372,6 +374,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; @@ -2004,6 +2008,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); @@ -5767,6 +5800,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); @@ -8264,6 +8338,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"); @@ -65146,30 +65245,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(); @@ -65189,8 +65288,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: @@ -65242,30 +65341,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); } @@ -65273,7 +65371,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; @@ -65281,25 +65379,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; } @@ -65350,41 +65444,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; } } @@ -65428,11 +65507,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; @@ -65455,8 +65534,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()); @@ -65476,8 +65555,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(); } @@ -65488,12 +65567,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; @@ -65515,12 +65594,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; } @@ -65550,10 +65629,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); @@ -65563,13 +65642,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) { @@ -65591,12 +65670,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; } @@ -65628,7 +65707,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:"); @@ -65647,11 +65726,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(", "); @@ -65685,15 +65764,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) @@ -65719,20 +65798,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 _list696 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list696.size); - for (int _i697 = 0; _i697 < _list696.size; ++_i697) - { - String _elem698; // required - _elem698 = iprot.readString(); - struct.part_vals.add(_elem698); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); + 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); } @@ -65754,7 +65823,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); @@ -65768,16 +65837,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 _iter699 : struct.part_vals) - { - oprot.writeString(_iter699); - } - oprot.writeListEnd(); - } + if (struct.filter != null) { + oprot.writeFieldBegin(FILTER_FIELD_DESC); + oprot.writeString(struct.filter); oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); @@ -65789,16 +65851,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()) { @@ -65807,7 +65869,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()) { @@ -65820,14 +65882,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 _iter700 : struct.part_vals) - { - oprot.writeString(_iter700); - } - } + if (struct.isSetFilter()) { + oprot.writeString(struct.filter); } if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); @@ -65835,7 +65891,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)) { @@ -65847,17 +65903,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 _list701 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list701.size); - for (int _i702 = 0; _i702 < _list701.size; ++_i702) - { - String _elem703; // required - _elem703 = iprot.readString(); - struct.part_vals.add(_elem703); - } - } - struct.setPart_valsIsSet(true); + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); } if (incoming.get(3)) { struct.max_parts = iprot.readI16(); @@ -65868,28 +65915,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(); @@ -65906,9 +65950,7 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // O1 - return O1; - case 2: // O2 + case 1: // O2 return O2; default: return null; @@ -65955,56 +65997,48 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_by_filter_result.class, metaDataMap); } - public get_partitions_ps_result() { + public get_partition_names_by_filter_result() { } - public get_partitions_ps_result( - List success, - MetaException o1, - NoSuchObjectException o2) + public get_partition_names_by_filter_result( + List success, + MetaException o2) { this(); this.success = success; - this.o1 = o1; this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_partitions_ps_result(get_partitions_ps_result other) { + public get_partition_names_by_filter_result(get_partition_names_by_filter_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); + List __this__success = new ArrayList(); + for (String other_element : other.success) { + __this__success.add(other_element); } this.success = __this__success; } - if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); - } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public get_partitions_ps_result deepCopy() { - return new get_partitions_ps_result(this); + public get_partition_names_by_filter_result deepCopy() { + return new get_partition_names_by_filter_result(this); } @Override public void clear() { this.success = null; - this.o1 = null; this.o2 = null; } @@ -66012,22 +66046,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Partition elem) { + public void addToSuccess(String elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -66046,34 +66080,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { - return this.o1; - } - - public void setO1(MetaException o1) { - this.o1 = o1; - } - - public void unsetO1() { - this.o1 = null; - } - - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != null; - } - - public void setO1IsSet(boolean value) { - if (!value) { - this.o1 = null; - } - } - - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -66098,15 +66109,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); - } - break; - - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((MetaException)value); + setSuccess((List)value); } break; @@ -66114,7 +66117,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -66126,9 +66129,6 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); - case O1: - return getO1(); - case O2: return getO2(); @@ -66145,8 +66145,6 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); - case O1: - return isSetO1(); case O2: return isSetO2(); } @@ -66157,12 +66155,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_result) - return this.equals((get_partitions_ps_result)that); + if (that instanceof get_partition_names_by_filter_result) + return this.equals((get_partition_names_by_filter_result)that); return false; } - public boolean equals(get_partitions_ps_result that) { + public boolean equals(get_partition_names_by_filter_result that) { if (that == null) return false; @@ -66175,15 +66173,6 @@ public boolean equals(get_partitions_ps_result that) { return false; } - boolean this_present_o1 = true && this.isSetO1(); - boolean that_present_o1 = true && that.isSetO1(); - if (this_present_o1 || that_present_o1) { - if (!(this_present_o1 && that_present_o1)) - return false; - if (!this.o1.equals(that.o1)) - return false; - } - boolean this_present_o2 = true && this.isSetO2(); boolean that_present_o2 = true && that.isSetO2(); if (this_present_o2 || that_present_o2) { @@ -66205,11 +66194,6 @@ public int hashCode() { if (present_success) builder.append(success); - boolean present_o1 = true && (isSetO1()); - builder.append(present_o1); - if (present_o1) - builder.append(o1); - boolean present_o2 = true && (isSetO2()); builder.append(present_o2); if (present_o2) @@ -66218,13 +66202,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(get_partitions_ps_result other) { + 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_partitions_ps_result typedOther = (get_partitions_ps_result)other; + get_partition_names_by_filter_result typedOther = (get_partition_names_by_filter_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { @@ -66236,16 +66220,6 @@ public int compareTo(get_partitions_ps_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); if (lastComparison != 0) { return lastComparison; @@ -66273,7 +66247,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_result("); + StringBuilder sb = new StringBuilder("get_partition_names_by_filter_result("); boolean first = true; sb.append("success:"); @@ -66284,14 +66258,6 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("o1:"); - if (this.o1 == null) { - sb.append("null"); - } else { - sb.append(this.o1); - } - first = false; - if (!first) sb.append(", "); sb.append("o2:"); if (this.o2 == null) { sb.append("null"); @@ -66324,15 +66290,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_resultStandardScheme getScheme() { - return new get_partitions_ps_resultStandardScheme(); + private static class get_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_partitions_ps_resultStandardScheme extends StandardScheme { + private static class get_partition_names_by_filter_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_by_filter_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -66345,14 +66311,13 @@ 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 _list704 = iprot.readListBegin(); - struct.success = new ArrayList(_list704.size); - for (int _i705 = 0; _i705 < _list704.size; ++_i705) + org.apache.thrift.protocol.TList _list696 = iprot.readListBegin(); + struct.success = new ArrayList(_list696.size); + for (int _i697 = 0; _i697 < _list696.size; ++_i697) { - Partition _elem706; // required - _elem706 = new Partition(); - _elem706.read(iprot); - struct.success.add(_elem706); + String _elem698; // required + _elem698 = iprot.readString(); + struct.success.add(_elem698); } iprot.readListEnd(); } @@ -66361,18 +66326,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // O2 + case 1: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -66388,27 +66344,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_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.STRUCT, struct.success.size())); - for (Partition _iter707 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter699 : struct.success) { - _iter707.write(oprot); + oprot.writeString(_iter699); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } - if (struct.o1 != null) { - oprot.writeFieldBegin(O1_FIELD_DESC); - struct.o1.write(oprot); - oprot.writeFieldEnd(); - } if (struct.o2 != null) { oprot.writeFieldBegin(O2_FIELD_DESC); struct.o2.write(oprot); @@ -66420,70 +66371,58 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ } - private static class get_partitions_ps_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_resultTupleScheme getScheme() { - return new get_partitions_ps_resultTupleScheme(); + private static class get_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_partitions_ps_resultTupleScheme extends TupleScheme { + private static class get_partition_names_by_filter_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_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.isSetO1()) { - optionals.set(1); - } if (struct.isSetO2()) { - optionals.set(2); + optionals.set(1); } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter708 : struct.success) + for (String _iter700 : struct.success) { - _iter708.write(oprot); + oprot.writeString(_iter700); } } } - if (struct.isSetO1()) { - struct.o1.write(oprot); - } if (struct.isSetO2()) { struct.o2.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { + 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(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list709 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list709.size); - for (int _i710 = 0; _i710 < _list709.size; ++_i710) + org.apache.thrift.protocol.TList _list701 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list701.size); + for (int _i702 = 0; _i702 < _list701.size; ++_i702) { - Partition _elem711; // required - _elem711 = new Partition(); - _elem711.read(iprot); - struct.success.add(_elem711); + String _elem703; // required + _elem703 = iprot.readString(); + struct.success.add(_elem703); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } - if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -66492,37 +66431,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re } - public static class get_partitions_ps_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_args"); + public static class get_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 org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_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 - private String user_name; // required - private List group_names; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_VALS((short)3, "part_vals"), - MAX_PARTS((short)4, "max_parts"), - USER_NAME((short)5, "user_name"), - GROUP_NAMES((short)6, "group_names"); + MAX_PARTS((short)4, "max_parts"); private static final Map byName = new HashMap(); @@ -66545,10 +66478,6 @@ public static _Fields findByThriftId(int fieldId) { return PART_VALS; case 4: // MAX_PARTS return MAX_PARTS; - case 5: // USER_NAME - return USER_NAME; - case 6: // GROUP_NAMES - return GROUP_NAMES; default: return null; } @@ -66603,27 +66532,20 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); - tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_args.class, metaDataMap); } - public get_partitions_ps_with_auth_args() { + public get_partitions_ps_args() { this.max_parts = (short)-1; } - public get_partitions_ps_with_auth_args( + public get_partitions_ps_args( String db_name, String tbl_name, List part_vals, - short max_parts, - String user_name, - List group_names) + short max_parts) { this(); this.db_name = db_name; @@ -66631,14 +66553,12 @@ public get_partitions_ps_with_auth_args( this.part_vals = part_vals; this.max_parts = max_parts; setMax_partsIsSet(true); - this.user_name = user_name; - this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) { + public get_partitions_ps_args(get_partitions_ps_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -66654,20 +66574,10 @@ public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) this.part_vals = __this__part_vals; } this.max_parts = other.max_parts; - if (other.isSetUser_name()) { - this.user_name = other.user_name; - } - if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(); - for (String other_element : other.group_names) { - __this__group_names.add(other_element); - } - this.group_names = __this__group_names; - } } - public get_partitions_ps_with_auth_args deepCopy() { - return new get_partitions_ps_with_auth_args(this); + public get_partitions_ps_args deepCopy() { + return new get_partitions_ps_args(this); } @Override @@ -66677,8 +66587,6 @@ public void clear() { this.part_vals = null; this.max_parts = (short)-1; - this.user_name = null; - this.group_names = null; } public String getDb_name() { @@ -66787,67 +66695,6 @@ public void setMax_partsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } - public String getUser_name() { - return this.user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public void unsetUser_name() { - this.user_name = null; - } - - /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ - public boolean isSetUser_name() { - return this.user_name != null; - } - - public void setUser_nameIsSet(boolean value) { - if (!value) { - this.user_name = null; - } - } - - public int getGroup_namesSize() { - return (this.group_names == null) ? 0 : this.group_names.size(); - } - - public java.util.Iterator getGroup_namesIterator() { - return (this.group_names == null) ? null : this.group_names.iterator(); - } - - public void addToGroup_names(String elem) { - if (this.group_names == null) { - this.group_names = new ArrayList(); - } - this.group_names.add(elem); - } - - public List getGroup_names() { - return this.group_names; - } - - public void setGroup_names(List group_names) { - this.group_names = group_names; - } - - public void unsetGroup_names() { - this.group_names = null; - } - - /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ - public boolean isSetGroup_names() { - return this.group_names != null; - } - - public void setGroup_namesIsSet(boolean value) { - if (!value) { - this.group_names = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -66882,22 +66729,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case USER_NAME: - if (value == null) { - unsetUser_name(); - } else { - setUser_name((String)value); - } - break; - - case GROUP_NAMES: - if (value == null) { - unsetGroup_names(); - } else { - setGroup_names((List)value); - } - break; - } } @@ -66915,12 +66746,6 @@ public Object getFieldValue(_Fields field) { case MAX_PARTS: return Short.valueOf(getMax_parts()); - case USER_NAME: - return getUser_name(); - - case GROUP_NAMES: - return getGroup_names(); - } throw new IllegalStateException(); } @@ -66940,10 +66765,6 @@ public boolean isSet(_Fields field) { return isSetPart_vals(); case MAX_PARTS: return isSetMax_parts(); - case USER_NAME: - return isSetUser_name(); - case GROUP_NAMES: - return isSetGroup_names(); } throw new IllegalStateException(); } @@ -66952,12 +66773,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_with_auth_args) - return this.equals((get_partitions_ps_with_auth_args)that); + if (that instanceof get_partitions_ps_args) + return this.equals((get_partitions_ps_args)that); return false; } - public boolean equals(get_partitions_ps_with_auth_args that) { + public boolean equals(get_partitions_ps_args that) { if (that == null) return false; @@ -66997,24 +66818,6 @@ public boolean equals(get_partitions_ps_with_auth_args that) { return false; } - boolean this_present_user_name = true && this.isSetUser_name(); - boolean that_present_user_name = true && that.isSetUser_name(); - if (this_present_user_name || that_present_user_name) { - if (!(this_present_user_name && that_present_user_name)) - return false; - if (!this.user_name.equals(that.user_name)) - return false; - } - - boolean this_present_group_names = true && this.isSetGroup_names(); - boolean that_present_group_names = true && that.isSetGroup_names(); - if (this_present_group_names || that_present_group_names) { - if (!(this_present_group_names && that_present_group_names)) - return false; - if (!this.group_names.equals(that.group_names)) - return false; - } - return true; } @@ -67042,26 +66845,16 @@ public int hashCode() { if (present_max_parts) builder.append(max_parts); - boolean present_user_name = true && (isSetUser_name()); - builder.append(present_user_name); - if (present_user_name) - builder.append(user_name); - - boolean present_group_names = true && (isSetGroup_names()); - builder.append(present_group_names); - if (present_group_names) - builder.append(group_names); - return builder.toHashCode(); } - public int compareTo(get_partitions_ps_with_auth_args other) { + public int compareTo(get_partitions_ps_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_partitions_ps_with_auth_args typedOther = (get_partitions_ps_with_auth_args)other; + get_partitions_ps_args typedOther = (get_partitions_ps_args)other; lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { @@ -67103,26 +66896,6 @@ public int compareTo(get_partitions_ps_with_auth_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(typedOther.isSetUser_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(typedOther.isSetGroup_names()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -67140,7 +66913,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_args("); + StringBuilder sb = new StringBuilder("get_partitions_ps_args("); boolean first = true; sb.append("db_name:"); @@ -67170,22 +66943,6 @@ public String toString() { sb.append("max_parts:"); sb.append(this.max_parts); first = false; - if (!first) sb.append(", "); - sb.append("user_name:"); - if (this.user_name == null) { - sb.append("null"); - } else { - sb.append(this.user_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("group_names:"); - if (this.group_names == null) { - sb.append("null"); - } else { - sb.append(this.group_names); - } - first = false; sb.append(")"); return sb.toString(); } @@ -67213,15 +66970,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_with_auth_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_argsStandardScheme getScheme() { - return new get_partitions_ps_with_auth_argsStandardScheme(); + private static class get_partitions_ps_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_argsStandardScheme getScheme() { + return new get_partitions_ps_argsStandardScheme(); } } - private static class get_partitions_ps_with_auth_argsStandardScheme extends StandardScheme { + private static class get_partitions_ps_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -67250,13 +67007,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 _list712 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list712.size); - for (int _i713 = 0; _i713 < _list712.size; ++_i713) + org.apache.thrift.protocol.TList _list704 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list704.size); + for (int _i705 = 0; _i705 < _list704.size; ++_i705) { - String _elem714; // required - _elem714 = iprot.readString(); - struct.part_vals.add(_elem714); + String _elem706; // required + _elem706 = iprot.readString(); + struct.part_vals.add(_elem706); } iprot.readListEnd(); } @@ -67273,32 +67030,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 5: // USER_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // GROUP_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list715 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list715.size); - for (int _i716 = 0; _i716 < _list715.size; ++_i716) - { - String _elem717; // required - _elem717 = iprot.readString(); - struct.group_names.add(_elem717); - } - iprot.readListEnd(); - } - struct.setGroup_namesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -67308,7 +67039,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -67326,9 +67057,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 _iter718 : struct.part_vals) + for (String _iter707 : struct.part_vals) { - oprot.writeString(_iter718); + oprot.writeString(_iter707); } oprot.writeListEnd(); } @@ -67337,39 +67068,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); - if (struct.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.user_name); - oprot.writeFieldEnd(); - } - if (struct.group_names != null) { - oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter719 : struct.group_names) - { - oprot.writeString(_iter719); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_ps_with_auth_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_argsTupleScheme getScheme() { - return new get_partitions_ps_with_auth_argsTupleScheme(); + private static class get_partitions_ps_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_argsTupleScheme getScheme() { + return new get_partitions_ps_argsTupleScheme(); } } - private static class get_partitions_ps_with_auth_argsTupleScheme extends TupleScheme { + private static class get_partitions_ps_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -67384,13 +67098,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetMax_parts()) { optionals.set(3); } - if (struct.isSetUser_name()) { - optionals.set(4); - } - if (struct.isSetGroup_names()) { - optionals.set(5); - } - oprot.writeBitSet(optionals, 6); + oprot.writeBitSet(optionals, 4); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -67400,33 +67108,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter720 : struct.part_vals) + for (String _iter708 : struct.part_vals) { - oprot.writeString(_iter720); + oprot.writeString(_iter708); } } } if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); } - if (struct.isSetUser_name()) { - oprot.writeString(struct.user_name); - } - if (struct.isSetGroup_names()) { - { - oprot.writeI32(struct.group_names.size()); - for (String _iter721 : struct.group_names) - { - oprot.writeString(_iter721); - } - } - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(6); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -67437,13 +67133,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list722 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list722.size); - for (int _i723 = 0; _i723 < _list722.size; ++_i723) + org.apache.thrift.protocol.TList _list709 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list709.size); + for (int _i710 = 0; _i710 < _list709.size; ++_i710) { - String _elem724; // required - _elem724 = iprot.readString(); - struct.part_vals.add(_elem724); + String _elem711; // required + _elem711 = iprot.readString(); + struct.part_vals.add(_elem711); } } struct.setPart_valsIsSet(true); @@ -67452,30 +67148,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } - if (incoming.get(4)) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } - if (incoming.get(5)) { - { - org.apache.thrift.protocol.TList _list725 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list725.size); - for (int _i726 = 0; _i726 < _list725.size; ++_i726) - { - String _elem727; // required - _elem727 = iprot.readString(); - struct.group_names.add(_elem727); - } - } - struct.setGroup_namesIsSet(true); - } } } } - public static class get_partitions_ps_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_result"); + 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); @@ -67483,13 +67162,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_resultTupleSchemeFactory()); } private List success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // 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 { @@ -67567,16 +67246,16 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_result.class, metaDataMap); } - public get_partitions_ps_with_auth_result() { + public get_partitions_ps_result() { } - public get_partitions_ps_with_auth_result( + public get_partitions_ps_result( List success, - NoSuchObjectException o1, - MetaException o2) + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; @@ -67587,7 +67266,7 @@ public get_partitions_ps_with_auth_result( /** * Performs a deep copy on other. */ - public get_partitions_ps_with_auth_result(get_partitions_ps_with_auth_result other) { + public get_partitions_ps_result(get_partitions_ps_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(); for (Partition other_element : other.success) { @@ -67596,15 +67275,15 @@ public get_partitions_ps_with_auth_result(get_partitions_ps_with_auth_result oth this.success = __this__success; } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public get_partitions_ps_with_auth_result deepCopy() { - return new get_partitions_ps_with_auth_result(this); + public get_partitions_ps_result deepCopy() { + return new get_partitions_ps_result(this); } @Override @@ -67652,11 +67331,11 @@ public void setSuccessIsSet(boolean value) { } } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -67675,11 +67354,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -67712,7 +67391,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -67720,7 +67399,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -67763,12 +67442,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_ps_with_auth_result) - return this.equals((get_partitions_ps_with_auth_result)that); + if (that instanceof get_partitions_ps_result) + return this.equals((get_partitions_ps_result)that); return false; } - public boolean equals(get_partitions_ps_with_auth_result that) { + public boolean equals(get_partitions_ps_result that) { if (that == null) return false; @@ -67824,13 +67503,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(get_partitions_ps_with_auth_result other) { + public int compareTo(get_partitions_ps_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_partitions_ps_with_auth_result typedOther = (get_partitions_ps_with_auth_result)other; + get_partitions_ps_result typedOther = (get_partitions_ps_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { @@ -67879,7 +67558,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_result("); + StringBuilder sb = new StringBuilder("get_partitions_ps_result("); boolean first = true; sb.append("success:"); @@ -67930,15 +67609,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_ps_with_auth_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_resultStandardScheme getScheme() { - return new get_partitions_ps_with_auth_resultStandardScheme(); + private static class get_partitions_ps_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_resultStandardScheme getScheme() { + return new get_partitions_ps_resultStandardScheme(); } } - private static class get_partitions_ps_with_auth_resultStandardScheme extends StandardScheme { + private static class get_partitions_ps_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -67951,14 +67630,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 _list728 = iprot.readListBegin(); - struct.success = new ArrayList(_list728.size); - for (int _i729 = 0; _i729 < _list728.size; ++_i729) + org.apache.thrift.protocol.TList _list712 = iprot.readListBegin(); + struct.success = new ArrayList(_list712.size); + for (int _i713 = 0; _i713 < _list712.size; ++_i713) { - Partition _elem730; // required - _elem730 = new Partition(); - _elem730.read(iprot); - struct.success.add(_elem730); + Partition _elem714; // required + _elem714 = new Partition(); + _elem714.read(iprot); + struct.success.add(_elem714); } iprot.readListEnd(); } @@ -67969,7 +67648,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -67978,7 +67657,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -67994,7 +67673,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -68002,9 +67681,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 _iter731 : struct.success) + for (Partition _iter715 : struct.success) { - _iter731.write(oprot); + _iter715.write(oprot); } oprot.writeListEnd(); } @@ -68026,16 +67705,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ } - private static class get_partitions_ps_with_auth_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_ps_with_auth_resultTupleScheme getScheme() { - return new get_partitions_ps_with_auth_resultTupleScheme(); + private static class get_partitions_ps_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_resultTupleScheme getScheme() { + return new get_partitions_ps_resultTupleScheme(); } } - private static class get_partitions_ps_with_auth_resultTupleScheme extends TupleScheme { + private static class get_partitions_ps_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -68051,9 +67730,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter732 : struct.success) + for (Partition _iter716 : struct.success) { - _iter732.write(oprot); + _iter716.write(oprot); } } } @@ -68066,30 +67745,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list733 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list733.size); - for (int _i734 = 0; _i734 < _list733.size; ++_i734) + org.apache.thrift.protocol.TList _list717 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list717.size); + for (int _i718 = 0; _i718 < _list717.size; ++_i718) { - Partition _elem735; // required - _elem735 = new Partition(); - _elem735.read(iprot); - struct.success.add(_elem735); + Partition _elem719; // required + _elem719 = new Partition(); + _elem719.read(iprot); + struct.success.add(_elem719); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -68098,31 +67777,37 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } - public static class get_partition_names_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_args"); + public static class get_partitions_ps_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)6); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_names_ps_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_ps_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_ps_with_auth_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private List part_vals; // required private short max_parts; // required + private String user_name; // required + private List group_names; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), PART_VALS((short)3, "part_vals"), - MAX_PARTS((short)4, "max_parts"); + MAX_PARTS((short)4, "max_parts"), + USER_NAME((short)5, "user_name"), + GROUP_NAMES((short)6, "group_names"); private static final Map byName = new HashMap(); @@ -68145,6 +67830,10 @@ public static _Fields findByThriftId(int fieldId) { return PART_VALS; case 4: // MAX_PARTS return MAX_PARTS; + case 5: // USER_NAME + return USER_NAME; + case 6: // GROUP_NAMES + return GROUP_NAMES; default: return null; } @@ -68199,20 +67888,27 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_ps_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_args.class, metaDataMap); } - public get_partition_names_ps_args() { + public get_partitions_ps_with_auth_args() { this.max_parts = (short)-1; } - public get_partition_names_ps_args( + public get_partitions_ps_with_auth_args( String db_name, String tbl_name, List part_vals, - short max_parts) + short max_parts, + String user_name, + List group_names) { this(); this.db_name = db_name; @@ -68220,12 +67916,14 @@ public get_partition_names_ps_args( this.part_vals = part_vals; this.max_parts = max_parts; setMax_partsIsSet(true); + this.user_name = user_name; + this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partition_names_ps_args(get_partition_names_ps_args other) { + public get_partitions_ps_with_auth_args(get_partitions_ps_with_auth_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -68241,10 +67939,20 @@ public get_partition_names_ps_args(get_partition_names_ps_args other) { this.part_vals = __this__part_vals; } this.max_parts = other.max_parts; + if (other.isSetUser_name()) { + this.user_name = other.user_name; + } + if (other.isSetGroup_names()) { + List __this__group_names = new ArrayList(); + for (String other_element : other.group_names) { + __this__group_names.add(other_element); + } + this.group_names = __this__group_names; + } } - public get_partition_names_ps_args deepCopy() { - return new get_partition_names_ps_args(this); + public get_partitions_ps_with_auth_args deepCopy() { + return new get_partitions_ps_with_auth_args(this); } @Override @@ -68254,6 +67962,8 @@ public void clear() { this.part_vals = null; this.max_parts = (short)-1; + this.user_name = null; + this.group_names = null; } public String getDb_name() { @@ -68362,6 +68072,67 @@ public void setMax_partsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } + public String getUser_name() { + return this.user_name; + } + + public void setUser_name(String user_name) { + this.user_name = user_name; + } + + public void unsetUser_name() { + this.user_name = null; + } + + /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ + public boolean isSetUser_name() { + return this.user_name != null; + } + + public void setUser_nameIsSet(boolean value) { + if (!value) { + this.user_name = null; + } + } + + public int getGroup_namesSize() { + return (this.group_names == null) ? 0 : this.group_names.size(); + } + + public java.util.Iterator getGroup_namesIterator() { + return (this.group_names == null) ? null : this.group_names.iterator(); + } + + public void addToGroup_names(String elem) { + if (this.group_names == null) { + this.group_names = new ArrayList(); + } + this.group_names.add(elem); + } + + public List getGroup_names() { + return this.group_names; + } + + public void setGroup_names(List group_names) { + this.group_names = group_names; + } + + public void unsetGroup_names() { + this.group_names = null; + } + + /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ + public boolean isSetGroup_names() { + return this.group_names != null; + } + + public void setGroup_namesIsSet(boolean value) { + if (!value) { + this.group_names = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -68396,6 +68167,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case USER_NAME: + if (value == null) { + unsetUser_name(); + } else { + setUser_name((String)value); + } + break; + + case GROUP_NAMES: + if (value == null) { + unsetGroup_names(); + } else { + setGroup_names((List)value); + } + break; + } } @@ -68413,6 +68200,12 @@ public Object getFieldValue(_Fields field) { case MAX_PARTS: return Short.valueOf(getMax_parts()); + case USER_NAME: + return getUser_name(); + + case GROUP_NAMES: + return getGroup_names(); + } throw new IllegalStateException(); } @@ -68432,6 +68225,10 @@ public boolean isSet(_Fields field) { return isSetPart_vals(); case MAX_PARTS: return isSetMax_parts(); + case USER_NAME: + return isSetUser_name(); + case GROUP_NAMES: + return isSetGroup_names(); } throw new IllegalStateException(); } @@ -68440,12 +68237,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_ps_args) - return this.equals((get_partition_names_ps_args)that); + if (that instanceof get_partitions_ps_with_auth_args) + return this.equals((get_partitions_ps_with_auth_args)that); return false; } - public boolean equals(get_partition_names_ps_args that) { + public boolean equals(get_partitions_ps_with_auth_args that) { if (that == null) return false; @@ -68485,6 +68282,24 @@ public boolean equals(get_partition_names_ps_args that) { return false; } + boolean this_present_user_name = true && this.isSetUser_name(); + boolean that_present_user_name = true && that.isSetUser_name(); + if (this_present_user_name || that_present_user_name) { + if (!(this_present_user_name && that_present_user_name)) + return false; + if (!this.user_name.equals(that.user_name)) + return false; + } + + boolean this_present_group_names = true && this.isSetGroup_names(); + boolean that_present_group_names = true && that.isSetGroup_names(); + if (this_present_group_names || that_present_group_names) { + if (!(this_present_group_names && that_present_group_names)) + return false; + if (!this.group_names.equals(that.group_names)) + return false; + } + return true; } @@ -68512,16 +68327,26 @@ public int hashCode() { if (present_max_parts) builder.append(max_parts); + boolean present_user_name = true && (isSetUser_name()); + builder.append(present_user_name); + if (present_user_name) + builder.append(user_name); + + boolean present_group_names = true && (isSetGroup_names()); + builder.append(present_group_names); + if (present_group_names) + builder.append(group_names); + return builder.toHashCode(); } - public int compareTo(get_partition_names_ps_args other) { + public int compareTo(get_partitions_ps_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_partition_names_ps_args typedOther = (get_partition_names_ps_args)other; + get_partitions_ps_with_auth_args typedOther = (get_partitions_ps_with_auth_args)other; lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(typedOther.isSetDb_name()); if (lastComparison != 0) { @@ -68563,6 +68388,26 @@ public int compareTo(get_partition_names_ps_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(typedOther.isSetUser_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, typedOther.user_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(typedOther.isSetGroup_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGroup_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, typedOther.group_names); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -68580,7 +68425,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_ps_args("); + StringBuilder sb = new StringBuilder("get_partitions_ps_with_auth_args("); boolean first = true; sb.append("db_name:"); @@ -68610,6 +68455,22 @@ public String toString() { sb.append("max_parts:"); sb.append(this.max_parts); first = false; + if (!first) sb.append(", "); + sb.append("user_name:"); + if (this.user_name == null) { + sb.append("null"); + } else { + sb.append(this.user_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("group_names:"); + if (this.group_names == null) { + sb.append("null"); + } else { + sb.append(this.group_names); + } + first = false; sb.append(")"); return sb.toString(); } @@ -68637,15 +68498,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_names_ps_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_names_ps_argsStandardScheme getScheme() { - return new get_partition_names_ps_argsStandardScheme(); + private static class get_partitions_ps_with_auth_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_argsStandardScheme getScheme() { + return new get_partitions_ps_with_auth_argsStandardScheme(); } } - private static class get_partition_names_ps_argsStandardScheme extends StandardScheme { + private static class get_partitions_ps_with_auth_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -68674,13 +68535,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 _list736 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list736.size); - for (int _i737 = 0; _i737 < _list736.size; ++_i737) + org.apache.thrift.protocol.TList _list720 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list720.size); + for (int _i721 = 0; _i721 < _list720.size; ++_i721) { - String _elem738; // required - _elem738 = iprot.readString(); - struct.part_vals.add(_elem738); + String _elem722; // required + _elem722 = iprot.readString(); + struct.part_vals.add(_elem722); } iprot.readListEnd(); } @@ -68697,6 +68558,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 5: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // GROUP_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list723 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list723.size); + for (int _i724 = 0; _i724 < _list723.size; ++_i724) + { + String _elem725; // required + _elem725 = iprot.readString(); + struct.group_names.add(_elem725); + } + iprot.readListEnd(); + } + struct.setGroup_namesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -68706,7 +68593,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -68724,9 +68611,1407 @@ 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 _iter739 : struct.part_vals) + for (String _iter726 : struct.part_vals) { - oprot.writeString(_iter739); + oprot.writeString(_iter726); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI16(struct.max_parts); + oprot.writeFieldEnd(); + if (struct.user_name != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.user_name); + oprot.writeFieldEnd(); + } + if (struct.group_names != null) { + oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); + for (String _iter727 : struct.group_names) + { + oprot.writeString(_iter727); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_partitions_ps_with_auth_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_argsTupleScheme getScheme() { + return new get_partitions_ps_with_auth_argsTupleScheme(); + } + } + + private static class get_partitions_ps_with_auth_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + 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); + } + if (struct.isSetUser_name()) { + optionals.set(4); + } + if (struct.isSetGroup_names()) { + optionals.set(5); + } + oprot.writeBitSet(optionals, 6); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter728 : struct.part_vals) + { + oprot.writeString(_iter728); + } + } + } + if (struct.isSetMax_parts()) { + oprot.writeI16(struct.max_parts); + } + if (struct.isSetUser_name()) { + oprot.writeString(struct.user_name); + } + if (struct.isSetGroup_names()) { + { + oprot.writeI32(struct.group_names.size()); + for (String _iter729 : struct.group_names) + { + oprot.writeString(_iter729); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(6); + 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 _list730 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list730.size); + for (int _i731 = 0; _i731 < _list730.size; ++_i731) + { + String _elem732; // required + _elem732 = iprot.readString(); + struct.part_vals.add(_elem732); + } + } + struct.setPart_valsIsSet(true); + } + if (incoming.get(3)) { + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); + } + if (incoming.get(4)) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } + if (incoming.get(5)) { + { + org.apache.thrift.protocol.TList _list733 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list733.size); + for (int _i734 = 0; _i734 < _list733.size; ++_i734) + { + String _elem735; // required + _elem735 = iprot.readString(); + struct.group_names.add(_elem735); + } + } + struct.setGroup_namesIsSet(true); + } + } + } + + } + + public static class get_partitions_ps_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_ps_with_auth_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + 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_with_auth_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_ps_with_auth_resultTupleSchemeFactory()); + } + + private List success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + O1((short)1, "o1"), + O2((short)2, "o2"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // O1 + return O1; + case 2: // O2 + return O2; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_ps_with_auth_result.class, metaDataMap); + } + + public get_partitions_ps_with_auth_result() { + } + + public get_partitions_ps_with_auth_result( + List success, + NoSuchObjectException o1, + MetaException o2) + { + this(); + this.success = success; + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public get_partitions_ps_with_auth_result(get_partitions_ps_with_auth_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } + this.success = __this__success; + } + if (other.isSetO1()) { + this.o1 = new NoSuchObjectException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); + } + } + + public get_partitions_ps_with_auth_result deepCopy() { + return new get_partitions_ps_with_auth_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + this.o2 = null; + } + + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Partition 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 NoSuchObjectException getO1() { + return this.o1; + } + + public void setO1(NoSuchObjectException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public MetaException getO2() { + return this.o2; + } + + public void setO2(MetaException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((List)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchObjectException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case O1: + return getO1(); + + case O2: + return getO2(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case O1: + return isSetO1(); + case O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_partitions_ps_with_auth_result) + return this.equals((get_partitions_ps_with_auth_result)that); + return false; + } + + public boolean equals(get_partitions_ps_with_auth_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_success = true && (isSetSuccess()); + builder.append(present_success); + if (present_success) + builder.append(success); + + boolean present_o1 = true && (isSetO1()); + builder.append(present_o1); + if (present_o1) + builder.append(o1); + + boolean present_o2 = true && (isSetO2()); + builder.append(present_o2); + if (present_o2) + builder.append(o2); + + return builder.toHashCode(); + } + + public int compareTo(get_partitions_ps_with_auth_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + get_partitions_ps_with_auth_result typedOther = (get_partitions_ps_with_auth_result)other; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + 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_with_auth_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + 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_partitions_ps_with_auth_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_resultStandardScheme getScheme() { + return new get_partitions_ps_with_auth_resultStandardScheme(); + } + } + + private static class get_partitions_ps_with_auth_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + 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 _list736 = iprot.readListBegin(); + struct.success = new ArrayList(_list736.size); + for (int _i737 = 0; _i737 < _list736.size; ++_i737) + { + Partition _elem738; // required + _elem738 = new Partition(); + _elem738.read(iprot); + struct.success.add(_elem738); + } + iprot.readListEnd(); + } + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter739 : struct.success) + { + _iter739.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_partitions_ps_with_auth_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_ps_with_auth_resultTupleScheme getScheme() { + return new get_partitions_ps_with_auth_resultTupleScheme(); + } + } + + private static class get_partitions_ps_with_auth_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetO1()) { + optionals.set(1); + } + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + { + oprot.writeI32(struct.success.size()); + for (Partition _iter740 : struct.success) + { + _iter740.write(oprot); + } + } + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_with_auth_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list741 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list741.size); + for (int _i742 = 0; _i742 < _list741.size; ++_i742) + { + Partition _elem743; // required + _elem743 = new Partition(); + _elem743.read(iprot); + struct.success.add(_elem743); + } + } + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(2)) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + public static class get_partition_names_ps_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_ps_args"); + + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_VALS_FIELD_DESC = new org.apache.thrift.protocol.TField("part_vals", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)4); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_partition_names_ps_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_ps_argsTupleSchemeFactory()); + } + + 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_partition_names_ps_args.class, metaDataMap); + } + + public get_partition_names_ps_args() { + this.max_parts = (short)-1; + + } + + public get_partition_names_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_partition_names_ps_args(get_partition_names_ps_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_vals()) { + List __this__part_vals = new ArrayList(); + for (String other_element : other.part_vals) { + __this__part_vals.add(other_element); + } + this.part_vals = __this__part_vals; + } + this.max_parts = other.max_parts; + } + + public get_partition_names_ps_args deepCopy() { + return new get_partition_names_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_partition_names_ps_args) + return this.equals((get_partition_names_ps_args)that); + return false; + } + + public boolean equals(get_partition_names_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_partition_names_ps_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + get_partition_names_ps_args typedOther = (get_partition_names_ps_args)other; + + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(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_partition_names_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_partition_names_ps_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_names_ps_argsStandardScheme getScheme() { + return new get_partition_names_ps_argsStandardScheme(); + } + } + + private static class get_partition_names_ps_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_ps_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + 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 _list744 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list744.size); + for (int _i745 = 0; _i745 < _list744.size; ++_i745) + { + String _elem746; // required + _elem746 = iprot.readString(); + struct.part_vals.add(_elem746); + } + 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_partition_names_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 _iter747 : struct.part_vals) + { + oprot.writeString(_iter747); } oprot.writeListEnd(); } @@ -68775,9 +70060,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 _iter740 : struct.part_vals) + for (String _iter748 : struct.part_vals) { - oprot.writeString(_iter740); + oprot.writeString(_iter748); } } } @@ -68800,13 +70085,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list741 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list741.size); - for (int _i742 = 0; _i742 < _list741.size; ++_i742) + org.apache.thrift.protocol.TList _list749 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list749.size); + for (int _i750 = 0; _i750 < _list749.size; ++_i750) { - String _elem743; // required - _elem743 = iprot.readString(); - struct.part_vals.add(_elem743); + String _elem751; // required + _elem751 = iprot.readString(); + struct.part_vals.add(_elem751); } } struct.setPart_valsIsSet(true); @@ -69297,13 +70582,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 _list744 = iprot.readListBegin(); - struct.success = new ArrayList(_list744.size); - for (int _i745 = 0; _i745 < _list744.size; ++_i745) + org.apache.thrift.protocol.TList _list752 = iprot.readListBegin(); + struct.success = new ArrayList(_list752.size); + for (int _i753 = 0; _i753 < _list752.size; ++_i753) { - String _elem746; // required - _elem746 = iprot.readString(); - struct.success.add(_elem746); + String _elem754; // required + _elem754 = iprot.readString(); + struct.success.add(_elem754); } iprot.readListEnd(); } @@ -69347,9 +70632,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 _iter747 : struct.success) + for (String _iter755 : struct.success) { - oprot.writeString(_iter747); + oprot.writeString(_iter755); } oprot.writeListEnd(); } @@ -69396,9 +70681,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter748 : struct.success) + for (String _iter756 : struct.success) { - oprot.writeString(_iter748); + oprot.writeString(_iter756); } } } @@ -69416,13 +70701,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 _list749 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list749.size); - for (int _i750 = 0; _i750 < _list749.size; ++_i750) + org.apache.thrift.protocol.TList _list757 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list757.size); + for (int _i758 = 0; _i758 < _list757.size; ++_i758) { - String _elem751; // required - _elem751 = iprot.readString(); - struct.success.add(_elem751); + String _elem759; // required + _elem759 = iprot.readString(); + struct.success.add(_elem759); } } struct.setSuccessIsSet(true); @@ -70589,14 +71874,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 _list752 = iprot.readListBegin(); - struct.success = new ArrayList(_list752.size); - for (int _i753 = 0; _i753 < _list752.size; ++_i753) + org.apache.thrift.protocol.TList _list760 = iprot.readListBegin(); + struct.success = new ArrayList(_list760.size); + for (int _i761 = 0; _i761 < _list760.size; ++_i761) { - Partition _elem754; // required - _elem754 = new Partition(); - _elem754.read(iprot); - struct.success.add(_elem754); + Partition _elem762; // required + _elem762 = new Partition(); + _elem762.read(iprot); + struct.success.add(_elem762); } iprot.readListEnd(); } @@ -70640,9 +71925,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 _iter755 : struct.success) + for (Partition _iter763 : struct.success) { - _iter755.write(oprot); + _iter763.write(oprot); } oprot.writeListEnd(); } @@ -70689,9 +71974,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter756 : struct.success) + for (Partition _iter764 : struct.success) { - _iter756.write(oprot); + _iter764.write(oprot); } } } @@ -70709,14 +71994,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 _list757 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list757.size); - for (int _i758 = 0; _i758 < _list757.size; ++_i758) + org.apache.thrift.protocol.TList _list765 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list765.size); + for (int _i766 = 0; _i766 < _list765.size; ++_i766) { - Partition _elem759; // required - _elem759 = new Partition(); - _elem759.read(iprot); - struct.success.add(_elem759); + Partition _elem767; // required + _elem767 = new Partition(); + _elem767.read(iprot); + struct.success.add(_elem767); } } struct.setSuccessIsSet(true); @@ -71883,14 +73168,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list760 = iprot.readListBegin(); - struct.success = new ArrayList(_list760.size); - for (int _i761 = 0; _i761 < _list760.size; ++_i761) + org.apache.thrift.protocol.TList _list768 = iprot.readListBegin(); + struct.success = new ArrayList(_list768.size); + for (int _i769 = 0; _i769 < _list768.size; ++_i769) { - PartitionSpec _elem762; // required - _elem762 = new PartitionSpec(); - _elem762.read(iprot); - struct.success.add(_elem762); + PartitionSpec _elem770; // required + _elem770 = new PartitionSpec(); + _elem770.read(iprot); + struct.success.add(_elem770); } iprot.readListEnd(); } @@ -71934,9 +73219,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter763 : struct.success) + for (PartitionSpec _iter771 : struct.success) { - _iter763.write(oprot); + _iter771.write(oprot); } oprot.writeListEnd(); } @@ -71983,9 +73268,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter764 : struct.success) + for (PartitionSpec _iter772 : struct.success) { - _iter764.write(oprot); + _iter772.write(oprot); } } } @@ -72003,14 +73288,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list765 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list765.size); - for (int _i766 = 0; _i766 < _list765.size; ++_i766) + org.apache.thrift.protocol.TList _list773 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list773.size); + for (int _i774 = 0; _i774 < _list773.size; ++_i774) { - PartitionSpec _elem767; // required - _elem767 = new PartitionSpec(); - _elem767.read(iprot); - struct.success.add(_elem767); + PartitionSpec _elem775; // required + _elem775 = new PartitionSpec(); + _elem775.read(iprot); + struct.success.add(_elem775); } } struct.setSuccessIsSet(true); @@ -73461,13 +74746,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 _list768 = iprot.readListBegin(); - struct.names = new ArrayList(_list768.size); - for (int _i769 = 0; _i769 < _list768.size; ++_i769) + org.apache.thrift.protocol.TList _list776 = iprot.readListBegin(); + struct.names = new ArrayList(_list776.size); + for (int _i777 = 0; _i777 < _list776.size; ++_i777) { - String _elem770; // required - _elem770 = iprot.readString(); - struct.names.add(_elem770); + String _elem778; // required + _elem778 = iprot.readString(); + struct.names.add(_elem778); } iprot.readListEnd(); } @@ -73503,9 +74788,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 _iter771 : struct.names) + for (String _iter779 : struct.names) { - oprot.writeString(_iter771); + oprot.writeString(_iter779); } oprot.writeListEnd(); } @@ -73548,9 +74833,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter772 : struct.names) + for (String _iter780 : struct.names) { - oprot.writeString(_iter772); + oprot.writeString(_iter780); } } } @@ -73570,13 +74855,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list773 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list773.size); - for (int _i774 = 0; _i774 < _list773.size; ++_i774) + org.apache.thrift.protocol.TList _list781 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list781.size); + for (int _i782 = 0; _i782 < _list781.size; ++_i782) { - String _elem775; // required - _elem775 = iprot.readString(); - struct.names.add(_elem775); + String _elem783; // required + _elem783 = iprot.readString(); + struct.names.add(_elem783); } } struct.setNamesIsSet(true); @@ -74063,14 +75348,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 _list776 = iprot.readListBegin(); - struct.success = new ArrayList(_list776.size); - for (int _i777 = 0; _i777 < _list776.size; ++_i777) + org.apache.thrift.protocol.TList _list784 = iprot.readListBegin(); + struct.success = new ArrayList(_list784.size); + for (int _i785 = 0; _i785 < _list784.size; ++_i785) { - Partition _elem778; // required - _elem778 = new Partition(); - _elem778.read(iprot); - struct.success.add(_elem778); + Partition _elem786; // required + _elem786 = new Partition(); + _elem786.read(iprot); + struct.success.add(_elem786); } iprot.readListEnd(); } @@ -74114,9 +75399,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 _iter779 : struct.success) + for (Partition _iter787 : struct.success) { - _iter779.write(oprot); + _iter787.write(oprot); } oprot.writeListEnd(); } @@ -74163,9 +75448,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter780 : struct.success) + for (Partition _iter788 : struct.success) { - _iter780.write(oprot); + _iter788.write(oprot); } } } @@ -74183,14 +75468,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 _list781 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list781.size); - for (int _i782 = 0; _i782 < _list781.size; ++_i782) + org.apache.thrift.protocol.TList _list789 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list789.size); + for (int _i790 = 0; _i790 < _list789.size; ++_i790) { - Partition _elem783; // required - _elem783 = new Partition(); - _elem783.read(iprot); - struct.success.add(_elem783); + Partition _elem791; // required + _elem791 = new Partition(); + _elem791.read(iprot); + struct.success.add(_elem791); } } struct.setSuccessIsSet(true); @@ -75740,14 +77025,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 _list784 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list784.size); - for (int _i785 = 0; _i785 < _list784.size; ++_i785) + org.apache.thrift.protocol.TList _list792 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list792.size); + for (int _i793 = 0; _i793 < _list792.size; ++_i793) { - Partition _elem786; // required - _elem786 = new Partition(); - _elem786.read(iprot); - struct.new_parts.add(_elem786); + Partition _elem794; // required + _elem794 = new Partition(); + _elem794.read(iprot); + struct.new_parts.add(_elem794); } iprot.readListEnd(); } @@ -75783,9 +77068,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 _iter787 : struct.new_parts) + for (Partition _iter795 : struct.new_parts) { - _iter787.write(oprot); + _iter795.write(oprot); } oprot.writeListEnd(); } @@ -75828,9 +77113,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 _iter788 : struct.new_parts) + for (Partition _iter796 : struct.new_parts) { - _iter788.write(oprot); + _iter796.write(oprot); } } } @@ -75850,14 +77135,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list789 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list789.size); - for (int _i790 = 0; _i790 < _list789.size; ++_i790) + org.apache.thrift.protocol.TList _list797 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list797.size); + for (int _i798 = 0; _i798 < _list797.size; ++_i798) { - Partition _elem791; // required - _elem791 = new Partition(); - _elem791.read(iprot); - struct.new_parts.add(_elem791); + Partition _elem799; // required + _elem799 = new Partition(); + _elem799.read(iprot); + struct.new_parts.add(_elem799); } } struct.setNew_partsIsSet(true); @@ -78056,13 +79341,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 _list792 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list792.size); - for (int _i793 = 0; _i793 < _list792.size; ++_i793) + org.apache.thrift.protocol.TList _list800 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list800.size); + for (int _i801 = 0; _i801 < _list800.size; ++_i801) { - String _elem794; // required - _elem794 = iprot.readString(); - struct.part_vals.add(_elem794); + String _elem802; // required + _elem802 = iprot.readString(); + struct.part_vals.add(_elem802); } iprot.readListEnd(); } @@ -78107,9 +79392,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 _iter795 : struct.part_vals) + for (String _iter803 : struct.part_vals) { - oprot.writeString(_iter795); + oprot.writeString(_iter803); } oprot.writeListEnd(); } @@ -78160,9 +79445,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 _iter796 : struct.part_vals) + for (String _iter804 : struct.part_vals) { - oprot.writeString(_iter796); + oprot.writeString(_iter804); } } } @@ -78185,13 +79470,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list797 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list797.size); - for (int _i798 = 0; _i798 < _list797.size; ++_i798) + org.apache.thrift.protocol.TList _list805 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list805.size); + for (int _i806 = 0; _i806 < _list805.size; ++_i806) { - String _elem799; // required - _elem799 = iprot.readString(); - struct.part_vals.add(_elem799); + String _elem807; // required + _elem807 = iprot.readString(); + struct.part_vals.add(_elem807); } } struct.setPart_valsIsSet(true); @@ -79068,13 +80353,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 _list800 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list800.size); - for (int _i801 = 0; _i801 < _list800.size; ++_i801) + org.apache.thrift.protocol.TList _list808 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list808.size); + for (int _i809 = 0; _i809 < _list808.size; ++_i809) { - String _elem802; // required - _elem802 = iprot.readString(); - struct.part_vals.add(_elem802); + String _elem810; // required + _elem810 = iprot.readString(); + struct.part_vals.add(_elem810); } iprot.readListEnd(); } @@ -79108,9 +80393,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 _iter803 : struct.part_vals) + for (String _iter811 : struct.part_vals) { - oprot.writeString(_iter803); + oprot.writeString(_iter811); } oprot.writeListEnd(); } @@ -79147,9 +80432,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 _iter804 : struct.part_vals) + for (String _iter812 : struct.part_vals) { - oprot.writeString(_iter804); + oprot.writeString(_iter812); } } } @@ -79164,13 +80449,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 _list805 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list805.size); - for (int _i806 = 0; _i806 < _list805.size; ++_i806) + org.apache.thrift.protocol.TList _list813 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list813.size); + for (int _i814 = 0; _i814 < _list813.size; ++_i814) { - String _elem807; // required - _elem807 = iprot.readString(); - struct.part_vals.add(_elem807); + String _elem815; // required + _elem815 = iprot.readString(); + struct.part_vals.add(_elem815); } } struct.setPart_valsIsSet(true); @@ -81328,13 +82613,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 _list808 = iprot.readListBegin(); - struct.success = new ArrayList(_list808.size); - for (int _i809 = 0; _i809 < _list808.size; ++_i809) + org.apache.thrift.protocol.TList _list816 = iprot.readListBegin(); + struct.success = new ArrayList(_list816.size); + for (int _i817 = 0; _i817 < _list816.size; ++_i817) { - String _elem810; // required - _elem810 = iprot.readString(); - struct.success.add(_elem810); + String _elem818; // required + _elem818 = iprot.readString(); + struct.success.add(_elem818); } iprot.readListEnd(); } @@ -81369,9 +82654,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 _iter811 : struct.success) + for (String _iter819 : struct.success) { - oprot.writeString(_iter811); + oprot.writeString(_iter819); } oprot.writeListEnd(); } @@ -81410,9 +82695,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter812 : struct.success) + for (String _iter820 : struct.success) { - oprot.writeString(_iter812); + oprot.writeString(_iter820); } } } @@ -81427,13 +82712,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 _list813 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list813.size); - for (int _i814 = 0; _i814 < _list813.size; ++_i814) + org.apache.thrift.protocol.TList _list821 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list821.size); + for (int _i822 = 0; _i822 < _list821.size; ++_i822) { - String _elem815; // required - _elem815 = iprot.readString(); - struct.success.add(_elem815); + String _elem823; // required + _elem823 = iprot.readString(); + struct.success.add(_elem823); } } struct.setSuccessIsSet(true); @@ -82207,15 +83492,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 _map816 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map816.size); - for (int _i817 = 0; _i817 < _map816.size; ++_i817) + org.apache.thrift.protocol.TMap _map824 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map824.size); + for (int _i825 = 0; _i825 < _map824.size; ++_i825) { - String _key818; // required - String _val819; // required - _key818 = iprot.readString(); - _val819 = iprot.readString(); - struct.success.put(_key818, _val819); + String _key826; // required + String _val827; // required + _key826 = iprot.readString(); + _val827 = iprot.readString(); + struct.success.put(_key826, _val827); } iprot.readMapEnd(); } @@ -82250,10 +83535,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 _iter820 : struct.success.entrySet()) + for (Map.Entry _iter828 : struct.success.entrySet()) { - oprot.writeString(_iter820.getKey()); - oprot.writeString(_iter820.getValue()); + oprot.writeString(_iter828.getKey()); + oprot.writeString(_iter828.getValue()); } oprot.writeMapEnd(); } @@ -82292,10 +83577,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 _iter821 : struct.success.entrySet()) + for (Map.Entry _iter829 : struct.success.entrySet()) { - oprot.writeString(_iter821.getKey()); - oprot.writeString(_iter821.getValue()); + oprot.writeString(_iter829.getKey()); + oprot.writeString(_iter829.getValue()); } } } @@ -82310,15 +83595,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 _map822 = 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*_map822.size); - for (int _i823 = 0; _i823 < _map822.size; ++_i823) + org.apache.thrift.protocol.TMap _map830 = 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*_map830.size); + for (int _i831 = 0; _i831 < _map830.size; ++_i831) { - String _key824; // required - String _val825; // required - _key824 = iprot.readString(); - _val825 = iprot.readString(); - struct.success.put(_key824, _val825); + String _key832; // required + String _val833; // required + _key832 = iprot.readString(); + _val833 = iprot.readString(); + struct.success.put(_key832, _val833); } } struct.setSuccessIsSet(true); @@ -82924,15 +84209,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 _map826 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map826.size); - for (int _i827 = 0; _i827 < _map826.size; ++_i827) + org.apache.thrift.protocol.TMap _map834 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map834.size); + for (int _i835 = 0; _i835 < _map834.size; ++_i835) { - String _key828; // required - String _val829; // required - _key828 = iprot.readString(); - _val829 = iprot.readString(); - struct.part_vals.put(_key828, _val829); + String _key836; // required + String _val837; // required + _key836 = iprot.readString(); + _val837 = iprot.readString(); + struct.part_vals.put(_key836, _val837); } iprot.readMapEnd(); } @@ -82976,10 +84261,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 _iter830 : struct.part_vals.entrySet()) + for (Map.Entry _iter838 : struct.part_vals.entrySet()) { - oprot.writeString(_iter830.getKey()); - oprot.writeString(_iter830.getValue()); + oprot.writeString(_iter838.getKey()); + oprot.writeString(_iter838.getValue()); } oprot.writeMapEnd(); } @@ -83030,10 +84315,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter831 : struct.part_vals.entrySet()) + for (Map.Entry _iter839 : struct.part_vals.entrySet()) { - oprot.writeString(_iter831.getKey()); - oprot.writeString(_iter831.getValue()); + oprot.writeString(_iter839.getKey()); + oprot.writeString(_iter839.getValue()); } } } @@ -83056,15 +84341,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map832 = 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*_map832.size); - for (int _i833 = 0; _i833 < _map832.size; ++_i833) + org.apache.thrift.protocol.TMap _map840 = 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*_map840.size); + for (int _i841 = 0; _i841 < _map840.size; ++_i841) { - String _key834; // required - String _val835; // required - _key834 = iprot.readString(); - _val835 = iprot.readString(); - struct.part_vals.put(_key834, _val835); + String _key842; // required + String _val843; // required + _key842 = iprot.readString(); + _val843 = iprot.readString(); + struct.part_vals.put(_key842, _val843); } } struct.setPart_valsIsSet(true); @@ -84559,15 +85844,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 _map836 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map836.size); - for (int _i837 = 0; _i837 < _map836.size; ++_i837) + org.apache.thrift.protocol.TMap _map844 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map844.size); + for (int _i845 = 0; _i845 < _map844.size; ++_i845) { - String _key838; // required - String _val839; // required - _key838 = iprot.readString(); - _val839 = iprot.readString(); - struct.part_vals.put(_key838, _val839); + String _key846; // required + String _val847; // required + _key846 = iprot.readString(); + _val847 = iprot.readString(); + struct.part_vals.put(_key846, _val847); } iprot.readMapEnd(); } @@ -84611,10 +85896,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 _iter840 : struct.part_vals.entrySet()) + for (Map.Entry _iter848 : struct.part_vals.entrySet()) { - oprot.writeString(_iter840.getKey()); - oprot.writeString(_iter840.getValue()); + oprot.writeString(_iter848.getKey()); + oprot.writeString(_iter848.getValue()); } oprot.writeMapEnd(); } @@ -84665,10 +85950,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter841 : struct.part_vals.entrySet()) + for (Map.Entry _iter849 : struct.part_vals.entrySet()) { - oprot.writeString(_iter841.getKey()); - oprot.writeString(_iter841.getValue()); + oprot.writeString(_iter849.getKey()); + oprot.writeString(_iter849.getValue()); } } } @@ -84691,15 +85976,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map842 = 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*_map842.size); - for (int _i843 = 0; _i843 < _map842.size; ++_i843) + org.apache.thrift.protocol.TMap _map850 = 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*_map850.size); + for (int _i851 = 0; _i851 < _map850.size; ++_i851) { - String _key844; // required - String _val845; // required - _key844 = iprot.readString(); - _val845 = iprot.readString(); - struct.part_vals.put(_key844, _val845); + String _key852; // required + String _val853; // required + _key852 = iprot.readString(); + _val853 = iprot.readString(); + struct.part_vals.put(_key852, _val853); } } struct.setPart_valsIsSet(true); @@ -91423,14 +92708,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 _list846 = iprot.readListBegin(); - struct.success = new ArrayList(_list846.size); - for (int _i847 = 0; _i847 < _list846.size; ++_i847) + org.apache.thrift.protocol.TList _list854 = iprot.readListBegin(); + struct.success = new ArrayList(_list854.size); + for (int _i855 = 0; _i855 < _list854.size; ++_i855) { - Index _elem848; // required - _elem848 = new Index(); - _elem848.read(iprot); - struct.success.add(_elem848); + Index _elem856; // required + _elem856 = new Index(); + _elem856.read(iprot); + struct.success.add(_elem856); } iprot.readListEnd(); } @@ -91474,9 +92759,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 _iter849 : struct.success) + for (Index _iter857 : struct.success) { - _iter849.write(oprot); + _iter857.write(oprot); } oprot.writeListEnd(); } @@ -91523,9 +92808,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter850 : struct.success) + for (Index _iter858 : struct.success) { - _iter850.write(oprot); + _iter858.write(oprot); } } } @@ -91543,14 +92828,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 _list851 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list851.size); - for (int _i852 = 0; _i852 < _list851.size; ++_i852) + org.apache.thrift.protocol.TList _list859 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list859.size); + for (int _i860 = 0; _i860 < _list859.size; ++_i860) { - Index _elem853; // required - _elem853 = new Index(); - _elem853.read(iprot); - struct.success.add(_elem853); + Index _elem861; // required + _elem861 = new Index(); + _elem861.read(iprot); + struct.success.add(_elem861); } } struct.setSuccessIsSet(true); @@ -92532,13 +93817,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 _list854 = iprot.readListBegin(); - struct.success = new ArrayList(_list854.size); - for (int _i855 = 0; _i855 < _list854.size; ++_i855) + org.apache.thrift.protocol.TList _list862 = iprot.readListBegin(); + struct.success = new ArrayList(_list862.size); + for (int _i863 = 0; _i863 < _list862.size; ++_i863) { - String _elem856; // required - _elem856 = iprot.readString(); - struct.success.add(_elem856); + String _elem864; // required + _elem864 = iprot.readString(); + struct.success.add(_elem864); } iprot.readListEnd(); } @@ -92573,9 +93858,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 _iter857 : struct.success) + for (String _iter865 : struct.success) { - oprot.writeString(_iter857); + oprot.writeString(_iter865); } oprot.writeListEnd(); } @@ -92614,9 +93899,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter858 : struct.success) + for (String _iter866 : struct.success) { - oprot.writeString(_iter858); + oprot.writeString(_iter866); } } } @@ -92631,13 +93916,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 _list859 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list859.size); - for (int _i860 = 0; _i860 < _list859.size; ++_i860) + org.apache.thrift.protocol.TList _list867 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list867.size); + for (int _i868 = 0; _i868 < _list867.size; ++_i868) { - String _elem861; // required - _elem861 = iprot.readString(); - struct.success.add(_elem861); + String _elem869; // required + _elem869 = iprot.readString(); + struct.success.add(_elem869); } } struct.setSuccessIsSet(true); @@ -108375,13 +109660,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 _list862 = iprot.readListBegin(); - struct.success = new ArrayList(_list862.size); - for (int _i863 = 0; _i863 < _list862.size; ++_i863) + org.apache.thrift.protocol.TList _list870 = iprot.readListBegin(); + struct.success = new ArrayList(_list870.size); + for (int _i871 = 0; _i871 < _list870.size; ++_i871) { - String _elem864; // required - _elem864 = iprot.readString(); - struct.success.add(_elem864); + String _elem872; // required + _elem872 = iprot.readString(); + struct.success.add(_elem872); } iprot.readListEnd(); } @@ -108416,9 +109701,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 _iter865 : struct.success) + for (String _iter873 : struct.success) { - oprot.writeString(_iter865); + oprot.writeString(_iter873); } oprot.writeListEnd(); } @@ -108457,9 +109742,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter866 : struct.success) + for (String _iter874 : struct.success) { - oprot.writeString(_iter866); + oprot.writeString(_iter874); } } } @@ -108474,13 +109759,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 _list867 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list867.size); - for (int _i868 = 0; _i868 < _list867.size; ++_i868) + org.apache.thrift.protocol.TList _list875 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list875.size); + for (int _i876 = 0; _i876 < _list875.size; ++_i876) { - String _elem869; // required - _elem869 = iprot.readString(); - struct.success.add(_elem869); + String _elem877; // required + _elem877 = iprot.readString(); + struct.success.add(_elem877); } } struct.setSuccessIsSet(true); @@ -111823,13 +113108,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 _list870 = iprot.readListBegin(); - struct.success = new ArrayList(_list870.size); - for (int _i871 = 0; _i871 < _list870.size; ++_i871) + org.apache.thrift.protocol.TList _list878 = iprot.readListBegin(); + struct.success = new ArrayList(_list878.size); + for (int _i879 = 0; _i879 < _list878.size; ++_i879) { - String _elem872; // required - _elem872 = iprot.readString(); - struct.success.add(_elem872); + String _elem880; // required + _elem880 = iprot.readString(); + struct.success.add(_elem880); } iprot.readListEnd(); } @@ -111864,9 +113149,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 _iter873 : struct.success) + for (String _iter881 : struct.success) { - oprot.writeString(_iter873); + oprot.writeString(_iter881); } oprot.writeListEnd(); } @@ -111905,9 +113190,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter874 : struct.success) + for (String _iter882 : struct.success) { - oprot.writeString(_iter874); + oprot.writeString(_iter882); } } } @@ -111922,13 +113207,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 _list875 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list875.size); - for (int _i876 = 0; _i876 < _list875.size; ++_i876) + org.apache.thrift.protocol.TList _list883 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list883.size); + for (int _i884 = 0; _i884 < _list883.size; ++_i884) { - String _elem877; // required - _elem877 = iprot.readString(); - struct.success.add(_elem877); + String _elem885; // required + _elem885 = iprot.readString(); + struct.success.add(_elem885); } } struct.setSuccessIsSet(true); @@ -115219,14 +116504,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 _list878 = iprot.readListBegin(); - struct.success = new ArrayList(_list878.size); - for (int _i879 = 0; _i879 < _list878.size; ++_i879) + org.apache.thrift.protocol.TList _list886 = iprot.readListBegin(); + struct.success = new ArrayList(_list886.size); + for (int _i887 = 0; _i887 < _list886.size; ++_i887) { - Role _elem880; // required - _elem880 = new Role(); - _elem880.read(iprot); - struct.success.add(_elem880); + Role _elem888; // required + _elem888 = new Role(); + _elem888.read(iprot); + struct.success.add(_elem888); } iprot.readListEnd(); } @@ -115261,9 +116546,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 _iter881 : struct.success) + for (Role _iter889 : struct.success) { - _iter881.write(oprot); + _iter889.write(oprot); } oprot.writeListEnd(); } @@ -115302,9 +116587,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter882 : struct.success) + for (Role _iter890 : struct.success) { - _iter882.write(oprot); + _iter890.write(oprot); } } } @@ -115319,14 +116604,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 _list883 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list883.size); - for (int _i884 = 0; _i884 < _list883.size; ++_i884) + org.apache.thrift.protocol.TList _list891 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list891.size); + for (int _i892 = 0; _i892 < _list891.size; ++_i892) { - Role _elem885; // required - _elem885 = new Role(); - _elem885.read(iprot); - struct.success.add(_elem885); + Role _elem893; // required + _elem893 = new Role(); + _elem893.read(iprot); + struct.success.add(_elem893); } } struct.setSuccessIsSet(true); @@ -118334,13 +119619,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 _list886 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list886.size); - for (int _i887 = 0; _i887 < _list886.size; ++_i887) + org.apache.thrift.protocol.TList _list894 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list894.size); + for (int _i895 = 0; _i895 < _list894.size; ++_i895) { - String _elem888; // required - _elem888 = iprot.readString(); - struct.group_names.add(_elem888); + String _elem896; // required + _elem896 = iprot.readString(); + struct.group_names.add(_elem896); } iprot.readListEnd(); } @@ -118376,9 +119661,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 _iter889 : struct.group_names) + for (String _iter897 : struct.group_names) { - oprot.writeString(_iter889); + oprot.writeString(_iter897); } oprot.writeListEnd(); } @@ -118421,9 +119706,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 _iter890 : struct.group_names) + for (String _iter898 : struct.group_names) { - oprot.writeString(_iter890); + oprot.writeString(_iter898); } } } @@ -118444,13 +119729,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list891 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list891.size); - for (int _i892 = 0; _i892 < _list891.size; ++_i892) + org.apache.thrift.protocol.TList _list899 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list899.size); + for (int _i900 = 0; _i900 < _list899.size; ++_i900) { - String _elem893; // required - _elem893 = iprot.readString(); - struct.group_names.add(_elem893); + String _elem901; // required + _elem901 = iprot.readString(); + struct.group_names.add(_elem901); } } struct.setGroup_namesIsSet(true); @@ -119908,14 +121193,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 _list894 = iprot.readListBegin(); - struct.success = new ArrayList(_list894.size); - for (int _i895 = 0; _i895 < _list894.size; ++_i895) + org.apache.thrift.protocol.TList _list902 = iprot.readListBegin(); + struct.success = new ArrayList(_list902.size); + for (int _i903 = 0; _i903 < _list902.size; ++_i903) { - HiveObjectPrivilege _elem896; // required - _elem896 = new HiveObjectPrivilege(); - _elem896.read(iprot); - struct.success.add(_elem896); + HiveObjectPrivilege _elem904; // required + _elem904 = new HiveObjectPrivilege(); + _elem904.read(iprot); + struct.success.add(_elem904); } iprot.readListEnd(); } @@ -119950,9 +121235,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 _iter897 : struct.success) + for (HiveObjectPrivilege _iter905 : struct.success) { - _iter897.write(oprot); + _iter905.write(oprot); } oprot.writeListEnd(); } @@ -119991,9 +121276,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter898 : struct.success) + for (HiveObjectPrivilege _iter906 : struct.success) { - _iter898.write(oprot); + _iter906.write(oprot); } } } @@ -120008,14 +121293,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 _list899 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list899.size); - for (int _i900 = 0; _i900 < _list899.size; ++_i900) + org.apache.thrift.protocol.TList _list907 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list907.size); + for (int _i908 = 0; _i908 < _list907.size; ++_i908) { - HiveObjectPrivilege _elem901; // required - _elem901 = new HiveObjectPrivilege(); - _elem901.read(iprot); - struct.success.add(_elem901); + HiveObjectPrivilege _elem909; // required + _elem909 = new HiveObjectPrivilege(); + _elem909.read(iprot); + struct.success.add(_elem909); } } struct.setSuccessIsSet(true); @@ -122920,13 +124205,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 _list902 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list902.size); - for (int _i903 = 0; _i903 < _list902.size; ++_i903) + org.apache.thrift.protocol.TList _list910 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list910.size); + for (int _i911 = 0; _i911 < _list910.size; ++_i911) { - String _elem904; // required - _elem904 = iprot.readString(); - struct.group_names.add(_elem904); + String _elem912; // required + _elem912 = iprot.readString(); + struct.group_names.add(_elem912); } iprot.readListEnd(); } @@ -122957,9 +124242,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 _iter905 : struct.group_names) + for (String _iter913 : struct.group_names) { - oprot.writeString(_iter905); + oprot.writeString(_iter913); } oprot.writeListEnd(); } @@ -122996,9 +124281,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 _iter906 : struct.group_names) + for (String _iter914 : struct.group_names) { - oprot.writeString(_iter906); + oprot.writeString(_iter914); } } } @@ -123014,13 +124299,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list907 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list907.size); - for (int _i908 = 0; _i908 < _list907.size; ++_i908) + org.apache.thrift.protocol.TList _list915 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list915.size); + for (int _i916 = 0; _i916 < _list915.size; ++_i916) { - String _elem909; // required - _elem909 = iprot.readString(); - struct.group_names.add(_elem909); + String _elem917; // required + _elem917 = iprot.readString(); + struct.group_names.add(_elem917); } } struct.setGroup_namesIsSet(true); @@ -123426,13 +124711,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 _list910 = iprot.readListBegin(); - struct.success = new ArrayList(_list910.size); - for (int _i911 = 0; _i911 < _list910.size; ++_i911) + org.apache.thrift.protocol.TList _list918 = iprot.readListBegin(); + struct.success = new ArrayList(_list918.size); + for (int _i919 = 0; _i919 < _list918.size; ++_i919) { - String _elem912; // required - _elem912 = iprot.readString(); - struct.success.add(_elem912); + String _elem920; // required + _elem920 = iprot.readString(); + struct.success.add(_elem920); } iprot.readListEnd(); } @@ -123467,9 +124752,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 _iter913 : struct.success) + for (String _iter921 : struct.success) { - oprot.writeString(_iter913); + oprot.writeString(_iter921); } oprot.writeListEnd(); } @@ -123508,9 +124793,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter914 : struct.success) + for (String _iter922 : struct.success) { - oprot.writeString(_iter914); + oprot.writeString(_iter922); } } } @@ -123525,13 +124810,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 _list915 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list915.size); - for (int _i916 = 0; _i916 < _list915.size; ++_i916) + org.apache.thrift.protocol.TList _list923 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list923.size); + for (int _i924 = 0; _i924 < _list923.size; ++_i924) { - String _elem917; // required - _elem917 = iprot.readString(); - struct.success.add(_elem917); + String _elem925; // required + _elem925 = iprot.readString(); + struct.success.add(_elem925); } } struct.setSuccessIsSet(true); diff --git metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 69978d3..8651204 100644 --- metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -64,6 +64,7 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { public function get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names); public function get_partitions_pspec($db_name, $tbl_name, $max_parts); 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); @@ -2956,6 +2957,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); @@ -18277,12 +18335,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) { @@ -18297,12 +18355,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', @@ -18317,8 +18371,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']; @@ -18327,7 +18381,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) @@ -18360,18 +18414,8 @@ class ThriftHiveMetastore_get_partitions_ps_args { } break; case 3: - if ($ftype == TType::LST) { - $this->part_vals = array(); - $_size616 = 0; - $_etype619 = 0; - $xfer += $input->readListBegin($_etype619, $_size616); - for ($_i620 = 0; $_i620 < $_size616; ++$_i620) - { - $elem621 = null; - $xfer += $input->readString($elem621); - $this->part_vals []= $elem621; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->filter); } else { $xfer += $input->skip($ftype); } @@ -18395,7 +18439,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); @@ -18406,21 +18450,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 $iter622) - { - $xfer += $output->writeString($iter622); - } - } - $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) { @@ -18435,11 +18467,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) { @@ -18448,21 +18479,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', ), ); } @@ -18470,9 +18495,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']; } @@ -18480,7 +18502,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) @@ -18501,15 +18523,14 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size623 = 0; - $_etype626 = 0; - $xfer += $input->readListBegin($_etype626, $_size623); - for ($_i627 = 0; $_i627 < $_size623; ++$_i627) + $_size616 = 0; + $_etype619 = 0; + $xfer += $input->readListBegin($_etype619, $_size616); + for ($_i620 = 0; $_i620 < $_size616; ++$_i620) { - $elem628 = null; - $elem628 = new \metastore\Partition(); - $xfer += $elem628->read($input); - $this->success []= $elem628; + $elem621 = null; + $xfer += $input->readString($elem621); + $this->success []= $elem621; } $xfer += $input->readListEnd(); } else { @@ -18518,15 +18539,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); @@ -18544,31 +18557,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 $iter629) + foreach ($this->success as $iter622) { - $xfer += $iter629->write($output); + $xfer += $output->writeString($iter622); } } $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(); } @@ -18579,15 +18587,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)) { @@ -18612,18 +18618,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)) { @@ -18639,17 +18633,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) @@ -18684,14 +18672,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size630 = 0; - $_etype633 = 0; - $xfer += $input->readListBegin($_etype633, $_size630); - for ($_i634 = 0; $_i634 < $_size630; ++$_i634) + $_size623 = 0; + $_etype626 = 0; + $xfer += $input->readListBegin($_etype626, $_size623); + for ($_i627 = 0; $_i627 < $_size623; ++$_i627) { - $elem635 = null; - $xfer += $input->readString($elem635); - $this->part_vals []= $elem635; + $elem628 = null; + $xfer += $input->readString($elem628); + $this->part_vals []= $elem628; } $xfer += $input->readListEnd(); } else { @@ -18705,30 +18693,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(); - $_size636 = 0; - $_etype639 = 0; - $xfer += $input->readListBegin($_etype639, $_size636); - for ($_i640 = 0; $_i640 < $_size636; ++$_i640) - { - $elem641 = null; - $xfer += $input->readString($elem641); - $this->group_names []= $elem641; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -18741,7 +18705,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); @@ -18760,9 +18724,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter642) + foreach ($this->part_vals as $iter629) { - $xfer += $output->writeString($iter642); + $xfer += $output->writeString($iter629); } } $output->writeListEnd(); @@ -18774,28 +18738,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 $iter643) - { - $xfer += $output->writeString($iter643); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -18803,7 +18745,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; @@ -18825,12 +18767,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', ), ); } @@ -18848,7 +18790,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) @@ -18869,15 +18811,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size644 = 0; - $_etype647 = 0; - $xfer += $input->readListBegin($_etype647, $_size644); - for ($_i648 = 0; $_i648 < $_size644; ++$_i648) + $_size630 = 0; + $_etype633 = 0; + $xfer += $input->readListBegin($_etype633, $_size630); + for ($_i634 = 0; $_i634 < $_size630; ++$_i634) { - $elem649 = null; - $elem649 = new \metastore\Partition(); - $xfer += $elem649->read($input); - $this->success []= $elem649; + $elem635 = null; + $elem635 = new \metastore\Partition(); + $xfer += $elem635->read($input); + $this->success []= $elem635; } $xfer += $input->readListEnd(); } else { @@ -18886,7 +18828,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); @@ -18894,7 +18836,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); @@ -18912,7 +18854,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); @@ -18921,9 +18863,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter650) + foreach ($this->success as $iter636) { - $xfer += $iter650->write($output); + $xfer += $iter636->write($output); } } $output->writeListEnd(); @@ -18947,13 +18889,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)) { @@ -18978,6 +18922,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)) { @@ -18993,11 +18949,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(); + $_size637 = 0; + $_etype640 = 0; + $xfer += $input->readListBegin($_etype640, $_size637); + for ($_i641 = 0; $_i641 < $_size637; ++$_i641) + { + $elem642 = null; + $xfer += $input->readString($elem642); + $this->part_vals []= $elem642; + } + $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(); + $_size643 = 0; + $_etype646 = 0; + $xfer += $input->readListBegin($_etype646, $_size643); + for ($_i647 = 0; $_i647 < $_size643; ++$_i647) + { + $elem648 = null; + $xfer += $input->readString($elem648); + $this->group_names []= $elem648; + } + $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 $iter649) + { + $xfer += $output->writeString($iter649); + } + } + $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 $iter650) + { + $xfer += $output->writeString($iter650); + } + } + $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(); + $_size651 = 0; + $_etype654 = 0; + $xfer += $input->readListBegin($_etype654, $_size651); + for ($_i655 = 0; $_i655 < $_size651; ++$_i655) + { + $elem656 = null; + $elem656 = new \metastore\Partition(); + $xfer += $elem656->read($input); + $this->success []= $elem656; + } + $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 $iter657) + { + $xfer += $iter657->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) @@ -19032,14 +19342,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size651 = 0; - $_etype654 = 0; - $xfer += $input->readListBegin($_etype654, $_size651); - for ($_i655 = 0; $_i655 < $_size651; ++$_i655) + $_size658 = 0; + $_etype661 = 0; + $xfer += $input->readListBegin($_etype661, $_size658); + for ($_i662 = 0; $_i662 < $_size658; ++$_i662) { - $elem656 = null; - $xfer += $input->readString($elem656); - $this->part_vals []= $elem656; + $elem663 = null; + $xfer += $input->readString($elem663); + $this->part_vals []= $elem663; } $xfer += $input->readListEnd(); } else { @@ -19084,9 +19394,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter657) + foreach ($this->part_vals as $iter664) { - $xfer += $output->writeString($iter657); + $xfer += $output->writeString($iter664); } } $output->writeListEnd(); @@ -19170,14 +19480,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size658 = 0; - $_etype661 = 0; - $xfer += $input->readListBegin($_etype661, $_size658); - for ($_i662 = 0; $_i662 < $_size658; ++$_i662) + $_size665 = 0; + $_etype668 = 0; + $xfer += $input->readListBegin($_etype668, $_size665); + for ($_i669 = 0; $_i669 < $_size665; ++$_i669) { - $elem663 = null; - $xfer += $input->readString($elem663); - $this->success []= $elem663; + $elem670 = null; + $xfer += $input->readString($elem670); + $this->success []= $elem670; } $xfer += $input->readListEnd(); } else { @@ -19221,9 +19531,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter664) + foreach ($this->success as $iter671) { - $xfer += $output->writeString($iter664); + $xfer += $output->writeString($iter671); } } $output->writeListEnd(); @@ -19445,15 +19755,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size665 = 0; - $_etype668 = 0; - $xfer += $input->readListBegin($_etype668, $_size665); - for ($_i669 = 0; $_i669 < $_size665; ++$_i669) + $_size672 = 0; + $_etype675 = 0; + $xfer += $input->readListBegin($_etype675, $_size672); + for ($_i676 = 0; $_i676 < $_size672; ++$_i676) { - $elem670 = null; - $elem670 = new \metastore\Partition(); - $xfer += $elem670->read($input); - $this->success []= $elem670; + $elem677 = null; + $elem677 = new \metastore\Partition(); + $xfer += $elem677->read($input); + $this->success []= $elem677; } $xfer += $input->readListEnd(); } else { @@ -19497,9 +19807,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter671) + foreach ($this->success as $iter678) { - $xfer += $iter671->write($output); + $xfer += $iter678->write($output); } } $output->writeListEnd(); @@ -19721,15 +20031,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size672 = 0; - $_etype675 = 0; - $xfer += $input->readListBegin($_etype675, $_size672); - for ($_i676 = 0; $_i676 < $_size672; ++$_i676) + $_size679 = 0; + $_etype682 = 0; + $xfer += $input->readListBegin($_etype682, $_size679); + for ($_i683 = 0; $_i683 < $_size679; ++$_i683) { - $elem677 = null; - $elem677 = new \metastore\PartitionSpec(); - $xfer += $elem677->read($input); - $this->success []= $elem677; + $elem684 = null; + $elem684 = new \metastore\PartitionSpec(); + $xfer += $elem684->read($input); + $this->success []= $elem684; } $xfer += $input->readListEnd(); } else { @@ -19773,9 +20083,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter678) + foreach ($this->success as $iter685) { - $xfer += $iter678->write($output); + $xfer += $iter685->write($output); } } $output->writeListEnd(); @@ -20074,14 +20384,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size679 = 0; - $_etype682 = 0; - $xfer += $input->readListBegin($_etype682, $_size679); - for ($_i683 = 0; $_i683 < $_size679; ++$_i683) + $_size686 = 0; + $_etype689 = 0; + $xfer += $input->readListBegin($_etype689, $_size686); + for ($_i690 = 0; $_i690 < $_size686; ++$_i690) { - $elem684 = null; - $xfer += $input->readString($elem684); - $this->names []= $elem684; + $elem691 = null; + $xfer += $input->readString($elem691); + $this->names []= $elem691; } $xfer += $input->readListEnd(); } else { @@ -20119,9 +20429,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter685) + foreach ($this->names as $iter692) { - $xfer += $output->writeString($iter685); + $xfer += $output->writeString($iter692); } } $output->writeListEnd(); @@ -20201,15 +20511,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size686 = 0; - $_etype689 = 0; - $xfer += $input->readListBegin($_etype689, $_size686); - for ($_i690 = 0; $_i690 < $_size686; ++$_i690) + $_size693 = 0; + $_etype696 = 0; + $xfer += $input->readListBegin($_etype696, $_size693); + for ($_i697 = 0; $_i697 < $_size693; ++$_i697) { - $elem691 = null; - $elem691 = new \metastore\Partition(); - $xfer += $elem691->read($input); - $this->success []= $elem691; + $elem698 = null; + $elem698 = new \metastore\Partition(); + $xfer += $elem698->read($input); + $this->success []= $elem698; } $xfer += $input->readListEnd(); } else { @@ -20253,9 +20563,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter692) + foreach ($this->success as $iter699) { - $xfer += $iter692->write($output); + $xfer += $iter699->write($output); } } $output->writeListEnd(); @@ -20570,15 +20880,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size693 = 0; - $_etype696 = 0; - $xfer += $input->readListBegin($_etype696, $_size693); - for ($_i697 = 0; $_i697 < $_size693; ++$_i697) + $_size700 = 0; + $_etype703 = 0; + $xfer += $input->readListBegin($_etype703, $_size700); + for ($_i704 = 0; $_i704 < $_size700; ++$_i704) { - $elem698 = null; - $elem698 = new \metastore\Partition(); - $xfer += $elem698->read($input); - $this->new_parts []= $elem698; + $elem705 = null; + $elem705 = new \metastore\Partition(); + $xfer += $elem705->read($input); + $this->new_parts []= $elem705; } $xfer += $input->readListEnd(); } else { @@ -20616,9 +20926,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter699) + foreach ($this->new_parts as $iter706) { - $xfer += $iter699->write($output); + $xfer += $iter706->write($output); } } $output->writeListEnd(); @@ -21052,14 +21362,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size700 = 0; - $_etype703 = 0; - $xfer += $input->readListBegin($_etype703, $_size700); - for ($_i704 = 0; $_i704 < $_size700; ++$_i704) + $_size707 = 0; + $_etype710 = 0; + $xfer += $input->readListBegin($_etype710, $_size707); + for ($_i711 = 0; $_i711 < $_size707; ++$_i711) { - $elem705 = null; - $xfer += $input->readString($elem705); - $this->part_vals []= $elem705; + $elem712 = null; + $xfer += $input->readString($elem712); + $this->part_vals []= $elem712; } $xfer += $input->readListEnd(); } else { @@ -21105,9 +21415,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter706) + foreach ($this->part_vals as $iter713) { - $xfer += $output->writeString($iter706); + $xfer += $output->writeString($iter713); } } $output->writeListEnd(); @@ -21280,14 +21590,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size707 = 0; - $_etype710 = 0; - $xfer += $input->readListBegin($_etype710, $_size707); - for ($_i711 = 0; $_i711 < $_size707; ++$_i711) + $_size714 = 0; + $_etype717 = 0; + $xfer += $input->readListBegin($_etype717, $_size714); + for ($_i718 = 0; $_i718 < $_size714; ++$_i718) { - $elem712 = null; - $xfer += $input->readString($elem712); - $this->part_vals []= $elem712; + $elem719 = null; + $xfer += $input->readString($elem719); + $this->part_vals []= $elem719; } $xfer += $input->readListEnd(); } else { @@ -21322,9 +21632,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter713) + foreach ($this->part_vals as $iter720) { - $xfer += $output->writeString($iter713); + $xfer += $output->writeString($iter720); } } $output->writeListEnd(); @@ -21751,14 +22061,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size714 = 0; - $_etype717 = 0; - $xfer += $input->readListBegin($_etype717, $_size714); - for ($_i718 = 0; $_i718 < $_size714; ++$_i718) + $_size721 = 0; + $_etype724 = 0; + $xfer += $input->readListBegin($_etype724, $_size721); + for ($_i725 = 0; $_i725 < $_size721; ++$_i725) { - $elem719 = null; - $xfer += $input->readString($elem719); - $this->success []= $elem719; + $elem726 = null; + $xfer += $input->readString($elem726); + $this->success []= $elem726; } $xfer += $input->readListEnd(); } else { @@ -21794,9 +22104,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter720) + foreach ($this->success as $iter727) { - $xfer += $output->writeString($iter720); + $xfer += $output->writeString($iter727); } } $output->writeListEnd(); @@ -21947,17 +22257,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size721 = 0; - $_ktype722 = 0; - $_vtype723 = 0; - $xfer += $input->readMapBegin($_ktype722, $_vtype723, $_size721); - for ($_i725 = 0; $_i725 < $_size721; ++$_i725) + $_size728 = 0; + $_ktype729 = 0; + $_vtype730 = 0; + $xfer += $input->readMapBegin($_ktype729, $_vtype730, $_size728); + for ($_i732 = 0; $_i732 < $_size728; ++$_i732) { - $key726 = ''; - $val727 = ''; - $xfer += $input->readString($key726); - $xfer += $input->readString($val727); - $this->success[$key726] = $val727; + $key733 = ''; + $val734 = ''; + $xfer += $input->readString($key733); + $xfer += $input->readString($val734); + $this->success[$key733] = $val734; } $xfer += $input->readMapEnd(); } else { @@ -21993,10 +22303,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter728 => $viter729) + foreach ($this->success as $kiter735 => $viter736) { - $xfer += $output->writeString($kiter728); - $xfer += $output->writeString($viter729); + $xfer += $output->writeString($kiter735); + $xfer += $output->writeString($viter736); } } $output->writeMapEnd(); @@ -22104,17 +22414,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size730 = 0; - $_ktype731 = 0; - $_vtype732 = 0; - $xfer += $input->readMapBegin($_ktype731, $_vtype732, $_size730); - for ($_i734 = 0; $_i734 < $_size730; ++$_i734) + $_size737 = 0; + $_ktype738 = 0; + $_vtype739 = 0; + $xfer += $input->readMapBegin($_ktype738, $_vtype739, $_size737); + for ($_i741 = 0; $_i741 < $_size737; ++$_i741) { - $key735 = ''; - $val736 = ''; - $xfer += $input->readString($key735); - $xfer += $input->readString($val736); - $this->part_vals[$key735] = $val736; + $key742 = ''; + $val743 = ''; + $xfer += $input->readString($key742); + $xfer += $input->readString($val743); + $this->part_vals[$key742] = $val743; } $xfer += $input->readMapEnd(); } else { @@ -22159,10 +22469,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter737 => $viter738) + foreach ($this->part_vals as $kiter744 => $viter745) { - $xfer += $output->writeString($kiter737); - $xfer += $output->writeString($viter738); + $xfer += $output->writeString($kiter744); + $xfer += $output->writeString($viter745); } } $output->writeMapEnd(); @@ -22454,17 +22764,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size739 = 0; - $_ktype740 = 0; - $_vtype741 = 0; - $xfer += $input->readMapBegin($_ktype740, $_vtype741, $_size739); - for ($_i743 = 0; $_i743 < $_size739; ++$_i743) + $_size746 = 0; + $_ktype747 = 0; + $_vtype748 = 0; + $xfer += $input->readMapBegin($_ktype747, $_vtype748, $_size746); + for ($_i750 = 0; $_i750 < $_size746; ++$_i750) { - $key744 = ''; - $val745 = ''; - $xfer += $input->readString($key744); - $xfer += $input->readString($val745); - $this->part_vals[$key744] = $val745; + $key751 = ''; + $val752 = ''; + $xfer += $input->readString($key751); + $xfer += $input->readString($val752); + $this->part_vals[$key751] = $val752; } $xfer += $input->readMapEnd(); } else { @@ -22509,10 +22819,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter746 => $viter747) + foreach ($this->part_vals as $kiter753 => $viter754) { - $xfer += $output->writeString($kiter746); - $xfer += $output->writeString($viter747); + $xfer += $output->writeString($kiter753); + $xfer += $output->writeString($viter754); } } $output->writeMapEnd(); @@ -23872,15 +24182,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size748 = 0; - $_etype751 = 0; - $xfer += $input->readListBegin($_etype751, $_size748); - for ($_i752 = 0; $_i752 < $_size748; ++$_i752) + $_size755 = 0; + $_etype758 = 0; + $xfer += $input->readListBegin($_etype758, $_size755); + for ($_i759 = 0; $_i759 < $_size755; ++$_i759) { - $elem753 = null; - $elem753 = new \metastore\Index(); - $xfer += $elem753->read($input); - $this->success []= $elem753; + $elem760 = null; + $elem760 = new \metastore\Index(); + $xfer += $elem760->read($input); + $this->success []= $elem760; } $xfer += $input->readListEnd(); } else { @@ -23924,9 +24234,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter754) + foreach ($this->success as $iter761) { - $xfer += $iter754->write($output); + $xfer += $iter761->write($output); } } $output->writeListEnd(); @@ -24118,14 +24428,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size755 = 0; - $_etype758 = 0; - $xfer += $input->readListBegin($_etype758, $_size755); - for ($_i759 = 0; $_i759 < $_size755; ++$_i759) + $_size762 = 0; + $_etype765 = 0; + $xfer += $input->readListBegin($_etype765, $_size762); + for ($_i766 = 0; $_i766 < $_size762; ++$_i766) { - $elem760 = null; - $xfer += $input->readString($elem760); - $this->success []= $elem760; + $elem767 = null; + $xfer += $input->readString($elem767); + $this->success []= $elem767; } $xfer += $input->readListEnd(); } else { @@ -24161,9 +24471,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter761) + foreach ($this->success as $iter768) { - $xfer += $output->writeString($iter761); + $xfer += $output->writeString($iter768); } } $output->writeListEnd(); @@ -27391,14 +27701,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size762 = 0; - $_etype765 = 0; - $xfer += $input->readListBegin($_etype765, $_size762); - for ($_i766 = 0; $_i766 < $_size762; ++$_i766) + $_size769 = 0; + $_etype772 = 0; + $xfer += $input->readListBegin($_etype772, $_size769); + for ($_i773 = 0; $_i773 < $_size769; ++$_i773) { - $elem767 = null; - $xfer += $input->readString($elem767); - $this->success []= $elem767; + $elem774 = null; + $xfer += $input->readString($elem774); + $this->success []= $elem774; } $xfer += $input->readListEnd(); } else { @@ -27434,9 +27744,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter768) + foreach ($this->success as $iter775) { - $xfer += $output->writeString($iter768); + $xfer += $output->writeString($iter775); } } $output->writeListEnd(); @@ -28111,14 +28421,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size769 = 0; - $_etype772 = 0; - $xfer += $input->readListBegin($_etype772, $_size769); - for ($_i773 = 0; $_i773 < $_size769; ++$_i773) + $_size776 = 0; + $_etype779 = 0; + $xfer += $input->readListBegin($_etype779, $_size776); + for ($_i780 = 0; $_i780 < $_size776; ++$_i780) { - $elem774 = null; - $xfer += $input->readString($elem774); - $this->success []= $elem774; + $elem781 = null; + $xfer += $input->readString($elem781); + $this->success []= $elem781; } $xfer += $input->readListEnd(); } else { @@ -28154,9 +28464,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter775) + foreach ($this->success as $iter782) { - $xfer += $output->writeString($iter775); + $xfer += $output->writeString($iter782); } } $output->writeListEnd(); @@ -28796,15 +29106,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size776 = 0; - $_etype779 = 0; - $xfer += $input->readListBegin($_etype779, $_size776); - for ($_i780 = 0; $_i780 < $_size776; ++$_i780) + $_size783 = 0; + $_etype786 = 0; + $xfer += $input->readListBegin($_etype786, $_size783); + for ($_i787 = 0; $_i787 < $_size783; ++$_i787) { - $elem781 = null; - $elem781 = new \metastore\Role(); - $xfer += $elem781->read($input); - $this->success []= $elem781; + $elem788 = null; + $elem788 = new \metastore\Role(); + $xfer += $elem788->read($input); + $this->success []= $elem788; } $xfer += $input->readListEnd(); } else { @@ -28840,9 +29150,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter782) + foreach ($this->success as $iter789) { - $xfer += $iter782->write($output); + $xfer += $iter789->write($output); } } $output->writeListEnd(); @@ -29468,14 +29778,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size783 = 0; - $_etype786 = 0; - $xfer += $input->readListBegin($_etype786, $_size783); - for ($_i787 = 0; $_i787 < $_size783; ++$_i787) + $_size790 = 0; + $_etype793 = 0; + $xfer += $input->readListBegin($_etype793, $_size790); + for ($_i794 = 0; $_i794 < $_size790; ++$_i794) { - $elem788 = null; - $xfer += $input->readString($elem788); - $this->group_names []= $elem788; + $elem795 = null; + $xfer += $input->readString($elem795); + $this->group_names []= $elem795; } $xfer += $input->readListEnd(); } else { @@ -29516,9 +29826,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter789) + foreach ($this->group_names as $iter796) { - $xfer += $output->writeString($iter789); + $xfer += $output->writeString($iter796); } } $output->writeListEnd(); @@ -29805,15 +30115,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size790 = 0; - $_etype793 = 0; - $xfer += $input->readListBegin($_etype793, $_size790); - for ($_i794 = 0; $_i794 < $_size790; ++$_i794) + $_size797 = 0; + $_etype800 = 0; + $xfer += $input->readListBegin($_etype800, $_size797); + for ($_i801 = 0; $_i801 < $_size797; ++$_i801) { - $elem795 = null; - $elem795 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem795->read($input); - $this->success []= $elem795; + $elem802 = null; + $elem802 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem802->read($input); + $this->success []= $elem802; } $xfer += $input->readListEnd(); } else { @@ -29849,9 +30159,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter796) + foreach ($this->success as $iter803) { - $xfer += $iter796->write($output); + $xfer += $iter803->write($output); } } $output->writeListEnd(); @@ -30450,14 +30760,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size797 = 0; - $_etype800 = 0; - $xfer += $input->readListBegin($_etype800, $_size797); - for ($_i801 = 0; $_i801 < $_size797; ++$_i801) + $_size804 = 0; + $_etype807 = 0; + $xfer += $input->readListBegin($_etype807, $_size804); + for ($_i808 = 0; $_i808 < $_size804; ++$_i808) { - $elem802 = null; - $xfer += $input->readString($elem802); - $this->group_names []= $elem802; + $elem809 = null; + $xfer += $input->readString($elem809); + $this->group_names []= $elem809; } $xfer += $input->readListEnd(); } else { @@ -30490,9 +30800,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter803) + foreach ($this->group_names as $iter810) { - $xfer += $output->writeString($iter803); + $xfer += $output->writeString($iter810); } } $output->writeListEnd(); @@ -30562,14 +30872,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size804 = 0; - $_etype807 = 0; - $xfer += $input->readListBegin($_etype807, $_size804); - for ($_i808 = 0; $_i808 < $_size804; ++$_i808) + $_size811 = 0; + $_etype814 = 0; + $xfer += $input->readListBegin($_etype814, $_size811); + for ($_i815 = 0; $_i815 < $_size811; ++$_i815) { - $elem809 = null; - $xfer += $input->readString($elem809); - $this->success []= $elem809; + $elem816 = null; + $xfer += $input->readString($elem816); + $this->success []= $elem816; } $xfer += $input->readListEnd(); } else { @@ -30605,9 +30915,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter810) + foreach ($this->success as $iter817) { - $xfer += $output->writeString($iter810); + $xfer += $output->writeString($iter817); } } $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 59c0393..da6acde --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -71,6 +71,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print ' get_partitions_with_auth(string db_name, string tbl_name, i16 max_parts, string user_name, group_names)' print ' get_partitions_pspec(string db_name, string tbl_name, i32 max_parts)' print ' get_partition_names(string db_name, string tbl_name, i16 max_parts)' + print ' get_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)' @@ -479,6 +480,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 100a7cb..da03691 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -426,6 +426,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: @@ -2761,6 +2771,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: @@ -5248,6 +5296,7 @@ def __init__(self, handler): self._processMap["get_partitions_with_auth"] = Processor.process_get_partitions_with_auth self._processMap["get_partitions_pspec"] = Processor.process_get_partitions_pspec 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 @@ -6129,6 +6178,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) @@ -15320,6 +15383,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 = [] + (_etype616, _size613) = iprot.readListBegin() + for _i617 in xrange(_size613): + _elem618 = iprot.readString(); + self.success.append(_elem618) + 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 iter619 in self.success: + oprot.writeString(iter619) + 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: @@ -15365,10 +15604,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype616, _size613) = iprot.readListBegin() - for _i617 in xrange(_size613): - _elem618 = iprot.readString(); - self.part_vals.append(_elem618) + (_etype623, _size620) = iprot.readListBegin() + for _i624 in xrange(_size620): + _elem625 = iprot.readString(); + self.part_vals.append(_elem625) iprot.readListEnd() else: iprot.skip(ftype) @@ -15398,8 +15637,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 iter619 in self.part_vals: - oprot.writeString(iter619) + for iter626 in self.part_vals: + oprot.writeString(iter626) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -15455,11 +15694,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype623, _size620) = iprot.readListBegin() - for _i624 in xrange(_size620): - _elem625 = Partition() - _elem625.read(iprot) - self.success.append(_elem625) + (_etype630, _size627) = iprot.readListBegin() + for _i631 in xrange(_size627): + _elem632 = Partition() + _elem632.read(iprot) + self.success.append(_elem632) iprot.readListEnd() else: iprot.skip(ftype) @@ -15488,8 +15727,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 iter626 in self.success: - iter626.write(oprot) + for iter633 in self.success: + iter633.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15569,10 +15808,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype630, _size627) = iprot.readListBegin() - for _i631 in xrange(_size627): - _elem632 = iprot.readString(); - self.part_vals.append(_elem632) + (_etype637, _size634) = iprot.readListBegin() + for _i638 in xrange(_size634): + _elem639 = iprot.readString(); + self.part_vals.append(_elem639) iprot.readListEnd() else: iprot.skip(ftype) @@ -15589,10 +15828,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype636, _size633) = iprot.readListBegin() - for _i637 in xrange(_size633): - _elem638 = iprot.readString(); - self.group_names.append(_elem638) + (_etype643, _size640) = iprot.readListBegin() + for _i644 in xrange(_size640): + _elem645 = iprot.readString(); + self.group_names.append(_elem645) iprot.readListEnd() else: iprot.skip(ftype) @@ -15617,8 +15856,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 iter639 in self.part_vals: - oprot.writeString(iter639) + for iter646 in self.part_vals: + oprot.writeString(iter646) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -15632,8 +15871,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 iter640 in self.group_names: - oprot.writeString(iter640) + for iter647 in self.group_names: + oprot.writeString(iter647) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15685,11 +15924,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype644, _size641) = iprot.readListBegin() - for _i645 in xrange(_size641): - _elem646 = Partition() - _elem646.read(iprot) - self.success.append(_elem646) + (_etype651, _size648) = iprot.readListBegin() + for _i652 in xrange(_size648): + _elem653 = Partition() + _elem653.read(iprot) + self.success.append(_elem653) iprot.readListEnd() else: iprot.skip(ftype) @@ -15718,8 +15957,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 iter647 in self.success: - iter647.write(oprot) + for iter654 in self.success: + iter654.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15793,10 +16032,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype651, _size648) = iprot.readListBegin() - for _i652 in xrange(_size648): - _elem653 = iprot.readString(); - self.part_vals.append(_elem653) + (_etype658, _size655) = iprot.readListBegin() + for _i659 in xrange(_size655): + _elem660 = iprot.readString(); + self.part_vals.append(_elem660) iprot.readListEnd() else: iprot.skip(ftype) @@ -15826,8 +16065,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 iter654 in self.part_vals: - oprot.writeString(iter654) + for iter661 in self.part_vals: + oprot.writeString(iter661) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -15883,10 +16122,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype658, _size655) = iprot.readListBegin() - for _i659 in xrange(_size655): - _elem660 = iprot.readString(); - self.success.append(_elem660) + (_etype665, _size662) = iprot.readListBegin() + for _i666 in xrange(_size662): + _elem667 = iprot.readString(); + self.success.append(_elem667) iprot.readListEnd() else: iprot.skip(ftype) @@ -15915,8 +16154,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 iter661 in self.success: - oprot.writeString(iter661) + for iter668 in self.success: + oprot.writeString(iter668) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16072,11 +16311,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype665, _size662) = iprot.readListBegin() - for _i666 in xrange(_size662): - _elem667 = Partition() - _elem667.read(iprot) - self.success.append(_elem667) + (_etype672, _size669) = iprot.readListBegin() + for _i673 in xrange(_size669): + _elem674 = Partition() + _elem674.read(iprot) + self.success.append(_elem674) iprot.readListEnd() else: iprot.skip(ftype) @@ -16105,8 +16344,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 iter668 in self.success: - iter668.write(oprot) + for iter675 in self.success: + iter675.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16262,11 +16501,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype672, _size669) = iprot.readListBegin() - for _i673 in xrange(_size669): - _elem674 = PartitionSpec() - _elem674.read(iprot) - self.success.append(_elem674) + (_etype679, _size676) = iprot.readListBegin() + for _i680 in xrange(_size676): + _elem681 = PartitionSpec() + _elem681.read(iprot) + self.success.append(_elem681) iprot.readListEnd() else: iprot.skip(ftype) @@ -16295,8 +16534,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 iter675 in self.success: - iter675.write(oprot) + for iter682 in self.success: + iter682.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16514,10 +16753,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype679, _size676) = iprot.readListBegin() - for _i680 in xrange(_size676): - _elem681 = iprot.readString(); - self.names.append(_elem681) + (_etype686, _size683) = iprot.readListBegin() + for _i687 in xrange(_size683): + _elem688 = iprot.readString(); + self.names.append(_elem688) iprot.readListEnd() else: iprot.skip(ftype) @@ -16542,8 +16781,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 iter682 in self.names: - oprot.writeString(iter682) + for iter689 in self.names: + oprot.writeString(iter689) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16595,11 +16834,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype686, _size683) = iprot.readListBegin() - for _i687 in xrange(_size683): - _elem688 = Partition() - _elem688.read(iprot) - self.success.append(_elem688) + (_etype693, _size690) = iprot.readListBegin() + for _i694 in xrange(_size690): + _elem695 = Partition() + _elem695.read(iprot) + self.success.append(_elem695) iprot.readListEnd() else: iprot.skip(ftype) @@ -16628,8 +16867,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 iter689 in self.success: - iter689.write(oprot) + for iter696 in self.success: + iter696.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16859,11 +17098,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype693, _size690) = iprot.readListBegin() - for _i694 in xrange(_size690): - _elem695 = Partition() - _elem695.read(iprot) - self.new_parts.append(_elem695) + (_etype700, _size697) = iprot.readListBegin() + for _i701 in xrange(_size697): + _elem702 = Partition() + _elem702.read(iprot) + self.new_parts.append(_elem702) iprot.readListEnd() else: iprot.skip(ftype) @@ -16888,8 +17127,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 iter696 in self.new_parts: - iter696.write(oprot) + for iter703 in self.new_parts: + iter703.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17201,10 +17440,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype700, _size697) = iprot.readListBegin() - for _i701 in xrange(_size697): - _elem702 = iprot.readString(); - self.part_vals.append(_elem702) + (_etype707, _size704) = iprot.readListBegin() + for _i708 in xrange(_size704): + _elem709 = iprot.readString(); + self.part_vals.append(_elem709) iprot.readListEnd() else: iprot.skip(ftype) @@ -17235,8 +17474,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 iter703 in self.part_vals: - oprot.writeString(iter703) + for iter710 in self.part_vals: + oprot.writeString(iter710) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -17364,10 +17603,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype707, _size704) = iprot.readListBegin() - for _i708 in xrange(_size704): - _elem709 = iprot.readString(); - self.part_vals.append(_elem709) + (_etype714, _size711) = iprot.readListBegin() + for _i715 in xrange(_size711): + _elem716 = iprot.readString(); + self.part_vals.append(_elem716) iprot.readListEnd() else: iprot.skip(ftype) @@ -17389,8 +17628,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 iter710 in self.part_vals: - oprot.writeString(iter710) + for iter717 in self.part_vals: + oprot.writeString(iter717) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -17719,10 +17958,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype714, _size711) = iprot.readListBegin() - for _i715 in xrange(_size711): - _elem716 = iprot.readString(); - self.success.append(_elem716) + (_etype721, _size718) = iprot.readListBegin() + for _i722 in xrange(_size718): + _elem723 = iprot.readString(); + self.success.append(_elem723) iprot.readListEnd() else: iprot.skip(ftype) @@ -17745,8 +17984,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 iter717 in self.success: - oprot.writeString(iter717) + for iter724 in self.success: + oprot.writeString(iter724) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17859,11 +18098,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype719, _vtype720, _size718 ) = iprot.readMapBegin() - for _i722 in xrange(_size718): - _key723 = iprot.readString(); - _val724 = iprot.readString(); - self.success[_key723] = _val724 + (_ktype726, _vtype727, _size725 ) = iprot.readMapBegin() + for _i729 in xrange(_size725): + _key730 = iprot.readString(); + _val731 = iprot.readString(); + self.success[_key730] = _val731 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17886,9 +18125,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 kiter725,viter726 in self.success.items(): - oprot.writeString(kiter725) - oprot.writeString(viter726) + for kiter732,viter733 in self.success.items(): + oprot.writeString(kiter732) + oprot.writeString(viter733) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17958,11 +18197,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype728, _vtype729, _size727 ) = iprot.readMapBegin() - for _i731 in xrange(_size727): - _key732 = iprot.readString(); - _val733 = iprot.readString(); - self.part_vals[_key732] = _val733 + (_ktype735, _vtype736, _size734 ) = iprot.readMapBegin() + for _i738 in xrange(_size734): + _key739 = iprot.readString(); + _val740 = iprot.readString(); + self.part_vals[_key739] = _val740 iprot.readMapEnd() else: iprot.skip(ftype) @@ -17992,9 +18231,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 kiter734,viter735 in self.part_vals.items(): - oprot.writeString(kiter734) - oprot.writeString(viter735) + for kiter741,viter742 in self.part_vals.items(): + oprot.writeString(kiter741) + oprot.writeString(viter742) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -18190,11 +18429,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype737, _vtype738, _size736 ) = iprot.readMapBegin() - for _i740 in xrange(_size736): - _key741 = iprot.readString(); - _val742 = iprot.readString(); - self.part_vals[_key741] = _val742 + (_ktype744, _vtype745, _size743 ) = iprot.readMapBegin() + for _i747 in xrange(_size743): + _key748 = iprot.readString(); + _val749 = iprot.readString(); + self.part_vals[_key748] = _val749 iprot.readMapEnd() else: iprot.skip(ftype) @@ -18224,9 +18463,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 kiter743,viter744 in self.part_vals.items(): - oprot.writeString(kiter743) - oprot.writeString(viter744) + for kiter750,viter751 in self.part_vals.items(): + oprot.writeString(kiter750) + oprot.writeString(viter751) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -19198,11 +19437,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype748, _size745) = iprot.readListBegin() - for _i749 in xrange(_size745): - _elem750 = Index() - _elem750.read(iprot) - self.success.append(_elem750) + (_etype755, _size752) = iprot.readListBegin() + for _i756 in xrange(_size752): + _elem757 = Index() + _elem757.read(iprot) + self.success.append(_elem757) iprot.readListEnd() else: iprot.skip(ftype) @@ -19231,8 +19470,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter751 in self.success: - iter751.write(oprot) + for iter758 in self.success: + iter758.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19373,10 +19612,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype755, _size752) = iprot.readListBegin() - for _i756 in xrange(_size752): - _elem757 = iprot.readString(); - self.success.append(_elem757) + (_etype762, _size759) = iprot.readListBegin() + for _i763 in xrange(_size759): + _elem764 = iprot.readString(); + self.success.append(_elem764) iprot.readListEnd() else: iprot.skip(ftype) @@ -19399,8 +19638,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 iter758 in self.success: - oprot.writeString(iter758) + for iter765 in self.success: + oprot.writeString(iter765) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -21754,10 +21993,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype762, _size759) = iprot.readListBegin() - for _i763 in xrange(_size759): - _elem764 = iprot.readString(); - self.success.append(_elem764) + (_etype769, _size766) = iprot.readListBegin() + for _i770 in xrange(_size766): + _elem771 = iprot.readString(); + self.success.append(_elem771) iprot.readListEnd() else: iprot.skip(ftype) @@ -21780,8 +22019,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 iter765 in self.success: - oprot.writeString(iter765) + for iter772 in self.success: + oprot.writeString(iter772) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22299,10 +22538,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype769, _size766) = iprot.readListBegin() - for _i770 in xrange(_size766): - _elem771 = iprot.readString(); - self.success.append(_elem771) + (_etype776, _size773) = iprot.readListBegin() + for _i777 in xrange(_size773): + _elem778 = iprot.readString(); + self.success.append(_elem778) iprot.readListEnd() else: iprot.skip(ftype) @@ -22325,8 +22564,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 iter772 in self.success: - oprot.writeString(iter772) + for iter779 in self.success: + oprot.writeString(iter779) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22799,11 +23038,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype776, _size773) = iprot.readListBegin() - for _i777 in xrange(_size773): - _elem778 = Role() - _elem778.read(iprot) - self.success.append(_elem778) + (_etype783, _size780) = iprot.readListBegin() + for _i784 in xrange(_size780): + _elem785 = Role() + _elem785.read(iprot) + self.success.append(_elem785) iprot.readListEnd() else: iprot.skip(ftype) @@ -22826,8 +23065,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 iter779 in self.success: - iter779.write(oprot) + for iter786 in self.success: + iter786.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23297,10 +23536,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype783, _size780) = iprot.readListBegin() - for _i784 in xrange(_size780): - _elem785 = iprot.readString(); - self.group_names.append(_elem785) + (_etype790, _size787) = iprot.readListBegin() + for _i791 in xrange(_size787): + _elem792 = iprot.readString(); + self.group_names.append(_elem792) iprot.readListEnd() else: iprot.skip(ftype) @@ -23325,8 +23564,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 iter786 in self.group_names: - oprot.writeString(iter786) + for iter793 in self.group_names: + oprot.writeString(iter793) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23533,11 +23772,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype790, _size787) = iprot.readListBegin() - for _i791 in xrange(_size787): - _elem792 = HiveObjectPrivilege() - _elem792.read(iprot) - self.success.append(_elem792) + (_etype797, _size794) = iprot.readListBegin() + for _i798 in xrange(_size794): + _elem799 = HiveObjectPrivilege() + _elem799.read(iprot) + self.success.append(_elem799) iprot.readListEnd() else: iprot.skip(ftype) @@ -23560,8 +23799,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter793 in self.success: - iter793.write(oprot) + for iter800 in self.success: + iter800.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24020,10 +24259,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype797, _size794) = iprot.readListBegin() - for _i798 in xrange(_size794): - _elem799 = iprot.readString(); - self.group_names.append(_elem799) + (_etype804, _size801) = iprot.readListBegin() + for _i805 in xrange(_size801): + _elem806 = iprot.readString(); + self.group_names.append(_elem806) iprot.readListEnd() else: iprot.skip(ftype) @@ -24044,8 +24283,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 iter800 in self.group_names: - oprot.writeString(iter800) + for iter807 in self.group_names: + oprot.writeString(iter807) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -24094,10 +24333,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype804, _size801) = iprot.readListBegin() - for _i805 in xrange(_size801): - _elem806 = iprot.readString(); - self.success.append(_elem806) + (_etype811, _size808) = iprot.readListBegin() + for _i812 in xrange(_size808): + _elem813 = iprot.readString(); + self.success.append(_elem813) iprot.readListEnd() else: iprot.skip(ftype) @@ -24120,8 +24359,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 iter807 in self.success: - oprot.writeString(iter807) + for iter814 in self.success: + oprot.writeString(iter814) 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 e6ef08a..6979b4a 100644 --- metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -831,6 +831,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() @@ -2634,6 +2650,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() @@ -5374,6 +5401,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 8404d03..97276ae 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -3070,6 +3070,31 @@ private static boolean is_partition_spec_grouping_enabled(Table table) { } @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/MetaStoreUtils.java metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java index 2db2658..262ea8c 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java @@ -406,15 +406,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; @@ -803,26 +800,22 @@ 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); } - 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()); + public static Properties getPartitionMetadata(Partition partition, String location, Table table) { + return MetaStoreUtils.getSchema(partition.getSd(), location, partition.getParameters(), table); } - 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()); + public static Properties getPartSchemaFromTableSchema(Partition partition, String location, Properties tblSchema) { + return MetaStoreUtils.getPartSchemaFromTableSchema( + partition.getSd(), location, partition.getParameters(), tblSchema); } /** @@ -834,21 +827,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. @@ -885,9 +870,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 @@ -936,11 +922,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) { @@ -961,12 +944,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 @@ -991,7 +975,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(":"); @@ -1014,14 +998,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 9f63168..69d00b8 100755 --- metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java @@ -409,6 +409,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 738fd49..d68f2c8 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java @@ -1198,6 +1198,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); @@ -3310,6 +3313,9 @@ private int alterTable(Hive db, AlterTableDesc alterTbl) throws HiveException { List allPartitions = null; if (alterTbl.getPartSpec() != null) { + if (tbl.isFullManaged()) { + throw new HiveException("Alter is not supported for fully manged table"); + } Map partSpec = alterTbl.getPartSpec(); if (DDLSemanticAnalyzer.isFullSpec(tbl, partSpec)) { allPartitions = new ArrayList(); 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 0ccab02..1c2c390 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/FetchOperator.java @@ -575,7 +575,8 @@ private StructObjectInspector setupOutputObjectInspector() 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() || !needConversion(tableDesc, listParts)) { + if (listParts == null || listParts.isEmpty() || work.isFullManaged() || + !needConversion(tableDesc, listParts)) { return getPartitionedRowOI(tableOI); } convertedOI = (StructObjectInspector) ObjectInspectorConverters.getConvertedOI( 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 ed03bb9..54cce66 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java @@ -1151,7 +1151,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 bafaff8..1317263 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/Partition.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/Partition.java @@ -32,6 +32,7 @@ import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; +import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.metastore.MetaStoreUtils; import org.apache.hadoop.hive.metastore.ProtectMode; import org.apache.hadoop.hive.metastore.Warehouse; @@ -64,6 +65,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. @@ -71,6 +73,7 @@ private Deserializer deserializer; private Class outputFormatClass; private Class inputFormatClass; + private Path location; /** * @return The values of the partition @@ -180,32 +183,29 @@ protected void initialize(Table table, this.table = table; this.tPartition = tPartition; + this.fullManaged = table.isFullManaged(); - if (table.isView()) { + if (!isActivePartition()) { return; } - if (table.isPartitioned()) { - try { - String 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(), 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); + tPartition.getSd().setLocation(partPath.toString()); } - } catch (MetaException e) { - throw new HiveException("Invalid partition for table " + table.getTableName(), - e); } + // set default if columns are not set + if (tPartition.getSd().getCols() == null && table.getCols() != null) { + tPartition.getSd().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 @@ -226,8 +226,8 @@ 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 getPartitionPath() { @@ -235,45 +235,54 @@ public Path getPartitionPath() { } 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 MetaStoreUtils.getPartitionMetadata(tPartition, getLocation(), table.getTTable()); } public Properties getSchemaFromTableSchema(Properties tblSchema) { - return MetaStoreUtils.getPartSchemaFromTableSchema(tPartition.getSd(), table.getTTable().getSd(), - tPartition.getParameters(), table.getDbName(), table.getTableName(), table.getPartitionKeys(), - tblSchema); + return MetaStoreUtils.getPartSchemaFromTableSchema(tPartition, getLocation(), tblSchema); } /** * @param inputFormatClass */ public void setInputFormatClass(Class inputFormatClass) { + if (!isActivePartition()) { + throw new IllegalStateException("setInputFormatClass"); + } this.inputFormatClass = inputFormatClass; tPartition.getSd().setInputFormat(inputFormatClass.getName()); } @@ -282,6 +291,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).toString()); @@ -289,9 +301,11 @@ public void setOutputFormatClass(Class outputFormatC final public Class getInputFormatClass() throws HiveException { + if (!isActivePartition()) { + return table.getInputFormatClass(); + } if (inputFormatClass == null) { - // sd can be null for views - String clsName = tPartition.getSd() == null ? null : tPartition.getSd().getInputFormat(); + String clsName = getActiveSd().getInputFormat(); if (clsName == null) { return inputFormatClass = table.getInputFormatClass(); } @@ -307,9 +321,11 @@ public void setOutputFormatClass(Class outputFormatC final public Class getOutputFormatClass() throws HiveException { + if (!isActivePartition()) { + return table.getOutputFormatClass(); + } if (outputFormatClass == null) { - // sd can be null for views - String clsName = tPartition.getSd() == null ? null : tPartition.getSd().getOutputFormat(); + String clsName = getActiveSd().getOutputFormat(); if (clsName == null) { return outputFormatClass = table.getOutputFormatClass(); } @@ -325,7 +341,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 @@ -342,16 +358,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() { @@ -363,11 +393,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 + "/*"; } @@ -399,51 +433,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); } @@ -479,23 +468,15 @@ 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 (Table.hasMetastoreBasedSchema(Hive.get().getConf(), tPartition.getSd())) { - return tPartition.getSd().getCols(); + return activeSD.getCols(); } return Hive.getFieldsFromDeserializer(table.getTableName(), getDeserializer()); } catch (HiveException e) { @@ -507,14 +488,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); } @@ -544,6 +525,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) { @@ -558,6 +542,9 @@ public void setProtectMode(ProtectMode protectMode){ * @return protect mode */ public ProtectMode getProtectMode(){ + if (!isActivePartition()) { + return table.getProtectMode(); + } return MetaStoreUtils.getProtectMode(tPartition); } @@ -566,11 +553,7 @@ public ProtectMode getProtectMode(){ */ public boolean isOffline(){ ProtectMode pm = getProtectMode(); - if (pm == null) { - return false; - } else { - return pm.offline; - } + return pm != null && pm.offline; } /** @@ -606,24 +589,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 @@ -631,7 +617,7 @@ public void setSkewedValueLocationMap(List valList, String dirName) } public Map, String> getSkewedColValueLocationMaps() { - return tPartition.getSd().getSkewedInfo().getSkewedColValueLocationMaps(); + return getActiveSd().getSkewedInfo().getSkewedColValueLocationMaps(); } public void checkValidity() throws HiveException { 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 35d60f8..58fab34 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/Table.java @@ -873,6 +873,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/ppr/PartExprEvalUtils.java ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartExprEvalUtils.java index dc5d2df..0b302a6 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 @@ -56,7 +56,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 4b2a81a..882c616 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 @@ -253,6 +253,48 @@ static private boolean isFalseExpr(ExprNodeDesc expr) { ((ExprNodeConstantDesc)expr).getValue().equals(Boolean.FALSE); } + 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 @@ -395,14 +437,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. @@ -413,7 +447,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); @@ -430,7 +464,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 ef5a655..4e62179 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/FetchWork.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/FetchWork.java @@ -119,6 +119,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 0e34aee..c13839d 100644 --- ql/src/java/org/apache/hadoop/hive/ql/plan/TableDesc.java +++ ql/src/java/org/apache/hadoop/hive/ql/plan/TableDesc.java @@ -163,6 +163,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();