diff --git a/common/src/java/org/apache/hadoop/hive/common/FileUtils.java b/common/src/java/org/apache/hadoop/hive/common/FileUtils.java index 9a0521c..5549acc 100644 --- a/common/src/java/org/apache/hadoop/hive/common/FileUtils.java +++ b/common/src/java/org/apache/hadoop/hive/common/FileUtils.java @@ -550,6 +550,18 @@ public static boolean mkdir(FileSystem fs, Path f, boolean inheritPerms, Configu } } + public static boolean isDir(FileSystem fs, Path f) throws IOException { + try { + FileStatus fstatus = fs.getFileStatus(f); + if (!fstatus.isDir()) { + return false; + } + } catch (FileNotFoundException e) { + return false; + } + return true; + } + public static Path makeAbsolute(FileSystem fileSystem, Path path) throws IOException { if (path.isAbsolute()) { return path; diff --git a/itests/src/test/resources/testconfiguration.properties b/itests/src/test/resources/testconfiguration.properties index 3c98a57..2b08154 100644 --- a/itests/src/test/resources/testconfiguration.properties +++ b/itests/src/test/resources/testconfiguration.properties @@ -741,7 +741,9 @@ encrypted.query.files=encryption_join_unencrypted_tbl.q,\ encryption_drop_view.q \ encryption_drop_partition.q \ encryption_with_trash.q \ - encryption_ctas.q + encryption_ctas.q \ + encryption_exchange_partition.q \ + beeline.positive.include=drop_with_concurrency.q,\ escape_comments.q diff --git a/metastore/if/hive_metastore.thrift b/metastore/if/hive_metastore.thrift index d056498..3a29056 100755 --- a/metastore/if/hive_metastore.thrift +++ b/metastore/if/hive_metastore.thrift @@ -1183,6 +1183,11 @@ service ThriftHiveMetastore extends fb303.FacebookService throws(1:MetaException o1, 2:NoSuchObjectException o2, 3:InvalidObjectException o3, 4:InvalidInputException o4) + list exchange_partitions_metadata(1:map partitionSpecs, 2:string source_db, + 3:string source_table_name, 4:string dest_db, 5:string dest_table_name) + throws(1:MetaException o1, 2:NoSuchObjectException o2, 3:InvalidObjectException o3, + 4:InvalidInputException o4) + Partition get_partition_with_auth(1:string db_name, 2:string tbl_name, 3:list part_vals, 4: string user_name, 5: list group_names) throws(1:MetaException o1, 2:NoSuchObjectException o2) diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 42de24e..c441986 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -14008,6 +14008,402 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: } +ThriftHiveMetastore_exchange_partitions_metadata_args::~ThriftHiveMetastore_exchange_partitions_metadata_args() throw() { +} + + +uint32_t ThriftHiveMetastore_exchange_partitions_metadata_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->partitionSpecs.clear(); + uint32_t _size1071; + ::apache::thrift::protocol::TType _ktype1072; + ::apache::thrift::protocol::TType _vtype1073; + xfer += iprot->readMapBegin(_ktype1072, _vtype1073, _size1071); + uint32_t _i1075; + for (_i1075 = 0; _i1075 < _size1071; ++_i1075) + { + std::string _key1076; + xfer += iprot->readString(_key1076); + std::string& _val1077 = this->partitionSpecs[_key1076]; + xfer += iprot->readString(_val1077); + } + xfer += iprot->readMapEnd(); + } + this->__isset.partitionSpecs = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->source_db); + this->__isset.source_db = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->source_table_name); + this->__isset.source_table_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dest_db); + this->__isset.dest_db = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dest_table_name); + this->__isset.dest_table_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_exchange_partitions_metadata_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_exchange_partitions_metadata_args"); + + xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->partitionSpecs.size())); + std::map ::const_iterator _iter1078; + for (_iter1078 = this->partitionSpecs.begin(); _iter1078 != this->partitionSpecs.end(); ++_iter1078) + { + xfer += oprot->writeString(_iter1078->first); + xfer += oprot->writeString(_iter1078->second); + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("source_db", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->source_db); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("source_table_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->source_table_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("dest_db", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->dest_db); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("dest_table_name", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->dest_table_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_exchange_partitions_metadata_pargs::~ThriftHiveMetastore_exchange_partitions_metadata_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_exchange_partitions_metadata_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_exchange_partitions_metadata_pargs"); + + xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->partitionSpecs)).size())); + std::map ::const_iterator _iter1079; + for (_iter1079 = (*(this->partitionSpecs)).begin(); _iter1079 != (*(this->partitionSpecs)).end(); ++_iter1079) + { + xfer += oprot->writeString(_iter1079->first); + xfer += oprot->writeString(_iter1079->second); + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("source_db", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->source_db))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("source_table_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->source_table_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("dest_db", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString((*(this->dest_db))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("dest_table_name", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString((*(this->dest_table_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_exchange_partitions_metadata_result::~ThriftHiveMetastore_exchange_partitions_metadata_result() throw() { +} + + +uint32_t ThriftHiveMetastore_exchange_partitions_metadata_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size1080; + ::apache::thrift::protocol::TType _etype1083; + xfer += iprot->readListBegin(_etype1083, _size1080); + this->success.resize(_size1080); + uint32_t _i1084; + for (_i1084 = 0; _i1084 < _size1080; ++_i1084) + { + xfer += this->success[_i1084].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o4.read(iprot); + this->__isset.o4 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_exchange_partitions_metadata_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_exchange_partitions_metadata_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector ::const_iterator _iter1085; + for (_iter1085 = this->success.begin(); _iter1085 != this->success.end(); ++_iter1085) + { + xfer += (*_iter1085).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o3) { + xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->o3.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o4) { + xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->o4.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_exchange_partitions_metadata_presult::~ThriftHiveMetastore_exchange_partitions_metadata_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_exchange_partitions_metadata_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size1086; + ::apache::thrift::protocol::TType _etype1089; + xfer += iprot->readListBegin(_etype1089, _size1086); + (*(this->success)).resize(_size1086); + uint32_t _i1090; + for (_i1090 = 0; _i1090 < _size1086; ++_i1090) + { + xfer += (*(this->success))[_i1090].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o4.read(iprot); + this->__isset.o4 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + ThriftHiveMetastore_get_partition_with_auth_args::~ThriftHiveMetastore_get_partition_with_auth_args() throw() { } @@ -14053,14 +14449,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1071; - ::apache::thrift::protocol::TType _etype1074; - xfer += iprot->readListBegin(_etype1074, _size1071); - this->part_vals.resize(_size1071); - uint32_t _i1075; - for (_i1075 = 0; _i1075 < _size1071; ++_i1075) + uint32_t _size1091; + ::apache::thrift::protocol::TType _etype1094; + xfer += iprot->readListBegin(_etype1094, _size1091); + this->part_vals.resize(_size1091); + uint32_t _i1095; + for (_i1095 = 0; _i1095 < _size1091; ++_i1095) { - xfer += iprot->readString(this->part_vals[_i1075]); + xfer += iprot->readString(this->part_vals[_i1095]); } xfer += iprot->readListEnd(); } @@ -14081,14 +14477,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1076; - ::apache::thrift::protocol::TType _etype1079; - xfer += iprot->readListBegin(_etype1079, _size1076); - this->group_names.resize(_size1076); - uint32_t _i1080; - for (_i1080 = 0; _i1080 < _size1076; ++_i1080) + uint32_t _size1096; + ::apache::thrift::protocol::TType _etype1099; + xfer += iprot->readListBegin(_etype1099, _size1096); + this->group_names.resize(_size1096); + uint32_t _i1100; + for (_i1100 = 0; _i1100 < _size1096; ++_i1100) { - xfer += iprot->readString(this->group_names[_i1080]); + xfer += iprot->readString(this->group_names[_i1100]); } xfer += iprot->readListEnd(); } @@ -14125,10 +14521,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1081; - for (_iter1081 = this->part_vals.begin(); _iter1081 != this->part_vals.end(); ++_iter1081) + std::vector ::const_iterator _iter1101; + for (_iter1101 = this->part_vals.begin(); _iter1101 != this->part_vals.end(); ++_iter1101) { - xfer += oprot->writeString((*_iter1081)); + xfer += oprot->writeString((*_iter1101)); } xfer += oprot->writeListEnd(); } @@ -14141,10 +14537,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1082; - for (_iter1082 = this->group_names.begin(); _iter1082 != this->group_names.end(); ++_iter1082) + std::vector ::const_iterator _iter1102; + for (_iter1102 = this->group_names.begin(); _iter1102 != this->group_names.end(); ++_iter1102) { - xfer += oprot->writeString((*_iter1082)); + xfer += oprot->writeString((*_iter1102)); } xfer += oprot->writeListEnd(); } @@ -14176,10 +14572,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1083; - for (_iter1083 = (*(this->part_vals)).begin(); _iter1083 != (*(this->part_vals)).end(); ++_iter1083) + std::vector ::const_iterator _iter1103; + for (_iter1103 = (*(this->part_vals)).begin(); _iter1103 != (*(this->part_vals)).end(); ++_iter1103) { - xfer += oprot->writeString((*_iter1083)); + xfer += oprot->writeString((*_iter1103)); } xfer += oprot->writeListEnd(); } @@ -14192,10 +14588,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1084; - for (_iter1084 = (*(this->group_names)).begin(); _iter1084 != (*(this->group_names)).end(); ++_iter1084) + std::vector ::const_iterator _iter1104; + for (_iter1104 = (*(this->group_names)).begin(); _iter1104 != (*(this->group_names)).end(); ++_iter1104) { - xfer += oprot->writeString((*_iter1084)); + xfer += oprot->writeString((*_iter1104)); } xfer += oprot->writeListEnd(); } @@ -14754,14 +15150,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1085; - ::apache::thrift::protocol::TType _etype1088; - xfer += iprot->readListBegin(_etype1088, _size1085); - this->success.resize(_size1085); - uint32_t _i1089; - for (_i1089 = 0; _i1089 < _size1085; ++_i1089) + uint32_t _size1105; + ::apache::thrift::protocol::TType _etype1108; + xfer += iprot->readListBegin(_etype1108, _size1105); + this->success.resize(_size1105); + uint32_t _i1109; + for (_i1109 = 0; _i1109 < _size1105; ++_i1109) { - xfer += this->success[_i1089].read(iprot); + xfer += this->success[_i1109].read(iprot); } xfer += iprot->readListEnd(); } @@ -14808,10 +15204,10 @@ uint32_t ThriftHiveMetastore_get_partitions_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1090; - for (_iter1090 = this->success.begin(); _iter1090 != this->success.end(); ++_iter1090) + std::vector ::const_iterator _iter1110; + for (_iter1110 = this->success.begin(); _iter1110 != this->success.end(); ++_iter1110) { - xfer += (*_iter1090).write(oprot); + xfer += (*_iter1110).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14860,14 +15256,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1091; - ::apache::thrift::protocol::TType _etype1094; - xfer += iprot->readListBegin(_etype1094, _size1091); - (*(this->success)).resize(_size1091); - uint32_t _i1095; - for (_i1095 = 0; _i1095 < _size1091; ++_i1095) + uint32_t _size1111; + ::apache::thrift::protocol::TType _etype1114; + xfer += iprot->readListBegin(_etype1114, _size1111); + (*(this->success)).resize(_size1111); + uint32_t _i1115; + for (_i1115 = 0; _i1115 < _size1111; ++_i1115) { - xfer += (*(this->success))[_i1095].read(iprot); + xfer += (*(this->success))[_i1115].read(iprot); } xfer += iprot->readListEnd(); } @@ -14966,14 +15362,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size1096; - ::apache::thrift::protocol::TType _etype1099; - xfer += iprot->readListBegin(_etype1099, _size1096); - this->group_names.resize(_size1096); - uint32_t _i1100; - for (_i1100 = 0; _i1100 < _size1096; ++_i1100) + uint32_t _size1116; + ::apache::thrift::protocol::TType _etype1119; + xfer += iprot->readListBegin(_etype1119, _size1116); + this->group_names.resize(_size1116); + uint32_t _i1120; + for (_i1120 = 0; _i1120 < _size1116; ++_i1120) { - xfer += iprot->readString(this->group_names[_i1100]); + xfer += iprot->readString(this->group_names[_i1120]); } xfer += iprot->readListEnd(); } @@ -15018,10 +15414,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter1101; - for (_iter1101 = this->group_names.begin(); _iter1101 != this->group_names.end(); ++_iter1101) + std::vector ::const_iterator _iter1121; + for (_iter1121 = this->group_names.begin(); _iter1121 != this->group_names.end(); ++_iter1121) { - xfer += oprot->writeString((*_iter1101)); + xfer += oprot->writeString((*_iter1121)); } xfer += oprot->writeListEnd(); } @@ -15061,10 +15457,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter1102; - for (_iter1102 = (*(this->group_names)).begin(); _iter1102 != (*(this->group_names)).end(); ++_iter1102) + std::vector ::const_iterator _iter1122; + for (_iter1122 = (*(this->group_names)).begin(); _iter1122 != (*(this->group_names)).end(); ++_iter1122) { - xfer += oprot->writeString((*_iter1102)); + xfer += oprot->writeString((*_iter1122)); } xfer += oprot->writeListEnd(); } @@ -15105,14 +15501,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1103; - ::apache::thrift::protocol::TType _etype1106; - xfer += iprot->readListBegin(_etype1106, _size1103); - this->success.resize(_size1103); - uint32_t _i1107; - for (_i1107 = 0; _i1107 < _size1103; ++_i1107) + uint32_t _size1123; + ::apache::thrift::protocol::TType _etype1126; + xfer += iprot->readListBegin(_etype1126, _size1123); + this->success.resize(_size1123); + uint32_t _i1127; + for (_i1127 = 0; _i1127 < _size1123; ++_i1127) { - xfer += this->success[_i1107].read(iprot); + xfer += this->success[_i1127].read(iprot); } xfer += iprot->readListEnd(); } @@ -15159,10 +15555,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1108; - for (_iter1108 = this->success.begin(); _iter1108 != this->success.end(); ++_iter1108) + std::vector ::const_iterator _iter1128; + for (_iter1128 = this->success.begin(); _iter1128 != this->success.end(); ++_iter1128) { - xfer += (*_iter1108).write(oprot); + xfer += (*_iter1128).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15211,14 +15607,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1109; - ::apache::thrift::protocol::TType _etype1112; - xfer += iprot->readListBegin(_etype1112, _size1109); - (*(this->success)).resize(_size1109); - uint32_t _i1113; - for (_i1113 = 0; _i1113 < _size1109; ++_i1113) + uint32_t _size1129; + ::apache::thrift::protocol::TType _etype1132; + xfer += iprot->readListBegin(_etype1132, _size1129); + (*(this->success)).resize(_size1129); + uint32_t _i1133; + for (_i1133 = 0; _i1133 < _size1129; ++_i1133) { - xfer += (*(this->success))[_i1113].read(iprot); + xfer += (*(this->success))[_i1133].read(iprot); } xfer += iprot->readListEnd(); } @@ -15396,14 +15792,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1114; - ::apache::thrift::protocol::TType _etype1117; - xfer += iprot->readListBegin(_etype1117, _size1114); - this->success.resize(_size1114); - uint32_t _i1118; - for (_i1118 = 0; _i1118 < _size1114; ++_i1118) + uint32_t _size1134; + ::apache::thrift::protocol::TType _etype1137; + xfer += iprot->readListBegin(_etype1137, _size1134); + this->success.resize(_size1134); + uint32_t _i1138; + for (_i1138 = 0; _i1138 < _size1134; ++_i1138) { - xfer += this->success[_i1118].read(iprot); + xfer += this->success[_i1138].read(iprot); } xfer += iprot->readListEnd(); } @@ -15450,10 +15846,10 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::write(::apache::thrift xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1119; - for (_iter1119 = this->success.begin(); _iter1119 != this->success.end(); ++_iter1119) + std::vector ::const_iterator _iter1139; + for (_iter1139 = this->success.begin(); _iter1139 != this->success.end(); ++_iter1139) { - xfer += (*_iter1119).write(oprot); + xfer += (*_iter1139).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15502,14 +15898,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1120; - ::apache::thrift::protocol::TType _etype1123; - xfer += iprot->readListBegin(_etype1123, _size1120); - (*(this->success)).resize(_size1120); - uint32_t _i1124; - for (_i1124 = 0; _i1124 < _size1120; ++_i1124) + uint32_t _size1140; + ::apache::thrift::protocol::TType _etype1143; + xfer += iprot->readListBegin(_etype1143, _size1140); + (*(this->success)).resize(_size1140); + uint32_t _i1144; + for (_i1144 = 0; _i1144 < _size1140; ++_i1144) { - xfer += (*(this->success))[_i1124].read(iprot); + xfer += (*(this->success))[_i1144].read(iprot); } xfer += iprot->readListEnd(); } @@ -15687,14 +16083,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1125; - ::apache::thrift::protocol::TType _etype1128; - xfer += iprot->readListBegin(_etype1128, _size1125); - this->success.resize(_size1125); - uint32_t _i1129; - for (_i1129 = 0; _i1129 < _size1125; ++_i1129) + uint32_t _size1145; + ::apache::thrift::protocol::TType _etype1148; + xfer += iprot->readListBegin(_etype1148, _size1145); + this->success.resize(_size1145); + uint32_t _i1149; + for (_i1149 = 0; _i1149 < _size1145; ++_i1149) { - xfer += iprot->readString(this->success[_i1129]); + xfer += iprot->readString(this->success[_i1149]); } xfer += iprot->readListEnd(); } @@ -15733,10 +16129,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::write(::apache::thrift: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1130; - for (_iter1130 = this->success.begin(); _iter1130 != this->success.end(); ++_iter1130) + std::vector ::const_iterator _iter1150; + for (_iter1150 = this->success.begin(); _iter1150 != this->success.end(); ++_iter1150) { - xfer += oprot->writeString((*_iter1130)); + xfer += oprot->writeString((*_iter1150)); } xfer += oprot->writeListEnd(); } @@ -15781,14 +16177,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1131; - ::apache::thrift::protocol::TType _etype1134; - xfer += iprot->readListBegin(_etype1134, _size1131); - (*(this->success)).resize(_size1131); - uint32_t _i1135; - for (_i1135 = 0; _i1135 < _size1131; ++_i1135) + uint32_t _size1151; + ::apache::thrift::protocol::TType _etype1154; + xfer += iprot->readListBegin(_etype1154, _size1151); + (*(this->success)).resize(_size1151); + uint32_t _i1155; + for (_i1155 = 0; _i1155 < _size1151; ++_i1155) { - xfer += iprot->readString((*(this->success))[_i1135]); + xfer += iprot->readString((*(this->success))[_i1155]); } xfer += iprot->readListEnd(); } @@ -15863,14 +16259,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1136; - ::apache::thrift::protocol::TType _etype1139; - xfer += iprot->readListBegin(_etype1139, _size1136); - this->part_vals.resize(_size1136); - uint32_t _i1140; - for (_i1140 = 0; _i1140 < _size1136; ++_i1140) + uint32_t _size1156; + ::apache::thrift::protocol::TType _etype1159; + xfer += iprot->readListBegin(_etype1159, _size1156); + this->part_vals.resize(_size1156); + uint32_t _i1160; + for (_i1160 = 0; _i1160 < _size1156; ++_i1160) { - xfer += iprot->readString(this->part_vals[_i1140]); + xfer += iprot->readString(this->part_vals[_i1160]); } xfer += iprot->readListEnd(); } @@ -15915,10 +16311,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 _iter1141; - for (_iter1141 = this->part_vals.begin(); _iter1141 != this->part_vals.end(); ++_iter1141) + std::vector ::const_iterator _iter1161; + for (_iter1161 = this->part_vals.begin(); _iter1161 != this->part_vals.end(); ++_iter1161) { - xfer += oprot->writeString((*_iter1141)); + xfer += oprot->writeString((*_iter1161)); } xfer += oprot->writeListEnd(); } @@ -15954,10 +16350,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 _iter1142; - for (_iter1142 = (*(this->part_vals)).begin(); _iter1142 != (*(this->part_vals)).end(); ++_iter1142) + std::vector ::const_iterator _iter1162; + for (_iter1162 = (*(this->part_vals)).begin(); _iter1162 != (*(this->part_vals)).end(); ++_iter1162) { - xfer += oprot->writeString((*_iter1142)); + xfer += oprot->writeString((*_iter1162)); } xfer += oprot->writeListEnd(); } @@ -16002,14 +16398,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1143; - ::apache::thrift::protocol::TType _etype1146; - xfer += iprot->readListBegin(_etype1146, _size1143); - this->success.resize(_size1143); - uint32_t _i1147; - for (_i1147 = 0; _i1147 < _size1143; ++_i1147) + uint32_t _size1163; + ::apache::thrift::protocol::TType _etype1166; + xfer += iprot->readListBegin(_etype1166, _size1163); + this->success.resize(_size1163); + uint32_t _i1167; + for (_i1167 = 0; _i1167 < _size1163; ++_i1167) { - xfer += this->success[_i1147].read(iprot); + xfer += this->success[_i1167].read(iprot); } xfer += iprot->readListEnd(); } @@ -16056,10 +16452,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 _iter1148; - for (_iter1148 = this->success.begin(); _iter1148 != this->success.end(); ++_iter1148) + std::vector ::const_iterator _iter1168; + for (_iter1168 = this->success.begin(); _iter1168 != this->success.end(); ++_iter1168) { - xfer += (*_iter1148).write(oprot); + xfer += (*_iter1168).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16108,14 +16504,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1149; - ::apache::thrift::protocol::TType _etype1152; - xfer += iprot->readListBegin(_etype1152, _size1149); - (*(this->success)).resize(_size1149); - uint32_t _i1153; - for (_i1153 = 0; _i1153 < _size1149; ++_i1153) + uint32_t _size1169; + ::apache::thrift::protocol::TType _etype1172; + xfer += iprot->readListBegin(_etype1172, _size1169); + (*(this->success)).resize(_size1169); + uint32_t _i1173; + for (_i1173 = 0; _i1173 < _size1169; ++_i1173) { - xfer += (*(this->success))[_i1153].read(iprot); + xfer += (*(this->success))[_i1173].read(iprot); } xfer += iprot->readListEnd(); } @@ -16198,14 +16594,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 _size1154; - ::apache::thrift::protocol::TType _etype1157; - xfer += iprot->readListBegin(_etype1157, _size1154); - this->part_vals.resize(_size1154); - uint32_t _i1158; - for (_i1158 = 0; _i1158 < _size1154; ++_i1158) + uint32_t _size1174; + ::apache::thrift::protocol::TType _etype1177; + xfer += iprot->readListBegin(_etype1177, _size1174); + this->part_vals.resize(_size1174); + uint32_t _i1178; + for (_i1178 = 0; _i1178 < _size1174; ++_i1178) { - xfer += iprot->readString(this->part_vals[_i1158]); + xfer += iprot->readString(this->part_vals[_i1178]); } xfer += iprot->readListEnd(); } @@ -16234,14 +16630,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 _size1159; - ::apache::thrift::protocol::TType _etype1162; - xfer += iprot->readListBegin(_etype1162, _size1159); - this->group_names.resize(_size1159); - uint32_t _i1163; - for (_i1163 = 0; _i1163 < _size1159; ++_i1163) + uint32_t _size1179; + ::apache::thrift::protocol::TType _etype1182; + xfer += iprot->readListBegin(_etype1182, _size1179); + this->group_names.resize(_size1179); + uint32_t _i1183; + for (_i1183 = 0; _i1183 < _size1179; ++_i1183) { - xfer += iprot->readString(this->group_names[_i1163]); + xfer += iprot->readString(this->group_names[_i1183]); } xfer += iprot->readListEnd(); } @@ -16278,10 +16674,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 _iter1164; - for (_iter1164 = this->part_vals.begin(); _iter1164 != this->part_vals.end(); ++_iter1164) + std::vector ::const_iterator _iter1184; + for (_iter1184 = this->part_vals.begin(); _iter1184 != this->part_vals.end(); ++_iter1184) { - xfer += oprot->writeString((*_iter1164)); + xfer += oprot->writeString((*_iter1184)); } xfer += oprot->writeListEnd(); } @@ -16298,10 +16694,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 _iter1165; - for (_iter1165 = this->group_names.begin(); _iter1165 != this->group_names.end(); ++_iter1165) + std::vector ::const_iterator _iter1185; + for (_iter1185 = this->group_names.begin(); _iter1185 != this->group_names.end(); ++_iter1185) { - xfer += oprot->writeString((*_iter1165)); + xfer += oprot->writeString((*_iter1185)); } xfer += oprot->writeListEnd(); } @@ -16333,10 +16729,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 _iter1166; - for (_iter1166 = (*(this->part_vals)).begin(); _iter1166 != (*(this->part_vals)).end(); ++_iter1166) + std::vector ::const_iterator _iter1186; + for (_iter1186 = (*(this->part_vals)).begin(); _iter1186 != (*(this->part_vals)).end(); ++_iter1186) { - xfer += oprot->writeString((*_iter1166)); + xfer += oprot->writeString((*_iter1186)); } xfer += oprot->writeListEnd(); } @@ -16353,10 +16749,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 _iter1167; - for (_iter1167 = (*(this->group_names)).begin(); _iter1167 != (*(this->group_names)).end(); ++_iter1167) + std::vector ::const_iterator _iter1187; + for (_iter1187 = (*(this->group_names)).begin(); _iter1187 != (*(this->group_names)).end(); ++_iter1187) { - xfer += oprot->writeString((*_iter1167)); + xfer += oprot->writeString((*_iter1187)); } xfer += oprot->writeListEnd(); } @@ -16397,14 +16793,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1168; - ::apache::thrift::protocol::TType _etype1171; - xfer += iprot->readListBegin(_etype1171, _size1168); - this->success.resize(_size1168); - uint32_t _i1172; - for (_i1172 = 0; _i1172 < _size1168; ++_i1172) + uint32_t _size1188; + ::apache::thrift::protocol::TType _etype1191; + xfer += iprot->readListBegin(_etype1191, _size1188); + this->success.resize(_size1188); + uint32_t _i1192; + for (_i1192 = 0; _i1192 < _size1188; ++_i1192) { - xfer += this->success[_i1172].read(iprot); + xfer += this->success[_i1192].read(iprot); } xfer += iprot->readListEnd(); } @@ -16451,10 +16847,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 _iter1173; - for (_iter1173 = this->success.begin(); _iter1173 != this->success.end(); ++_iter1173) + std::vector ::const_iterator _iter1193; + for (_iter1193 = this->success.begin(); _iter1193 != this->success.end(); ++_iter1193) { - xfer += (*_iter1173).write(oprot); + xfer += (*_iter1193).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16503,14 +16899,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1174; - ::apache::thrift::protocol::TType _etype1177; - xfer += iprot->readListBegin(_etype1177, _size1174); - (*(this->success)).resize(_size1174); - uint32_t _i1178; - for (_i1178 = 0; _i1178 < _size1174; ++_i1178) + uint32_t _size1194; + ::apache::thrift::protocol::TType _etype1197; + xfer += iprot->readListBegin(_etype1197, _size1194); + (*(this->success)).resize(_size1194); + uint32_t _i1198; + for (_i1198 = 0; _i1198 < _size1194; ++_i1198) { - xfer += (*(this->success))[_i1178].read(iprot); + xfer += (*(this->success))[_i1198].read(iprot); } xfer += iprot->readListEnd(); } @@ -16593,14 +16989,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 _size1179; - ::apache::thrift::protocol::TType _etype1182; - xfer += iprot->readListBegin(_etype1182, _size1179); - this->part_vals.resize(_size1179); - uint32_t _i1183; - for (_i1183 = 0; _i1183 < _size1179; ++_i1183) + uint32_t _size1199; + ::apache::thrift::protocol::TType _etype1202; + xfer += iprot->readListBegin(_etype1202, _size1199); + this->part_vals.resize(_size1199); + uint32_t _i1203; + for (_i1203 = 0; _i1203 < _size1199; ++_i1203) { - xfer += iprot->readString(this->part_vals[_i1183]); + xfer += iprot->readString(this->part_vals[_i1203]); } xfer += iprot->readListEnd(); } @@ -16645,10 +17041,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 _iter1184; - for (_iter1184 = this->part_vals.begin(); _iter1184 != this->part_vals.end(); ++_iter1184) + std::vector ::const_iterator _iter1204; + for (_iter1204 = this->part_vals.begin(); _iter1204 != this->part_vals.end(); ++_iter1204) { - xfer += oprot->writeString((*_iter1184)); + xfer += oprot->writeString((*_iter1204)); } xfer += oprot->writeListEnd(); } @@ -16684,10 +17080,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 _iter1185; - for (_iter1185 = (*(this->part_vals)).begin(); _iter1185 != (*(this->part_vals)).end(); ++_iter1185) + std::vector ::const_iterator _iter1205; + for (_iter1205 = (*(this->part_vals)).begin(); _iter1205 != (*(this->part_vals)).end(); ++_iter1205) { - xfer += oprot->writeString((*_iter1185)); + xfer += oprot->writeString((*_iter1205)); } xfer += oprot->writeListEnd(); } @@ -16732,14 +17128,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1186; - ::apache::thrift::protocol::TType _etype1189; - xfer += iprot->readListBegin(_etype1189, _size1186); - this->success.resize(_size1186); - uint32_t _i1190; - for (_i1190 = 0; _i1190 < _size1186; ++_i1190) + uint32_t _size1206; + ::apache::thrift::protocol::TType _etype1209; + xfer += iprot->readListBegin(_etype1209, _size1206); + this->success.resize(_size1206); + uint32_t _i1210; + for (_i1210 = 0; _i1210 < _size1206; ++_i1210) { - xfer += iprot->readString(this->success[_i1190]); + xfer += iprot->readString(this->success[_i1210]); } xfer += iprot->readListEnd(); } @@ -16786,10 +17182,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 _iter1191; - for (_iter1191 = this->success.begin(); _iter1191 != this->success.end(); ++_iter1191) + std::vector ::const_iterator _iter1211; + for (_iter1211 = this->success.begin(); _iter1211 != this->success.end(); ++_iter1211) { - xfer += oprot->writeString((*_iter1191)); + xfer += oprot->writeString((*_iter1211)); } xfer += oprot->writeListEnd(); } @@ -16838,14 +17234,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1192; - ::apache::thrift::protocol::TType _etype1195; - xfer += iprot->readListBegin(_etype1195, _size1192); - (*(this->success)).resize(_size1192); - uint32_t _i1196; - for (_i1196 = 0; _i1196 < _size1192; ++_i1196) + uint32_t _size1212; + ::apache::thrift::protocol::TType _etype1215; + xfer += iprot->readListBegin(_etype1215, _size1212); + (*(this->success)).resize(_size1212); + uint32_t _i1216; + for (_i1216 = 0; _i1216 < _size1212; ++_i1216) { - xfer += iprot->readString((*(this->success))[_i1196]); + xfer += iprot->readString((*(this->success))[_i1216]); } xfer += iprot->readListEnd(); } @@ -17039,14 +17435,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1197; - ::apache::thrift::protocol::TType _etype1200; - xfer += iprot->readListBegin(_etype1200, _size1197); - this->success.resize(_size1197); - uint32_t _i1201; - for (_i1201 = 0; _i1201 < _size1197; ++_i1201) + uint32_t _size1217; + ::apache::thrift::protocol::TType _etype1220; + xfer += iprot->readListBegin(_etype1220, _size1217); + this->success.resize(_size1217); + uint32_t _i1221; + for (_i1221 = 0; _i1221 < _size1217; ++_i1221) { - xfer += this->success[_i1201].read(iprot); + xfer += this->success[_i1221].read(iprot); } xfer += iprot->readListEnd(); } @@ -17093,10 +17489,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 _iter1202; - for (_iter1202 = this->success.begin(); _iter1202 != this->success.end(); ++_iter1202) + std::vector ::const_iterator _iter1222; + for (_iter1222 = this->success.begin(); _iter1222 != this->success.end(); ++_iter1222) { - xfer += (*_iter1202).write(oprot); + xfer += (*_iter1222).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17145,14 +17541,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1203; - ::apache::thrift::protocol::TType _etype1206; - xfer += iprot->readListBegin(_etype1206, _size1203); - (*(this->success)).resize(_size1203); - uint32_t _i1207; - for (_i1207 = 0; _i1207 < _size1203; ++_i1207) + uint32_t _size1223; + ::apache::thrift::protocol::TType _etype1226; + xfer += iprot->readListBegin(_etype1226, _size1223); + (*(this->success)).resize(_size1223); + uint32_t _i1227; + for (_i1227 = 0; _i1227 < _size1223; ++_i1227) { - xfer += (*(this->success))[_i1207].read(iprot); + xfer += (*(this->success))[_i1227].read(iprot); } xfer += iprot->readListEnd(); } @@ -17346,14 +17742,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1208; - ::apache::thrift::protocol::TType _etype1211; - xfer += iprot->readListBegin(_etype1211, _size1208); - this->success.resize(_size1208); - uint32_t _i1212; - for (_i1212 = 0; _i1212 < _size1208; ++_i1212) + uint32_t _size1228; + ::apache::thrift::protocol::TType _etype1231; + xfer += iprot->readListBegin(_etype1231, _size1228); + this->success.resize(_size1228); + uint32_t _i1232; + for (_i1232 = 0; _i1232 < _size1228; ++_i1232) { - xfer += this->success[_i1212].read(iprot); + xfer += this->success[_i1232].read(iprot); } xfer += iprot->readListEnd(); } @@ -17400,10 +17796,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 _iter1213; - for (_iter1213 = this->success.begin(); _iter1213 != this->success.end(); ++_iter1213) + std::vector ::const_iterator _iter1233; + for (_iter1233 = this->success.begin(); _iter1233 != this->success.end(); ++_iter1233) { - xfer += (*_iter1213).write(oprot); + xfer += (*_iter1233).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17452,14 +17848,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 _size1214; - ::apache::thrift::protocol::TType _etype1217; - xfer += iprot->readListBegin(_etype1217, _size1214); - (*(this->success)).resize(_size1214); - uint32_t _i1218; - for (_i1218 = 0; _i1218 < _size1214; ++_i1218) + uint32_t _size1234; + ::apache::thrift::protocol::TType _etype1237; + xfer += iprot->readListBegin(_etype1237, _size1234); + (*(this->success)).resize(_size1234); + uint32_t _i1238; + for (_i1238 = 0; _i1238 < _size1234; ++_i1238) { - xfer += (*(this->success))[_i1218].read(iprot); + xfer += (*(this->success))[_i1238].read(iprot); } xfer += iprot->readListEnd(); } @@ -18028,14 +18424,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size1219; - ::apache::thrift::protocol::TType _etype1222; - xfer += iprot->readListBegin(_etype1222, _size1219); - this->names.resize(_size1219); - uint32_t _i1223; - for (_i1223 = 0; _i1223 < _size1219; ++_i1223) + uint32_t _size1239; + ::apache::thrift::protocol::TType _etype1242; + xfer += iprot->readListBegin(_etype1242, _size1239); + this->names.resize(_size1239); + uint32_t _i1243; + for (_i1243 = 0; _i1243 < _size1239; ++_i1243) { - xfer += iprot->readString(this->names[_i1223]); + xfer += iprot->readString(this->names[_i1243]); } xfer += iprot->readListEnd(); } @@ -18072,10 +18468,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 _iter1224; - for (_iter1224 = this->names.begin(); _iter1224 != this->names.end(); ++_iter1224) + std::vector ::const_iterator _iter1244; + for (_iter1244 = this->names.begin(); _iter1244 != this->names.end(); ++_iter1244) { - xfer += oprot->writeString((*_iter1224)); + xfer += oprot->writeString((*_iter1244)); } xfer += oprot->writeListEnd(); } @@ -18107,10 +18503,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 _iter1225; - for (_iter1225 = (*(this->names)).begin(); _iter1225 != (*(this->names)).end(); ++_iter1225) + std::vector ::const_iterator _iter1245; + for (_iter1245 = (*(this->names)).begin(); _iter1245 != (*(this->names)).end(); ++_iter1245) { - xfer += oprot->writeString((*_iter1225)); + xfer += oprot->writeString((*_iter1245)); } xfer += oprot->writeListEnd(); } @@ -18151,14 +18547,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1226; - ::apache::thrift::protocol::TType _etype1229; - xfer += iprot->readListBegin(_etype1229, _size1226); - this->success.resize(_size1226); - uint32_t _i1230; - for (_i1230 = 0; _i1230 < _size1226; ++_i1230) + uint32_t _size1246; + ::apache::thrift::protocol::TType _etype1249; + xfer += iprot->readListBegin(_etype1249, _size1246); + this->success.resize(_size1246); + uint32_t _i1250; + for (_i1250 = 0; _i1250 < _size1246; ++_i1250) { - xfer += this->success[_i1230].read(iprot); + xfer += this->success[_i1250].read(iprot); } xfer += iprot->readListEnd(); } @@ -18205,10 +18601,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 _iter1231; - for (_iter1231 = this->success.begin(); _iter1231 != this->success.end(); ++_iter1231) + std::vector ::const_iterator _iter1251; + for (_iter1251 = this->success.begin(); _iter1251 != this->success.end(); ++_iter1251) { - xfer += (*_iter1231).write(oprot); + xfer += (*_iter1251).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18257,14 +18653,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1232; - ::apache::thrift::protocol::TType _etype1235; - xfer += iprot->readListBegin(_etype1235, _size1232); - (*(this->success)).resize(_size1232); - uint32_t _i1236; - for (_i1236 = 0; _i1236 < _size1232; ++_i1236) + uint32_t _size1252; + ::apache::thrift::protocol::TType _etype1255; + xfer += iprot->readListBegin(_etype1255, _size1252); + (*(this->success)).resize(_size1252); + uint32_t _i1256; + for (_i1256 = 0; _i1256 < _size1252; ++_i1256) { - xfer += (*(this->success))[_i1236].read(iprot); + xfer += (*(this->success))[_i1256].read(iprot); } xfer += iprot->readListEnd(); } @@ -18586,14 +18982,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1237; - ::apache::thrift::protocol::TType _etype1240; - xfer += iprot->readListBegin(_etype1240, _size1237); - this->new_parts.resize(_size1237); - uint32_t _i1241; - for (_i1241 = 0; _i1241 < _size1237; ++_i1241) + uint32_t _size1257; + ::apache::thrift::protocol::TType _etype1260; + xfer += iprot->readListBegin(_etype1260, _size1257); + this->new_parts.resize(_size1257); + uint32_t _i1261; + for (_i1261 = 0; _i1261 < _size1257; ++_i1261) { - xfer += this->new_parts[_i1241].read(iprot); + xfer += this->new_parts[_i1261].read(iprot); } xfer += iprot->readListEnd(); } @@ -18630,10 +19026,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 _iter1242; - for (_iter1242 = this->new_parts.begin(); _iter1242 != this->new_parts.end(); ++_iter1242) + std::vector ::const_iterator _iter1262; + for (_iter1262 = this->new_parts.begin(); _iter1262 != this->new_parts.end(); ++_iter1262) { - xfer += (*_iter1242).write(oprot); + xfer += (*_iter1262).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18665,10 +19061,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 _iter1243; - for (_iter1243 = (*(this->new_parts)).begin(); _iter1243 != (*(this->new_parts)).end(); ++_iter1243) + std::vector ::const_iterator _iter1263; + for (_iter1263 = (*(this->new_parts)).begin(); _iter1263 != (*(this->new_parts)).end(); ++_iter1263) { - xfer += (*_iter1243).write(oprot); + xfer += (*_iter1263).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18853,14 +19249,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1244; - ::apache::thrift::protocol::TType _etype1247; - xfer += iprot->readListBegin(_etype1247, _size1244); - this->new_parts.resize(_size1244); - uint32_t _i1248; - for (_i1248 = 0; _i1248 < _size1244; ++_i1248) + uint32_t _size1264; + ::apache::thrift::protocol::TType _etype1267; + xfer += iprot->readListBegin(_etype1267, _size1264); + this->new_parts.resize(_size1264); + uint32_t _i1268; + for (_i1268 = 0; _i1268 < _size1264; ++_i1268) { - xfer += this->new_parts[_i1248].read(iprot); + xfer += this->new_parts[_i1268].read(iprot); } xfer += iprot->readListEnd(); } @@ -18905,10 +19301,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::wri xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter1249; - for (_iter1249 = this->new_parts.begin(); _iter1249 != this->new_parts.end(); ++_iter1249) + std::vector ::const_iterator _iter1269; + for (_iter1269 = this->new_parts.begin(); _iter1269 != this->new_parts.end(); ++_iter1269) { - xfer += (*_iter1249).write(oprot); + xfer += (*_iter1269).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18944,10 +19340,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_pargs::wr xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter1250; - for (_iter1250 = (*(this->new_parts)).begin(); _iter1250 != (*(this->new_parts)).end(); ++_iter1250) + std::vector ::const_iterator _iter1270; + for (_iter1270 = (*(this->new_parts)).begin(); _iter1270 != (*(this->new_parts)).end(); ++_iter1270) { - xfer += (*_iter1250).write(oprot); + xfer += (*_iter1270).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19391,14 +19787,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1251; - ::apache::thrift::protocol::TType _etype1254; - xfer += iprot->readListBegin(_etype1254, _size1251); - this->part_vals.resize(_size1251); - uint32_t _i1255; - for (_i1255 = 0; _i1255 < _size1251; ++_i1255) + uint32_t _size1271; + ::apache::thrift::protocol::TType _etype1274; + xfer += iprot->readListBegin(_etype1274, _size1271); + this->part_vals.resize(_size1271); + uint32_t _i1275; + for (_i1275 = 0; _i1275 < _size1271; ++_i1275) { - xfer += iprot->readString(this->part_vals[_i1255]); + xfer += iprot->readString(this->part_vals[_i1275]); } xfer += iprot->readListEnd(); } @@ -19443,10 +19839,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 _iter1256; - for (_iter1256 = this->part_vals.begin(); _iter1256 != this->part_vals.end(); ++_iter1256) + std::vector ::const_iterator _iter1276; + for (_iter1276 = this->part_vals.begin(); _iter1276 != this->part_vals.end(); ++_iter1276) { - xfer += oprot->writeString((*_iter1256)); + xfer += oprot->writeString((*_iter1276)); } xfer += oprot->writeListEnd(); } @@ -19482,10 +19878,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 _iter1257; - for (_iter1257 = (*(this->part_vals)).begin(); _iter1257 != (*(this->part_vals)).end(); ++_iter1257) + std::vector ::const_iterator _iter1277; + for (_iter1277 = (*(this->part_vals)).begin(); _iter1277 != (*(this->part_vals)).end(); ++_iter1277) { - xfer += oprot->writeString((*_iter1257)); + xfer += oprot->writeString((*_iter1277)); } xfer += oprot->writeListEnd(); } @@ -19658,14 +20054,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 _size1258; - ::apache::thrift::protocol::TType _etype1261; - xfer += iprot->readListBegin(_etype1261, _size1258); - this->part_vals.resize(_size1258); - uint32_t _i1262; - for (_i1262 = 0; _i1262 < _size1258; ++_i1262) + uint32_t _size1278; + ::apache::thrift::protocol::TType _etype1281; + xfer += iprot->readListBegin(_etype1281, _size1278); + this->part_vals.resize(_size1278); + uint32_t _i1282; + for (_i1282 = 0; _i1282 < _size1278; ++_i1282) { - xfer += iprot->readString(this->part_vals[_i1262]); + xfer += iprot->readString(this->part_vals[_i1282]); } xfer += iprot->readListEnd(); } @@ -19702,10 +20098,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 _iter1263; - for (_iter1263 = this->part_vals.begin(); _iter1263 != this->part_vals.end(); ++_iter1263) + std::vector ::const_iterator _iter1283; + for (_iter1283 = this->part_vals.begin(); _iter1283 != this->part_vals.end(); ++_iter1283) { - xfer += oprot->writeString((*_iter1263)); + xfer += oprot->writeString((*_iter1283)); } xfer += oprot->writeListEnd(); } @@ -19733,10 +20129,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 _iter1264; - for (_iter1264 = (*(this->part_vals)).begin(); _iter1264 != (*(this->part_vals)).end(); ++_iter1264) + std::vector ::const_iterator _iter1284; + for (_iter1284 = (*(this->part_vals)).begin(); _iter1284 != (*(this->part_vals)).end(); ++_iter1284) { - xfer += oprot->writeString((*_iter1264)); + xfer += oprot->writeString((*_iter1284)); } xfer += oprot->writeListEnd(); } @@ -20211,14 +20607,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1265; - ::apache::thrift::protocol::TType _etype1268; - xfer += iprot->readListBegin(_etype1268, _size1265); - this->success.resize(_size1265); - uint32_t _i1269; - for (_i1269 = 0; _i1269 < _size1265; ++_i1269) + uint32_t _size1285; + ::apache::thrift::protocol::TType _etype1288; + xfer += iprot->readListBegin(_etype1288, _size1285); + this->success.resize(_size1285); + uint32_t _i1289; + for (_i1289 = 0; _i1289 < _size1285; ++_i1289) { - xfer += iprot->readString(this->success[_i1269]); + xfer += iprot->readString(this->success[_i1289]); } xfer += iprot->readListEnd(); } @@ -20257,10 +20653,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 _iter1270; - for (_iter1270 = this->success.begin(); _iter1270 != this->success.end(); ++_iter1270) + std::vector ::const_iterator _iter1290; + for (_iter1290 = this->success.begin(); _iter1290 != this->success.end(); ++_iter1290) { - xfer += oprot->writeString((*_iter1270)); + xfer += oprot->writeString((*_iter1290)); } xfer += oprot->writeListEnd(); } @@ -20305,14 +20701,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1271; - ::apache::thrift::protocol::TType _etype1274; - xfer += iprot->readListBegin(_etype1274, _size1271); - (*(this->success)).resize(_size1271); - uint32_t _i1275; - for (_i1275 = 0; _i1275 < _size1271; ++_i1275) + uint32_t _size1291; + ::apache::thrift::protocol::TType _etype1294; + xfer += iprot->readListBegin(_etype1294, _size1291); + (*(this->success)).resize(_size1291); + uint32_t _i1295; + for (_i1295 = 0; _i1295 < _size1291; ++_i1295) { - xfer += iprot->readString((*(this->success))[_i1275]); + xfer += iprot->readString((*(this->success))[_i1295]); } xfer += iprot->readListEnd(); } @@ -20450,17 +20846,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1276; - ::apache::thrift::protocol::TType _ktype1277; - ::apache::thrift::protocol::TType _vtype1278; - xfer += iprot->readMapBegin(_ktype1277, _vtype1278, _size1276); - uint32_t _i1280; - for (_i1280 = 0; _i1280 < _size1276; ++_i1280) + uint32_t _size1296; + ::apache::thrift::protocol::TType _ktype1297; + ::apache::thrift::protocol::TType _vtype1298; + xfer += iprot->readMapBegin(_ktype1297, _vtype1298, _size1296); + uint32_t _i1300; + for (_i1300 = 0; _i1300 < _size1296; ++_i1300) { - std::string _key1281; - xfer += iprot->readString(_key1281); - std::string& _val1282 = this->success[_key1281]; - xfer += iprot->readString(_val1282); + std::string _key1301; + xfer += iprot->readString(_key1301); + std::string& _val1302 = this->success[_key1301]; + xfer += iprot->readString(_val1302); } xfer += iprot->readMapEnd(); } @@ -20499,11 +20895,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 _iter1283; - for (_iter1283 = this->success.begin(); _iter1283 != this->success.end(); ++_iter1283) + std::map ::const_iterator _iter1303; + for (_iter1303 = this->success.begin(); _iter1303 != this->success.end(); ++_iter1303) { - xfer += oprot->writeString(_iter1283->first); - xfer += oprot->writeString(_iter1283->second); + xfer += oprot->writeString(_iter1303->first); + xfer += oprot->writeString(_iter1303->second); } xfer += oprot->writeMapEnd(); } @@ -20548,17 +20944,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1284; - ::apache::thrift::protocol::TType _ktype1285; - ::apache::thrift::protocol::TType _vtype1286; - xfer += iprot->readMapBegin(_ktype1285, _vtype1286, _size1284); - uint32_t _i1288; - for (_i1288 = 0; _i1288 < _size1284; ++_i1288) + uint32_t _size1304; + ::apache::thrift::protocol::TType _ktype1305; + ::apache::thrift::protocol::TType _vtype1306; + xfer += iprot->readMapBegin(_ktype1305, _vtype1306, _size1304); + uint32_t _i1308; + for (_i1308 = 0; _i1308 < _size1304; ++_i1308) { - std::string _key1289; - xfer += iprot->readString(_key1289); - std::string& _val1290 = (*(this->success))[_key1289]; - xfer += iprot->readString(_val1290); + std::string _key1309; + xfer += iprot->readString(_key1309); + std::string& _val1310 = (*(this->success))[_key1309]; + xfer += iprot->readString(_val1310); } xfer += iprot->readMapEnd(); } @@ -20633,17 +21029,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1291; - ::apache::thrift::protocol::TType _ktype1292; - ::apache::thrift::protocol::TType _vtype1293; - xfer += iprot->readMapBegin(_ktype1292, _vtype1293, _size1291); - uint32_t _i1295; - for (_i1295 = 0; _i1295 < _size1291; ++_i1295) + uint32_t _size1311; + ::apache::thrift::protocol::TType _ktype1312; + ::apache::thrift::protocol::TType _vtype1313; + xfer += iprot->readMapBegin(_ktype1312, _vtype1313, _size1311); + uint32_t _i1315; + for (_i1315 = 0; _i1315 < _size1311; ++_i1315) { - std::string _key1296; - xfer += iprot->readString(_key1296); - std::string& _val1297 = this->part_vals[_key1296]; - xfer += iprot->readString(_val1297); + std::string _key1316; + xfer += iprot->readString(_key1316); + std::string& _val1317 = this->part_vals[_key1316]; + xfer += iprot->readString(_val1317); } xfer += iprot->readMapEnd(); } @@ -20654,9 +21050,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1298; - xfer += iprot->readI32(ecast1298); - this->eventType = (PartitionEventType::type)ecast1298; + int32_t ecast1318; + xfer += iprot->readI32(ecast1318); + this->eventType = (PartitionEventType::type)ecast1318; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -20690,11 +21086,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 _iter1299; - for (_iter1299 = this->part_vals.begin(); _iter1299 != this->part_vals.end(); ++_iter1299) + std::map ::const_iterator _iter1319; + for (_iter1319 = this->part_vals.begin(); _iter1319 != this->part_vals.end(); ++_iter1319) { - xfer += oprot->writeString(_iter1299->first); - xfer += oprot->writeString(_iter1299->second); + xfer += oprot->writeString(_iter1319->first); + xfer += oprot->writeString(_iter1319->second); } xfer += oprot->writeMapEnd(); } @@ -20730,11 +21126,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 _iter1300; - for (_iter1300 = (*(this->part_vals)).begin(); _iter1300 != (*(this->part_vals)).end(); ++_iter1300) + std::map ::const_iterator _iter1320; + for (_iter1320 = (*(this->part_vals)).begin(); _iter1320 != (*(this->part_vals)).end(); ++_iter1320) { - xfer += oprot->writeString(_iter1300->first); - xfer += oprot->writeString(_iter1300->second); + xfer += oprot->writeString(_iter1320->first); + xfer += oprot->writeString(_iter1320->second); } xfer += oprot->writeMapEnd(); } @@ -21003,17 +21399,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1301; - ::apache::thrift::protocol::TType _ktype1302; - ::apache::thrift::protocol::TType _vtype1303; - xfer += iprot->readMapBegin(_ktype1302, _vtype1303, _size1301); - uint32_t _i1305; - for (_i1305 = 0; _i1305 < _size1301; ++_i1305) + uint32_t _size1321; + ::apache::thrift::protocol::TType _ktype1322; + ::apache::thrift::protocol::TType _vtype1323; + xfer += iprot->readMapBegin(_ktype1322, _vtype1323, _size1321); + uint32_t _i1325; + for (_i1325 = 0; _i1325 < _size1321; ++_i1325) { - std::string _key1306; - xfer += iprot->readString(_key1306); - std::string& _val1307 = this->part_vals[_key1306]; - xfer += iprot->readString(_val1307); + std::string _key1326; + xfer += iprot->readString(_key1326); + std::string& _val1327 = this->part_vals[_key1326]; + xfer += iprot->readString(_val1327); } xfer += iprot->readMapEnd(); } @@ -21024,9 +21420,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1308; - xfer += iprot->readI32(ecast1308); - this->eventType = (PartitionEventType::type)ecast1308; + int32_t ecast1328; + xfer += iprot->readI32(ecast1328); + this->eventType = (PartitionEventType::type)ecast1328; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -21060,11 +21456,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 _iter1309; - for (_iter1309 = this->part_vals.begin(); _iter1309 != this->part_vals.end(); ++_iter1309) + std::map ::const_iterator _iter1329; + for (_iter1329 = this->part_vals.begin(); _iter1329 != this->part_vals.end(); ++_iter1329) { - xfer += oprot->writeString(_iter1309->first); - xfer += oprot->writeString(_iter1309->second); + xfer += oprot->writeString(_iter1329->first); + xfer += oprot->writeString(_iter1329->second); } xfer += oprot->writeMapEnd(); } @@ -21100,11 +21496,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 _iter1310; - for (_iter1310 = (*(this->part_vals)).begin(); _iter1310 != (*(this->part_vals)).end(); ++_iter1310) + std::map ::const_iterator _iter1330; + for (_iter1330 = (*(this->part_vals)).begin(); _iter1330 != (*(this->part_vals)).end(); ++_iter1330) { - xfer += oprot->writeString(_iter1310->first); - xfer += oprot->writeString(_iter1310->second); + xfer += oprot->writeString(_iter1330->first); + xfer += oprot->writeString(_iter1330->second); } xfer += oprot->writeMapEnd(); } @@ -22540,14 +22936,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1311; - ::apache::thrift::protocol::TType _etype1314; - xfer += iprot->readListBegin(_etype1314, _size1311); - this->success.resize(_size1311); - uint32_t _i1315; - for (_i1315 = 0; _i1315 < _size1311; ++_i1315) + uint32_t _size1331; + ::apache::thrift::protocol::TType _etype1334; + xfer += iprot->readListBegin(_etype1334, _size1331); + this->success.resize(_size1331); + uint32_t _i1335; + for (_i1335 = 0; _i1335 < _size1331; ++_i1335) { - xfer += this->success[_i1315].read(iprot); + xfer += this->success[_i1335].read(iprot); } xfer += iprot->readListEnd(); } @@ -22594,10 +22990,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 _iter1316; - for (_iter1316 = this->success.begin(); _iter1316 != this->success.end(); ++_iter1316) + std::vector ::const_iterator _iter1336; + for (_iter1336 = this->success.begin(); _iter1336 != this->success.end(); ++_iter1336) { - xfer += (*_iter1316).write(oprot); + xfer += (*_iter1336).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22646,14 +23042,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1317; - ::apache::thrift::protocol::TType _etype1320; - xfer += iprot->readListBegin(_etype1320, _size1317); - (*(this->success)).resize(_size1317); - uint32_t _i1321; - for (_i1321 = 0; _i1321 < _size1317; ++_i1321) + uint32_t _size1337; + ::apache::thrift::protocol::TType _etype1340; + xfer += iprot->readListBegin(_etype1340, _size1337); + (*(this->success)).resize(_size1337); + uint32_t _i1341; + for (_i1341 = 0; _i1341 < _size1337; ++_i1341) { - xfer += (*(this->success))[_i1321].read(iprot); + xfer += (*(this->success))[_i1341].read(iprot); } xfer += iprot->readListEnd(); } @@ -22831,14 +23227,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1322; - ::apache::thrift::protocol::TType _etype1325; - xfer += iprot->readListBegin(_etype1325, _size1322); - this->success.resize(_size1322); - uint32_t _i1326; - for (_i1326 = 0; _i1326 < _size1322; ++_i1326) + uint32_t _size1342; + ::apache::thrift::protocol::TType _etype1345; + xfer += iprot->readListBegin(_etype1345, _size1342); + this->success.resize(_size1342); + uint32_t _i1346; + for (_i1346 = 0; _i1346 < _size1342; ++_i1346) { - xfer += iprot->readString(this->success[_i1326]); + xfer += iprot->readString(this->success[_i1346]); } xfer += iprot->readListEnd(); } @@ -22877,10 +23273,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 _iter1327; - for (_iter1327 = this->success.begin(); _iter1327 != this->success.end(); ++_iter1327) + std::vector ::const_iterator _iter1347; + for (_iter1347 = this->success.begin(); _iter1347 != this->success.end(); ++_iter1347) { - xfer += oprot->writeString((*_iter1327)); + xfer += oprot->writeString((*_iter1347)); } xfer += oprot->writeListEnd(); } @@ -22925,14 +23321,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1328; - ::apache::thrift::protocol::TType _etype1331; - xfer += iprot->readListBegin(_etype1331, _size1328); - (*(this->success)).resize(_size1328); - uint32_t _i1332; - for (_i1332 = 0; _i1332 < _size1328; ++_i1332) + uint32_t _size1348; + ::apache::thrift::protocol::TType _etype1351; + xfer += iprot->readListBegin(_etype1351, _size1348); + (*(this->success)).resize(_size1348); + uint32_t _i1352; + for (_i1352 = 0; _i1352 < _size1348; ++_i1352) { - xfer += iprot->readString((*(this->success))[_i1332]); + xfer += iprot->readString((*(this->success))[_i1352]); } xfer += iprot->readListEnd(); } @@ -26959,14 +27355,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1333; - ::apache::thrift::protocol::TType _etype1336; - xfer += iprot->readListBegin(_etype1336, _size1333); - this->success.resize(_size1333); - uint32_t _i1337; - for (_i1337 = 0; _i1337 < _size1333; ++_i1337) + uint32_t _size1353; + ::apache::thrift::protocol::TType _etype1356; + xfer += iprot->readListBegin(_etype1356, _size1353); + this->success.resize(_size1353); + uint32_t _i1357; + for (_i1357 = 0; _i1357 < _size1353; ++_i1357) { - xfer += iprot->readString(this->success[_i1337]); + xfer += iprot->readString(this->success[_i1357]); } xfer += iprot->readListEnd(); } @@ -27005,10 +27401,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 _iter1338; - for (_iter1338 = this->success.begin(); _iter1338 != this->success.end(); ++_iter1338) + std::vector ::const_iterator _iter1358; + for (_iter1358 = this->success.begin(); _iter1358 != this->success.end(); ++_iter1358) { - xfer += oprot->writeString((*_iter1338)); + xfer += oprot->writeString((*_iter1358)); } xfer += oprot->writeListEnd(); } @@ -27053,14 +27449,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1339; - ::apache::thrift::protocol::TType _etype1342; - xfer += iprot->readListBegin(_etype1342, _size1339); - (*(this->success)).resize(_size1339); - uint32_t _i1343; - for (_i1343 = 0; _i1343 < _size1339; ++_i1343) + uint32_t _size1359; + ::apache::thrift::protocol::TType _etype1362; + xfer += iprot->readListBegin(_etype1362, _size1359); + (*(this->success)).resize(_size1359); + uint32_t _i1363; + for (_i1363 = 0; _i1363 < _size1359; ++_i1363) { - xfer += iprot->readString((*(this->success))[_i1343]); + xfer += iprot->readString((*(this->success))[_i1363]); } xfer += iprot->readListEnd(); } @@ -28020,14 +28416,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1344; - ::apache::thrift::protocol::TType _etype1347; - xfer += iprot->readListBegin(_etype1347, _size1344); - this->success.resize(_size1344); - uint32_t _i1348; - for (_i1348 = 0; _i1348 < _size1344; ++_i1348) + uint32_t _size1364; + ::apache::thrift::protocol::TType _etype1367; + xfer += iprot->readListBegin(_etype1367, _size1364); + this->success.resize(_size1364); + uint32_t _i1368; + for (_i1368 = 0; _i1368 < _size1364; ++_i1368) { - xfer += iprot->readString(this->success[_i1348]); + xfer += iprot->readString(this->success[_i1368]); } xfer += iprot->readListEnd(); } @@ -28066,10 +28462,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 _iter1349; - for (_iter1349 = this->success.begin(); _iter1349 != this->success.end(); ++_iter1349) + std::vector ::const_iterator _iter1369; + for (_iter1369 = this->success.begin(); _iter1369 != this->success.end(); ++_iter1369) { - xfer += oprot->writeString((*_iter1349)); + xfer += oprot->writeString((*_iter1369)); } xfer += oprot->writeListEnd(); } @@ -28114,14 +28510,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1350; - ::apache::thrift::protocol::TType _etype1353; - xfer += iprot->readListBegin(_etype1353, _size1350); - (*(this->success)).resize(_size1350); - uint32_t _i1354; - for (_i1354 = 0; _i1354 < _size1350; ++_i1354) + uint32_t _size1370; + ::apache::thrift::protocol::TType _etype1373; + xfer += iprot->readListBegin(_etype1373, _size1370); + (*(this->success)).resize(_size1370); + uint32_t _i1374; + for (_i1374 = 0; _i1374 < _size1370; ++_i1374) { - xfer += iprot->readString((*(this->success))[_i1354]); + xfer += iprot->readString((*(this->success))[_i1374]); } xfer += iprot->readListEnd(); } @@ -28194,9 +28590,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1355; - xfer += iprot->readI32(ecast1355); - this->principal_type = (PrincipalType::type)ecast1355; + int32_t ecast1375; + xfer += iprot->readI32(ecast1375); + this->principal_type = (PrincipalType::type)ecast1375; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -28212,9 +28608,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1356; - xfer += iprot->readI32(ecast1356); - this->grantorType = (PrincipalType::type)ecast1356; + int32_t ecast1376; + xfer += iprot->readI32(ecast1376); + this->grantorType = (PrincipalType::type)ecast1376; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -28485,9 +28881,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1357; - xfer += iprot->readI32(ecast1357); - this->principal_type = (PrincipalType::type)ecast1357; + int32_t ecast1377; + xfer += iprot->readI32(ecast1377); + this->principal_type = (PrincipalType::type)ecast1377; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -28718,9 +29114,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1358; - xfer += iprot->readI32(ecast1358); - this->principal_type = (PrincipalType::type)ecast1358; + int32_t ecast1378; + xfer += iprot->readI32(ecast1378); + this->principal_type = (PrincipalType::type)ecast1378; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -28809,14 +29205,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1359; - ::apache::thrift::protocol::TType _etype1362; - xfer += iprot->readListBegin(_etype1362, _size1359); - this->success.resize(_size1359); - uint32_t _i1363; - for (_i1363 = 0; _i1363 < _size1359; ++_i1363) + uint32_t _size1379; + ::apache::thrift::protocol::TType _etype1382; + xfer += iprot->readListBegin(_etype1382, _size1379); + this->success.resize(_size1379); + uint32_t _i1383; + for (_i1383 = 0; _i1383 < _size1379; ++_i1383) { - xfer += this->success[_i1363].read(iprot); + xfer += this->success[_i1383].read(iprot); } xfer += iprot->readListEnd(); } @@ -28855,10 +29251,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 _iter1364; - for (_iter1364 = this->success.begin(); _iter1364 != this->success.end(); ++_iter1364) + std::vector ::const_iterator _iter1384; + for (_iter1384 = this->success.begin(); _iter1384 != this->success.end(); ++_iter1384) { - xfer += (*_iter1364).write(oprot); + xfer += (*_iter1384).write(oprot); } xfer += oprot->writeListEnd(); } @@ -28903,14 +29299,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1365; - ::apache::thrift::protocol::TType _etype1368; - xfer += iprot->readListBegin(_etype1368, _size1365); - (*(this->success)).resize(_size1365); - uint32_t _i1369; - for (_i1369 = 0; _i1369 < _size1365; ++_i1369) + uint32_t _size1385; + ::apache::thrift::protocol::TType _etype1388; + xfer += iprot->readListBegin(_etype1388, _size1385); + (*(this->success)).resize(_size1385); + uint32_t _i1389; + for (_i1389 = 0; _i1389 < _size1385; ++_i1389) { - xfer += (*(this->success))[_i1369].read(iprot); + xfer += (*(this->success))[_i1389].read(iprot); } xfer += iprot->readListEnd(); } @@ -29606,14 +30002,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 _size1370; - ::apache::thrift::protocol::TType _etype1373; - xfer += iprot->readListBegin(_etype1373, _size1370); - this->group_names.resize(_size1370); - uint32_t _i1374; - for (_i1374 = 0; _i1374 < _size1370; ++_i1374) + uint32_t _size1390; + ::apache::thrift::protocol::TType _etype1393; + xfer += iprot->readListBegin(_etype1393, _size1390); + this->group_names.resize(_size1390); + uint32_t _i1394; + for (_i1394 = 0; _i1394 < _size1390; ++_i1394) { - xfer += iprot->readString(this->group_names[_i1374]); + xfer += iprot->readString(this->group_names[_i1394]); } xfer += iprot->readListEnd(); } @@ -29650,10 +30046,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 _iter1375; - for (_iter1375 = this->group_names.begin(); _iter1375 != this->group_names.end(); ++_iter1375) + std::vector ::const_iterator _iter1395; + for (_iter1395 = this->group_names.begin(); _iter1395 != this->group_names.end(); ++_iter1395) { - xfer += oprot->writeString((*_iter1375)); + xfer += oprot->writeString((*_iter1395)); } xfer += oprot->writeListEnd(); } @@ -29685,10 +30081,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 _iter1376; - for (_iter1376 = (*(this->group_names)).begin(); _iter1376 != (*(this->group_names)).end(); ++_iter1376) + std::vector ::const_iterator _iter1396; + for (_iter1396 = (*(this->group_names)).begin(); _iter1396 != (*(this->group_names)).end(); ++_iter1396) { - xfer += oprot->writeString((*_iter1376)); + xfer += oprot->writeString((*_iter1396)); } xfer += oprot->writeListEnd(); } @@ -29863,9 +30259,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1377; - xfer += iprot->readI32(ecast1377); - this->principal_type = (PrincipalType::type)ecast1377; + int32_t ecast1397; + xfer += iprot->readI32(ecast1397); + this->principal_type = (PrincipalType::type)ecast1397; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -29970,14 +30366,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1378; - ::apache::thrift::protocol::TType _etype1381; - xfer += iprot->readListBegin(_etype1381, _size1378); - this->success.resize(_size1378); - uint32_t _i1382; - for (_i1382 = 0; _i1382 < _size1378; ++_i1382) + uint32_t _size1398; + ::apache::thrift::protocol::TType _etype1401; + xfer += iprot->readListBegin(_etype1401, _size1398); + this->success.resize(_size1398); + uint32_t _i1402; + for (_i1402 = 0; _i1402 < _size1398; ++_i1402) { - xfer += this->success[_i1382].read(iprot); + xfer += this->success[_i1402].read(iprot); } xfer += iprot->readListEnd(); } @@ -30016,10 +30412,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 _iter1383; - for (_iter1383 = this->success.begin(); _iter1383 != this->success.end(); ++_iter1383) + std::vector ::const_iterator _iter1403; + for (_iter1403 = this->success.begin(); _iter1403 != this->success.end(); ++_iter1403) { - xfer += (*_iter1383).write(oprot); + xfer += (*_iter1403).write(oprot); } xfer += oprot->writeListEnd(); } @@ -30064,14 +30460,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1384; - ::apache::thrift::protocol::TType _etype1387; - xfer += iprot->readListBegin(_etype1387, _size1384); - (*(this->success)).resize(_size1384); - uint32_t _i1388; - for (_i1388 = 0; _i1388 < _size1384; ++_i1388) + uint32_t _size1404; + ::apache::thrift::protocol::TType _etype1407; + xfer += iprot->readListBegin(_etype1407, _size1404); + (*(this->success)).resize(_size1404); + uint32_t _i1408; + for (_i1408 = 0; _i1408 < _size1404; ++_i1408) { - xfer += (*(this->success))[_i1388].read(iprot); + xfer += (*(this->success))[_i1408].read(iprot); } xfer += iprot->readListEnd(); } @@ -30759,14 +31155,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 _size1389; - ::apache::thrift::protocol::TType _etype1392; - xfer += iprot->readListBegin(_etype1392, _size1389); - this->group_names.resize(_size1389); - uint32_t _i1393; - for (_i1393 = 0; _i1393 < _size1389; ++_i1393) + uint32_t _size1409; + ::apache::thrift::protocol::TType _etype1412; + xfer += iprot->readListBegin(_etype1412, _size1409); + this->group_names.resize(_size1409); + uint32_t _i1413; + for (_i1413 = 0; _i1413 < _size1409; ++_i1413) { - xfer += iprot->readString(this->group_names[_i1393]); + xfer += iprot->readString(this->group_names[_i1413]); } xfer += iprot->readListEnd(); } @@ -30799,10 +31195,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 _iter1394; - for (_iter1394 = this->group_names.begin(); _iter1394 != this->group_names.end(); ++_iter1394) + std::vector ::const_iterator _iter1414; + for (_iter1414 = this->group_names.begin(); _iter1414 != this->group_names.end(); ++_iter1414) { - xfer += oprot->writeString((*_iter1394)); + xfer += oprot->writeString((*_iter1414)); } xfer += oprot->writeListEnd(); } @@ -30830,10 +31226,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 _iter1395; - for (_iter1395 = (*(this->group_names)).begin(); _iter1395 != (*(this->group_names)).end(); ++_iter1395) + std::vector ::const_iterator _iter1415; + for (_iter1415 = (*(this->group_names)).begin(); _iter1415 != (*(this->group_names)).end(); ++_iter1415) { - xfer += oprot->writeString((*_iter1395)); + xfer += oprot->writeString((*_iter1415)); } xfer += oprot->writeListEnd(); } @@ -30874,14 +31270,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1396; - ::apache::thrift::protocol::TType _etype1399; - xfer += iprot->readListBegin(_etype1399, _size1396); - this->success.resize(_size1396); - uint32_t _i1400; - for (_i1400 = 0; _i1400 < _size1396; ++_i1400) + uint32_t _size1416; + ::apache::thrift::protocol::TType _etype1419; + xfer += iprot->readListBegin(_etype1419, _size1416); + this->success.resize(_size1416); + uint32_t _i1420; + for (_i1420 = 0; _i1420 < _size1416; ++_i1420) { - xfer += iprot->readString(this->success[_i1400]); + xfer += iprot->readString(this->success[_i1420]); } xfer += iprot->readListEnd(); } @@ -30920,10 +31316,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 _iter1401; - for (_iter1401 = this->success.begin(); _iter1401 != this->success.end(); ++_iter1401) + std::vector ::const_iterator _iter1421; + for (_iter1421 = this->success.begin(); _iter1421 != this->success.end(); ++_iter1421) { - xfer += oprot->writeString((*_iter1401)); + xfer += oprot->writeString((*_iter1421)); } xfer += oprot->writeListEnd(); } @@ -30968,14 +31364,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1402; - ::apache::thrift::protocol::TType _etype1405; - xfer += iprot->readListBegin(_etype1405, _size1402); - (*(this->success)).resize(_size1402); - uint32_t _i1406; - for (_i1406 = 0; _i1406 < _size1402; ++_i1406) + uint32_t _size1422; + ::apache::thrift::protocol::TType _etype1425; + xfer += iprot->readListBegin(_etype1425, _size1422); + (*(this->success)).resize(_size1422); + uint32_t _i1426; + for (_i1426 = 0; _i1426 < _size1422; ++_i1426) { - xfer += iprot->readString((*(this->success))[_i1406]); + xfer += iprot->readString((*(this->success))[_i1426]); } xfer += iprot->readListEnd(); } @@ -32286,14 +32682,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1407; - ::apache::thrift::protocol::TType _etype1410; - xfer += iprot->readListBegin(_etype1410, _size1407); - this->success.resize(_size1407); - uint32_t _i1411; - for (_i1411 = 0; _i1411 < _size1407; ++_i1411) + uint32_t _size1427; + ::apache::thrift::protocol::TType _etype1430; + xfer += iprot->readListBegin(_etype1430, _size1427); + this->success.resize(_size1427); + uint32_t _i1431; + for (_i1431 = 0; _i1431 < _size1427; ++_i1431) { - xfer += iprot->readString(this->success[_i1411]); + xfer += iprot->readString(this->success[_i1431]); } xfer += iprot->readListEnd(); } @@ -32324,10 +32720,10 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1412; - for (_iter1412 = this->success.begin(); _iter1412 != this->success.end(); ++_iter1412) + std::vector ::const_iterator _iter1432; + for (_iter1432 = this->success.begin(); _iter1432 != this->success.end(); ++_iter1432) { - xfer += oprot->writeString((*_iter1412)); + xfer += oprot->writeString((*_iter1432)); } xfer += oprot->writeListEnd(); } @@ -32368,14 +32764,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1413; - ::apache::thrift::protocol::TType _etype1416; - xfer += iprot->readListBegin(_etype1416, _size1413); - (*(this->success)).resize(_size1413); - uint32_t _i1417; - for (_i1417 = 0; _i1417 < _size1413; ++_i1417) + uint32_t _size1433; + ::apache::thrift::protocol::TType _etype1436; + xfer += iprot->readListBegin(_etype1436, _size1433); + (*(this->success)).resize(_size1433); + uint32_t _i1437; + for (_i1437 = 0; _i1437 < _size1433; ++_i1437) { - xfer += iprot->readString((*(this->success))[_i1417]); + xfer += iprot->readString((*(this->success))[_i1437]); } xfer += iprot->readListEnd(); } @@ -33101,14 +33497,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1418; - ::apache::thrift::protocol::TType _etype1421; - xfer += iprot->readListBegin(_etype1421, _size1418); - this->success.resize(_size1418); - uint32_t _i1422; - for (_i1422 = 0; _i1422 < _size1418; ++_i1422) + uint32_t _size1438; + ::apache::thrift::protocol::TType _etype1441; + xfer += iprot->readListBegin(_etype1441, _size1438); + this->success.resize(_size1438); + uint32_t _i1442; + for (_i1442 = 0; _i1442 < _size1438; ++_i1442) { - xfer += iprot->readString(this->success[_i1422]); + xfer += iprot->readString(this->success[_i1442]); } xfer += iprot->readListEnd(); } @@ -33139,10 +33535,10 @@ uint32_t ThriftHiveMetastore_get_master_keys_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1423; - for (_iter1423 = this->success.begin(); _iter1423 != this->success.end(); ++_iter1423) + std::vector ::const_iterator _iter1443; + for (_iter1443 = this->success.begin(); _iter1443 != this->success.end(); ++_iter1443) { - xfer += oprot->writeString((*_iter1423)); + xfer += oprot->writeString((*_iter1443)); } xfer += oprot->writeListEnd(); } @@ -33183,14 +33579,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1424; - ::apache::thrift::protocol::TType _etype1427; - xfer += iprot->readListBegin(_etype1427, _size1424); - (*(this->success)).resize(_size1424); - uint32_t _i1428; - for (_i1428 = 0; _i1428 < _size1424; ++_i1428) + uint32_t _size1444; + ::apache::thrift::protocol::TType _etype1447; + xfer += iprot->readListBegin(_etype1447, _size1444); + (*(this->success)).resize(_size1444); + uint32_t _i1448; + for (_i1448 = 0; _i1448 < _size1444; ++_i1448) { - xfer += iprot->readString((*(this->success))[_i1428]); + xfer += iprot->readString((*(this->success))[_i1448]); } xfer += iprot->readListEnd(); } @@ -41377,6 +41773,80 @@ void ThriftHiveMetastoreClient::recv_exchange_partitions(std::vector throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "exchange_partitions failed: unknown result"); } +void ThriftHiveMetastoreClient::exchange_partitions_metadata(std::vector & _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name) +{ + send_exchange_partitions_metadata(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name); + recv_exchange_partitions_metadata(_return); +} + +void ThriftHiveMetastoreClient::send_exchange_partitions_metadata(const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("exchange_partitions_metadata", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_exchange_partitions_metadata_pargs args; + args.partitionSpecs = &partitionSpecs; + args.source_db = &source_db; + args.source_table_name = &source_table_name; + args.dest_db = &dest_db; + args.dest_table_name = &dest_table_name; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_exchange_partitions_metadata(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("exchange_partitions_metadata") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_exchange_partitions_metadata_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.o1) { + throw result.o1; + } + if (result.__isset.o2) { + throw result.o2; + } + if (result.__isset.o3) { + throw result.o3; + } + if (result.__isset.o4) { + throw result.o4; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "exchange_partitions_metadata failed: unknown result"); +} + void ThriftHiveMetastoreClient::get_partition_with_auth(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names) { send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names); @@ -50853,6 +51323,72 @@ void ThriftHiveMetastoreProcessor::process_exchange_partitions(int32_t seqid, :: } } +void ThriftHiveMetastoreProcessor::process_exchange_partitions_metadata(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.exchange_partitions_metadata", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.exchange_partitions_metadata"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.exchange_partitions_metadata"); + } + + ThriftHiveMetastore_exchange_partitions_metadata_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.exchange_partitions_metadata", bytes); + } + + ThriftHiveMetastore_exchange_partitions_metadata_result result; + try { + iface_->exchange_partitions_metadata(result.success, args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name); + result.__isset.success = true; + } catch (MetaException &o1) { + result.o1 = o1; + result.__isset.o1 = true; + } catch (NoSuchObjectException &o2) { + result.o2 = o2; + result.__isset.o2 = true; + } catch (InvalidObjectException &o3) { + result.o3 = o3; + result.__isset.o3 = true; + } catch (InvalidInputException &o4) { + result.o4 = o4; + result.__isset.o4 = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.exchange_partitions_metadata"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("exchange_partitions_metadata", ::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.exchange_partitions_metadata"); + } + + oprot->writeMessageBegin("exchange_partitions_metadata", ::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.exchange_partitions_metadata", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_get_partition_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -61619,6 +62155,110 @@ void ThriftHiveMetastoreConcurrentClient::recv_exchange_partitions(std::vector

& _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name) +{ + int32_t seqid = send_exchange_partitions_metadata(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name); + recv_exchange_partitions_metadata(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_exchange_partitions_metadata(const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("exchange_partitions_metadata", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_exchange_partitions_metadata_pargs args; + args.partitionSpecs = &partitionSpecs; + args.source_db = &source_db; + args.source_table_name = &source_table_name; + args.dest_db = &dest_db; + args.dest_table_name = &dest_table_name; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_exchange_partitions_metadata(std::vector & _return, const int32_t seqid) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + // the read mutex gets dropped and reacquired as part of waitForWork() + // The destructor of this sentry wakes up other clients + ::apache::thrift::async::TConcurrentRecvSentry sentry(&this->sync_, seqid); + + while(true) { + if(!this->sync_.getPending(fname, mtype, rseqid)) { + iprot_->readMessageBegin(fname, mtype, rseqid); + } + if(seqid == rseqid) { + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + sentry.commit(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("exchange_partitions_metadata") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + // in a bad state, don't commit + using ::apache::thrift::protocol::TProtocolException; + throw TProtocolException(TProtocolException::INVALID_DATA); + } + ThriftHiveMetastore_exchange_partitions_metadata_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + sentry.commit(); + return; + } + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } + if (result.__isset.o2) { + sentry.commit(); + throw result.o2; + } + if (result.__isset.o3) { + sentry.commit(); + throw result.o3; + } + if (result.__isset.o4) { + sentry.commit(); + throw result.o4; + } + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "exchange_partitions_metadata failed: unknown result"); + } + // seqid != rseqid + this->sync_.updatePending(fname, mtype, rseqid); + + // this will temporarily unlock the readMutex, and let other clients get work done + this->sync_.waitForWork(seqid); + } // end while(true) +} + void ThriftHiveMetastoreConcurrentClient::get_partition_with_auth(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names) { int32_t seqid = send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names); diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index fca5ae5..743d17b 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -75,6 +75,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) = 0; virtual void exchange_partition(Partition& _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name) = 0; virtual void exchange_partitions(std::vector & _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name) = 0; + virtual void exchange_partitions_metadata(std::vector & _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name) = 0; virtual void get_partition_with_auth(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names) = 0; virtual void get_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name) = 0; virtual void get_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) = 0; @@ -371,6 +372,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void exchange_partitions(std::vector & /* _return */, const std::map & /* partitionSpecs */, const std::string& /* source_db */, const std::string& /* source_table_name */, const std::string& /* dest_db */, const std::string& /* dest_table_name */) { return; } + void exchange_partitions_metadata(std::vector & /* _return */, const std::map & /* partitionSpecs */, const std::string& /* source_db */, const std::string& /* source_table_name */, const std::string& /* dest_db */, const std::string& /* dest_table_name */) { + return; + } void get_partition_with_auth(Partition& /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */, const std::string& /* user_name */, const std::vector & /* group_names */) { return; } @@ -7547,6 +7551,170 @@ class ThriftHiveMetastore_exchange_partitions_presult { }; +typedef struct _ThriftHiveMetastore_exchange_partitions_metadata_args__isset { + _ThriftHiveMetastore_exchange_partitions_metadata_args__isset() : partitionSpecs(false), source_db(false), source_table_name(false), dest_db(false), dest_table_name(false) {} + bool partitionSpecs :1; + bool source_db :1; + bool source_table_name :1; + bool dest_db :1; + bool dest_table_name :1; +} _ThriftHiveMetastore_exchange_partitions_metadata_args__isset; + +class ThriftHiveMetastore_exchange_partitions_metadata_args { + public: + + ThriftHiveMetastore_exchange_partitions_metadata_args(const ThriftHiveMetastore_exchange_partitions_metadata_args&); + ThriftHiveMetastore_exchange_partitions_metadata_args& operator=(const ThriftHiveMetastore_exchange_partitions_metadata_args&); + ThriftHiveMetastore_exchange_partitions_metadata_args() : source_db(), source_table_name(), dest_db(), dest_table_name() { + } + + virtual ~ThriftHiveMetastore_exchange_partitions_metadata_args() throw(); + std::map partitionSpecs; + std::string source_db; + std::string source_table_name; + std::string dest_db; + std::string dest_table_name; + + _ThriftHiveMetastore_exchange_partitions_metadata_args__isset __isset; + + void __set_partitionSpecs(const std::map & val); + + void __set_source_db(const std::string& val); + + void __set_source_table_name(const std::string& val); + + void __set_dest_db(const std::string& val); + + void __set_dest_table_name(const std::string& val); + + bool operator == (const ThriftHiveMetastore_exchange_partitions_metadata_args & rhs) const + { + if (!(partitionSpecs == rhs.partitionSpecs)) + return false; + if (!(source_db == rhs.source_db)) + return false; + if (!(source_table_name == rhs.source_table_name)) + return false; + if (!(dest_db == rhs.dest_db)) + return false; + if (!(dest_table_name == rhs.dest_table_name)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_exchange_partitions_metadata_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_exchange_partitions_metadata_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_exchange_partitions_metadata_pargs { + public: + + + virtual ~ThriftHiveMetastore_exchange_partitions_metadata_pargs() throw(); + const std::map * partitionSpecs; + const std::string* source_db; + const std::string* source_table_name; + const std::string* dest_db; + const std::string* dest_table_name; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_exchange_partitions_metadata_result__isset { + _ThriftHiveMetastore_exchange_partitions_metadata_result__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; + bool o3 :1; + bool o4 :1; +} _ThriftHiveMetastore_exchange_partitions_metadata_result__isset; + +class ThriftHiveMetastore_exchange_partitions_metadata_result { + public: + + ThriftHiveMetastore_exchange_partitions_metadata_result(const ThriftHiveMetastore_exchange_partitions_metadata_result&); + ThriftHiveMetastore_exchange_partitions_metadata_result& operator=(const ThriftHiveMetastore_exchange_partitions_metadata_result&); + ThriftHiveMetastore_exchange_partitions_metadata_result() { + } + + virtual ~ThriftHiveMetastore_exchange_partitions_metadata_result() throw(); + std::vector success; + MetaException o1; + NoSuchObjectException o2; + InvalidObjectException o3; + InvalidInputException o4; + + _ThriftHiveMetastore_exchange_partitions_metadata_result__isset __isset; + + void __set_success(const std::vector & val); + + void __set_o1(const MetaException& val); + + void __set_o2(const NoSuchObjectException& val); + + void __set_o3(const InvalidObjectException& val); + + void __set_o4(const InvalidInputException& val); + + bool operator == (const ThriftHiveMetastore_exchange_partitions_metadata_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + if (!(o3 == rhs.o3)) + return false; + if (!(o4 == rhs.o4)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_exchange_partitions_metadata_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_exchange_partitions_metadata_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_exchange_partitions_metadata_presult__isset { + _ThriftHiveMetastore_exchange_partitions_metadata_presult__isset() : success(false), o1(false), o2(false), o3(false), o4(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; + bool o3 :1; + bool o4 :1; +} _ThriftHiveMetastore_exchange_partitions_metadata_presult__isset; + +class ThriftHiveMetastore_exchange_partitions_metadata_presult { + public: + + + virtual ~ThriftHiveMetastore_exchange_partitions_metadata_presult() throw(); + std::vector * success; + MetaException o1; + NoSuchObjectException o2; + InvalidObjectException o3; + InvalidInputException o4; + + _ThriftHiveMetastore_exchange_partitions_metadata_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_get_partition_with_auth_args__isset { _ThriftHiveMetastore_get_partition_with_auth_args__isset() : db_name(false), tbl_name(false), part_vals(false), user_name(false), group_names(false) {} bool db_name :1; @@ -19771,6 +19939,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void exchange_partitions(std::vector & _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name); void send_exchange_partitions(const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name); void recv_exchange_partitions(std::vector & _return); + void exchange_partitions_metadata(std::vector & _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name); + void send_exchange_partitions_metadata(const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name); + void recv_exchange_partitions_metadata(std::vector & _return); void get_partition_with_auth(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names); void send_get_partition_with_auth(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names); void recv_get_partition_with_auth(Partition& _return); @@ -20134,6 +20305,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_get_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_exchange_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_exchange_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_exchange_partitions_metadata(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partition_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -20291,6 +20463,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["get_partition"] = &ThriftHiveMetastoreProcessor::process_get_partition; processMap_["exchange_partition"] = &ThriftHiveMetastoreProcessor::process_exchange_partition; processMap_["exchange_partitions"] = &ThriftHiveMetastoreProcessor::process_exchange_partitions; + processMap_["exchange_partitions_metadata"] = &ThriftHiveMetastoreProcessor::process_exchange_partitions_metadata; processMap_["get_partition_with_auth"] = &ThriftHiveMetastoreProcessor::process_get_partition_with_auth; processMap_["get_partition_by_name"] = &ThriftHiveMetastoreProcessor::process_get_partition_by_name; processMap_["get_partitions"] = &ThriftHiveMetastoreProcessor::process_get_partitions; @@ -20931,6 +21104,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void exchange_partitions_metadata(std::vector & _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->exchange_partitions_metadata(_return, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name); + } + ifaces_[i]->exchange_partitions_metadata(_return, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name); + return; + } + void get_partition_with_auth(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names) { size_t sz = ifaces_.size(); size_t i = 0; @@ -22066,6 +22249,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void exchange_partitions(std::vector & _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name); int32_t send_exchange_partitions(const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name); void recv_exchange_partitions(std::vector & _return, const int32_t seqid); + void exchange_partitions_metadata(std::vector & _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name); + int32_t send_exchange_partitions_metadata(const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name); + void recv_exchange_partitions_metadata(std::vector & _return, const int32_t seqid); void get_partition_with_auth(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names); int32_t send_get_partition_with_auth(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names); void recv_get_partition_with_auth(Partition& _return, const int32_t seqid); diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index dfa462d..73856b6 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -287,6 +287,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("exchange_partitions\n"); } + void exchange_partitions_metadata(std::vector & _return, const std::map & partitionSpecs, const std::string& source_db, const std::string& source_table_name, const std::string& dest_db, const std::string& dest_table_name) { + // Your implementation goes here + printf("exchange_partitions_metadata\n"); + } + void get_partition_with_auth(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names) { // Your implementation goes here printf("get_partition_with_auth\n"); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index b7b7da7..b9e86e2 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -148,6 +148,8 @@ public List exchange_partitions(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException; + public List exchange_partitions_metadata(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException; + public Partition get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; public Partition get_partition_by_name(String db_name, String tbl_name, String part_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; @@ -458,6 +460,8 @@ public void exchange_partitions(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void exchange_partitions_metadata(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void get_partition_by_name(String db_name, String tbl_name, String part_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -2292,6 +2296,45 @@ public void send_exchange_partitions(Map partitionSpecs, String s throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "exchange_partitions failed: unknown result"); } + public List exchange_partitions_metadata(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException + { + send_exchange_partitions_metadata(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name); + return recv_exchange_partitions_metadata(); + } + + public void send_exchange_partitions_metadata(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name) throws org.apache.thrift.TException + { + exchange_partitions_metadata_args args = new exchange_partitions_metadata_args(); + args.setPartitionSpecs(partitionSpecs); + args.setSource_db(source_db); + args.setSource_table_name(source_table_name); + args.setDest_db(dest_db); + args.setDest_table_name(dest_table_name); + sendBase("exchange_partitions_metadata", args); + } + + public List recv_exchange_partitions_metadata() throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException + { + exchange_partitions_metadata_result result = new exchange_partitions_metadata_result(); + receiveBase(result, "exchange_partitions_metadata"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + if (result.o3 != null) { + throw result.o3; + } + if (result.o4 != null) { + throw result.o4; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "exchange_partitions_metadata failed: unknown result"); + } + public Partition get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names); @@ -7003,6 +7046,50 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } + public void exchange_partitions_metadata(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + exchange_partitions_metadata_call method_call = new exchange_partitions_metadata_call(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class exchange_partitions_metadata_call extends org.apache.thrift.async.TAsyncMethodCall { + private Map partitionSpecs; + private String source_db; + private String source_table_name; + private String dest_db; + private String dest_table_name; + public exchange_partitions_metadata_call(Map partitionSpecs, String source_db, String source_table_name, String dest_db, String dest_table_name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.partitionSpecs = partitionSpecs; + this.source_db = source_db; + this.source_table_name = source_table_name; + this.dest_db = dest_db; + this.dest_table_name = dest_table_name; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("exchange_partitions_metadata", org.apache.thrift.protocol.TMessageType.CALL, 0)); + exchange_partitions_metadata_args args = new exchange_partitions_metadata_args(); + args.setPartitionSpecs(partitionSpecs); + args.setSource_db(source_db); + args.setSource_table_name(source_table_name); + args.setDest_db(dest_db); + args.setDest_table_name(dest_table_name); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException, 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_exchange_partitions_metadata(); + } + } + public void get_partition_with_auth(String db_name, String tbl_name, List part_vals, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partition_with_auth_call method_call = new get_partition_with_auth_call(db_name, tbl_name, part_vals, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); @@ -10551,6 +10638,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public exchange_partitions_metadata() { + super("exchange_partitions_metadata"); + } + + public exchange_partitions_metadata_args getEmptyArgsInstance() { + return new exchange_partitions_metadata_args(); + } + + protected boolean isOneway() { + return false; + } + + public exchange_partitions_metadata_result getResult(I iface, exchange_partitions_metadata_args args) throws org.apache.thrift.TException { + exchange_partitions_metadata_result result = new exchange_partitions_metadata_result(); + try { + result.success = iface.exchange_partitions_metadata(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name); + } catch (MetaException o1) { + result.o1 = o1; + } catch (NoSuchObjectException o2) { + result.o2 = o2; + } catch (InvalidObjectException o3) { + result.o3 = o3; + } catch (InvalidInputException o4) { + result.o4 = o4; + } + return result; + } + } + public static class get_partition_with_auth extends org.apache.thrift.ProcessFunction { public get_partition_with_auth() { super("get_partition_with_auth"); @@ -14616,6 +14734,7 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction { - public get_partition_with_auth() { - super("get_partition_with_auth"); + public static class exchange_partitions_metadata extends org.apache.thrift.AsyncProcessFunction> { + public exchange_partitions_metadata() { + super("exchange_partitions_metadata"); } - public get_partition_with_auth_args getEmptyArgsInstance() { - return new get_partition_with_auth_args(); + public exchange_partitions_metadata_args getEmptyArgsInstance() { + return new exchange_partitions_metadata_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Partition o) { - get_partition_with_auth_result result = new get_partition_with_auth_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + exchange_partitions_metadata_result result = new exchange_partitions_metadata_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18108,7 +18227,7 @@ public void onComplete(Partition o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partition_with_auth_result result = new get_partition_with_auth_result(); + exchange_partitions_metadata_result result = new exchange_partitions_metadata_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -18119,6 +18238,16 @@ else if (e instanceof NoSuchObjectException) { result.setO2IsSet(true); msg = result; } + else if (e instanceof InvalidObjectException) { + result.o3 = (InvalidObjectException) e; + result.setO3IsSet(true); + msg = result; + } + else if (e instanceof InvalidInputException) { + result.o4 = (InvalidInputException) e; + result.setO4IsSet(true); + msg = result; + } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; @@ -18139,25 +18268,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partition_with_auth_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names,resultHandler); + public void start(I iface, exchange_partitions_metadata_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.exchange_partitions_metadata(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name,resultHandler); } } - public static class get_partition_by_name extends org.apache.thrift.AsyncProcessFunction { - public get_partition_by_name() { - super("get_partition_by_name"); + public static class get_partition_with_auth extends org.apache.thrift.AsyncProcessFunction { + public get_partition_with_auth() { + super("get_partition_with_auth"); } - public get_partition_by_name_args getEmptyArgsInstance() { - return new get_partition_by_name_args(); + public get_partition_with_auth_args getEmptyArgsInstance() { + return new get_partition_with_auth_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Partition o) { - get_partition_by_name_result result = new get_partition_by_name_result(); + get_partition_with_auth_result result = new get_partition_with_auth_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18170,7 +18299,7 @@ public void onComplete(Partition o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partition_by_name_result result = new get_partition_by_name_result(); + get_partition_with_auth_result result = new get_partition_with_auth_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -18201,25 +18330,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partition_by_name_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partition_by_name(args.db_name, args.tbl_name, args.part_name,resultHandler); + public void start(I iface, get_partition_with_auth_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names,resultHandler); } } - public static class get_partitions extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions() { - super("get_partitions"); + public static class get_partition_by_name extends org.apache.thrift.AsyncProcessFunction { + public get_partition_by_name() { + super("get_partition_by_name"); } - public get_partitions_args getEmptyArgsInstance() { - return new get_partitions_args(); + public get_partition_by_name_args getEmptyArgsInstance() { + return new get_partition_by_name_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_result result = new get_partitions_result(); + return new AsyncMethodCallback() { + public void onComplete(Partition o) { + get_partition_by_name_result result = new get_partition_by_name_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18232,14 +18361,14 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partitions_result result = new get_partitions_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; + get_partition_by_name_result result = new get_partition_by_name_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) e; result.setO2IsSet(true); msg = result; } @@ -18263,87 +18392,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partitions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions(args.db_name, args.tbl_name, args.max_parts,resultHandler); + public void start(I iface, get_partition_by_name_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_partition_by_name(args.db_name, args.tbl_name, args.part_name,resultHandler); } } - public static class get_partitions_with_auth extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_with_auth() { - super("get_partitions_with_auth"); + public static class get_partitions extends org.apache.thrift.AsyncProcessFunction> { + public get_partitions() { + super("get_partitions"); } - public get_partitions_with_auth_args getEmptyArgsInstance() { - return new get_partitions_with_auth_args(); + public get_partitions_args getEmptyArgsInstance() { + return new get_partitions_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - get_partitions_with_auth_result result = new get_partitions_with_auth_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partitions_with_auth_result result = new get_partitions_with_auth_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partitions_with_auth_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names,resultHandler); - } - } - - public static class get_partitions_pspec extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_pspec() { - super("get_partitions_pspec"); - } - - public get_partitions_pspec_args getEmptyArgsInstance() { - return new get_partitions_pspec_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_pspec_result result = new get_partitions_pspec_result(); + get_partitions_result result = new get_partitions_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18356,7 +18423,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partitions_pspec_result result = new get_partitions_pspec_result(); + get_partitions_result result = new get_partitions_result(); if (e instanceof NoSuchObjectException) { result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); @@ -18387,82 +18454,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partitions_pspec_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_pspec(args.db_name, args.tbl_name, args.max_parts,resultHandler); - } - } - - public static class get_partition_names extends org.apache.thrift.AsyncProcessFunction> { - public get_partition_names() { - super("get_partition_names"); - } - - public get_partition_names_args getEmptyArgsInstance() { - return new get_partition_names_args(); - } - - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { - final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partition_names_result result = new get_partition_names_result(); - result.success = o; - try { - fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); - return; - } catch (Exception e) { - LOGGER.error("Exception writing to internal frame buffer", e); - } - fb.close(); - } - public void onError(Exception e) { - byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; - org.apache.thrift.TBase msg; - get_partition_names_result result = new get_partition_names_result(); - if (e instanceof MetaException) { - result.o2 = (MetaException) e; - result.setO2IsSet(true); - msg = result; - } - else - { - msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; - msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); - } - try { - fcall.sendResponse(fb,msg,msgType,seqid); - return; - } catch (Exception ex) { - LOGGER.error("Exception writing to internal frame buffer", ex); - } - fb.close(); - } - }; - } - - protected boolean isOneway() { - return false; - } - - public void start(I iface, get_partition_names_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partition_names(args.db_name, args.tbl_name, args.max_parts,resultHandler); + public void start(I iface, get_partitions_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_partitions(args.db_name, args.tbl_name, args.max_parts,resultHandler); } } - public static class get_partitions_ps extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_ps() { - super("get_partitions_ps"); + public static class get_partitions_with_auth extends org.apache.thrift.AsyncProcessFunction> { + public get_partitions_with_auth() { + super("get_partitions_with_auth"); } - public get_partitions_ps_args getEmptyArgsInstance() { - return new get_partitions_ps_args(); + public get_partitions_with_auth_args getEmptyArgsInstance() { + return new get_partitions_with_auth_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - get_partitions_ps_result result = new get_partitions_ps_result(); + get_partitions_with_auth_result result = new get_partitions_with_auth_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18475,14 +18485,14 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partitions_ps_result result = new get_partitions_ps_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; + get_partitions_with_auth_result result = new get_partitions_with_auth_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; + else if (e instanceof MetaException) { + result.o2 = (MetaException) e; result.setO2IsSet(true); msg = result; } @@ -18506,25 +18516,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partitions_ps_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts,resultHandler); + public void start(I iface, get_partitions_with_auth_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names,resultHandler); } } - public static class get_partitions_ps_with_auth extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_ps_with_auth() { - super("get_partitions_ps_with_auth"); + public static class get_partitions_pspec extends org.apache.thrift.AsyncProcessFunction> { + public get_partitions_pspec() { + super("get_partitions_pspec"); } - public get_partitions_ps_with_auth_args getEmptyArgsInstance() { - return new get_partitions_ps_with_auth_args(); + public get_partitions_pspec_args getEmptyArgsInstance() { + return new get_partitions_pspec_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_ps_with_auth_result result = new get_partitions_ps_with_auth_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_partitions_pspec_result result = new get_partitions_pspec_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18537,7 +18547,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partitions_ps_with_auth_result result = new get_partitions_ps_with_auth_result(); + get_partitions_pspec_result result = new get_partitions_pspec_result(); if (e instanceof NoSuchObjectException) { result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); @@ -18568,25 +18578,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partitions_ps_with_auth_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_ps_with_auth(args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names,resultHandler); + public void start(I iface, get_partitions_pspec_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_partitions_pspec(args.db_name, args.tbl_name, args.max_parts,resultHandler); } } - public static class get_partition_names_ps extends org.apache.thrift.AsyncProcessFunction> { - public get_partition_names_ps() { - super("get_partition_names_ps"); + public static class get_partition_names extends org.apache.thrift.AsyncProcessFunction> { + public get_partition_names() { + super("get_partition_names"); } - public get_partition_names_ps_args getEmptyArgsInstance() { - return new get_partition_names_ps_args(); + public get_partition_names_args getEmptyArgsInstance() { + return new get_partition_names_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - get_partition_names_ps_result result = new get_partition_names_ps_result(); + get_partition_names_result result = new get_partition_names_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18599,14 +18609,9 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partition_names_ps_result result = new get_partition_names_ps_result(); + get_partition_names_result result = new get_partition_names_result(); if (e instanceof MetaException) { - result.o1 = (MetaException) e; - result.setO1IsSet(true); - msg = result; - } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; + result.o2 = (MetaException) e; result.setO2IsSet(true); msg = result; } @@ -18630,25 +18635,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partition_names_ps_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts,resultHandler); + public void start(I iface, get_partition_names_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_partition_names(args.db_name, args.tbl_name, args.max_parts,resultHandler); } } - public static class get_partitions_by_filter extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_by_filter() { - super("get_partitions_by_filter"); + public static class get_partitions_ps extends org.apache.thrift.AsyncProcessFunction> { + public get_partitions_ps() { + super("get_partitions_ps"); } - public get_partitions_by_filter_args getEmptyArgsInstance() { - return new get_partitions_by_filter_args(); + public get_partitions_ps_args getEmptyArgsInstance() { + return new get_partitions_ps_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - get_partitions_by_filter_result result = new get_partitions_by_filter_result(); + get_partitions_ps_result result = new get_partitions_ps_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18661,7 +18666,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partitions_by_filter_result result = new get_partitions_by_filter_result(); + get_partitions_ps_result result = new get_partitions_ps_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -18692,25 +18697,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partitions_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts,resultHandler); + public void start(I iface, get_partitions_ps_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts,resultHandler); } } - public static class get_part_specs_by_filter extends org.apache.thrift.AsyncProcessFunction> { - public get_part_specs_by_filter() { - super("get_part_specs_by_filter"); + public static class get_partitions_ps_with_auth extends org.apache.thrift.AsyncProcessFunction> { + public get_partitions_ps_with_auth() { + super("get_partitions_ps_with_auth"); } - public get_part_specs_by_filter_args getEmptyArgsInstance() { - return new get_part_specs_by_filter_args(); + public get_partitions_ps_with_auth_args getEmptyArgsInstance() { + return new get_partitions_ps_with_auth_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_part_specs_by_filter_result result = new get_part_specs_by_filter_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_partitions_ps_with_auth_result result = new get_partitions_ps_with_auth_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18723,14 +18728,14 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_part_specs_by_filter_result result = new get_part_specs_by_filter_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; + get_partitions_ps_with_auth_result result = new get_partitions_ps_with_auth_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; + else if (e instanceof MetaException) { + result.o2 = (MetaException) e; result.setO2IsSet(true); msg = result; } @@ -18754,25 +18759,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_part_specs_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_part_specs_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts,resultHandler); + public void start(I iface, get_partitions_ps_with_auth_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_partitions_ps_with_auth(args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names,resultHandler); } } - public static class get_partitions_by_expr extends org.apache.thrift.AsyncProcessFunction { - public get_partitions_by_expr() { - super("get_partitions_by_expr"); + public static class get_partition_names_ps extends org.apache.thrift.AsyncProcessFunction> { + public get_partition_names_ps() { + super("get_partition_names_ps"); } - public get_partitions_by_expr_args getEmptyArgsInstance() { - return new get_partitions_by_expr_args(); + public get_partition_names_ps_args getEmptyArgsInstance() { + return new get_partition_names_ps_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(PartitionsByExprResult o) { - get_partitions_by_expr_result result = new get_partitions_by_expr_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_partition_names_ps_result result = new get_partition_names_ps_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18785,7 +18790,7 @@ public void onComplete(PartitionsByExprResult o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partitions_by_expr_result result = new get_partitions_by_expr_result(); + get_partition_names_ps_result result = new get_partition_names_ps_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -18816,27 +18821,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partitions_by_expr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_partitions_by_expr(args.req,resultHandler); + public void start(I iface, get_partition_names_ps_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts,resultHandler); } } - public static class get_num_partitions_by_filter extends org.apache.thrift.AsyncProcessFunction { - public get_num_partitions_by_filter() { - super("get_num_partitions_by_filter"); + public static class get_partitions_by_filter extends org.apache.thrift.AsyncProcessFunction> { + public get_partitions_by_filter() { + super("get_partitions_by_filter"); } - public get_num_partitions_by_filter_args getEmptyArgsInstance() { - return new get_num_partitions_by_filter_args(); + public get_partitions_by_filter_args getEmptyArgsInstance() { + return new get_partitions_by_filter_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Integer o) { - get_num_partitions_by_filter_result result = new get_num_partitions_by_filter_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_partitions_by_filter_result result = new get_partitions_by_filter_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18848,7 +18852,7 @@ public void onComplete(Integer o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_num_partitions_by_filter_result result = new get_num_partitions_by_filter_result(); + get_partitions_by_filter_result result = new get_partitions_by_filter_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -18879,25 +18883,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_num_partitions_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_num_partitions_by_filter(args.db_name, args.tbl_name, args.filter,resultHandler); + public void start(I iface, get_partitions_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts,resultHandler); } } - public static class get_partitions_by_names extends org.apache.thrift.AsyncProcessFunction> { - public get_partitions_by_names() { - super("get_partitions_by_names"); + public static class get_part_specs_by_filter extends org.apache.thrift.AsyncProcessFunction> { + public get_part_specs_by_filter() { + super("get_part_specs_by_filter"); } - public get_partitions_by_names_args getEmptyArgsInstance() { - return new get_partitions_by_names_args(); + public get_part_specs_by_filter_args getEmptyArgsInstance() { + return new get_part_specs_by_filter_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_partitions_by_names_result result = new get_partitions_by_names_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_part_specs_by_filter_result result = new get_part_specs_by_filter_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -18910,7 +18914,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partitions_by_names_result result = new get_partitions_by_names_result(); + get_part_specs_by_filter_result result = new get_part_specs_by_filter_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -18941,25 +18945,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_partitions_by_names_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_partitions_by_names(args.db_name, args.tbl_name, args.names,resultHandler); + public void start(I iface, get_part_specs_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_part_specs_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts,resultHandler); } } - public static class alter_partition extends org.apache.thrift.AsyncProcessFunction { - public alter_partition() { - super("alter_partition"); + public static class get_partitions_by_expr extends org.apache.thrift.AsyncProcessFunction { + public get_partitions_by_expr() { + super("get_partitions_by_expr"); } - public alter_partition_args getEmptyArgsInstance() { - return new alter_partition_args(); + public get_partitions_by_expr_args getEmptyArgsInstance() { + return new get_partitions_by_expr_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_partition_result result = new alter_partition_result(); + return new AsyncMethodCallback() { + public void onComplete(PartitionsByExprResult o) { + get_partitions_by_expr_result result = new get_partitions_by_expr_result(); + result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18971,14 +18976,14 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - alter_partition_result result = new alter_partition_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; + get_partitions_by_expr_result result = new get_partitions_by_expr_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) e; result.setO2IsSet(true); msg = result; } @@ -19002,25 +19007,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, alter_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.alter_partition(args.db_name, args.tbl_name, args.new_part,resultHandler); + public void start(I iface, get_partitions_by_expr_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_partitions_by_expr(args.req,resultHandler); } } - public static class alter_partitions extends org.apache.thrift.AsyncProcessFunction { - public alter_partitions() { - super("alter_partitions"); + public static class get_num_partitions_by_filter extends org.apache.thrift.AsyncProcessFunction { + public get_num_partitions_by_filter() { + super("get_num_partitions_by_filter"); } - public alter_partitions_args getEmptyArgsInstance() { - return new alter_partitions_args(); + public get_num_partitions_by_filter_args getEmptyArgsInstance() { + return new get_num_partitions_by_filter_args(); } - public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback() { - public void onComplete(Void o) { - alter_partitions_result result = new alter_partitions_result(); + return new AsyncMethodCallback() { + public void onComplete(Integer o) { + get_num_partitions_by_filter_result result = new get_num_partitions_by_filter_result(); + result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -19032,14 +19039,198 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - alter_partitions_result result = new alter_partitions_result(); - if (e instanceof InvalidOperationException) { - result.o1 = (InvalidOperationException) e; + get_num_partitions_by_filter_result result = new get_num_partitions_by_filter_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) e; + result.setO2IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_num_partitions_by_filter_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_num_partitions_by_filter(args.db_name, args.tbl_name, args.filter,resultHandler); + } + } + + public static class get_partitions_by_names extends org.apache.thrift.AsyncProcessFunction> { + public get_partitions_by_names() { + super("get_partitions_by_names"); + } + + public get_partitions_by_names_args getEmptyArgsInstance() { + return new get_partitions_by_names_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_partitions_by_names_result result = new get_partitions_by_names_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_partitions_by_names_result result = new get_partitions_by_names_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) e; + result.setO2IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_partitions_by_names_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_partitions_by_names(args.db_name, args.tbl_name, args.names,resultHandler); + } + } + + public static class alter_partition extends org.apache.thrift.AsyncProcessFunction { + public alter_partition() { + super("alter_partition"); + } + + public alter_partition_args getEmptyArgsInstance() { + return new alter_partition_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + alter_partition_result result = new alter_partition_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + alter_partition_result result = new alter_partition_result(); + if (e instanceof InvalidOperationException) { + result.o1 = (InvalidOperationException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof MetaException) { + result.o2 = (MetaException) e; + result.setO2IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, alter_partition_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.alter_partition(args.db_name, args.tbl_name, args.new_part,resultHandler); + } + } + + public static class alter_partitions extends org.apache.thrift.AsyncProcessFunction { + public alter_partitions() { + super("alter_partitions"); + } + + public alter_partitions_args getEmptyArgsInstance() { + return new alter_partitions_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + alter_partitions_result result = new alter_partitions_result(); + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + alter_partitions_result result = new alter_partitions_result(); + if (e instanceof InvalidOperationException) { + result.o1 = (InvalidOperationException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof MetaException) { + result.o2 = (MetaException) e; result.setO2IsSet(true); msg = result; } @@ -78627,12 +78818,1511 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_result) - return this.equals((get_partition_result)that); + if (that instanceof get_partition_result) + return this.equals((get_partition_result)that); + return false; + } + + public boolean equals(get_partition_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + return list.hashCode(); + } + + @Override + public int compareTo(get_partition_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_partition_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (success != null) { + success.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_partition_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_resultStandardScheme getScheme() { + return new get_partition_resultStandardScheme(); + } + } + + private static class get_partition_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + 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.STRUCT) { + struct.success = new Partition(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new NoSuchObjectException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_partition_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_resultTupleScheme getScheme() { + return new get_partition_resultTupleScheme(); + } + } + + private static class get_partition_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetO1()) { + optionals.set(1); + } + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = new Partition(); + struct.success.read(iprot); + 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.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + public static class exchange_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partition_args"); + + private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); + private static final org.apache.thrift.protocol.TField SOURCE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("source_db", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField SOURCE_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("source_table_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DEST_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_db", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField DEST_TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dest_table_name", org.apache.thrift.protocol.TType.STRING, (short)5); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new exchange_partition_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partition_argsTupleSchemeFactory()); + } + + private Map partitionSpecs; // required + private String source_db; // required + private String source_table_name; // required + private String dest_db; // required + private String dest_table_name; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + PARTITION_SPECS((short)1, "partitionSpecs"), + SOURCE_DB((short)2, "source_db"), + SOURCE_TABLE_NAME((short)3, "source_table_name"), + DEST_DB((short)4, "dest_db"), + DEST_TABLE_NAME((short)5, "dest_table_name"); + + 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: // PARTITION_SPECS + return PARTITION_SPECS; + case 2: // SOURCE_DB + return SOURCE_DB; + case 3: // SOURCE_TABLE_NAME + return SOURCE_TABLE_NAME; + case 4: // DEST_DB + return DEST_DB; + case 5: // DEST_TABLE_NAME + return DEST_TABLE_NAME; + default: + return null; + } + } + + /** + * 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.PARTITION_SPECS, new org.apache.thrift.meta_data.FieldMetaData("partitionSpecs", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + tmpMap.put(_Fields.SOURCE_DB, new org.apache.thrift.meta_data.FieldMetaData("source_db", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.SOURCE_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("source_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DEST_DB, new org.apache.thrift.meta_data.FieldMetaData("dest_db", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DEST_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("dest_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_args.class, metaDataMap); + } + + public exchange_partition_args() { + } + + public exchange_partition_args( + Map partitionSpecs, + String source_db, + String source_table_name, + String dest_db, + String dest_table_name) + { + this(); + this.partitionSpecs = partitionSpecs; + this.source_db = source_db; + this.source_table_name = source_table_name; + this.dest_db = dest_db; + this.dest_table_name = dest_table_name; + } + + /** + * Performs a deep copy on other. + */ + public exchange_partition_args(exchange_partition_args other) { + if (other.isSetPartitionSpecs()) { + Map __this__partitionSpecs = new HashMap(other.partitionSpecs); + this.partitionSpecs = __this__partitionSpecs; + } + if (other.isSetSource_db()) { + this.source_db = other.source_db; + } + if (other.isSetSource_table_name()) { + this.source_table_name = other.source_table_name; + } + if (other.isSetDest_db()) { + this.dest_db = other.dest_db; + } + if (other.isSetDest_table_name()) { + this.dest_table_name = other.dest_table_name; + } + } + + public exchange_partition_args deepCopy() { + return new exchange_partition_args(this); + } + + @Override + public void clear() { + this.partitionSpecs = null; + this.source_db = null; + this.source_table_name = null; + this.dest_db = null; + this.dest_table_name = null; + } + + public int getPartitionSpecsSize() { + return (this.partitionSpecs == null) ? 0 : this.partitionSpecs.size(); + } + + public void putToPartitionSpecs(String key, String val) { + if (this.partitionSpecs == null) { + this.partitionSpecs = new HashMap(); + } + this.partitionSpecs.put(key, val); + } + + public Map getPartitionSpecs() { + return this.partitionSpecs; + } + + public void setPartitionSpecs(Map partitionSpecs) { + this.partitionSpecs = partitionSpecs; + } + + public void unsetPartitionSpecs() { + this.partitionSpecs = null; + } + + /** Returns true if field partitionSpecs is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionSpecs() { + return this.partitionSpecs != null; + } + + public void setPartitionSpecsIsSet(boolean value) { + if (!value) { + this.partitionSpecs = null; + } + } + + public String getSource_db() { + return this.source_db; + } + + public void setSource_db(String source_db) { + this.source_db = source_db; + } + + public void unsetSource_db() { + this.source_db = null; + } + + /** Returns true if field source_db is set (has been assigned a value) and false otherwise */ + public boolean isSetSource_db() { + return this.source_db != null; + } + + public void setSource_dbIsSet(boolean value) { + if (!value) { + this.source_db = null; + } + } + + public String getSource_table_name() { + return this.source_table_name; + } + + public void setSource_table_name(String source_table_name) { + this.source_table_name = source_table_name; + } + + public void unsetSource_table_name() { + this.source_table_name = null; + } + + /** Returns true if field source_table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetSource_table_name() { + return this.source_table_name != null; + } + + public void setSource_table_nameIsSet(boolean value) { + if (!value) { + this.source_table_name = null; + } + } + + public String getDest_db() { + return this.dest_db; + } + + public void setDest_db(String dest_db) { + this.dest_db = dest_db; + } + + public void unsetDest_db() { + this.dest_db = null; + } + + /** Returns true if field dest_db is set (has been assigned a value) and false otherwise */ + public boolean isSetDest_db() { + return this.dest_db != null; + } + + public void setDest_dbIsSet(boolean value) { + if (!value) { + this.dest_db = null; + } + } + + public String getDest_table_name() { + return this.dest_table_name; + } + + public void setDest_table_name(String dest_table_name) { + this.dest_table_name = dest_table_name; + } + + public void unsetDest_table_name() { + this.dest_table_name = null; + } + + /** Returns true if field dest_table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDest_table_name() { + return this.dest_table_name != null; + } + + public void setDest_table_nameIsSet(boolean value) { + if (!value) { + this.dest_table_name = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PARTITION_SPECS: + if (value == null) { + unsetPartitionSpecs(); + } else { + setPartitionSpecs((Map)value); + } + break; + + case SOURCE_DB: + if (value == null) { + unsetSource_db(); + } else { + setSource_db((String)value); + } + break; + + case SOURCE_TABLE_NAME: + if (value == null) { + unsetSource_table_name(); + } else { + setSource_table_name((String)value); + } + break; + + case DEST_DB: + if (value == null) { + unsetDest_db(); + } else { + setDest_db((String)value); + } + break; + + case DEST_TABLE_NAME: + if (value == null) { + unsetDest_table_name(); + } else { + setDest_table_name((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PARTITION_SPECS: + return getPartitionSpecs(); + + case SOURCE_DB: + return getSource_db(); + + case SOURCE_TABLE_NAME: + return getSource_table_name(); + + case DEST_DB: + return getDest_db(); + + case DEST_TABLE_NAME: + return getDest_table_name(); + + } + throw new IllegalStateException(); + } + + /** 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 PARTITION_SPECS: + return isSetPartitionSpecs(); + case SOURCE_DB: + return isSetSource_db(); + case SOURCE_TABLE_NAME: + return isSetSource_table_name(); + case DEST_DB: + return isSetDest_db(); + case DEST_TABLE_NAME: + return isSetDest_table_name(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof exchange_partition_args) + return this.equals((exchange_partition_args)that); + return false; + } + + public boolean equals(exchange_partition_args that) { + if (that == null) + return false; + + boolean this_present_partitionSpecs = true && this.isSetPartitionSpecs(); + boolean that_present_partitionSpecs = true && that.isSetPartitionSpecs(); + if (this_present_partitionSpecs || that_present_partitionSpecs) { + if (!(this_present_partitionSpecs && that_present_partitionSpecs)) + return false; + if (!this.partitionSpecs.equals(that.partitionSpecs)) + return false; + } + + boolean this_present_source_db = true && this.isSetSource_db(); + boolean that_present_source_db = true && that.isSetSource_db(); + if (this_present_source_db || that_present_source_db) { + if (!(this_present_source_db && that_present_source_db)) + return false; + if (!this.source_db.equals(that.source_db)) + return false; + } + + boolean this_present_source_table_name = true && this.isSetSource_table_name(); + boolean that_present_source_table_name = true && that.isSetSource_table_name(); + if (this_present_source_table_name || that_present_source_table_name) { + if (!(this_present_source_table_name && that_present_source_table_name)) + return false; + if (!this.source_table_name.equals(that.source_table_name)) + return false; + } + + boolean this_present_dest_db = true && this.isSetDest_db(); + boolean that_present_dest_db = true && that.isSetDest_db(); + if (this_present_dest_db || that_present_dest_db) { + if (!(this_present_dest_db && that_present_dest_db)) + return false; + if (!this.dest_db.equals(that.dest_db)) + return false; + } + + boolean this_present_dest_table_name = true && this.isSetDest_table_name(); + boolean that_present_dest_table_name = true && that.isSetDest_table_name(); + if (this_present_dest_table_name || that_present_dest_table_name) { + if (!(this_present_dest_table_name && that_present_dest_table_name)) + return false; + if (!this.dest_table_name.equals(that.dest_table_name)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_partitionSpecs = true && (isSetPartitionSpecs()); + list.add(present_partitionSpecs); + if (present_partitionSpecs) + list.add(partitionSpecs); + + boolean present_source_db = true && (isSetSource_db()); + list.add(present_source_db); + if (present_source_db) + list.add(source_db); + + boolean present_source_table_name = true && (isSetSource_table_name()); + list.add(present_source_table_name); + if (present_source_table_name) + list.add(source_table_name); + + boolean present_dest_db = true && (isSetDest_db()); + list.add(present_dest_db); + if (present_dest_db) + list.add(dest_db); + + boolean present_dest_table_name = true && (isSetDest_table_name()); + list.add(present_dest_table_name); + if (present_dest_table_name) + list.add(dest_table_name); + + return list.hashCode(); + } + + @Override + public int compareTo(exchange_partition_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetPartitionSpecs()).compareTo(other.isSetPartitionSpecs()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitionSpecs()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionSpecs, other.partitionSpecs); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetSource_db()).compareTo(other.isSetSource_db()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSource_db()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_db, other.source_db); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetSource_table_name()).compareTo(other.isSetSource_table_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSource_table_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_table_name, other.source_table_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDest_db()).compareTo(other.isSetDest_db()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDest_db()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_db, other.dest_db); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDest_table_name()).compareTo(other.isSetDest_table_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDest_table_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dest_table_name, other.dest_table_name); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("exchange_partition_args("); + boolean first = true; + + sb.append("partitionSpecs:"); + if (this.partitionSpecs == null) { + sb.append("null"); + } else { + sb.append(this.partitionSpecs); + } + first = false; + if (!first) sb.append(", "); + sb.append("source_db:"); + if (this.source_db == null) { + sb.append("null"); + } else { + sb.append(this.source_db); + } + first = false; + if (!first) sb.append(", "); + sb.append("source_table_name:"); + if (this.source_table_name == null) { + sb.append("null"); + } else { + sb.append(this.source_table_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("dest_db:"); + if (this.dest_db == null) { + sb.append("null"); + } else { + sb.append(this.dest_db); + } + first = false; + if (!first) sb.append(", "); + sb.append("dest_table_name:"); + if (this.dest_table_name == null) { + sb.append("null"); + } else { + sb.append(this.dest_table_name); + } + first = false; + sb.append(")"); + 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 exchange_partition_argsStandardSchemeFactory implements SchemeFactory { + public exchange_partition_argsStandardScheme getScheme() { + return new exchange_partition_argsStandardScheme(); + } + } + + private static class exchange_partition_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // PARTITION_SPECS + if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { + { + org.apache.thrift.protocol.TMap _map868 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map868.size); + String _key869; + String _val870; + for (int _i871 = 0; _i871 < _map868.size; ++_i871) + { + _key869 = iprot.readString(); + _val870 = iprot.readString(); + struct.partitionSpecs.put(_key869, _val870); + } + iprot.readMapEnd(); + } + struct.setPartitionSpecsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // SOURCE_DB + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.source_db = iprot.readString(); + struct.setSource_dbIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // SOURCE_TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.source_table_name = iprot.readString(); + struct.setSource_table_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // DEST_DB + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dest_db = iprot.readString(); + struct.setDest_dbIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // DEST_TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dest_table_name = iprot.readString(); + struct.setDest_table_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + 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, exchange_partition_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.partitionSpecs != null) { + oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); + { + oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); + for (Map.Entry _iter872 : struct.partitionSpecs.entrySet()) + { + oprot.writeString(_iter872.getKey()); + oprot.writeString(_iter872.getValue()); + } + oprot.writeMapEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.source_db != null) { + oprot.writeFieldBegin(SOURCE_DB_FIELD_DESC); + oprot.writeString(struct.source_db); + oprot.writeFieldEnd(); + } + if (struct.source_table_name != null) { + oprot.writeFieldBegin(SOURCE_TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.source_table_name); + oprot.writeFieldEnd(); + } + if (struct.dest_db != null) { + oprot.writeFieldBegin(DEST_DB_FIELD_DESC); + oprot.writeString(struct.dest_db); + oprot.writeFieldEnd(); + } + if (struct.dest_table_name != null) { + oprot.writeFieldBegin(DEST_TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.dest_table_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class exchange_partition_argsTupleSchemeFactory implements SchemeFactory { + public exchange_partition_argsTupleScheme getScheme() { + return new exchange_partition_argsTupleScheme(); + } + } + + private static class exchange_partition_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetPartitionSpecs()) { + optionals.set(0); + } + if (struct.isSetSource_db()) { + optionals.set(1); + } + if (struct.isSetSource_table_name()) { + optionals.set(2); + } + if (struct.isSetDest_db()) { + optionals.set(3); + } + if (struct.isSetDest_table_name()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); + if (struct.isSetPartitionSpecs()) { + { + oprot.writeI32(struct.partitionSpecs.size()); + for (Map.Entry _iter873 : struct.partitionSpecs.entrySet()) + { + oprot.writeString(_iter873.getKey()); + oprot.writeString(_iter873.getValue()); + } + } + } + if (struct.isSetSource_db()) { + oprot.writeString(struct.source_db); + } + if (struct.isSetSource_table_name()) { + oprot.writeString(struct.source_table_name); + } + if (struct.isSetDest_db()) { + oprot.writeString(struct.dest_db); + } + if (struct.isSetDest_table_name()) { + oprot.writeString(struct.dest_table_name); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + { + org.apache.thrift.protocol.TMap _map874 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map874.size); + String _key875; + String _val876; + for (int _i877 = 0; _i877 < _map874.size; ++_i877) + { + _key875 = iprot.readString(); + _val876 = iprot.readString(); + struct.partitionSpecs.put(_key875, _val876); + } + } + struct.setPartitionSpecsIsSet(true); + } + if (incoming.get(1)) { + struct.source_db = iprot.readString(); + struct.setSource_dbIsSet(true); + } + if (incoming.get(2)) { + struct.source_table_name = iprot.readString(); + struct.setSource_table_nameIsSet(true); + } + if (incoming.get(3)) { + struct.dest_db = iprot.readString(); + struct.setDest_dbIsSet(true); + } + if (incoming.get(4)) { + struct.dest_table_name = iprot.readString(); + struct.setDest_table_nameIsSet(true); + } + } + } + + } + + public static class exchange_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partition_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); + private static final org.apache.thrift.protocol.TField O4_FIELD_DESC = new org.apache.thrift.protocol.TField("o4", org.apache.thrift.protocol.TType.STRUCT, (short)4); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new exchange_partition_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partition_resultTupleSchemeFactory()); + } + + private Partition success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required + private InvalidObjectException o3; // required + private InvalidInputException o4; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + O1((short)1, "o1"), + O2((short)2, "o2"), + O3((short)3, "o3"), + O4((short)4, "o4"); + + 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; + case 3: // O3 + return O3; + case 4: // O4 + return O4; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_result.class, metaDataMap); + } + + public exchange_partition_result() { + } + + public exchange_partition_result( + Partition success, + MetaException o1, + NoSuchObjectException o2, + InvalidObjectException o3, + InvalidInputException o4) + { + this(); + this.success = success; + this.o1 = o1; + this.o2 = o2; + this.o3 = o3; + this.o4 = o4; + } + + /** + * Performs a deep copy on other. + */ + public exchange_partition_result(exchange_partition_result other) { + if (other.isSetSuccess()) { + this.success = new Partition(other.success); + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new NoSuchObjectException(other.o2); + } + if (other.isSetO3()) { + this.o3 = new InvalidObjectException(other.o3); + } + if (other.isSetO4()) { + this.o4 = new InvalidInputException(other.o4); + } + } + + public exchange_partition_result deepCopy() { + return new exchange_partition_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + this.o2 = null; + this.o3 = null; + this.o4 = null; + } + + public Partition getSuccess() { + return this.success; + } + + public void setSuccess(Partition success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public NoSuchObjectException getO2() { + return this.o2; + } + + public void setO2(NoSuchObjectException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public InvalidObjectException getO3() { + return this.o3; + } + + public void setO3(InvalidObjectException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + + public InvalidInputException getO4() { + return this.o4; + } + + public void setO4(InvalidInputException o4) { + this.o4 = o4; + } + + public void unsetO4() { + this.o4 = null; + } + + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ + public boolean isSetO4() { + return this.o4 != null; + } + + public void setO4IsSet(boolean value) { + if (!value) { + this.o4 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Partition)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((NoSuchObjectException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((InvalidObjectException)value); + } + break; + + case O4: + if (value == null) { + unsetO4(); + } else { + setO4((InvalidInputException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case O1: + return getO1(); + + case O2: + return getO2(); + + case O3: + return getO3(); + + case O4: + return getO4(); + + } + 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(); + case O3: + return isSetO3(); + case O4: + return isSetO4(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof exchange_partition_result) + return this.equals((exchange_partition_result)that); return false; } - public boolean equals(get_partition_result that) { + public boolean equals(exchange_partition_result that) { if (that == null) return false; @@ -78663,6 +80353,24 @@ public boolean equals(get_partition_result that) { return false; } + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + + boolean this_present_o4 = true && this.isSetO4(); + boolean that_present_o4 = true && that.isSetO4(); + if (this_present_o4 || that_present_o4) { + if (!(this_present_o4 && that_present_o4)) + return false; + if (!this.o4.equals(that.o4)) + return false; + } + return true; } @@ -78685,11 +80393,21 @@ public int hashCode() { if (present_o2) list.add(o2); + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + + boolean present_o4 = true && (isSetO4()); + list.add(present_o4); + if (present_o4) + list.add(o4); + return list.hashCode(); } @Override - public int compareTo(get_partition_result other) { + public int compareTo(exchange_partition_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -78726,6 +80444,26 @@ public int compareTo(get_partition_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO4()).compareTo(other.isSetO4()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO4()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, other.o4); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -78743,7 +80481,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_result("); + StringBuilder sb = new StringBuilder("exchange_partition_result("); boolean first = true; sb.append("success:"); @@ -78769,6 +80507,22 @@ public String toString() { sb.append(this.o2); } first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; + if (!first) sb.append(", "); + sb.append("o4:"); + if (this.o4 == null) { + sb.append("null"); + } else { + sb.append(this.o4); + } + first = false; sb.append(")"); return sb.toString(); } @@ -78797,15 +80551,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_resultStandardScheme getScheme() { - return new get_partition_resultStandardScheme(); + private static class exchange_partition_resultStandardSchemeFactory implements SchemeFactory { + public exchange_partition_resultStandardScheme getScheme() { + return new exchange_partition_resultStandardScheme(); } } - private static class get_partition_resultStandardScheme extends StandardScheme { + private static class exchange_partition_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -78842,6 +80596,24 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_resul org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new InvalidObjectException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // O4 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o4 = new InvalidInputException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -78851,7 +80623,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_resul struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -78870,22 +80642,32 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_resu struct.o2.write(oprot); oprot.writeFieldEnd(); } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o4 != null) { + oprot.writeFieldBegin(O4_FIELD_DESC); + struct.o4.write(oprot); + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partition_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_resultTupleScheme getScheme() { - return new get_partition_resultTupleScheme(); + private static class exchange_partition_resultTupleSchemeFactory implements SchemeFactory { + public exchange_partition_resultTupleScheme getScheme() { + return new exchange_partition_resultTupleScheme(); } } - private static class get_partition_resultTupleScheme extends TupleScheme { + private static class exchange_partition_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -78897,7 +80679,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_resul if (struct.isSetO2()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetO3()) { + optionals.set(3); + } + if (struct.isSetO4()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { struct.success.write(oprot); } @@ -78907,12 +80695,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_resul if (struct.isSetO2()) { struct.o2.write(oprot); } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + if (struct.isSetO4()) { + struct.o4.write(oprot); + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.success = new Partition(); struct.success.read(iprot); @@ -78928,13 +80722,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result struct.o2.read(iprot); struct.setO2IsSet(true); } + if (incoming.get(3)) { + struct.o3 = new InvalidObjectException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + if (incoming.get(4)) { + struct.o4 = new InvalidInputException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } } } } - public static class exchange_partition_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partition_args"); + public static class exchange_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_args"); private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); private static final org.apache.thrift.protocol.TField SOURCE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("source_db", org.apache.thrift.protocol.TType.STRING, (short)2); @@ -78944,8 +80748,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_result private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new exchange_partition_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partition_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partitions_argsTupleSchemeFactory()); } private Map partitionSpecs; // required @@ -79041,13 +80845,13 @@ public String getFieldName() { tmpMap.put(_Fields.DEST_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("dest_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partitions_args.class, metaDataMap); } - public exchange_partition_args() { + public exchange_partitions_args() { } - public exchange_partition_args( + public exchange_partitions_args( Map partitionSpecs, String source_db, String source_table_name, @@ -79065,7 +80869,7 @@ public exchange_partition_args( /** * Performs a deep copy on other. */ - public exchange_partition_args(exchange_partition_args other) { + public exchange_partitions_args(exchange_partitions_args other) { if (other.isSetPartitionSpecs()) { Map __this__partitionSpecs = new HashMap(other.partitionSpecs); this.partitionSpecs = __this__partitionSpecs; @@ -79084,8 +80888,8 @@ public exchange_partition_args(exchange_partition_args other) { } } - public exchange_partition_args deepCopy() { - return new exchange_partition_args(this); + public exchange_partitions_args deepCopy() { + return new exchange_partitions_args(this); } @Override @@ -79314,12 +81118,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partition_args) - return this.equals((exchange_partition_args)that); + if (that instanceof exchange_partitions_args) + return this.equals((exchange_partitions_args)that); return false; } - public boolean equals(exchange_partition_args that) { + public boolean equals(exchange_partitions_args that) { if (that == null) return false; @@ -79404,7 +81208,7 @@ public int hashCode() { } @Override - public int compareTo(exchange_partition_args other) { + public int compareTo(exchange_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -79478,7 +81282,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partition_args("); + StringBuilder sb = new StringBuilder("exchange_partitions_args("); boolean first = true; sb.append("partitionSpecs:"); @@ -79545,15 +81349,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class exchange_partition_argsStandardSchemeFactory implements SchemeFactory { - public exchange_partition_argsStandardScheme getScheme() { - return new exchange_partition_argsStandardScheme(); + private static class exchange_partitions_argsStandardSchemeFactory implements SchemeFactory { + public exchange_partitions_argsStandardScheme getScheme() { + return new exchange_partitions_argsStandardScheme(); } } - private static class exchange_partition_argsStandardScheme extends StandardScheme { + private static class exchange_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -79566,15 +81370,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ case 1: // PARTITION_SPECS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map868 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map868.size); - String _key869; - String _val870; - for (int _i871 = 0; _i871 < _map868.size; ++_i871) + org.apache.thrift.protocol.TMap _map878 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map878.size); + String _key879; + String _val880; + for (int _i881 = 0; _i881 < _map878.size; ++_i881) { - _key869 = iprot.readString(); - _val870 = iprot.readString(); - struct.partitionSpecs.put(_key869, _val870); + _key879 = iprot.readString(); + _val880 = iprot.readString(); + struct.partitionSpecs.put(_key879, _val880); } iprot.readMapEnd(); } @@ -79624,7 +81428,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -79632,10 +81436,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter872 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter882 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter872.getKey()); - oprot.writeString(_iter872.getValue()); + oprot.writeString(_iter882.getKey()); + oprot.writeString(_iter882.getValue()); } oprot.writeMapEnd(); } @@ -79667,16 +81471,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition } - private static class exchange_partition_argsTupleSchemeFactory implements SchemeFactory { - public exchange_partition_argsTupleScheme getScheme() { - return new exchange_partition_argsTupleScheme(); + private static class exchange_partitions_argsTupleSchemeFactory implements SchemeFactory { + public exchange_partitions_argsTupleScheme getScheme() { + return new exchange_partitions_argsTupleScheme(); } } - private static class exchange_partition_argsTupleScheme extends TupleScheme { + private static class exchange_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetPartitionSpecs()) { @@ -79698,10 +81502,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter873 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter883 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter873.getKey()); - oprot.writeString(_iter873.getValue()); + oprot.writeString(_iter883.getKey()); + oprot.writeString(_iter883.getValue()); } } } @@ -79720,20 +81524,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map874 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map874.size); - String _key875; - String _val876; - for (int _i877 = 0; _i877 < _map874.size; ++_i877) + org.apache.thrift.protocol.TMap _map884 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map884.size); + String _key885; + String _val886; + for (int _i887 = 0; _i887 < _map884.size; ++_i887) { - _key875 = iprot.readString(); - _val876 = iprot.readString(); - struct.partitionSpecs.put(_key875, _val876); + _key885 = iprot.readString(); + _val886 = iprot.readString(); + struct.partitionSpecs.put(_key885, _val886); } } struct.setPartitionSpecsIsSet(true); @@ -79759,10 +81563,10 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_a } - public static class exchange_partition_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partition_result"); + public static class exchange_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final org.apache.thrift.protocol.TField O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)3); @@ -79770,11 +81574,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_a private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new exchange_partition_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partition_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partitions_resultTupleSchemeFactory()); } - private Partition success; // required + private List success; // required private MetaException o1; // required private NoSuchObjectException o2; // required private InvalidObjectException o3; // required @@ -79855,7 +81659,8 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, @@ -79865,14 +81670,14 @@ public String getFieldName() { tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partition_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partitions_result.class, metaDataMap); } - public exchange_partition_result() { + public exchange_partitions_result() { } - public exchange_partition_result( - Partition success, + public exchange_partitions_result( + List success, MetaException o1, NoSuchObjectException o2, InvalidObjectException o3, @@ -79889,9 +81694,13 @@ public exchange_partition_result( /** * Performs a deep copy on other. */ - public exchange_partition_result(exchange_partition_result other) { + public exchange_partitions_result(exchange_partitions_result other) { if (other.isSetSuccess()) { - this.success = new Partition(other.success); + List __this__success = new ArrayList(other.success.size()); + for (Partition other_element : other.success) { + __this__success.add(new Partition(other_element)); + } + this.success = __this__success; } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); @@ -79907,8 +81716,8 @@ public exchange_partition_result(exchange_partition_result other) { } } - public exchange_partition_result deepCopy() { - return new exchange_partition_result(this); + public exchange_partitions_result deepCopy() { + return new exchange_partitions_result(this); } @Override @@ -79920,11 +81729,26 @@ public void clear() { this.o4 = null; } - public Partition getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Partition elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(List success) { this.success = success; } @@ -80041,7 +81865,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((List)value); } break; @@ -80126,12 +81950,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partition_result) - return this.equals((exchange_partition_result)that); + if (that instanceof exchange_partitions_result) + return this.equals((exchange_partitions_result)that); return false; } - public boolean equals(exchange_partition_result that) { + public boolean equals(exchange_partitions_result that) { if (that == null) return false; @@ -80216,7 +82040,7 @@ public int hashCode() { } @Override - public int compareTo(exchange_partition_result other) { + public int compareTo(exchange_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -80290,7 +82114,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partition_result("); + StringBuilder sb = new StringBuilder("exchange_partitions_result("); boolean first = true; sb.append("success:"); @@ -80339,9 +82163,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -80360,15 +82181,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class exchange_partition_resultStandardSchemeFactory implements SchemeFactory { - public exchange_partition_resultStandardScheme getScheme() { - return new exchange_partition_resultStandardScheme(); + private static class exchange_partitions_resultStandardSchemeFactory implements SchemeFactory { + public exchange_partitions_resultStandardScheme getScheme() { + return new exchange_partitions_resultStandardScheme(); } } - private static class exchange_partition_resultStandardScheme extends StandardScheme { + private static class exchange_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -80379,9 +82200,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list888 = iprot.readListBegin(); + struct.success = new ArrayList(_list888.size); + Partition _elem889; + for (int _i890 = 0; _i890 < _list888.size; ++_i890) + { + _elem889 = new Partition(); + _elem889.read(iprot); + struct.success.add(_elem889); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -80432,13 +82263,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter891 : struct.success) + { + _iter891.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -80467,16 +82305,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition } - private static class exchange_partition_resultTupleSchemeFactory implements SchemeFactory { - public exchange_partition_resultTupleScheme getScheme() { - return new exchange_partition_resultTupleScheme(); + private static class exchange_partitions_resultTupleSchemeFactory implements SchemeFactory { + public exchange_partitions_resultTupleScheme getScheme() { + return new exchange_partitions_resultTupleScheme(); } } - private static class exchange_partition_resultTupleScheme extends TupleScheme { + private static class exchange_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -80496,7 +82334,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ } oprot.writeBitSet(optionals, 5); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (Partition _iter892 : struct.success) + { + _iter892.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -80513,12 +82357,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { - struct.success = new Partition(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list893 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list893.size); + Partition _elem894; + for (int _i895 = 0; _i895 < _list893.size; ++_i895) + { + _elem894 = new Partition(); + _elem894.read(iprot); + struct.success.add(_elem894); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -80546,8 +82399,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_r } - public static class exchange_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_args"); + public static class exchange_partitions_metadata_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_metadata_args"); private static final org.apache.thrift.protocol.TField PARTITION_SPECS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionSpecs", org.apache.thrift.protocol.TType.MAP, (short)1); private static final org.apache.thrift.protocol.TField SOURCE_DB_FIELD_DESC = new org.apache.thrift.protocol.TField("source_db", org.apache.thrift.protocol.TType.STRING, (short)2); @@ -80557,8 +82410,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_r private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new exchange_partitions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partitions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partitions_metadata_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partitions_metadata_argsTupleSchemeFactory()); } private Map partitionSpecs; // required @@ -80654,13 +82507,13 @@ public String getFieldName() { tmpMap.put(_Fields.DEST_TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("dest_table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partitions_metadata_args.class, metaDataMap); } - public exchange_partitions_args() { + public exchange_partitions_metadata_args() { } - public exchange_partitions_args( + public exchange_partitions_metadata_args( Map partitionSpecs, String source_db, String source_table_name, @@ -80678,7 +82531,7 @@ public exchange_partitions_args( /** * Performs a deep copy on other. */ - public exchange_partitions_args(exchange_partitions_args other) { + public exchange_partitions_metadata_args(exchange_partitions_metadata_args other) { if (other.isSetPartitionSpecs()) { Map __this__partitionSpecs = new HashMap(other.partitionSpecs); this.partitionSpecs = __this__partitionSpecs; @@ -80697,8 +82550,8 @@ public exchange_partitions_args(exchange_partitions_args other) { } } - public exchange_partitions_args deepCopy() { - return new exchange_partitions_args(this); + public exchange_partitions_metadata_args deepCopy() { + return new exchange_partitions_metadata_args(this); } @Override @@ -80927,12 +82780,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partitions_args) - return this.equals((exchange_partitions_args)that); + if (that instanceof exchange_partitions_metadata_args) + return this.equals((exchange_partitions_metadata_args)that); return false; } - public boolean equals(exchange_partitions_args that) { + public boolean equals(exchange_partitions_metadata_args that) { if (that == null) return false; @@ -81017,7 +82870,7 @@ public int hashCode() { } @Override - public int compareTo(exchange_partitions_args other) { + public int compareTo(exchange_partitions_metadata_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -81091,7 +82944,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partitions_args("); + StringBuilder sb = new StringBuilder("exchange_partitions_metadata_args("); boolean first = true; sb.append("partitionSpecs:"); @@ -81158,15 +83011,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class exchange_partitions_argsStandardSchemeFactory implements SchemeFactory { - public exchange_partitions_argsStandardScheme getScheme() { - return new exchange_partitions_argsStandardScheme(); + private static class exchange_partitions_metadata_argsStandardSchemeFactory implements SchemeFactory { + public exchange_partitions_metadata_argsStandardScheme getScheme() { + return new exchange_partitions_metadata_argsStandardScheme(); } } - private static class exchange_partitions_argsStandardScheme extends StandardScheme { + private static class exchange_partitions_metadata_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_metadata_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -81179,15 +83032,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions case 1: // PARTITION_SPECS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map878 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map878.size); - String _key879; - String _val880; - for (int _i881 = 0; _i881 < _map878.size; ++_i881) + org.apache.thrift.protocol.TMap _map896 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map896.size); + String _key897; + String _val898; + for (int _i899 = 0; _i899 < _map896.size; ++_i899) { - _key879 = iprot.readString(); - _val880 = iprot.readString(); - struct.partitionSpecs.put(_key879, _val880); + _key897 = iprot.readString(); + _val898 = iprot.readString(); + struct.partitionSpecs.put(_key897, _val898); } iprot.readMapEnd(); } @@ -81237,7 +83090,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_metadata_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -81245,10 +83098,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter882 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter900 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter882.getKey()); - oprot.writeString(_iter882.getValue()); + oprot.writeString(_iter900.getKey()); + oprot.writeString(_iter900.getValue()); } oprot.writeMapEnd(); } @@ -81280,16 +83133,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition } - private static class exchange_partitions_argsTupleSchemeFactory implements SchemeFactory { - public exchange_partitions_argsTupleScheme getScheme() { - return new exchange_partitions_argsTupleScheme(); + private static class exchange_partitions_metadata_argsTupleSchemeFactory implements SchemeFactory { + public exchange_partitions_metadata_argsTupleScheme getScheme() { + return new exchange_partitions_metadata_argsTupleScheme(); } } - private static class exchange_partitions_argsTupleScheme extends TupleScheme { + private static class exchange_partitions_metadata_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetPartitionSpecs()) { @@ -81311,10 +83164,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter883 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter901 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter883.getKey()); - oprot.writeString(_iter883.getValue()); + oprot.writeString(_iter901.getKey()); + oprot.writeString(_iter901.getValue()); } } } @@ -81333,20 +83186,20 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_metadata_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map884 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map884.size); - String _key885; - String _val886; - for (int _i887 = 0; _i887 < _map884.size; ++_i887) + org.apache.thrift.protocol.TMap _map902 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map902.size); + String _key903; + String _val904; + for (int _i905 = 0; _i905 < _map902.size; ++_i905) { - _key885 = iprot.readString(); - _val886 = iprot.readString(); - struct.partitionSpecs.put(_key885, _val886); + _key903 = iprot.readString(); + _val904 = iprot.readString(); + struct.partitionSpecs.put(_key903, _val904); } } struct.setPartitionSpecsIsSet(true); @@ -81372,8 +83225,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ } - public static class exchange_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_result"); + public static class exchange_partitions_metadata_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("exchange_partitions_metadata_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); @@ -81383,8 +83236,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new exchange_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new exchange_partitions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new exchange_partitions_metadata_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new exchange_partitions_metadata_resultTupleSchemeFactory()); } private List success; // required @@ -81479,13 +83332,13 @@ public String getFieldName() { tmpMap.put(_Fields.O4, new org.apache.thrift.meta_data.FieldMetaData("o4", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(exchange_partitions_metadata_result.class, metaDataMap); } - public exchange_partitions_result() { + public exchange_partitions_metadata_result() { } - public exchange_partitions_result( + public exchange_partitions_metadata_result( List success, MetaException o1, NoSuchObjectException o2, @@ -81503,7 +83356,7 @@ public exchange_partitions_result( /** * Performs a deep copy on other. */ - public exchange_partitions_result(exchange_partitions_result other) { + public exchange_partitions_metadata_result(exchange_partitions_metadata_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Partition other_element : other.success) { @@ -81525,8 +83378,8 @@ public exchange_partitions_result(exchange_partitions_result other) { } } - public exchange_partitions_result deepCopy() { - return new exchange_partitions_result(this); + public exchange_partitions_metadata_result deepCopy() { + return new exchange_partitions_metadata_result(this); } @Override @@ -81759,12 +83612,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof exchange_partitions_result) - return this.equals((exchange_partitions_result)that); + if (that instanceof exchange_partitions_metadata_result) + return this.equals((exchange_partitions_metadata_result)that); return false; } - public boolean equals(exchange_partitions_result that) { + public boolean equals(exchange_partitions_metadata_result that) { if (that == null) return false; @@ -81849,7 +83702,7 @@ public int hashCode() { } @Override - public int compareTo(exchange_partitions_result other) { + public int compareTo(exchange_partitions_metadata_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -81923,7 +83776,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("exchange_partitions_result("); + StringBuilder sb = new StringBuilder("exchange_partitions_metadata_result("); boolean first = true; sb.append("success:"); @@ -81990,15 +83843,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class exchange_partitions_resultStandardSchemeFactory implements SchemeFactory { - public exchange_partitions_resultStandardScheme getScheme() { - return new exchange_partitions_resultStandardScheme(); + private static class exchange_partitions_metadata_resultStandardSchemeFactory implements SchemeFactory { + public exchange_partitions_metadata_resultStandardScheme getScheme() { + return new exchange_partitions_metadata_resultStandardScheme(); } } - private static class exchange_partitions_resultStandardScheme extends StandardScheme { + private static class exchange_partitions_metadata_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions_metadata_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -82011,14 +83864,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list888 = iprot.readListBegin(); - struct.success = new ArrayList(_list888.size); - Partition _elem889; - for (int _i890 = 0; _i890 < _list888.size; ++_i890) + org.apache.thrift.protocol.TList _list906 = iprot.readListBegin(); + struct.success = new ArrayList(_list906.size); + Partition _elem907; + for (int _i908 = 0; _i908 < _list906.size; ++_i908) { - _elem889 = new Partition(); - _elem889.read(iprot); - struct.success.add(_elem889); + _elem907 = new Partition(); + _elem907.read(iprot); + struct.success.add(_elem907); } iprot.readListEnd(); } @@ -82072,7 +83925,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partitions_metadata_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -82080,9 +83933,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter891 : struct.success) + for (Partition _iter909 : struct.success) { - _iter891.write(oprot); + _iter909.write(oprot); } oprot.writeListEnd(); } @@ -82114,16 +83967,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition } - private static class exchange_partitions_resultTupleSchemeFactory implements SchemeFactory { - public exchange_partitions_resultTupleScheme getScheme() { - return new exchange_partitions_resultTupleScheme(); + private static class exchange_partitions_metadata_resultTupleSchemeFactory implements SchemeFactory { + public exchange_partitions_metadata_resultTupleScheme getScheme() { + return new exchange_partitions_metadata_resultTupleScheme(); } } - private static class exchange_partitions_resultTupleScheme extends TupleScheme { + private static class exchange_partitions_metadata_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_metadata_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -82145,9 +83998,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter892 : struct.success) + for (Partition _iter910 : struct.success) { - _iter892.write(oprot); + _iter910.write(oprot); } } } @@ -82166,19 +84019,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_metadata_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list893 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list893.size); - Partition _elem894; - for (int _i895 = 0; _i895 < _list893.size; ++_i895) + org.apache.thrift.protocol.TList _list911 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list911.size); + Partition _elem912; + for (int _i913 = 0; _i913 < _list911.size; ++_i913) { - _elem894 = new Partition(); - _elem894.read(iprot); - struct.success.add(_elem894); + _elem912 = new Partition(); + _elem912.read(iprot); + struct.success.add(_elem912); } } struct.setSuccessIsSet(true); @@ -82877,13 +84730,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list896 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list896.size); - String _elem897; - for (int _i898 = 0; _i898 < _list896.size; ++_i898) + org.apache.thrift.protocol.TList _list914 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list914.size); + String _elem915; + for (int _i916 = 0; _i916 < _list914.size; ++_i916) { - _elem897 = iprot.readString(); - struct.part_vals.add(_elem897); + _elem915 = iprot.readString(); + struct.part_vals.add(_elem915); } iprot.readListEnd(); } @@ -82903,13 +84756,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list899 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list899.size); - String _elem900; - for (int _i901 = 0; _i901 < _list899.size; ++_i901) + org.apache.thrift.protocol.TList _list917 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list917.size); + String _elem918; + for (int _i919 = 0; _i919 < _list917.size; ++_i919) { - _elem900 = iprot.readString(); - struct.group_names.add(_elem900); + _elem918 = iprot.readString(); + struct.group_names.add(_elem918); } iprot.readListEnd(); } @@ -82945,9 +84798,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter902 : struct.part_vals) + for (String _iter920 : struct.part_vals) { - oprot.writeString(_iter902); + oprot.writeString(_iter920); } oprot.writeListEnd(); } @@ -82962,9 +84815,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter903 : struct.group_names) + for (String _iter921 : struct.group_names) { - oprot.writeString(_iter903); + oprot.writeString(_iter921); } oprot.writeListEnd(); } @@ -83013,9 +84866,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter904 : struct.part_vals) + for (String _iter922 : struct.part_vals) { - oprot.writeString(_iter904); + oprot.writeString(_iter922); } } } @@ -83025,9 +84878,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter905 : struct.group_names) + for (String _iter923 : struct.group_names) { - oprot.writeString(_iter905); + oprot.writeString(_iter923); } } } @@ -83047,13 +84900,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list906 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list906.size); - String _elem907; - for (int _i908 = 0; _i908 < _list906.size; ++_i908) + org.apache.thrift.protocol.TList _list924 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list924.size); + String _elem925; + for (int _i926 = 0; _i926 < _list924.size; ++_i926) { - _elem907 = iprot.readString(); - struct.part_vals.add(_elem907); + _elem925 = iprot.readString(); + struct.part_vals.add(_elem925); } } struct.setPart_valsIsSet(true); @@ -83064,13 +84917,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list909 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list909.size); - String _elem910; - for (int _i911 = 0; _i911 < _list909.size; ++_i911) + org.apache.thrift.protocol.TList _list927 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list927.size); + String _elem928; + for (int _i929 = 0; _i929 < _list927.size; ++_i929) { - _elem910 = iprot.readString(); - struct.group_names.add(_elem910); + _elem928 = iprot.readString(); + struct.group_names.add(_elem928); } } struct.setGroup_namesIsSet(true); @@ -85839,14 +87692,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list912 = iprot.readListBegin(); - struct.success = new ArrayList(_list912.size); - Partition _elem913; - for (int _i914 = 0; _i914 < _list912.size; ++_i914) + org.apache.thrift.protocol.TList _list930 = iprot.readListBegin(); + struct.success = new ArrayList(_list930.size); + Partition _elem931; + for (int _i932 = 0; _i932 < _list930.size; ++_i932) { - _elem913 = new Partition(); - _elem913.read(iprot); - struct.success.add(_elem913); + _elem931 = new Partition(); + _elem931.read(iprot); + struct.success.add(_elem931); } iprot.readListEnd(); } @@ -85890,9 +87743,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter915 : struct.success) + for (Partition _iter933 : struct.success) { - _iter915.write(oprot); + _iter933.write(oprot); } oprot.writeListEnd(); } @@ -85939,9 +87792,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter916 : struct.success) + for (Partition _iter934 : struct.success) { - _iter916.write(oprot); + _iter934.write(oprot); } } } @@ -85959,14 +87812,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_resul BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list917.size); - Partition _elem918; - for (int _i919 = 0; _i919 < _list917.size; ++_i919) + org.apache.thrift.protocol.TList _list935 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list935.size); + Partition _elem936; + for (int _i937 = 0; _i937 < _list935.size; ++_i937) { - _elem918 = new Partition(); - _elem918.read(iprot); - struct.success.add(_elem918); + _elem936 = new Partition(); + _elem936.read(iprot); + struct.success.add(_elem936); } } struct.setSuccessIsSet(true); @@ -86656,13 +88509,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list920 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list920.size); - String _elem921; - for (int _i922 = 0; _i922 < _list920.size; ++_i922) + org.apache.thrift.protocol.TList _list938 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list938.size); + String _elem939; + for (int _i940 = 0; _i940 < _list938.size; ++_i940) { - _elem921 = iprot.readString(); - struct.group_names.add(_elem921); + _elem939 = iprot.readString(); + struct.group_names.add(_elem939); } iprot.readListEnd(); } @@ -86706,9 +88559,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter923 : struct.group_names) + for (String _iter941 : struct.group_names) { - oprot.writeString(_iter923); + oprot.writeString(_iter941); } oprot.writeListEnd(); } @@ -86763,9 +88616,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter924 : struct.group_names) + for (String _iter942 : struct.group_names) { - oprot.writeString(_iter924); + oprot.writeString(_iter942); } } } @@ -86793,13 +88646,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list925 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list925.size); - String _elem926; - for (int _i927 = 0; _i927 < _list925.size; ++_i927) + org.apache.thrift.protocol.TList _list943 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list943.size); + String _elem944; + for (int _i945 = 0; _i945 < _list943.size; ++_i945) { - _elem926 = iprot.readString(); - struct.group_names.add(_elem926); + _elem944 = iprot.readString(); + struct.group_names.add(_elem944); } } struct.setGroup_namesIsSet(true); @@ -87286,14 +89139,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list928 = iprot.readListBegin(); - struct.success = new ArrayList(_list928.size); - Partition _elem929; - for (int _i930 = 0; _i930 < _list928.size; ++_i930) + org.apache.thrift.protocol.TList _list946 = iprot.readListBegin(); + struct.success = new ArrayList(_list946.size); + Partition _elem947; + for (int _i948 = 0; _i948 < _list946.size; ++_i948) { - _elem929 = new Partition(); - _elem929.read(iprot); - struct.success.add(_elem929); + _elem947 = new Partition(); + _elem947.read(iprot); + struct.success.add(_elem947); } iprot.readListEnd(); } @@ -87337,9 +89190,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter931 : struct.success) + for (Partition _iter949 : struct.success) { - _iter931.write(oprot); + _iter949.write(oprot); } oprot.writeListEnd(); } @@ -87386,9 +89239,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter932 : struct.success) + for (Partition _iter950 : struct.success) { - _iter932.write(oprot); + _iter950.write(oprot); } } } @@ -87406,14 +89259,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list933 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list933.size); - Partition _elem934; - for (int _i935 = 0; _i935 < _list933.size; ++_i935) + org.apache.thrift.protocol.TList _list951 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list951.size); + Partition _elem952; + for (int _i953 = 0; _i953 < _list951.size; ++_i953) { - _elem934 = new Partition(); - _elem934.read(iprot); - struct.success.add(_elem934); + _elem952 = new Partition(); + _elem952.read(iprot); + struct.success.add(_elem952); } } struct.setSuccessIsSet(true); @@ -88476,14 +90329,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list936 = iprot.readListBegin(); - struct.success = new ArrayList(_list936.size); - PartitionSpec _elem937; - for (int _i938 = 0; _i938 < _list936.size; ++_i938) + org.apache.thrift.protocol.TList _list954 = iprot.readListBegin(); + struct.success = new ArrayList(_list954.size); + PartitionSpec _elem955; + for (int _i956 = 0; _i956 < _list954.size; ++_i956) { - _elem937 = new PartitionSpec(); - _elem937.read(iprot); - struct.success.add(_elem937); + _elem955 = new PartitionSpec(); + _elem955.read(iprot); + struct.success.add(_elem955); } iprot.readListEnd(); } @@ -88527,9 +90380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter939 : struct.success) + for (PartitionSpec _iter957 : struct.success) { - _iter939.write(oprot); + _iter957.write(oprot); } oprot.writeListEnd(); } @@ -88576,9 +90429,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter940 : struct.success) + for (PartitionSpec _iter958 : struct.success) { - _iter940.write(oprot); + _iter958.write(oprot); } } } @@ -88596,14 +90449,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list941.size); - PartitionSpec _elem942; - for (int _i943 = 0; _i943 < _list941.size; ++_i943) + org.apache.thrift.protocol.TList _list959 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list959.size); + PartitionSpec _elem960; + for (int _i961 = 0; _i961 < _list959.size; ++_i961) { - _elem942 = new PartitionSpec(); - _elem942.read(iprot); - struct.success.add(_elem942); + _elem960 = new PartitionSpec(); + _elem960.read(iprot); + struct.success.add(_elem960); } } struct.setSuccessIsSet(true); @@ -89582,13 +91435,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 _list944 = iprot.readListBegin(); - struct.success = new ArrayList(_list944.size); - String _elem945; - for (int _i946 = 0; _i946 < _list944.size; ++_i946) + org.apache.thrift.protocol.TList _list962 = iprot.readListBegin(); + struct.success = new ArrayList(_list962.size); + String _elem963; + for (int _i964 = 0; _i964 < _list962.size; ++_i964) { - _elem945 = iprot.readString(); - struct.success.add(_elem945); + _elem963 = iprot.readString(); + struct.success.add(_elem963); } iprot.readListEnd(); } @@ -89623,9 +91476,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 _iter947 : struct.success) + for (String _iter965 : struct.success) { - oprot.writeString(_iter947); + oprot.writeString(_iter965); } oprot.writeListEnd(); } @@ -89664,9 +91517,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter948 : struct.success) + for (String _iter966 : struct.success) { - oprot.writeString(_iter948); + oprot.writeString(_iter966); } } } @@ -89681,13 +91534,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list949 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list949.size); - String _elem950; - for (int _i951 = 0; _i951 < _list949.size; ++_i951) + org.apache.thrift.protocol.TList _list967 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list967.size); + String _elem968; + for (int _i969 = 0; _i969 < _list967.size; ++_i969) { - _elem950 = iprot.readString(); - struct.success.add(_elem950); + _elem968 = iprot.readString(); + struct.success.add(_elem968); } } struct.setSuccessIsSet(true); @@ -90275,13 +92128,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list952 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list952.size); - String _elem953; - for (int _i954 = 0; _i954 < _list952.size; ++_i954) + org.apache.thrift.protocol.TList _list970 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list970.size); + String _elem971; + for (int _i972 = 0; _i972 < _list970.size; ++_i972) { - _elem953 = iprot.readString(); - struct.part_vals.add(_elem953); + _elem971 = iprot.readString(); + struct.part_vals.add(_elem971); } iprot.readListEnd(); } @@ -90325,9 +92178,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 _iter955 : struct.part_vals) + for (String _iter973 : struct.part_vals) { - oprot.writeString(_iter955); + oprot.writeString(_iter973); } oprot.writeListEnd(); } @@ -90376,9 +92229,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_a if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter956 : struct.part_vals) + for (String _iter974 : struct.part_vals) { - oprot.writeString(_iter956); + oprot.writeString(_iter974); } } } @@ -90401,13 +92254,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list957 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list957.size); - String _elem958; - for (int _i959 = 0; _i959 < _list957.size; ++_i959) + org.apache.thrift.protocol.TList _list975 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list975.size); + String _elem976; + for (int _i977 = 0; _i977 < _list975.size; ++_i977) { - _elem958 = iprot.readString(); - struct.part_vals.add(_elem958); + _elem976 = iprot.readString(); + struct.part_vals.add(_elem976); } } struct.setPart_valsIsSet(true); @@ -90898,14 +92751,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list960 = iprot.readListBegin(); - struct.success = new ArrayList(_list960.size); - Partition _elem961; - for (int _i962 = 0; _i962 < _list960.size; ++_i962) + org.apache.thrift.protocol.TList _list978 = iprot.readListBegin(); + struct.success = new ArrayList(_list978.size); + Partition _elem979; + for (int _i980 = 0; _i980 < _list978.size; ++_i980) { - _elem961 = new Partition(); - _elem961.read(iprot); - struct.success.add(_elem961); + _elem979 = new Partition(); + _elem979.read(iprot); + struct.success.add(_elem979); } iprot.readListEnd(); } @@ -90949,9 +92802,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 _iter963 : struct.success) + for (Partition _iter981 : struct.success) { - _iter963.write(oprot); + _iter981.write(oprot); } oprot.writeListEnd(); } @@ -90998,9 +92851,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter964 : struct.success) + for (Partition _iter982 : struct.success) { - _iter964.write(oprot); + _iter982.write(oprot); } } } @@ -91018,14 +92871,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list965 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list965.size); - Partition _elem966; - for (int _i967 = 0; _i967 < _list965.size; ++_i967) + org.apache.thrift.protocol.TList _list983 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list983.size); + Partition _elem984; + for (int _i985 = 0; _i985 < _list983.size; ++_i985) { - _elem966 = new Partition(); - _elem966.read(iprot); - struct.success.add(_elem966); + _elem984 = new Partition(); + _elem984.read(iprot); + struct.success.add(_elem984); } } struct.setSuccessIsSet(true); @@ -91797,13 +93650,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 _list968 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list968.size); - String _elem969; - for (int _i970 = 0; _i970 < _list968.size; ++_i970) + org.apache.thrift.protocol.TList _list986 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list986.size); + String _elem987; + for (int _i988 = 0; _i988 < _list986.size; ++_i988) { - _elem969 = iprot.readString(); - struct.part_vals.add(_elem969); + _elem987 = iprot.readString(); + struct.part_vals.add(_elem987); } iprot.readListEnd(); } @@ -91831,13 +93684,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 6: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list971 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list971.size); - String _elem972; - for (int _i973 = 0; _i973 < _list971.size; ++_i973) + org.apache.thrift.protocol.TList _list989 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list989.size); + String _elem990; + for (int _i991 = 0; _i991 < _list989.size; ++_i991) { - _elem972 = iprot.readString(); - struct.group_names.add(_elem972); + _elem990 = iprot.readString(); + struct.group_names.add(_elem990); } iprot.readListEnd(); } @@ -91873,9 +93726,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 _iter974 : struct.part_vals) + for (String _iter992 : struct.part_vals) { - oprot.writeString(_iter974); + oprot.writeString(_iter992); } oprot.writeListEnd(); } @@ -91893,9 +93746,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter975 : struct.group_names) + for (String _iter993 : struct.group_names) { - oprot.writeString(_iter975); + oprot.writeString(_iter993); } oprot.writeListEnd(); } @@ -91947,9 +93800,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter976 : struct.part_vals) + for (String _iter994 : struct.part_vals) { - oprot.writeString(_iter976); + oprot.writeString(_iter994); } } } @@ -91962,9 +93815,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter977 : struct.group_names) + for (String _iter995 : struct.group_names) { - oprot.writeString(_iter977); + oprot.writeString(_iter995); } } } @@ -91984,13 +93837,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list978 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list978.size); - String _elem979; - for (int _i980 = 0; _i980 < _list978.size; ++_i980) + org.apache.thrift.protocol.TList _list996 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list996.size); + String _elem997; + for (int _i998 = 0; _i998 < _list996.size; ++_i998) { - _elem979 = iprot.readString(); - struct.part_vals.add(_elem979); + _elem997 = iprot.readString(); + struct.part_vals.add(_elem997); } } struct.setPart_valsIsSet(true); @@ -92005,13 +93858,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list981 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list981.size); - String _elem982; - for (int _i983 = 0; _i983 < _list981.size; ++_i983) + org.apache.thrift.protocol.TList _list999 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list999.size); + String _elem1000; + for (int _i1001 = 0; _i1001 < _list999.size; ++_i1001) { - _elem982 = iprot.readString(); - struct.group_names.add(_elem982); + _elem1000 = iprot.readString(); + struct.group_names.add(_elem1000); } } struct.setGroup_namesIsSet(true); @@ -92498,14 +94351,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 _list984 = iprot.readListBegin(); - struct.success = new ArrayList(_list984.size); - Partition _elem985; - for (int _i986 = 0; _i986 < _list984.size; ++_i986) + org.apache.thrift.protocol.TList _list1002 = iprot.readListBegin(); + struct.success = new ArrayList(_list1002.size); + Partition _elem1003; + for (int _i1004 = 0; _i1004 < _list1002.size; ++_i1004) { - _elem985 = new Partition(); - _elem985.read(iprot); - struct.success.add(_elem985); + _elem1003 = new Partition(); + _elem1003.read(iprot); + struct.success.add(_elem1003); } iprot.readListEnd(); } @@ -92549,9 +94402,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 _iter987 : struct.success) + for (Partition _iter1005 : struct.success) { - _iter987.write(oprot); + _iter1005.write(oprot); } oprot.writeListEnd(); } @@ -92598,9 +94451,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter988 : struct.success) + for (Partition _iter1006 : struct.success) { - _iter988.write(oprot); + _iter1006.write(oprot); } } } @@ -92618,14 +94471,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list989 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list989.size); - Partition _elem990; - for (int _i991 = 0; _i991 < _list989.size; ++_i991) + org.apache.thrift.protocol.TList _list1007 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1007.size); + Partition _elem1008; + for (int _i1009 = 0; _i1009 < _list1007.size; ++_i1009) { - _elem990 = new Partition(); - _elem990.read(iprot); - struct.success.add(_elem990); + _elem1008 = new Partition(); + _elem1008.read(iprot); + struct.success.add(_elem1008); } } struct.setSuccessIsSet(true); @@ -93218,13 +95071,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 _list992 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list992.size); - String _elem993; - for (int _i994 = 0; _i994 < _list992.size; ++_i994) + org.apache.thrift.protocol.TList _list1010 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1010.size); + String _elem1011; + for (int _i1012 = 0; _i1012 < _list1010.size; ++_i1012) { - _elem993 = iprot.readString(); - struct.part_vals.add(_elem993); + _elem1011 = iprot.readString(); + struct.part_vals.add(_elem1011); } iprot.readListEnd(); } @@ -93268,9 +95121,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter995 : struct.part_vals) + for (String _iter1013 : struct.part_vals) { - oprot.writeString(_iter995); + oprot.writeString(_iter1013); } oprot.writeListEnd(); } @@ -93319,9 +95172,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 _iter996 : struct.part_vals) + for (String _iter1014 : struct.part_vals) { - oprot.writeString(_iter996); + oprot.writeString(_iter1014); } } } @@ -93344,13 +95197,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list997.size); - String _elem998; - for (int _i999 = 0; _i999 < _list997.size; ++_i999) + org.apache.thrift.protocol.TList _list1015 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1015.size); + String _elem1016; + for (int _i1017 = 0; _i1017 < _list1015.size; ++_i1017) { - _elem998 = iprot.readString(); - struct.part_vals.add(_elem998); + _elem1016 = iprot.readString(); + struct.part_vals.add(_elem1016); } } struct.setPart_valsIsSet(true); @@ -93838,13 +95691,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 _list1000 = iprot.readListBegin(); - struct.success = new ArrayList(_list1000.size); - String _elem1001; - for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) + org.apache.thrift.protocol.TList _list1018 = iprot.readListBegin(); + struct.success = new ArrayList(_list1018.size); + String _elem1019; + for (int _i1020 = 0; _i1020 < _list1018.size; ++_i1020) { - _elem1001 = iprot.readString(); - struct.success.add(_elem1001); + _elem1019 = iprot.readString(); + struct.success.add(_elem1019); } iprot.readListEnd(); } @@ -93888,9 +95741,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 _iter1003 : struct.success) + for (String _iter1021 : struct.success) { - oprot.writeString(_iter1003); + oprot.writeString(_iter1021); } oprot.writeListEnd(); } @@ -93937,9 +95790,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1004 : struct.success) + for (String _iter1022 : struct.success) { - oprot.writeString(_iter1004); + oprot.writeString(_iter1022); } } } @@ -93957,13 +95810,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 _list1005 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1005.size); - String _elem1006; - for (int _i1007 = 0; _i1007 < _list1005.size; ++_i1007) + org.apache.thrift.protocol.TList _list1023 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1023.size); + String _elem1024; + for (int _i1025 = 0; _i1025 < _list1023.size; ++_i1025) { - _elem1006 = iprot.readString(); - struct.success.add(_elem1006); + _elem1024 = iprot.readString(); + struct.success.add(_elem1024); } } struct.setSuccessIsSet(true); @@ -95130,14 +96983,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 _list1008 = iprot.readListBegin(); - struct.success = new ArrayList(_list1008.size); - Partition _elem1009; - for (int _i1010 = 0; _i1010 < _list1008.size; ++_i1010) + org.apache.thrift.protocol.TList _list1026 = iprot.readListBegin(); + struct.success = new ArrayList(_list1026.size); + Partition _elem1027; + for (int _i1028 = 0; _i1028 < _list1026.size; ++_i1028) { - _elem1009 = new Partition(); - _elem1009.read(iprot); - struct.success.add(_elem1009); + _elem1027 = new Partition(); + _elem1027.read(iprot); + struct.success.add(_elem1027); } iprot.readListEnd(); } @@ -95181,9 +97034,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 _iter1011 : struct.success) + for (Partition _iter1029 : struct.success) { - _iter1011.write(oprot); + _iter1029.write(oprot); } oprot.writeListEnd(); } @@ -95230,9 +97083,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1012 : struct.success) + for (Partition _iter1030 : struct.success) { - _iter1012.write(oprot); + _iter1030.write(oprot); } } } @@ -95250,14 +97103,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 _list1013 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1013.size); - Partition _elem1014; - for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) + org.apache.thrift.protocol.TList _list1031 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1031.size); + Partition _elem1032; + for (int _i1033 = 0; _i1033 < _list1031.size; ++_i1033) { - _elem1014 = new Partition(); - _elem1014.read(iprot); - struct.success.add(_elem1014); + _elem1032 = new Partition(); + _elem1032.read(iprot); + struct.success.add(_elem1032); } } struct.setSuccessIsSet(true); @@ -96424,14 +98277,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 _list1016 = iprot.readListBegin(); - struct.success = new ArrayList(_list1016.size); - PartitionSpec _elem1017; - for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) + org.apache.thrift.protocol.TList _list1034 = iprot.readListBegin(); + struct.success = new ArrayList(_list1034.size); + PartitionSpec _elem1035; + for (int _i1036 = 0; _i1036 < _list1034.size; ++_i1036) { - _elem1017 = new PartitionSpec(); - _elem1017.read(iprot); - struct.success.add(_elem1017); + _elem1035 = new PartitionSpec(); + _elem1035.read(iprot); + struct.success.add(_elem1035); } iprot.readListEnd(); } @@ -96475,9 +98328,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 _iter1019 : struct.success) + for (PartitionSpec _iter1037 : struct.success) { - _iter1019.write(oprot); + _iter1037.write(oprot); } oprot.writeListEnd(); } @@ -96524,9 +98377,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 _iter1020 : struct.success) + for (PartitionSpec _iter1038 : struct.success) { - _iter1020.write(oprot); + _iter1038.write(oprot); } } } @@ -96544,14 +98397,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 _list1021 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1021.size); - PartitionSpec _elem1022; - for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) + org.apache.thrift.protocol.TList _list1039 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1039.size); + PartitionSpec _elem1040; + for (int _i1041 = 0; _i1041 < _list1039.size; ++_i1041) { - _elem1022 = new PartitionSpec(); - _elem1022.read(iprot); - struct.success.add(_elem1022); + _elem1040 = new PartitionSpec(); + _elem1040.read(iprot); + struct.success.add(_elem1040); } } struct.setSuccessIsSet(true); @@ -99135,13 +100988,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 _list1024 = iprot.readListBegin(); - struct.names = new ArrayList(_list1024.size); - String _elem1025; - for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) + org.apache.thrift.protocol.TList _list1042 = iprot.readListBegin(); + struct.names = new ArrayList(_list1042.size); + String _elem1043; + for (int _i1044 = 0; _i1044 < _list1042.size; ++_i1044) { - _elem1025 = iprot.readString(); - struct.names.add(_elem1025); + _elem1043 = iprot.readString(); + struct.names.add(_elem1043); } iprot.readListEnd(); } @@ -99177,9 +101030,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 _iter1027 : struct.names) + for (String _iter1045 : struct.names) { - oprot.writeString(_iter1027); + oprot.writeString(_iter1045); } oprot.writeListEnd(); } @@ -99222,9 +101075,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter1028 : struct.names) + for (String _iter1046 : struct.names) { - oprot.writeString(_iter1028); + oprot.writeString(_iter1046); } } } @@ -99244,13 +101097,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1029 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list1029.size); - String _elem1030; - for (int _i1031 = 0; _i1031 < _list1029.size; ++_i1031) + org.apache.thrift.protocol.TList _list1047 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1047.size); + String _elem1048; + for (int _i1049 = 0; _i1049 < _list1047.size; ++_i1049) { - _elem1030 = iprot.readString(); - struct.names.add(_elem1030); + _elem1048 = iprot.readString(); + struct.names.add(_elem1048); } } struct.setNamesIsSet(true); @@ -99737,14 +101590,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 _list1032 = iprot.readListBegin(); - struct.success = new ArrayList(_list1032.size); - Partition _elem1033; - for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) + org.apache.thrift.protocol.TList _list1050 = iprot.readListBegin(); + struct.success = new ArrayList(_list1050.size); + Partition _elem1051; + for (int _i1052 = 0; _i1052 < _list1050.size; ++_i1052) { - _elem1033 = new Partition(); - _elem1033.read(iprot); - struct.success.add(_elem1033); + _elem1051 = new Partition(); + _elem1051.read(iprot); + struct.success.add(_elem1051); } iprot.readListEnd(); } @@ -99788,9 +101641,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 _iter1035 : struct.success) + for (Partition _iter1053 : struct.success) { - _iter1035.write(oprot); + _iter1053.write(oprot); } oprot.writeListEnd(); } @@ -99837,9 +101690,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter1036 : struct.success) + for (Partition _iter1054 : struct.success) { - _iter1036.write(oprot); + _iter1054.write(oprot); } } } @@ -99857,14 +101710,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 _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1037.size); - Partition _elem1038; - for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) + org.apache.thrift.protocol.TList _list1055 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1055.size); + Partition _elem1056; + for (int _i1057 = 0; _i1057 < _list1055.size; ++_i1057) { - _elem1038 = new Partition(); - _elem1038.read(iprot); - struct.success.add(_elem1038); + _elem1056 = new Partition(); + _elem1056.read(iprot); + struct.success.add(_elem1056); } } struct.setSuccessIsSet(true); @@ -101414,14 +103267,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 _list1040 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1040.size); - Partition _elem1041; - for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) + org.apache.thrift.protocol.TList _list1058 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1058.size); + Partition _elem1059; + for (int _i1060 = 0; _i1060 < _list1058.size; ++_i1060) { - _elem1041 = new Partition(); - _elem1041.read(iprot); - struct.new_parts.add(_elem1041); + _elem1059 = new Partition(); + _elem1059.read(iprot); + struct.new_parts.add(_elem1059); } iprot.readListEnd(); } @@ -101457,9 +103310,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 _iter1043 : struct.new_parts) + for (Partition _iter1061 : struct.new_parts) { - _iter1043.write(oprot); + _iter1061.write(oprot); } oprot.writeListEnd(); } @@ -101502,9 +103355,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 _iter1044 : struct.new_parts) + for (Partition _iter1062 : struct.new_parts) { - _iter1044.write(oprot); + _iter1062.write(oprot); } } } @@ -101524,14 +103377,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1045 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1045.size); - Partition _elem1046; - for (int _i1047 = 0; _i1047 < _list1045.size; ++_i1047) + org.apache.thrift.protocol.TList _list1063 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1063.size); + Partition _elem1064; + for (int _i1065 = 0; _i1065 < _list1063.size; ++_i1065) { - _elem1046 = new Partition(); - _elem1046.read(iprot); - struct.new_parts.add(_elem1046); + _elem1064 = new Partition(); + _elem1064.read(iprot); + struct.new_parts.add(_elem1064); } } struct.setNew_partsIsSet(true); @@ -102584,14 +104437,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_wi case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1048 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list1048.size); - Partition _elem1049; - for (int _i1050 = 0; _i1050 < _list1048.size; ++_i1050) + org.apache.thrift.protocol.TList _list1066 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1066.size); + Partition _elem1067; + for (int _i1068 = 0; _i1068 < _list1066.size; ++_i1068) { - _elem1049 = new Partition(); - _elem1049.read(iprot); - struct.new_parts.add(_elem1049); + _elem1067 = new Partition(); + _elem1067.read(iprot); + struct.new_parts.add(_elem1067); } iprot.readListEnd(); } @@ -102636,9 +104489,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_w oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter1051 : struct.new_parts) + for (Partition _iter1069 : struct.new_parts) { - _iter1051.write(oprot); + _iter1069.write(oprot); } oprot.writeListEnd(); } @@ -102689,9 +104542,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wi if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter1052 : struct.new_parts) + for (Partition _iter1070 : struct.new_parts) { - _iter1052.write(oprot); + _iter1070.write(oprot); } } } @@ -102714,14 +104567,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1053 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list1053.size); - Partition _elem1054; - for (int _i1055 = 0; _i1055 < _list1053.size; ++_i1055) + org.apache.thrift.protocol.TList _list1071 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1071.size); + Partition _elem1072; + for (int _i1073 = 0; _i1073 < _list1071.size; ++_i1073) { - _elem1054 = new Partition(); - _elem1054.read(iprot); - struct.new_parts.add(_elem1054); + _elem1072 = new Partition(); + _elem1072.read(iprot); + struct.new_parts.add(_elem1072); } } struct.setNew_partsIsSet(true); @@ -104922,13 +106775,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 _list1056 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1056.size); - String _elem1057; - for (int _i1058 = 0; _i1058 < _list1056.size; ++_i1058) + org.apache.thrift.protocol.TList _list1074 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1074.size); + String _elem1075; + for (int _i1076 = 0; _i1076 < _list1074.size; ++_i1076) { - _elem1057 = iprot.readString(); - struct.part_vals.add(_elem1057); + _elem1075 = iprot.readString(); + struct.part_vals.add(_elem1075); } iprot.readListEnd(); } @@ -104973,9 +106826,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 _iter1059 : struct.part_vals) + for (String _iter1077 : struct.part_vals) { - oprot.writeString(_iter1059); + oprot.writeString(_iter1077); } oprot.writeListEnd(); } @@ -105026,9 +106879,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 _iter1060 : struct.part_vals) + for (String _iter1078 : struct.part_vals) { - oprot.writeString(_iter1060); + oprot.writeString(_iter1078); } } } @@ -105051,13 +106904,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1061 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1061.size); - String _elem1062; - for (int _i1063 = 0; _i1063 < _list1061.size; ++_i1063) + org.apache.thrift.protocol.TList _list1079 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1079.size); + String _elem1080; + for (int _i1081 = 0; _i1081 < _list1079.size; ++_i1081) { - _elem1062 = iprot.readString(); - struct.part_vals.add(_elem1062); + _elem1080 = iprot.readString(); + struct.part_vals.add(_elem1080); } } struct.setPart_valsIsSet(true); @@ -105931,13 +107784,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 _list1064 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list1064.size); - String _elem1065; - for (int _i1066 = 0; _i1066 < _list1064.size; ++_i1066) + org.apache.thrift.protocol.TList _list1082 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1082.size); + String _elem1083; + for (int _i1084 = 0; _i1084 < _list1082.size; ++_i1084) { - _elem1065 = iprot.readString(); - struct.part_vals.add(_elem1065); + _elem1083 = iprot.readString(); + struct.part_vals.add(_elem1083); } iprot.readListEnd(); } @@ -105971,9 +107824,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 _iter1067 : struct.part_vals) + for (String _iter1085 : struct.part_vals) { - oprot.writeString(_iter1067); + oprot.writeString(_iter1085); } oprot.writeListEnd(); } @@ -106010,9 +107863,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 _iter1068 : struct.part_vals) + for (String _iter1086 : struct.part_vals) { - oprot.writeString(_iter1068); + oprot.writeString(_iter1086); } } } @@ -106027,13 +107880,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 _list1069 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1069.size); - String _elem1070; - for (int _i1071 = 0; _i1071 < _list1069.size; ++_i1071) + org.apache.thrift.protocol.TList _list1087 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1087.size); + String _elem1088; + for (int _i1089 = 0; _i1089 < _list1087.size; ++_i1089) { - _elem1070 = iprot.readString(); - struct.part_vals.add(_elem1070); + _elem1088 = iprot.readString(); + struct.part_vals.add(_elem1088); } } struct.setPart_valsIsSet(true); @@ -108188,13 +110041,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 _list1072 = iprot.readListBegin(); - struct.success = new ArrayList(_list1072.size); - String _elem1073; - for (int _i1074 = 0; _i1074 < _list1072.size; ++_i1074) + org.apache.thrift.protocol.TList _list1090 = iprot.readListBegin(); + struct.success = new ArrayList(_list1090.size); + String _elem1091; + for (int _i1092 = 0; _i1092 < _list1090.size; ++_i1092) { - _elem1073 = iprot.readString(); - struct.success.add(_elem1073); + _elem1091 = iprot.readString(); + struct.success.add(_elem1091); } iprot.readListEnd(); } @@ -108229,9 +110082,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 _iter1075 : struct.success) + for (String _iter1093 : struct.success) { - oprot.writeString(_iter1075); + oprot.writeString(_iter1093); } oprot.writeListEnd(); } @@ -108270,9 +110123,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1076 : struct.success) + for (String _iter1094 : struct.success) { - oprot.writeString(_iter1076); + oprot.writeString(_iter1094); } } } @@ -108287,13 +110140,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 _list1077 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1077.size); - String _elem1078; - for (int _i1079 = 0; _i1079 < _list1077.size; ++_i1079) + org.apache.thrift.protocol.TList _list1095 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1095.size); + String _elem1096; + for (int _i1097 = 0; _i1097 < _list1095.size; ++_i1097) { - _elem1078 = iprot.readString(); - struct.success.add(_elem1078); + _elem1096 = iprot.readString(); + struct.success.add(_elem1096); } } struct.setSuccessIsSet(true); @@ -109056,15 +110909,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 _map1080 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1080.size); - String _key1081; - String _val1082; - for (int _i1083 = 0; _i1083 < _map1080.size; ++_i1083) + org.apache.thrift.protocol.TMap _map1098 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1098.size); + String _key1099; + String _val1100; + for (int _i1101 = 0; _i1101 < _map1098.size; ++_i1101) { - _key1081 = iprot.readString(); - _val1082 = iprot.readString(); - struct.success.put(_key1081, _val1082); + _key1099 = iprot.readString(); + _val1100 = iprot.readString(); + struct.success.put(_key1099, _val1100); } iprot.readMapEnd(); } @@ -109099,10 +110952,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 _iter1084 : struct.success.entrySet()) + for (Map.Entry _iter1102 : struct.success.entrySet()) { - oprot.writeString(_iter1084.getKey()); - oprot.writeString(_iter1084.getValue()); + oprot.writeString(_iter1102.getKey()); + oprot.writeString(_iter1102.getValue()); } oprot.writeMapEnd(); } @@ -109141,10 +110994,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 _iter1085 : struct.success.entrySet()) + for (Map.Entry _iter1103 : struct.success.entrySet()) { - oprot.writeString(_iter1085.getKey()); - oprot.writeString(_iter1085.getValue()); + oprot.writeString(_iter1103.getKey()); + oprot.writeString(_iter1103.getValue()); } } } @@ -109159,15 +111012,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 _map1086 = 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*_map1086.size); - String _key1087; - String _val1088; - for (int _i1089 = 0; _i1089 < _map1086.size; ++_i1089) + org.apache.thrift.protocol.TMap _map1104 = 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*_map1104.size); + String _key1105; + String _val1106; + for (int _i1107 = 0; _i1107 < _map1104.size; ++_i1107) { - _key1087 = iprot.readString(); - _val1088 = iprot.readString(); - struct.success.put(_key1087, _val1088); + _key1105 = iprot.readString(); + _val1106 = iprot.readString(); + struct.success.put(_key1105, _val1106); } } struct.setSuccessIsSet(true); @@ -109762,15 +111615,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 _map1090 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1090.size); - String _key1091; - String _val1092; - for (int _i1093 = 0; _i1093 < _map1090.size; ++_i1093) + org.apache.thrift.protocol.TMap _map1108 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1108.size); + String _key1109; + String _val1110; + for (int _i1111 = 0; _i1111 < _map1108.size; ++_i1111) { - _key1091 = iprot.readString(); - _val1092 = iprot.readString(); - struct.part_vals.put(_key1091, _val1092); + _key1109 = iprot.readString(); + _val1110 = iprot.readString(); + struct.part_vals.put(_key1109, _val1110); } iprot.readMapEnd(); } @@ -109814,10 +111667,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 _iter1094 : struct.part_vals.entrySet()) + for (Map.Entry _iter1112 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1094.getKey()); - oprot.writeString(_iter1094.getValue()); + oprot.writeString(_iter1112.getKey()); + oprot.writeString(_iter1112.getValue()); } oprot.writeMapEnd(); } @@ -109868,10 +111721,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1095 : struct.part_vals.entrySet()) + for (Map.Entry _iter1113 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1095.getKey()); - oprot.writeString(_iter1095.getValue()); + oprot.writeString(_iter1113.getKey()); + oprot.writeString(_iter1113.getValue()); } } } @@ -109894,15 +111747,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1096 = 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*_map1096.size); - String _key1097; - String _val1098; - for (int _i1099 = 0; _i1099 < _map1096.size; ++_i1099) + org.apache.thrift.protocol.TMap _map1114 = 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*_map1114.size); + String _key1115; + String _val1116; + for (int _i1117 = 0; _i1117 < _map1114.size; ++_i1117) { - _key1097 = iprot.readString(); - _val1098 = iprot.readString(); - struct.part_vals.put(_key1097, _val1098); + _key1115 = iprot.readString(); + _val1116 = iprot.readString(); + struct.part_vals.put(_key1115, _val1116); } } struct.setPart_valsIsSet(true); @@ -111386,15 +113239,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 _map1100 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1100.size); - String _key1101; - String _val1102; - for (int _i1103 = 0; _i1103 < _map1100.size; ++_i1103) + org.apache.thrift.protocol.TMap _map1118 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1118.size); + String _key1119; + String _val1120; + for (int _i1121 = 0; _i1121 < _map1118.size; ++_i1121) { - _key1101 = iprot.readString(); - _val1102 = iprot.readString(); - struct.part_vals.put(_key1101, _val1102); + _key1119 = iprot.readString(); + _val1120 = iprot.readString(); + struct.part_vals.put(_key1119, _val1120); } iprot.readMapEnd(); } @@ -111438,10 +113291,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 _iter1104 : struct.part_vals.entrySet()) + for (Map.Entry _iter1122 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1104.getKey()); - oprot.writeString(_iter1104.getValue()); + oprot.writeString(_iter1122.getKey()); + oprot.writeString(_iter1122.getValue()); } oprot.writeMapEnd(); } @@ -111492,10 +113345,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1105 : struct.part_vals.entrySet()) + for (Map.Entry _iter1123 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1105.getKey()); - oprot.writeString(_iter1105.getValue()); + oprot.writeString(_iter1123.getKey()); + oprot.writeString(_iter1123.getValue()); } } } @@ -111518,15 +113371,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1106 = 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*_map1106.size); - String _key1107; - String _val1108; - for (int _i1109 = 0; _i1109 < _map1106.size; ++_i1109) + org.apache.thrift.protocol.TMap _map1124 = 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*_map1124.size); + String _key1125; + String _val1126; + for (int _i1127 = 0; _i1127 < _map1124.size; ++_i1127) { - _key1107 = iprot.readString(); - _val1108 = iprot.readString(); - struct.part_vals.put(_key1107, _val1108); + _key1125 = iprot.readString(); + _val1126 = iprot.readString(); + struct.part_vals.put(_key1125, _val1126); } } struct.setPart_valsIsSet(true); @@ -118250,14 +120103,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 _list1110 = iprot.readListBegin(); - struct.success = new ArrayList(_list1110.size); - Index _elem1111; - for (int _i1112 = 0; _i1112 < _list1110.size; ++_i1112) + org.apache.thrift.protocol.TList _list1128 = iprot.readListBegin(); + struct.success = new ArrayList(_list1128.size); + Index _elem1129; + for (int _i1130 = 0; _i1130 < _list1128.size; ++_i1130) { - _elem1111 = new Index(); - _elem1111.read(iprot); - struct.success.add(_elem1111); + _elem1129 = new Index(); + _elem1129.read(iprot); + struct.success.add(_elem1129); } iprot.readListEnd(); } @@ -118301,9 +120154,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 _iter1113 : struct.success) + for (Index _iter1131 : struct.success) { - _iter1113.write(oprot); + _iter1131.write(oprot); } oprot.writeListEnd(); } @@ -118350,9 +120203,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter1114 : struct.success) + for (Index _iter1132 : struct.success) { - _iter1114.write(oprot); + _iter1132.write(oprot); } } } @@ -118370,14 +120223,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 _list1115 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1115.size); - Index _elem1116; - for (int _i1117 = 0; _i1117 < _list1115.size; ++_i1117) + org.apache.thrift.protocol.TList _list1133 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1133.size); + Index _elem1134; + for (int _i1135 = 0; _i1135 < _list1133.size; ++_i1135) { - _elem1116 = new Index(); - _elem1116.read(iprot); - struct.success.add(_elem1116); + _elem1134 = new Index(); + _elem1134.read(iprot); + struct.success.add(_elem1134); } } struct.setSuccessIsSet(true); @@ -119356,13 +121209,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 _list1118 = iprot.readListBegin(); - struct.success = new ArrayList(_list1118.size); - String _elem1119; - for (int _i1120 = 0; _i1120 < _list1118.size; ++_i1120) + org.apache.thrift.protocol.TList _list1136 = iprot.readListBegin(); + struct.success = new ArrayList(_list1136.size); + String _elem1137; + for (int _i1138 = 0; _i1138 < _list1136.size; ++_i1138) { - _elem1119 = iprot.readString(); - struct.success.add(_elem1119); + _elem1137 = iprot.readString(); + struct.success.add(_elem1137); } iprot.readListEnd(); } @@ -119397,9 +121250,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 _iter1121 : struct.success) + for (String _iter1139 : struct.success) { - oprot.writeString(_iter1121); + oprot.writeString(_iter1139); } oprot.writeListEnd(); } @@ -119438,9 +121291,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1122 : struct.success) + for (String _iter1140 : struct.success) { - oprot.writeString(_iter1122); + oprot.writeString(_iter1140); } } } @@ -119455,13 +121308,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 _list1123 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1123.size); - String _elem1124; - for (int _i1125 = 0; _i1125 < _list1123.size; ++_i1125) + org.apache.thrift.protocol.TList _list1141 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1141.size); + String _elem1142; + for (int _i1143 = 0; _i1143 < _list1141.size; ++_i1143) { - _elem1124 = iprot.readString(); - struct.success.add(_elem1124); + _elem1142 = iprot.readString(); + struct.success.add(_elem1142); } } struct.setSuccessIsSet(true); @@ -137072,13 +138925,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 _list1126 = iprot.readListBegin(); - struct.success = new ArrayList(_list1126.size); - String _elem1127; - for (int _i1128 = 0; _i1128 < _list1126.size; ++_i1128) + org.apache.thrift.protocol.TList _list1144 = iprot.readListBegin(); + struct.success = new ArrayList(_list1144.size); + String _elem1145; + for (int _i1146 = 0; _i1146 < _list1144.size; ++_i1146) { - _elem1127 = iprot.readString(); - struct.success.add(_elem1127); + _elem1145 = iprot.readString(); + struct.success.add(_elem1145); } iprot.readListEnd(); } @@ -137113,9 +138966,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 _iter1129 : struct.success) + for (String _iter1147 : struct.success) { - oprot.writeString(_iter1129); + oprot.writeString(_iter1147); } oprot.writeListEnd(); } @@ -137154,9 +139007,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1130 : struct.success) + for (String _iter1148 : struct.success) { - oprot.writeString(_iter1130); + oprot.writeString(_iter1148); } } } @@ -137171,13 +139024,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 _list1131 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1131.size); - String _elem1132; - for (int _i1133 = 0; _i1133 < _list1131.size; ++_i1133) + org.apache.thrift.protocol.TList _list1149 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1149.size); + String _elem1150; + for (int _i1151 = 0; _i1151 < _list1149.size; ++_i1151) { - _elem1132 = iprot.readString(); - struct.success.add(_elem1132); + _elem1150 = iprot.readString(); + struct.success.add(_elem1150); } } struct.setSuccessIsSet(true); @@ -141232,13 +143085,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 _list1134 = iprot.readListBegin(); - struct.success = new ArrayList(_list1134.size); - String _elem1135; - for (int _i1136 = 0; _i1136 < _list1134.size; ++_i1136) + org.apache.thrift.protocol.TList _list1152 = iprot.readListBegin(); + struct.success = new ArrayList(_list1152.size); + String _elem1153; + for (int _i1154 = 0; _i1154 < _list1152.size; ++_i1154) { - _elem1135 = iprot.readString(); - struct.success.add(_elem1135); + _elem1153 = iprot.readString(); + struct.success.add(_elem1153); } iprot.readListEnd(); } @@ -141273,9 +143126,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 _iter1137 : struct.success) + for (String _iter1155 : struct.success) { - oprot.writeString(_iter1137); + oprot.writeString(_iter1155); } oprot.writeListEnd(); } @@ -141314,9 +143167,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1138 : struct.success) + for (String _iter1156 : struct.success) { - oprot.writeString(_iter1138); + oprot.writeString(_iter1156); } } } @@ -141331,13 +143184,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 _list1139 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1139.size); - String _elem1140; - for (int _i1141 = 0; _i1141 < _list1139.size; ++_i1141) + org.apache.thrift.protocol.TList _list1157 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1157.size); + String _elem1158; + for (int _i1159 = 0; _i1159 < _list1157.size; ++_i1159) { - _elem1140 = iprot.readString(); - struct.success.add(_elem1140); + _elem1158 = iprot.readString(); + struct.success.add(_elem1158); } } struct.setSuccessIsSet(true); @@ -144628,14 +146481,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 _list1142 = iprot.readListBegin(); - struct.success = new ArrayList(_list1142.size); - Role _elem1143; - for (int _i1144 = 0; _i1144 < _list1142.size; ++_i1144) + org.apache.thrift.protocol.TList _list1160 = iprot.readListBegin(); + struct.success = new ArrayList(_list1160.size); + Role _elem1161; + for (int _i1162 = 0; _i1162 < _list1160.size; ++_i1162) { - _elem1143 = new Role(); - _elem1143.read(iprot); - struct.success.add(_elem1143); + _elem1161 = new Role(); + _elem1161.read(iprot); + struct.success.add(_elem1161); } iprot.readListEnd(); } @@ -144670,9 +146523,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 _iter1145 : struct.success) + for (Role _iter1163 : struct.success) { - _iter1145.write(oprot); + _iter1163.write(oprot); } oprot.writeListEnd(); } @@ -144711,9 +146564,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1146 : struct.success) + for (Role _iter1164 : struct.success) { - _iter1146.write(oprot); + _iter1164.write(oprot); } } } @@ -144728,14 +146581,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 _list1147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1147.size); - Role _elem1148; - for (int _i1149 = 0; _i1149 < _list1147.size; ++_i1149) + org.apache.thrift.protocol.TList _list1165 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1165.size); + Role _elem1166; + for (int _i1167 = 0; _i1167 < _list1165.size; ++_i1167) { - _elem1148 = new Role(); - _elem1148.read(iprot); - struct.success.add(_elem1148); + _elem1166 = new Role(); + _elem1166.read(iprot); + struct.success.add(_elem1166); } } struct.setSuccessIsSet(true); @@ -147740,13 +149593,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 _list1150 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1150.size); - String _elem1151; - for (int _i1152 = 0; _i1152 < _list1150.size; ++_i1152) + org.apache.thrift.protocol.TList _list1168 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1168.size); + String _elem1169; + for (int _i1170 = 0; _i1170 < _list1168.size; ++_i1170) { - _elem1151 = iprot.readString(); - struct.group_names.add(_elem1151); + _elem1169 = iprot.readString(); + struct.group_names.add(_elem1169); } iprot.readListEnd(); } @@ -147782,9 +149635,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 _iter1153 : struct.group_names) + for (String _iter1171 : struct.group_names) { - oprot.writeString(_iter1153); + oprot.writeString(_iter1171); } oprot.writeListEnd(); } @@ -147827,9 +149680,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 _iter1154 : struct.group_names) + for (String _iter1172 : struct.group_names) { - oprot.writeString(_iter1154); + oprot.writeString(_iter1172); } } } @@ -147850,13 +149703,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1155 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1155.size); - String _elem1156; - for (int _i1157 = 0; _i1157 < _list1155.size; ++_i1157) + org.apache.thrift.protocol.TList _list1173 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1173.size); + String _elem1174; + for (int _i1175 = 0; _i1175 < _list1173.size; ++_i1175) { - _elem1156 = iprot.readString(); - struct.group_names.add(_elem1156); + _elem1174 = iprot.readString(); + struct.group_names.add(_elem1174); } } struct.setGroup_namesIsSet(true); @@ -149314,14 +151167,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 _list1158 = iprot.readListBegin(); - struct.success = new ArrayList(_list1158.size); - HiveObjectPrivilege _elem1159; - for (int _i1160 = 0; _i1160 < _list1158.size; ++_i1160) + org.apache.thrift.protocol.TList _list1176 = iprot.readListBegin(); + struct.success = new ArrayList(_list1176.size); + HiveObjectPrivilege _elem1177; + for (int _i1178 = 0; _i1178 < _list1176.size; ++_i1178) { - _elem1159 = new HiveObjectPrivilege(); - _elem1159.read(iprot); - struct.success.add(_elem1159); + _elem1177 = new HiveObjectPrivilege(); + _elem1177.read(iprot); + struct.success.add(_elem1177); } iprot.readListEnd(); } @@ -149356,9 +151209,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 _iter1161 : struct.success) + for (HiveObjectPrivilege _iter1179 : struct.success) { - _iter1161.write(oprot); + _iter1179.write(oprot); } oprot.writeListEnd(); } @@ -149397,9 +151250,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1162 : struct.success) + for (HiveObjectPrivilege _iter1180 : struct.success) { - _iter1162.write(oprot); + _iter1180.write(oprot); } } } @@ -149414,14 +151267,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 _list1163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1163.size); - HiveObjectPrivilege _elem1164; - for (int _i1165 = 0; _i1165 < _list1163.size; ++_i1165) + org.apache.thrift.protocol.TList _list1181 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1181.size); + HiveObjectPrivilege _elem1182; + for (int _i1183 = 0; _i1183 < _list1181.size; ++_i1183) { - _elem1164 = new HiveObjectPrivilege(); - _elem1164.read(iprot); - struct.success.add(_elem1164); + _elem1182 = new HiveObjectPrivilege(); + _elem1182.read(iprot); + struct.success.add(_elem1182); } } struct.setSuccessIsSet(true); @@ -152323,13 +154176,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 _list1166 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1166.size); - String _elem1167; - for (int _i1168 = 0; _i1168 < _list1166.size; ++_i1168) + org.apache.thrift.protocol.TList _list1184 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1184.size); + String _elem1185; + for (int _i1186 = 0; _i1186 < _list1184.size; ++_i1186) { - _elem1167 = iprot.readString(); - struct.group_names.add(_elem1167); + _elem1185 = iprot.readString(); + struct.group_names.add(_elem1185); } iprot.readListEnd(); } @@ -152360,9 +154213,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 _iter1169 : struct.group_names) + for (String _iter1187 : struct.group_names) { - oprot.writeString(_iter1169); + oprot.writeString(_iter1187); } oprot.writeListEnd(); } @@ -152399,9 +154252,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 _iter1170 : struct.group_names) + for (String _iter1188 : struct.group_names) { - oprot.writeString(_iter1170); + oprot.writeString(_iter1188); } } } @@ -152417,13 +154270,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1171 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1171.size); - String _elem1172; - for (int _i1173 = 0; _i1173 < _list1171.size; ++_i1173) + org.apache.thrift.protocol.TList _list1189 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1189.size); + String _elem1190; + for (int _i1191 = 0; _i1191 < _list1189.size; ++_i1191) { - _elem1172 = iprot.readString(); - struct.group_names.add(_elem1172); + _elem1190 = iprot.readString(); + struct.group_names.add(_elem1190); } } struct.setGroup_namesIsSet(true); @@ -152826,13 +154679,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 _list1174 = iprot.readListBegin(); - struct.success = new ArrayList(_list1174.size); - String _elem1175; - for (int _i1176 = 0; _i1176 < _list1174.size; ++_i1176) + org.apache.thrift.protocol.TList _list1192 = iprot.readListBegin(); + struct.success = new ArrayList(_list1192.size); + String _elem1193; + for (int _i1194 = 0; _i1194 < _list1192.size; ++_i1194) { - _elem1175 = iprot.readString(); - struct.success.add(_elem1175); + _elem1193 = iprot.readString(); + struct.success.add(_elem1193); } iprot.readListEnd(); } @@ -152867,9 +154720,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 _iter1177 : struct.success) + for (String _iter1195 : struct.success) { - oprot.writeString(_iter1177); + oprot.writeString(_iter1195); } oprot.writeListEnd(); } @@ -152908,9 +154761,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1178 : struct.success) + for (String _iter1196 : struct.success) { - oprot.writeString(_iter1178); + oprot.writeString(_iter1196); } } } @@ -152925,13 +154778,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 _list1179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1179.size); - String _elem1180; - for (int _i1181 = 0; _i1181 < _list1179.size; ++_i1181) + org.apache.thrift.protocol.TList _list1197 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1197.size); + String _elem1198; + for (int _i1199 = 0; _i1199 < _list1197.size; ++_i1199) { - _elem1180 = iprot.readString(); - struct.success.add(_elem1180); + _elem1198 = iprot.readString(); + struct.success.add(_elem1198); } } struct.setSuccessIsSet(true); @@ -158222,13 +160075,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_token_ident case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1182 = iprot.readListBegin(); - struct.success = new ArrayList(_list1182.size); - String _elem1183; - for (int _i1184 = 0; _i1184 < _list1182.size; ++_i1184) + org.apache.thrift.protocol.TList _list1200 = iprot.readListBegin(); + struct.success = new ArrayList(_list1200.size); + String _elem1201; + for (int _i1202 = 0; _i1202 < _list1200.size; ++_i1202) { - _elem1183 = iprot.readString(); - struct.success.add(_elem1183); + _elem1201 = iprot.readString(); + struct.success.add(_elem1201); } iprot.readListEnd(); } @@ -158254,9 +160107,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_token_iden oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1185 : struct.success) + for (String _iter1203 : struct.success) { - oprot.writeString(_iter1185); + oprot.writeString(_iter1203); } oprot.writeListEnd(); } @@ -158287,9 +160140,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1186 : struct.success) + for (String _iter1204 : struct.success) { - oprot.writeString(_iter1186); + oprot.writeString(_iter1204); } } } @@ -158301,13 +160154,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_token_identi BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1187 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1187.size); - String _elem1188; - for (int _i1189 = 0; _i1189 < _list1187.size; ++_i1189) + org.apache.thrift.protocol.TList _list1205 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1205.size); + String _elem1206; + for (int _i1207 = 0; _i1207 < _list1205.size; ++_i1207) { - _elem1188 = iprot.readString(); - struct.success.add(_elem1188); + _elem1206 = iprot.readString(); + struct.success.add(_elem1206); } } struct.setSuccessIsSet(true); @@ -161337,13 +163190,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_master_keys_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1190 = iprot.readListBegin(); - struct.success = new ArrayList(_list1190.size); - String _elem1191; - for (int _i1192 = 0; _i1192 < _list1190.size; ++_i1192) + org.apache.thrift.protocol.TList _list1208 = iprot.readListBegin(); + struct.success = new ArrayList(_list1208.size); + String _elem1209; + for (int _i1210 = 0; _i1210 < _list1208.size; ++_i1210) { - _elem1191 = iprot.readString(); - struct.success.add(_elem1191); + _elem1209 = iprot.readString(); + struct.success.add(_elem1209); } iprot.readListEnd(); } @@ -161369,9 +163222,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_master_keys_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1193 : struct.success) + for (String _iter1211 : struct.success) { - oprot.writeString(_iter1193); + oprot.writeString(_iter1211); } oprot.writeListEnd(); } @@ -161402,9 +163255,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1194 : struct.success) + for (String _iter1212 : struct.success) { - oprot.writeString(_iter1194); + oprot.writeString(_iter1212); } } } @@ -161416,13 +163269,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_master_keys_resu BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1195 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1195.size); - String _elem1196; - for (int _i1197 = 0; _i1197 < _list1195.size; ++_i1197) + org.apache.thrift.protocol.TList _list1213 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1213.size); + String _elem1214; + for (int _i1215 = 0; _i1215 < _list1213.size; ++_i1215) { - _elem1196 = iprot.readString(); - struct.success.add(_elem1196); + _elem1214 = iprot.readString(); + struct.success.add(_elem1214); } } struct.setSuccessIsSet(true); diff --git a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 9bfc2b2..d29553e 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -463,6 +463,19 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { */ public function exchange_partitions(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name); /** + * @param array $partitionSpecs + * @param string $source_db + * @param string $source_table_name + * @param string $dest_db + * @param string $dest_table_name + * @return \metastore\Partition[] + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + * @throws \metastore\InvalidObjectException + * @throws \metastore\InvalidInputException + */ + public function exchange_partitions_metadata(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name); + /** * @param string $db_name * @param string $tbl_name * @param string[] $part_vals @@ -4291,6 +4304,73 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("exchange_partitions failed: unknown result"); } + public function exchange_partitions_metadata(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) + { + $this->send_exchange_partitions_metadata($partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name); + return $this->recv_exchange_partitions_metadata(); + } + + public function send_exchange_partitions_metadata(array $partitionSpecs, $source_db, $source_table_name, $dest_db, $dest_table_name) + { + $args = new \metastore\ThriftHiveMetastore_exchange_partitions_metadata_args(); + $args->partitionSpecs = $partitionSpecs; + $args->source_db = $source_db; + $args->source_table_name = $source_table_name; + $args->dest_db = $dest_db; + $args->dest_table_name = $dest_table_name; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'exchange_partitions_metadata', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('exchange_partitions_metadata', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_exchange_partitions_metadata() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_exchange_partitions_metadata_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_exchange_partitions_metadata_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + if ($result->o3 !== null) { + throw $result->o3; + } + if ($result->o4 !== null) { + throw $result->o4; + } + throw new \Exception("exchange_partitions_metadata failed: unknown result"); + } + public function get_partition_with_auth($db_name, $tbl_name, array $part_vals, $user_name, array $group_names) { $this->send_get_partition_with_auth($db_name, $tbl_name, $part_vals, $user_name, $group_names); @@ -23115,6 +23195,410 @@ class ThriftHiveMetastore_exchange_partitions_result { } +class ThriftHiveMetastore_exchange_partitions_metadata_args { + static $_TSPEC; + + /** + * @var array + */ + public $partitionSpecs = null; + /** + * @var string + */ + public $source_db = null; + /** + * @var string + */ + public $source_table_name = null; + /** + * @var string + */ + public $dest_db = null; + /** + * @var string + */ + public $dest_table_name = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'partitionSpecs', + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), + ), + 2 => array( + 'var' => 'source_db', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'source_table_name', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'dest_db', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'dest_table_name', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['partitionSpecs'])) { + $this->partitionSpecs = $vals['partitionSpecs']; + } + if (isset($vals['source_db'])) { + $this->source_db = $vals['source_db']; + } + if (isset($vals['source_table_name'])) { + $this->source_table_name = $vals['source_table_name']; + } + if (isset($vals['dest_db'])) { + $this->dest_db = $vals['dest_db']; + } + if (isset($vals['dest_table_name'])) { + $this->dest_table_name = $vals['dest_table_name']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_exchange_partitions_metadata_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::MAP) { + $this->partitionSpecs = array(); + $_size792 = 0; + $_ktype793 = 0; + $_vtype794 = 0; + $xfer += $input->readMapBegin($_ktype793, $_vtype794, $_size792); + for ($_i796 = 0; $_i796 < $_size792; ++$_i796) + { + $key797 = ''; + $val798 = ''; + $xfer += $input->readString($key797); + $xfer += $input->readString($val798); + $this->partitionSpecs[$key797] = $val798; + } + $xfer += $input->readMapEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->source_db); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->source_table_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dest_db); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dest_table_name); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_exchange_partitions_metadata_args'); + if ($this->partitionSpecs !== null) { + if (!is_array($this->partitionSpecs)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitionSpecs', TType::MAP, 1); + { + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); + { + foreach ($this->partitionSpecs as $kiter799 => $viter800) + { + $xfer += $output->writeString($kiter799); + $xfer += $output->writeString($viter800); + } + } + $output->writeMapEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->source_db !== null) { + $xfer += $output->writeFieldBegin('source_db', TType::STRING, 2); + $xfer += $output->writeString($this->source_db); + $xfer += $output->writeFieldEnd(); + } + if ($this->source_table_name !== null) { + $xfer += $output->writeFieldBegin('source_table_name', TType::STRING, 3); + $xfer += $output->writeString($this->source_table_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->dest_db !== null) { + $xfer += $output->writeFieldBegin('dest_db', TType::STRING, 4); + $xfer += $output->writeString($this->dest_db); + $xfer += $output->writeFieldEnd(); + } + if ($this->dest_table_name !== null) { + $xfer += $output->writeFieldBegin('dest_table_name', TType::STRING, 5); + $xfer += $output->writeString($this->dest_table_name); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_exchange_partitions_metadata_result { + static $_TSPEC; + + /** + * @var \metastore\Partition[] + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + /** + * @var \metastore\NoSuchObjectException + */ + public $o2 = null; + /** + * @var \metastore\InvalidObjectException + */ + public $o3 = null; + /** + * @var \metastore\InvalidInputException + */ + public $o4 = null; + + public function __construct($vals=null) { + 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\MetaException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + 3 => array( + 'var' => 'o3', + 'type' => TType::STRUCT, + 'class' => '\metastore\InvalidObjectException', + ), + 4 => array( + 'var' => 'o4', + 'type' => TType::STRUCT, + 'class' => '\metastore\InvalidInputException', + ), + ); + } + 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']; + } + if (isset($vals['o3'])) { + $this->o3 = $vals['o3']; + } + if (isset($vals['o4'])) { + $this->o4 = $vals['o4']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_exchange_partitions_metadata_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(); + $_size801 = 0; + $_etype804 = 0; + $xfer += $input->readListBegin($_etype804, $_size801); + for ($_i805 = 0; $_i805 < $_size801; ++$_i805) + { + $elem806 = null; + $elem806 = new \metastore\Partition(); + $xfer += $elem806->read($input); + $this->success []= $elem806; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\NoSuchObjectException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->o3 = new \metastore\InvalidObjectException(); + $xfer += $this->o3->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRUCT) { + $this->o4 = new \metastore\InvalidInputException(); + $xfer += $this->o4->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_exchange_partitions_metadata_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 $iter807) + { + $xfer += $iter807->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(); + } + if ($this->o3 !== null) { + $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3); + $xfer += $this->o3->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o4 !== null) { + $xfer += $output->writeFieldBegin('o4', TType::STRUCT, 4); + $xfer += $this->o4->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_get_partition_with_auth_args { static $_TSPEC; @@ -23227,14 +23711,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size792 = 0; - $_etype795 = 0; - $xfer += $input->readListBegin($_etype795, $_size792); - for ($_i796 = 0; $_i796 < $_size792; ++$_i796) + $_size808 = 0; + $_etype811 = 0; + $xfer += $input->readListBegin($_etype811, $_size808); + for ($_i812 = 0; $_i812 < $_size808; ++$_i812) { - $elem797 = null; - $xfer += $input->readString($elem797); - $this->part_vals []= $elem797; + $elem813 = null; + $xfer += $input->readString($elem813); + $this->part_vals []= $elem813; } $xfer += $input->readListEnd(); } else { @@ -23251,14 +23735,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size798 = 0; - $_etype801 = 0; - $xfer += $input->readListBegin($_etype801, $_size798); - for ($_i802 = 0; $_i802 < $_size798; ++$_i802) + $_size814 = 0; + $_etype817 = 0; + $xfer += $input->readListBegin($_etype817, $_size814); + for ($_i818 = 0; $_i818 < $_size814; ++$_i818) { - $elem803 = null; - $xfer += $input->readString($elem803); - $this->group_names []= $elem803; + $elem819 = null; + $xfer += $input->readString($elem819); + $this->group_names []= $elem819; } $xfer += $input->readListEnd(); } else { @@ -23296,9 +23780,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter804) + foreach ($this->part_vals as $iter820) { - $xfer += $output->writeString($iter804); + $xfer += $output->writeString($iter820); } } $output->writeListEnd(); @@ -23318,9 +23802,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter805) + foreach ($this->group_names as $iter821) { - $xfer += $output->writeString($iter805); + $xfer += $output->writeString($iter821); } } $output->writeListEnd(); @@ -23911,15 +24395,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size806 = 0; - $_etype809 = 0; - $xfer += $input->readListBegin($_etype809, $_size806); - for ($_i810 = 0; $_i810 < $_size806; ++$_i810) + $_size822 = 0; + $_etype825 = 0; + $xfer += $input->readListBegin($_etype825, $_size822); + for ($_i826 = 0; $_i826 < $_size822; ++$_i826) { - $elem811 = null; - $elem811 = new \metastore\Partition(); - $xfer += $elem811->read($input); - $this->success []= $elem811; + $elem827 = null; + $elem827 = new \metastore\Partition(); + $xfer += $elem827->read($input); + $this->success []= $elem827; } $xfer += $input->readListEnd(); } else { @@ -23963,9 +24447,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter812) + foreach ($this->success as $iter828) { - $xfer += $iter812->write($output); + $xfer += $iter828->write($output); } } $output->writeListEnd(); @@ -24111,14 +24595,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size813 = 0; - $_etype816 = 0; - $xfer += $input->readListBegin($_etype816, $_size813); - for ($_i817 = 0; $_i817 < $_size813; ++$_i817) + $_size829 = 0; + $_etype832 = 0; + $xfer += $input->readListBegin($_etype832, $_size829); + for ($_i833 = 0; $_i833 < $_size829; ++$_i833) { - $elem818 = null; - $xfer += $input->readString($elem818); - $this->group_names []= $elem818; + $elem834 = null; + $xfer += $input->readString($elem834); + $this->group_names []= $elem834; } $xfer += $input->readListEnd(); } else { @@ -24166,9 +24650,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter819) + foreach ($this->group_names as $iter835) { - $xfer += $output->writeString($iter819); + $xfer += $output->writeString($iter835); } } $output->writeListEnd(); @@ -24257,15 +24741,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size820 = 0; - $_etype823 = 0; - $xfer += $input->readListBegin($_etype823, $_size820); - for ($_i824 = 0; $_i824 < $_size820; ++$_i824) + $_size836 = 0; + $_etype839 = 0; + $xfer += $input->readListBegin($_etype839, $_size836); + for ($_i840 = 0; $_i840 < $_size836; ++$_i840) { - $elem825 = null; - $elem825 = new \metastore\Partition(); - $xfer += $elem825->read($input); - $this->success []= $elem825; + $elem841 = null; + $elem841 = new \metastore\Partition(); + $xfer += $elem841->read($input); + $this->success []= $elem841; } $xfer += $input->readListEnd(); } else { @@ -24309,9 +24793,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter826) + foreach ($this->success as $iter842) { - $xfer += $iter826->write($output); + $xfer += $iter842->write($output); } } $output->writeListEnd(); @@ -24531,15 +25015,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size827 = 0; - $_etype830 = 0; - $xfer += $input->readListBegin($_etype830, $_size827); - for ($_i831 = 0; $_i831 < $_size827; ++$_i831) + $_size843 = 0; + $_etype846 = 0; + $xfer += $input->readListBegin($_etype846, $_size843); + for ($_i847 = 0; $_i847 < $_size843; ++$_i847) { - $elem832 = null; - $elem832 = new \metastore\PartitionSpec(); - $xfer += $elem832->read($input); - $this->success []= $elem832; + $elem848 = null; + $elem848 = new \metastore\PartitionSpec(); + $xfer += $elem848->read($input); + $this->success []= $elem848; } $xfer += $input->readListEnd(); } else { @@ -24583,9 +25067,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter833) + foreach ($this->success as $iter849) { - $xfer += $iter833->write($output); + $xfer += $iter849->write($output); } } $output->writeListEnd(); @@ -24792,14 +25276,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size834 = 0; - $_etype837 = 0; - $xfer += $input->readListBegin($_etype837, $_size834); - for ($_i838 = 0; $_i838 < $_size834; ++$_i838) + $_size850 = 0; + $_etype853 = 0; + $xfer += $input->readListBegin($_etype853, $_size850); + for ($_i854 = 0; $_i854 < $_size850; ++$_i854) { - $elem839 = null; - $xfer += $input->readString($elem839); - $this->success []= $elem839; + $elem855 = null; + $xfer += $input->readString($elem855); + $this->success []= $elem855; } $xfer += $input->readListEnd(); } else { @@ -24835,9 +25319,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter840) + foreach ($this->success as $iter856) { - $xfer += $output->writeString($iter840); + $xfer += $output->writeString($iter856); } } $output->writeListEnd(); @@ -24953,14 +25437,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size841 = 0; - $_etype844 = 0; - $xfer += $input->readListBegin($_etype844, $_size841); - for ($_i845 = 0; $_i845 < $_size841; ++$_i845) + $_size857 = 0; + $_etype860 = 0; + $xfer += $input->readListBegin($_etype860, $_size857); + for ($_i861 = 0; $_i861 < $_size857; ++$_i861) { - $elem846 = null; - $xfer += $input->readString($elem846); - $this->part_vals []= $elem846; + $elem862 = null; + $xfer += $input->readString($elem862); + $this->part_vals []= $elem862; } $xfer += $input->readListEnd(); } else { @@ -25005,9 +25489,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter847) + foreach ($this->part_vals as $iter863) { - $xfer += $output->writeString($iter847); + $xfer += $output->writeString($iter863); } } $output->writeListEnd(); @@ -25101,15 +25585,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size848 = 0; - $_etype851 = 0; - $xfer += $input->readListBegin($_etype851, $_size848); - for ($_i852 = 0; $_i852 < $_size848; ++$_i852) + $_size864 = 0; + $_etype867 = 0; + $xfer += $input->readListBegin($_etype867, $_size864); + for ($_i868 = 0; $_i868 < $_size864; ++$_i868) { - $elem853 = null; - $elem853 = new \metastore\Partition(); - $xfer += $elem853->read($input); - $this->success []= $elem853; + $elem869 = null; + $elem869 = new \metastore\Partition(); + $xfer += $elem869->read($input); + $this->success []= $elem869; } $xfer += $input->readListEnd(); } else { @@ -25153,9 +25637,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter854) + foreach ($this->success as $iter870) { - $xfer += $iter854->write($output); + $xfer += $iter870->write($output); } } $output->writeListEnd(); @@ -25302,14 +25786,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size855 = 0; - $_etype858 = 0; - $xfer += $input->readListBegin($_etype858, $_size855); - for ($_i859 = 0; $_i859 < $_size855; ++$_i859) + $_size871 = 0; + $_etype874 = 0; + $xfer += $input->readListBegin($_etype874, $_size871); + for ($_i875 = 0; $_i875 < $_size871; ++$_i875) { - $elem860 = null; - $xfer += $input->readString($elem860); - $this->part_vals []= $elem860; + $elem876 = null; + $xfer += $input->readString($elem876); + $this->part_vals []= $elem876; } $xfer += $input->readListEnd(); } else { @@ -25333,14 +25817,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size861 = 0; - $_etype864 = 0; - $xfer += $input->readListBegin($_etype864, $_size861); - for ($_i865 = 0; $_i865 < $_size861; ++$_i865) + $_size877 = 0; + $_etype880 = 0; + $xfer += $input->readListBegin($_etype880, $_size877); + for ($_i881 = 0; $_i881 < $_size877; ++$_i881) { - $elem866 = null; - $xfer += $input->readString($elem866); - $this->group_names []= $elem866; + $elem882 = null; + $xfer += $input->readString($elem882); + $this->group_names []= $elem882; } $xfer += $input->readListEnd(); } else { @@ -25378,9 +25862,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter867) + foreach ($this->part_vals as $iter883) { - $xfer += $output->writeString($iter867); + $xfer += $output->writeString($iter883); } } $output->writeListEnd(); @@ -25405,9 +25889,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter868) + foreach ($this->group_names as $iter884) { - $xfer += $output->writeString($iter868); + $xfer += $output->writeString($iter884); } } $output->writeListEnd(); @@ -25496,15 +25980,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size869 = 0; - $_etype872 = 0; - $xfer += $input->readListBegin($_etype872, $_size869); - for ($_i873 = 0; $_i873 < $_size869; ++$_i873) + $_size885 = 0; + $_etype888 = 0; + $xfer += $input->readListBegin($_etype888, $_size885); + for ($_i889 = 0; $_i889 < $_size885; ++$_i889) { - $elem874 = null; - $elem874 = new \metastore\Partition(); - $xfer += $elem874->read($input); - $this->success []= $elem874; + $elem890 = null; + $elem890 = new \metastore\Partition(); + $xfer += $elem890->read($input); + $this->success []= $elem890; } $xfer += $input->readListEnd(); } else { @@ -25548,9 +26032,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter875) + foreach ($this->success as $iter891) { - $xfer += $iter875->write($output); + $xfer += $iter891->write($output); } } $output->writeListEnd(); @@ -25671,14 +26155,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size876 = 0; - $_etype879 = 0; - $xfer += $input->readListBegin($_etype879, $_size876); - for ($_i880 = 0; $_i880 < $_size876; ++$_i880) + $_size892 = 0; + $_etype895 = 0; + $xfer += $input->readListBegin($_etype895, $_size892); + for ($_i896 = 0; $_i896 < $_size892; ++$_i896) { - $elem881 = null; - $xfer += $input->readString($elem881); - $this->part_vals []= $elem881; + $elem897 = null; + $xfer += $input->readString($elem897); + $this->part_vals []= $elem897; } $xfer += $input->readListEnd(); } else { @@ -25723,9 +26207,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter882) + foreach ($this->part_vals as $iter898) { - $xfer += $output->writeString($iter882); + $xfer += $output->writeString($iter898); } } $output->writeListEnd(); @@ -25818,14 +26302,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size883 = 0; - $_etype886 = 0; - $xfer += $input->readListBegin($_etype886, $_size883); - for ($_i887 = 0; $_i887 < $_size883; ++$_i887) + $_size899 = 0; + $_etype902 = 0; + $xfer += $input->readListBegin($_etype902, $_size899); + for ($_i903 = 0; $_i903 < $_size899; ++$_i903) { - $elem888 = null; - $xfer += $input->readString($elem888); - $this->success []= $elem888; + $elem904 = null; + $xfer += $input->readString($elem904); + $this->success []= $elem904; } $xfer += $input->readListEnd(); } else { @@ -25869,9 +26353,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter889) + foreach ($this->success as $iter905) { - $xfer += $output->writeString($iter889); + $xfer += $output->writeString($iter905); } } $output->writeListEnd(); @@ -26114,15 +26598,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size890 = 0; - $_etype893 = 0; - $xfer += $input->readListBegin($_etype893, $_size890); - for ($_i894 = 0; $_i894 < $_size890; ++$_i894) + $_size906 = 0; + $_etype909 = 0; + $xfer += $input->readListBegin($_etype909, $_size906); + for ($_i910 = 0; $_i910 < $_size906; ++$_i910) { - $elem895 = null; - $elem895 = new \metastore\Partition(); - $xfer += $elem895->read($input); - $this->success []= $elem895; + $elem911 = null; + $elem911 = new \metastore\Partition(); + $xfer += $elem911->read($input); + $this->success []= $elem911; } $xfer += $input->readListEnd(); } else { @@ -26166,9 +26650,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter896) + foreach ($this->success as $iter912) { - $xfer += $iter896->write($output); + $xfer += $iter912->write($output); } } $output->writeListEnd(); @@ -26411,15 +26895,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size897 = 0; - $_etype900 = 0; - $xfer += $input->readListBegin($_etype900, $_size897); - for ($_i901 = 0; $_i901 < $_size897; ++$_i901) + $_size913 = 0; + $_etype916 = 0; + $xfer += $input->readListBegin($_etype916, $_size913); + for ($_i917 = 0; $_i917 < $_size913; ++$_i917) { - $elem902 = null; - $elem902 = new \metastore\PartitionSpec(); - $xfer += $elem902->read($input); - $this->success []= $elem902; + $elem918 = null; + $elem918 = new \metastore\PartitionSpec(); + $xfer += $elem918->read($input); + $this->success []= $elem918; } $xfer += $input->readListEnd(); } else { @@ -26463,9 +26947,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter903) + foreach ($this->success as $iter919) { - $xfer += $iter903->write($output); + $xfer += $iter919->write($output); } } $output->writeListEnd(); @@ -27031,14 +27515,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size904 = 0; - $_etype907 = 0; - $xfer += $input->readListBegin($_etype907, $_size904); - for ($_i908 = 0; $_i908 < $_size904; ++$_i908) + $_size920 = 0; + $_etype923 = 0; + $xfer += $input->readListBegin($_etype923, $_size920); + for ($_i924 = 0; $_i924 < $_size920; ++$_i924) { - $elem909 = null; - $xfer += $input->readString($elem909); - $this->names []= $elem909; + $elem925 = null; + $xfer += $input->readString($elem925); + $this->names []= $elem925; } $xfer += $input->readListEnd(); } else { @@ -27076,9 +27560,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter910) + foreach ($this->names as $iter926) { - $xfer += $output->writeString($iter910); + $xfer += $output->writeString($iter926); } } $output->writeListEnd(); @@ -27167,15 +27651,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size911 = 0; - $_etype914 = 0; - $xfer += $input->readListBegin($_etype914, $_size911); - for ($_i915 = 0; $_i915 < $_size911; ++$_i915) + $_size927 = 0; + $_etype930 = 0; + $xfer += $input->readListBegin($_etype930, $_size927); + for ($_i931 = 0; $_i931 < $_size927; ++$_i931) { - $elem916 = null; - $elem916 = new \metastore\Partition(); - $xfer += $elem916->read($input); - $this->success []= $elem916; + $elem932 = null; + $elem932 = new \metastore\Partition(); + $xfer += $elem932->read($input); + $this->success []= $elem932; } $xfer += $input->readListEnd(); } else { @@ -27219,9 +27703,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter917) + foreach ($this->success as $iter933) { - $xfer += $iter917->write($output); + $xfer += $iter933->write($output); } } $output->writeListEnd(); @@ -27560,15 +28044,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size918 = 0; - $_etype921 = 0; - $xfer += $input->readListBegin($_etype921, $_size918); - for ($_i922 = 0; $_i922 < $_size918; ++$_i922) + $_size934 = 0; + $_etype937 = 0; + $xfer += $input->readListBegin($_etype937, $_size934); + for ($_i938 = 0; $_i938 < $_size934; ++$_i938) { - $elem923 = null; - $elem923 = new \metastore\Partition(); - $xfer += $elem923->read($input); - $this->new_parts []= $elem923; + $elem939 = null; + $elem939 = new \metastore\Partition(); + $xfer += $elem939->read($input); + $this->new_parts []= $elem939; } $xfer += $input->readListEnd(); } else { @@ -27606,9 +28090,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter924) + foreach ($this->new_parts as $iter940) { - $xfer += $iter924->write($output); + $xfer += $iter940->write($output); } } $output->writeListEnd(); @@ -27823,15 +28307,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size925 = 0; - $_etype928 = 0; - $xfer += $input->readListBegin($_etype928, $_size925); - for ($_i929 = 0; $_i929 < $_size925; ++$_i929) + $_size941 = 0; + $_etype944 = 0; + $xfer += $input->readListBegin($_etype944, $_size941); + for ($_i945 = 0; $_i945 < $_size941; ++$_i945) { - $elem930 = null; - $elem930 = new \metastore\Partition(); - $xfer += $elem930->read($input); - $this->new_parts []= $elem930; + $elem946 = null; + $elem946 = new \metastore\Partition(); + $xfer += $elem946->read($input); + $this->new_parts []= $elem946; } $xfer += $input->readListEnd(); } else { @@ -27877,9 +28361,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter931) + foreach ($this->new_parts as $iter947) { - $xfer += $iter931->write($output); + $xfer += $iter947->write($output); } } $output->writeListEnd(); @@ -28357,14 +28841,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size932 = 0; - $_etype935 = 0; - $xfer += $input->readListBegin($_etype935, $_size932); - for ($_i936 = 0; $_i936 < $_size932; ++$_i936) + $_size948 = 0; + $_etype951 = 0; + $xfer += $input->readListBegin($_etype951, $_size948); + for ($_i952 = 0; $_i952 < $_size948; ++$_i952) { - $elem937 = null; - $xfer += $input->readString($elem937); - $this->part_vals []= $elem937; + $elem953 = null; + $xfer += $input->readString($elem953); + $this->part_vals []= $elem953; } $xfer += $input->readListEnd(); } else { @@ -28410,9 +28894,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter938) + foreach ($this->part_vals as $iter954) { - $xfer += $output->writeString($iter938); + $xfer += $output->writeString($iter954); } } $output->writeListEnd(); @@ -28597,14 +29081,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size939 = 0; - $_etype942 = 0; - $xfer += $input->readListBegin($_etype942, $_size939); - for ($_i943 = 0; $_i943 < $_size939; ++$_i943) + $_size955 = 0; + $_etype958 = 0; + $xfer += $input->readListBegin($_etype958, $_size955); + for ($_i959 = 0; $_i959 < $_size955; ++$_i959) { - $elem944 = null; - $xfer += $input->readString($elem944); - $this->part_vals []= $elem944; + $elem960 = null; + $xfer += $input->readString($elem960); + $this->part_vals []= $elem960; } $xfer += $input->readListEnd(); } else { @@ -28639,9 +29123,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter945) + foreach ($this->part_vals as $iter961) { - $xfer += $output->writeString($iter945); + $xfer += $output->writeString($iter961); } } $output->writeListEnd(); @@ -29095,14 +29579,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size946 = 0; - $_etype949 = 0; - $xfer += $input->readListBegin($_etype949, $_size946); - for ($_i950 = 0; $_i950 < $_size946; ++$_i950) + $_size962 = 0; + $_etype965 = 0; + $xfer += $input->readListBegin($_etype965, $_size962); + for ($_i966 = 0; $_i966 < $_size962; ++$_i966) { - $elem951 = null; - $xfer += $input->readString($elem951); - $this->success []= $elem951; + $elem967 = null; + $xfer += $input->readString($elem967); + $this->success []= $elem967; } $xfer += $input->readListEnd(); } else { @@ -29138,9 +29622,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter952) + foreach ($this->success as $iter968) { - $xfer += $output->writeString($iter952); + $xfer += $output->writeString($iter968); } } $output->writeListEnd(); @@ -29300,17 +29784,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size953 = 0; - $_ktype954 = 0; - $_vtype955 = 0; - $xfer += $input->readMapBegin($_ktype954, $_vtype955, $_size953); - for ($_i957 = 0; $_i957 < $_size953; ++$_i957) + $_size969 = 0; + $_ktype970 = 0; + $_vtype971 = 0; + $xfer += $input->readMapBegin($_ktype970, $_vtype971, $_size969); + for ($_i973 = 0; $_i973 < $_size969; ++$_i973) { - $key958 = ''; - $val959 = ''; - $xfer += $input->readString($key958); - $xfer += $input->readString($val959); - $this->success[$key958] = $val959; + $key974 = ''; + $val975 = ''; + $xfer += $input->readString($key974); + $xfer += $input->readString($val975); + $this->success[$key974] = $val975; } $xfer += $input->readMapEnd(); } else { @@ -29346,10 +29830,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter960 => $viter961) + foreach ($this->success as $kiter976 => $viter977) { - $xfer += $output->writeString($kiter960); - $xfer += $output->writeString($viter961); + $xfer += $output->writeString($kiter976); + $xfer += $output->writeString($viter977); } } $output->writeMapEnd(); @@ -29469,17 +29953,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size962 = 0; - $_ktype963 = 0; - $_vtype964 = 0; - $xfer += $input->readMapBegin($_ktype963, $_vtype964, $_size962); - for ($_i966 = 0; $_i966 < $_size962; ++$_i966) + $_size978 = 0; + $_ktype979 = 0; + $_vtype980 = 0; + $xfer += $input->readMapBegin($_ktype979, $_vtype980, $_size978); + for ($_i982 = 0; $_i982 < $_size978; ++$_i982) { - $key967 = ''; - $val968 = ''; - $xfer += $input->readString($key967); - $xfer += $input->readString($val968); - $this->part_vals[$key967] = $val968; + $key983 = ''; + $val984 = ''; + $xfer += $input->readString($key983); + $xfer += $input->readString($val984); + $this->part_vals[$key983] = $val984; } $xfer += $input->readMapEnd(); } else { @@ -29524,10 +30008,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter969 => $viter970) + foreach ($this->part_vals as $kiter985 => $viter986) { - $xfer += $output->writeString($kiter969); - $xfer += $output->writeString($viter970); + $xfer += $output->writeString($kiter985); + $xfer += $output->writeString($viter986); } } $output->writeMapEnd(); @@ -29849,17 +30333,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size971 = 0; - $_ktype972 = 0; - $_vtype973 = 0; - $xfer += $input->readMapBegin($_ktype972, $_vtype973, $_size971); - for ($_i975 = 0; $_i975 < $_size971; ++$_i975) + $_size987 = 0; + $_ktype988 = 0; + $_vtype989 = 0; + $xfer += $input->readMapBegin($_ktype988, $_vtype989, $_size987); + for ($_i991 = 0; $_i991 < $_size987; ++$_i991) { - $key976 = ''; - $val977 = ''; - $xfer += $input->readString($key976); - $xfer += $input->readString($val977); - $this->part_vals[$key976] = $val977; + $key992 = ''; + $val993 = ''; + $xfer += $input->readString($key992); + $xfer += $input->readString($val993); + $this->part_vals[$key992] = $val993; } $xfer += $input->readMapEnd(); } else { @@ -29904,10 +30388,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter978 => $viter979) + foreach ($this->part_vals as $kiter994 => $viter995) { - $xfer += $output->writeString($kiter978); - $xfer += $output->writeString($viter979); + $xfer += $output->writeString($kiter994); + $xfer += $output->writeString($viter995); } } $output->writeMapEnd(); @@ -31381,15 +31865,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size980 = 0; - $_etype983 = 0; - $xfer += $input->readListBegin($_etype983, $_size980); - for ($_i984 = 0; $_i984 < $_size980; ++$_i984) + $_size996 = 0; + $_etype999 = 0; + $xfer += $input->readListBegin($_etype999, $_size996); + for ($_i1000 = 0; $_i1000 < $_size996; ++$_i1000) { - $elem985 = null; - $elem985 = new \metastore\Index(); - $xfer += $elem985->read($input); - $this->success []= $elem985; + $elem1001 = null; + $elem1001 = new \metastore\Index(); + $xfer += $elem1001->read($input); + $this->success []= $elem1001; } $xfer += $input->readListEnd(); } else { @@ -31433,9 +31917,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter986) + foreach ($this->success as $iter1002) { - $xfer += $iter986->write($output); + $xfer += $iter1002->write($output); } } $output->writeListEnd(); @@ -31642,14 +32126,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size987 = 0; - $_etype990 = 0; - $xfer += $input->readListBegin($_etype990, $_size987); - for ($_i991 = 0; $_i991 < $_size987; ++$_i991) + $_size1003 = 0; + $_etype1006 = 0; + $xfer += $input->readListBegin($_etype1006, $_size1003); + for ($_i1007 = 0; $_i1007 < $_size1003; ++$_i1007) { - $elem992 = null; - $xfer += $input->readString($elem992); - $this->success []= $elem992; + $elem1008 = null; + $xfer += $input->readString($elem1008); + $this->success []= $elem1008; } $xfer += $input->readListEnd(); } else { @@ -31685,9 +32169,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter993) + foreach ($this->success as $iter1009) { - $xfer += $output->writeString($iter993); + $xfer += $output->writeString($iter1009); } } $output->writeListEnd(); @@ -35581,14 +36065,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size994 = 0; - $_etype997 = 0; - $xfer += $input->readListBegin($_etype997, $_size994); - for ($_i998 = 0; $_i998 < $_size994; ++$_i998) + $_size1010 = 0; + $_etype1013 = 0; + $xfer += $input->readListBegin($_etype1013, $_size1010); + for ($_i1014 = 0; $_i1014 < $_size1010; ++$_i1014) { - $elem999 = null; - $xfer += $input->readString($elem999); - $this->success []= $elem999; + $elem1015 = null; + $xfer += $input->readString($elem1015); + $this->success []= $elem1015; } $xfer += $input->readListEnd(); } else { @@ -35624,9 +36108,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1000) + foreach ($this->success as $iter1016) { - $xfer += $output->writeString($iter1000); + $xfer += $output->writeString($iter1016); } } $output->writeListEnd(); @@ -36495,14 +36979,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1001 = 0; - $_etype1004 = 0; - $xfer += $input->readListBegin($_etype1004, $_size1001); - for ($_i1005 = 0; $_i1005 < $_size1001; ++$_i1005) + $_size1017 = 0; + $_etype1020 = 0; + $xfer += $input->readListBegin($_etype1020, $_size1017); + for ($_i1021 = 0; $_i1021 < $_size1017; ++$_i1021) { - $elem1006 = null; - $xfer += $input->readString($elem1006); - $this->success []= $elem1006; + $elem1022 = null; + $xfer += $input->readString($elem1022); + $this->success []= $elem1022; } $xfer += $input->readListEnd(); } else { @@ -36538,9 +37022,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1007) + foreach ($this->success as $iter1023) { - $xfer += $output->writeString($iter1007); + $xfer += $output->writeString($iter1023); } } $output->writeListEnd(); @@ -37231,15 +37715,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1008 = 0; - $_etype1011 = 0; - $xfer += $input->readListBegin($_etype1011, $_size1008); - for ($_i1012 = 0; $_i1012 < $_size1008; ++$_i1012) + $_size1024 = 0; + $_etype1027 = 0; + $xfer += $input->readListBegin($_etype1027, $_size1024); + for ($_i1028 = 0; $_i1028 < $_size1024; ++$_i1028) { - $elem1013 = null; - $elem1013 = new \metastore\Role(); - $xfer += $elem1013->read($input); - $this->success []= $elem1013; + $elem1029 = null; + $elem1029 = new \metastore\Role(); + $xfer += $elem1029->read($input); + $this->success []= $elem1029; } $xfer += $input->readListEnd(); } else { @@ -37275,9 +37759,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1014) + foreach ($this->success as $iter1030) { - $xfer += $iter1014->write($output); + $xfer += $iter1030->write($output); } } $output->writeListEnd(); @@ -37939,14 +38423,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1015 = 0; - $_etype1018 = 0; - $xfer += $input->readListBegin($_etype1018, $_size1015); - for ($_i1019 = 0; $_i1019 < $_size1015; ++$_i1019) + $_size1031 = 0; + $_etype1034 = 0; + $xfer += $input->readListBegin($_etype1034, $_size1031); + for ($_i1035 = 0; $_i1035 < $_size1031; ++$_i1035) { - $elem1020 = null; - $xfer += $input->readString($elem1020); - $this->group_names []= $elem1020; + $elem1036 = null; + $xfer += $input->readString($elem1036); + $this->group_names []= $elem1036; } $xfer += $input->readListEnd(); } else { @@ -37987,9 +38471,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1021) + foreach ($this->group_names as $iter1037) { - $xfer += $output->writeString($iter1021); + $xfer += $output->writeString($iter1037); } } $output->writeListEnd(); @@ -38297,15 +38781,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1022 = 0; - $_etype1025 = 0; - $xfer += $input->readListBegin($_etype1025, $_size1022); - for ($_i1026 = 0; $_i1026 < $_size1022; ++$_i1026) + $_size1038 = 0; + $_etype1041 = 0; + $xfer += $input->readListBegin($_etype1041, $_size1038); + for ($_i1042 = 0; $_i1042 < $_size1038; ++$_i1042) { - $elem1027 = null; - $elem1027 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1027->read($input); - $this->success []= $elem1027; + $elem1043 = null; + $elem1043 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1043->read($input); + $this->success []= $elem1043; } $xfer += $input->readListEnd(); } else { @@ -38341,9 +38825,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1028) + foreach ($this->success as $iter1044) { - $xfer += $iter1028->write($output); + $xfer += $iter1044->write($output); } } $output->writeListEnd(); @@ -38975,14 +39459,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size1029 = 0; - $_etype1032 = 0; - $xfer += $input->readListBegin($_etype1032, $_size1029); - for ($_i1033 = 0; $_i1033 < $_size1029; ++$_i1033) + $_size1045 = 0; + $_etype1048 = 0; + $xfer += $input->readListBegin($_etype1048, $_size1045); + for ($_i1049 = 0; $_i1049 < $_size1045; ++$_i1049) { - $elem1034 = null; - $xfer += $input->readString($elem1034); - $this->group_names []= $elem1034; + $elem1050 = null; + $xfer += $input->readString($elem1050); + $this->group_names []= $elem1050; } $xfer += $input->readListEnd(); } else { @@ -39015,9 +39499,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter1035) + foreach ($this->group_names as $iter1051) { - $xfer += $output->writeString($iter1035); + $xfer += $output->writeString($iter1051); } } $output->writeListEnd(); @@ -39093,14 +39577,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1036 = 0; - $_etype1039 = 0; - $xfer += $input->readListBegin($_etype1039, $_size1036); - for ($_i1040 = 0; $_i1040 < $_size1036; ++$_i1040) + $_size1052 = 0; + $_etype1055 = 0; + $xfer += $input->readListBegin($_etype1055, $_size1052); + for ($_i1056 = 0; $_i1056 < $_size1052; ++$_i1056) { - $elem1041 = null; - $xfer += $input->readString($elem1041); - $this->success []= $elem1041; + $elem1057 = null; + $xfer += $input->readString($elem1057); + $this->success []= $elem1057; } $xfer += $input->readListEnd(); } else { @@ -39136,9 +39620,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1042) + foreach ($this->success as $iter1058) { - $xfer += $output->writeString($iter1042); + $xfer += $output->writeString($iter1058); } } $output->writeListEnd(); @@ -40255,14 +40739,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1043 = 0; - $_etype1046 = 0; - $xfer += $input->readListBegin($_etype1046, $_size1043); - for ($_i1047 = 0; $_i1047 < $_size1043; ++$_i1047) + $_size1059 = 0; + $_etype1062 = 0; + $xfer += $input->readListBegin($_etype1062, $_size1059); + for ($_i1063 = 0; $_i1063 < $_size1059; ++$_i1063) { - $elem1048 = null; - $xfer += $input->readString($elem1048); - $this->success []= $elem1048; + $elem1064 = null; + $xfer += $input->readString($elem1064); + $this->success []= $elem1064; } $xfer += $input->readListEnd(); } else { @@ -40290,9 +40774,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1049) + foreach ($this->success as $iter1065) { - $xfer += $output->writeString($iter1049); + $xfer += $output->writeString($iter1065); } } $output->writeListEnd(); @@ -40931,14 +41415,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size1050 = 0; - $_etype1053 = 0; - $xfer += $input->readListBegin($_etype1053, $_size1050); - for ($_i1054 = 0; $_i1054 < $_size1050; ++$_i1054) + $_size1066 = 0; + $_etype1069 = 0; + $xfer += $input->readListBegin($_etype1069, $_size1066); + for ($_i1070 = 0; $_i1070 < $_size1066; ++$_i1070) { - $elem1055 = null; - $xfer += $input->readString($elem1055); - $this->success []= $elem1055; + $elem1071 = null; + $xfer += $input->readString($elem1071); + $this->success []= $elem1071; } $xfer += $input->readListEnd(); } else { @@ -40966,9 +41450,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1056) + foreach ($this->success as $iter1072) { - $xfer += $output->writeString($iter1056); + $xfer += $output->writeString($iter1072); } } $output->writeListEnd(); diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index 5c24707..84baebc 100755 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -77,6 +77,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' Partition get_partition(string db_name, string tbl_name, part_vals)') print(' Partition exchange_partition( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)') print(' exchange_partitions( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)') + print(' exchange_partitions_metadata( partitionSpecs, string source_db, string source_table_name, string dest_db, string dest_table_name)') print(' Partition get_partition_with_auth(string db_name, string tbl_name, part_vals, string user_name, group_names)') print(' Partition get_partition_by_name(string db_name, string tbl_name, string part_name)') print(' get_partitions(string db_name, string tbl_name, i16 max_parts)') @@ -564,6 +565,12 @@ elif cmd == 'exchange_partitions': sys.exit(1) pp.pprint(client.exchange_partitions(eval(args[0]),args[1],args[2],args[3],args[4],)) +elif cmd == 'exchange_partitions_metadata': + if len(args) != 5: + print('exchange_partitions_metadata requires 5 args') + sys.exit(1) + pp.pprint(client.exchange_partitions_metadata(eval(args[0]),args[1],args[2],args[3],args[4],)) + elif cmd == 'get_partition_with_auth': if len(args) != 5: print('get_partition_with_auth requires 5 args') diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 86bbef3..f1a75f5 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -460,6 +460,17 @@ def exchange_partitions(self, partitionSpecs, source_db, source_table_name, dest """ pass + def exchange_partitions_metadata(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name): + """ + Parameters: + - partitionSpecs + - source_db + - source_table_name + - dest_db + - dest_table_name + """ + pass + def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names): """ Parameters: @@ -3232,6 +3243,53 @@ def recv_exchange_partitions(self): raise result.o4 raise TApplicationException(TApplicationException.MISSING_RESULT, "exchange_partitions failed: unknown result") + def exchange_partitions_metadata(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name): + """ + Parameters: + - partitionSpecs + - source_db + - source_table_name + - dest_db + - dest_table_name + """ + self.send_exchange_partitions_metadata(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name) + return self.recv_exchange_partitions_metadata() + + def send_exchange_partitions_metadata(self, partitionSpecs, source_db, source_table_name, dest_db, dest_table_name): + self._oprot.writeMessageBegin('exchange_partitions_metadata', TMessageType.CALL, self._seqid) + args = exchange_partitions_metadata_args() + args.partitionSpecs = partitionSpecs + args.source_db = source_db + args.source_table_name = source_table_name + args.dest_db = dest_db + args.dest_table_name = dest_table_name + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_exchange_partitions_metadata(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = exchange_partitions_metadata_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + if result.o3 is not None: + raise result.o3 + if result.o4 is not None: + raise result.o4 + raise TApplicationException(TApplicationException.MISSING_RESULT, "exchange_partitions_metadata failed: unknown result") + def get_partition_with_auth(self, db_name, tbl_name, part_vals, user_name, group_names): """ Parameters: @@ -6817,6 +6875,7 @@ def __init__(self, handler): self._processMap["get_partition"] = Processor.process_get_partition self._processMap["exchange_partition"] = Processor.process_exchange_partition self._processMap["exchange_partitions"] = Processor.process_exchange_partitions + self._processMap["exchange_partitions_metadata"] = Processor.process_exchange_partitions_metadata self._processMap["get_partition_with_auth"] = Processor.process_get_partition_with_auth self._processMap["get_partition_by_name"] = Processor.process_get_partition_by_name self._processMap["get_partitions"] = Processor.process_get_partitions @@ -8309,6 +8368,37 @@ def process_exchange_partitions(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_exchange_partitions_metadata(self, seqid, iprot, oprot): + args = exchange_partitions_metadata_args() + args.read(iprot) + iprot.readMessageEnd() + result = exchange_partitions_metadata_result() + try: + result.success = self._handler.exchange_partitions_metadata(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except NoSuchObjectException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except InvalidObjectException as o3: + msg_type = TMessageType.REPLY + result.o3 = o3 + except InvalidInputException as o4: + msg_type = TMessageType.REPLY + result.o4 = o4 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("exchange_partitions_metadata", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_partition_with_auth(self, seqid, iprot, oprot): args = get_partition_with_auth_args() args.read(iprot) @@ -20215,6 +20305,262 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class exchange_partitions_metadata_args: + """ + Attributes: + - partitionSpecs + - source_db + - source_table_name + - dest_db + - dest_table_name + """ + + thrift_spec = ( + None, # 0 + (1, TType.MAP, 'partitionSpecs', (TType.STRING,None,TType.STRING,None), None, ), # 1 + (2, TType.STRING, 'source_db', None, None, ), # 2 + (3, TType.STRING, 'source_table_name', None, None, ), # 3 + (4, TType.STRING, 'dest_db', None, None, ), # 4 + (5, TType.STRING, 'dest_table_name', None, None, ), # 5 + ) + + def __init__(self, partitionSpecs=None, source_db=None, source_table_name=None, dest_db=None, dest_table_name=None,): + self.partitionSpecs = partitionSpecs + self.source_db = source_db + self.source_table_name = source_table_name + self.dest_db = dest_db + self.dest_table_name = dest_table_name + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.MAP: + self.partitionSpecs = {} + (_ktype790, _vtype791, _size789 ) = iprot.readMapBegin() + for _i793 in xrange(_size789): + _key794 = iprot.readString() + _val795 = iprot.readString() + self.partitionSpecs[_key794] = _val795 + iprot.readMapEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.source_db = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.source_table_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.dest_db = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.dest_table_name = iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('exchange_partitions_metadata_args') + if self.partitionSpecs is not None: + oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) + oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) + for kiter796,viter797 in self.partitionSpecs.items(): + oprot.writeString(kiter796) + oprot.writeString(viter797) + oprot.writeMapEnd() + oprot.writeFieldEnd() + if self.source_db is not None: + oprot.writeFieldBegin('source_db', TType.STRING, 2) + oprot.writeString(self.source_db) + oprot.writeFieldEnd() + if self.source_table_name is not None: + oprot.writeFieldBegin('source_table_name', TType.STRING, 3) + oprot.writeString(self.source_table_name) + oprot.writeFieldEnd() + if self.dest_db is not None: + oprot.writeFieldBegin('dest_db', TType.STRING, 4) + oprot.writeString(self.dest_db) + oprot.writeFieldEnd() + if self.dest_table_name is not None: + oprot.writeFieldBegin('dest_table_name', TType.STRING, 5) + oprot.writeString(self.dest_table_name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.partitionSpecs) + value = (value * 31) ^ hash(self.source_db) + value = (value * 31) ^ hash(self.source_table_name) + value = (value * 31) ^ hash(self.dest_db) + value = (value * 31) ^ hash(self.dest_table_name) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + 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 exchange_partitions_metadata_result: + """ + Attributes: + - success + - o1 + - o2 + - o3 + - o4 + """ + + thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT,(Partition, Partition.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + (3, TType.STRUCT, 'o3', (InvalidObjectException, InvalidObjectException.thrift_spec), None, ), # 3 + (4, TType.STRUCT, 'o4', (InvalidInputException, InvalidInputException.thrift_spec), None, ), # 4 + ) + + def __init__(self, success=None, o1=None, o2=None, o3=None, o4=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + self.o3 = o3 + self.o4 = o4 + + 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 = [] + (_etype801, _size798) = iprot.readListBegin() + for _i802 in xrange(_size798): + _elem803 = Partition() + _elem803.read(iprot) + self.success.append(_elem803) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = NoSuchObjectException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRUCT: + self.o3 = InvalidObjectException() + self.o3.read(iprot) + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRUCT: + self.o4 = InvalidInputException() + self.o4.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('exchange_partitions_metadata_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter804 in self.success: + iter804.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + if self.o3 is not None: + oprot.writeFieldBegin('o3', TType.STRUCT, 3) + self.o3.write(oprot) + oprot.writeFieldEnd() + if self.o4 is not None: + oprot.writeFieldBegin('o4', TType.STRUCT, 4) + self.o4.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + value = (value * 31) ^ hash(self.o3) + value = (value * 31) ^ hash(self.o4) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + 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_with_auth_args: """ Attributes: @@ -20263,10 +20609,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype792, _size789) = iprot.readListBegin() - for _i793 in xrange(_size789): - _elem794 = iprot.readString() - self.part_vals.append(_elem794) + (_etype808, _size805) = iprot.readListBegin() + for _i809 in xrange(_size805): + _elem810 = iprot.readString() + self.part_vals.append(_elem810) iprot.readListEnd() else: iprot.skip(ftype) @@ -20278,10 +20624,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype798, _size795) = iprot.readListBegin() - for _i799 in xrange(_size795): - _elem800 = iprot.readString() - self.group_names.append(_elem800) + (_etype814, _size811) = iprot.readListBegin() + for _i815 in xrange(_size811): + _elem816 = iprot.readString() + self.group_names.append(_elem816) iprot.readListEnd() else: iprot.skip(ftype) @@ -20306,8 +20652,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 iter801 in self.part_vals: - oprot.writeString(iter801) + for iter817 in self.part_vals: + oprot.writeString(iter817) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -20317,8 +20663,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter802 in self.group_names: - oprot.writeString(iter802) + for iter818 in self.group_names: + oprot.writeString(iter818) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20747,11 +21093,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype806, _size803) = iprot.readListBegin() - for _i807 in xrange(_size803): - _elem808 = Partition() - _elem808.read(iprot) - self.success.append(_elem808) + (_etype822, _size819) = iprot.readListBegin() + for _i823 in xrange(_size819): + _elem824 = Partition() + _elem824.read(iprot) + self.success.append(_elem824) iprot.readListEnd() else: iprot.skip(ftype) @@ -20780,8 +21126,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 iter809 in self.success: - iter809.write(oprot) + for iter825 in self.success: + iter825.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20875,10 +21221,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype813, _size810) = iprot.readListBegin() - for _i814 in xrange(_size810): - _elem815 = iprot.readString() - self.group_names.append(_elem815) + (_etype829, _size826) = iprot.readListBegin() + for _i830 in xrange(_size826): + _elem831 = iprot.readString() + self.group_names.append(_elem831) iprot.readListEnd() else: iprot.skip(ftype) @@ -20911,8 +21257,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter816 in self.group_names: - oprot.writeString(iter816) + for iter832 in self.group_names: + oprot.writeString(iter832) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20973,11 +21319,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype820, _size817) = iprot.readListBegin() - for _i821 in xrange(_size817): - _elem822 = Partition() - _elem822.read(iprot) - self.success.append(_elem822) + (_etype836, _size833) = iprot.readListBegin() + for _i837 in xrange(_size833): + _elem838 = Partition() + _elem838.read(iprot) + self.success.append(_elem838) iprot.readListEnd() else: iprot.skip(ftype) @@ -21006,8 +21352,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 iter823 in self.success: - iter823.write(oprot) + for iter839 in self.success: + iter839.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21165,11 +21511,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype827, _size824) = iprot.readListBegin() - for _i828 in xrange(_size824): - _elem829 = PartitionSpec() - _elem829.read(iprot) - self.success.append(_elem829) + (_etype843, _size840) = iprot.readListBegin() + for _i844 in xrange(_size840): + _elem845 = PartitionSpec() + _elem845.read(iprot) + self.success.append(_elem845) iprot.readListEnd() else: iprot.skip(ftype) @@ -21198,8 +21544,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 iter830 in self.success: - iter830.write(oprot) + for iter846 in self.success: + iter846.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21354,10 +21700,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype834, _size831) = iprot.readListBegin() - for _i835 in xrange(_size831): - _elem836 = iprot.readString() - self.success.append(_elem836) + (_etype850, _size847) = iprot.readListBegin() + for _i851 in xrange(_size847): + _elem852 = iprot.readString() + self.success.append(_elem852) iprot.readListEnd() else: iprot.skip(ftype) @@ -21380,8 +21726,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 iter837 in self.success: - oprot.writeString(iter837) + for iter853 in self.success: + oprot.writeString(iter853) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -21457,10 +21803,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype841, _size838) = iprot.readListBegin() - for _i842 in xrange(_size838): - _elem843 = iprot.readString() - self.part_vals.append(_elem843) + (_etype857, _size854) = iprot.readListBegin() + for _i858 in xrange(_size854): + _elem859 = iprot.readString() + self.part_vals.append(_elem859) iprot.readListEnd() else: iprot.skip(ftype) @@ -21490,8 +21836,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 iter844 in self.part_vals: - oprot.writeString(iter844) + for iter860 in self.part_vals: + oprot.writeString(iter860) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -21555,11 +21901,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype848, _size845) = iprot.readListBegin() - for _i849 in xrange(_size845): - _elem850 = Partition() - _elem850.read(iprot) - self.success.append(_elem850) + (_etype864, _size861) = iprot.readListBegin() + for _i865 in xrange(_size861): + _elem866 = Partition() + _elem866.read(iprot) + self.success.append(_elem866) iprot.readListEnd() else: iprot.skip(ftype) @@ -21588,8 +21934,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 iter851 in self.success: - iter851.write(oprot) + for iter867 in self.success: + iter867.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21676,10 +22022,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype855, _size852) = iprot.readListBegin() - for _i856 in xrange(_size852): - _elem857 = iprot.readString() - self.part_vals.append(_elem857) + (_etype871, _size868) = iprot.readListBegin() + for _i872 in xrange(_size868): + _elem873 = iprot.readString() + self.part_vals.append(_elem873) iprot.readListEnd() else: iprot.skip(ftype) @@ -21696,10 +22042,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype861, _size858) = iprot.readListBegin() - for _i862 in xrange(_size858): - _elem863 = iprot.readString() - self.group_names.append(_elem863) + (_etype877, _size874) = iprot.readListBegin() + for _i878 in xrange(_size874): + _elem879 = iprot.readString() + self.group_names.append(_elem879) iprot.readListEnd() else: iprot.skip(ftype) @@ -21724,8 +22070,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 iter864 in self.part_vals: - oprot.writeString(iter864) + for iter880 in self.part_vals: + oprot.writeString(iter880) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -21739,8 +22085,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 iter865 in self.group_names: - oprot.writeString(iter865) + for iter881 in self.group_names: + oprot.writeString(iter881) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21802,11 +22148,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype869, _size866) = iprot.readListBegin() - for _i870 in xrange(_size866): - _elem871 = Partition() - _elem871.read(iprot) - self.success.append(_elem871) + (_etype885, _size882) = iprot.readListBegin() + for _i886 in xrange(_size882): + _elem887 = Partition() + _elem887.read(iprot) + self.success.append(_elem887) iprot.readListEnd() else: iprot.skip(ftype) @@ -21835,8 +22181,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 iter872 in self.success: - iter872.write(oprot) + for iter888 in self.success: + iter888.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21917,10 +22263,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype876, _size873) = iprot.readListBegin() - for _i877 in xrange(_size873): - _elem878 = iprot.readString() - self.part_vals.append(_elem878) + (_etype892, _size889) = iprot.readListBegin() + for _i893 in xrange(_size889): + _elem894 = iprot.readString() + self.part_vals.append(_elem894) iprot.readListEnd() else: iprot.skip(ftype) @@ -21950,8 +22296,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 iter879 in self.part_vals: - oprot.writeString(iter879) + for iter895 in self.part_vals: + oprot.writeString(iter895) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -22015,10 +22361,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype883, _size880) = iprot.readListBegin() - for _i884 in xrange(_size880): - _elem885 = iprot.readString() - self.success.append(_elem885) + (_etype899, _size896) = iprot.readListBegin() + for _i900 in xrange(_size896): + _elem901 = iprot.readString() + self.success.append(_elem901) iprot.readListEnd() else: iprot.skip(ftype) @@ -22047,8 +22393,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 iter886 in self.success: - oprot.writeString(iter886) + for iter902 in self.success: + oprot.writeString(iter902) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22219,11 +22565,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype890, _size887) = iprot.readListBegin() - for _i891 in xrange(_size887): - _elem892 = Partition() - _elem892.read(iprot) - self.success.append(_elem892) + (_etype906, _size903) = iprot.readListBegin() + for _i907 in xrange(_size903): + _elem908 = Partition() + _elem908.read(iprot) + self.success.append(_elem908) iprot.readListEnd() else: iprot.skip(ftype) @@ -22252,8 +22598,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 iter893 in self.success: - iter893.write(oprot) + for iter909 in self.success: + iter909.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22424,11 +22770,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype897, _size894) = iprot.readListBegin() - for _i898 in xrange(_size894): - _elem899 = PartitionSpec() - _elem899.read(iprot) - self.success.append(_elem899) + (_etype913, _size910) = iprot.readListBegin() + for _i914 in xrange(_size910): + _elem915 = PartitionSpec() + _elem915.read(iprot) + self.success.append(_elem915) iprot.readListEnd() else: iprot.skip(ftype) @@ -22457,8 +22803,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 iter900 in self.success: - iter900.write(oprot) + for iter916 in self.success: + iter916.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22878,10 +23224,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype904, _size901) = iprot.readListBegin() - for _i905 in xrange(_size901): - _elem906 = iprot.readString() - self.names.append(_elem906) + (_etype920, _size917) = iprot.readListBegin() + for _i921 in xrange(_size917): + _elem922 = iprot.readString() + self.names.append(_elem922) iprot.readListEnd() else: iprot.skip(ftype) @@ -22906,8 +23252,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 iter907 in self.names: - oprot.writeString(iter907) + for iter923 in self.names: + oprot.writeString(iter923) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22966,11 +23312,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype911, _size908) = iprot.readListBegin() - for _i912 in xrange(_size908): - _elem913 = Partition() - _elem913.read(iprot) - self.success.append(_elem913) + (_etype927, _size924) = iprot.readListBegin() + for _i928 in xrange(_size924): + _elem929 = Partition() + _elem929.read(iprot) + self.success.append(_elem929) iprot.readListEnd() else: iprot.skip(ftype) @@ -22999,8 +23345,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 iter914 in self.success: - iter914.write(oprot) + for iter930 in self.success: + iter930.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23250,11 +23596,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype918, _size915) = iprot.readListBegin() - for _i919 in xrange(_size915): - _elem920 = Partition() - _elem920.read(iprot) - self.new_parts.append(_elem920) + (_etype934, _size931) = iprot.readListBegin() + for _i935 in xrange(_size931): + _elem936 = Partition() + _elem936.read(iprot) + self.new_parts.append(_elem936) iprot.readListEnd() else: iprot.skip(ftype) @@ -23279,8 +23625,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 iter921 in self.new_parts: - iter921.write(oprot) + for iter937 in self.new_parts: + iter937.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23433,11 +23779,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype925, _size922) = iprot.readListBegin() - for _i926 in xrange(_size922): - _elem927 = Partition() - _elem927.read(iprot) - self.new_parts.append(_elem927) + (_etype941, _size938) = iprot.readListBegin() + for _i942 in xrange(_size938): + _elem943 = Partition() + _elem943.read(iprot) + self.new_parts.append(_elem943) iprot.readListEnd() else: iprot.skip(ftype) @@ -23468,8 +23814,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 iter928 in self.new_parts: - iter928.write(oprot) + for iter944 in self.new_parts: + iter944.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -23813,10 +24159,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype932, _size929) = iprot.readListBegin() - for _i933 in xrange(_size929): - _elem934 = iprot.readString() - self.part_vals.append(_elem934) + (_etype948, _size945) = iprot.readListBegin() + for _i949 in xrange(_size945): + _elem950 = iprot.readString() + self.part_vals.append(_elem950) iprot.readListEnd() else: iprot.skip(ftype) @@ -23847,8 +24193,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 iter935 in self.part_vals: - oprot.writeString(iter935) + for iter951 in self.part_vals: + oprot.writeString(iter951) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -23990,10 +24336,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype939, _size936) = iprot.readListBegin() - for _i940 in xrange(_size936): - _elem941 = iprot.readString() - self.part_vals.append(_elem941) + (_etype955, _size952) = iprot.readListBegin() + for _i956 in xrange(_size952): + _elem957 = iprot.readString() + self.part_vals.append(_elem957) iprot.readListEnd() else: iprot.skip(ftype) @@ -24015,8 +24361,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 iter942 in self.part_vals: - oprot.writeString(iter942) + for iter958 in self.part_vals: + oprot.writeString(iter958) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -24374,10 +24720,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype946, _size943) = iprot.readListBegin() - for _i947 in xrange(_size943): - _elem948 = iprot.readString() - self.success.append(_elem948) + (_etype962, _size959) = iprot.readListBegin() + for _i963 in xrange(_size959): + _elem964 = iprot.readString() + self.success.append(_elem964) iprot.readListEnd() else: iprot.skip(ftype) @@ -24400,8 +24746,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 iter949 in self.success: - oprot.writeString(iter949) + for iter965 in self.success: + oprot.writeString(iter965) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24525,11 +24871,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype951, _vtype952, _size950 ) = iprot.readMapBegin() - for _i954 in xrange(_size950): - _key955 = iprot.readString() - _val956 = iprot.readString() - self.success[_key955] = _val956 + (_ktype967, _vtype968, _size966 ) = iprot.readMapBegin() + for _i970 in xrange(_size966): + _key971 = iprot.readString() + _val972 = iprot.readString() + self.success[_key971] = _val972 iprot.readMapEnd() else: iprot.skip(ftype) @@ -24552,9 +24898,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 kiter957,viter958 in self.success.items(): - oprot.writeString(kiter957) - oprot.writeString(viter958) + for kiter973,viter974 in self.success.items(): + oprot.writeString(kiter973) + oprot.writeString(viter974) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24630,11 +24976,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype960, _vtype961, _size959 ) = iprot.readMapBegin() - for _i963 in xrange(_size959): - _key964 = iprot.readString() - _val965 = iprot.readString() - self.part_vals[_key964] = _val965 + (_ktype976, _vtype977, _size975 ) = iprot.readMapBegin() + for _i979 in xrange(_size975): + _key980 = iprot.readString() + _val981 = iprot.readString() + self.part_vals[_key980] = _val981 iprot.readMapEnd() else: iprot.skip(ftype) @@ -24664,9 +25010,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 kiter966,viter967 in self.part_vals.items(): - oprot.writeString(kiter966) - oprot.writeString(viter967) + for kiter982,viter983 in self.part_vals.items(): + oprot.writeString(kiter982) + oprot.writeString(viter983) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -24880,11 +25226,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype969, _vtype970, _size968 ) = iprot.readMapBegin() - for _i972 in xrange(_size968): - _key973 = iprot.readString() - _val974 = iprot.readString() - self.part_vals[_key973] = _val974 + (_ktype985, _vtype986, _size984 ) = iprot.readMapBegin() + for _i988 in xrange(_size984): + _key989 = iprot.readString() + _val990 = iprot.readString() + self.part_vals[_key989] = _val990 iprot.readMapEnd() else: iprot.skip(ftype) @@ -24914,9 +25260,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 kiter975,viter976 in self.part_vals.items(): - oprot.writeString(kiter975) - oprot.writeString(viter976) + for kiter991,viter992 in self.part_vals.items(): + oprot.writeString(kiter991) + oprot.writeString(viter992) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -25971,11 +26317,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype980, _size977) = iprot.readListBegin() - for _i981 in xrange(_size977): - _elem982 = Index() - _elem982.read(iprot) - self.success.append(_elem982) + (_etype996, _size993) = iprot.readListBegin() + for _i997 in xrange(_size993): + _elem998 = Index() + _elem998.read(iprot) + self.success.append(_elem998) iprot.readListEnd() else: iprot.skip(ftype) @@ -26004,8 +26350,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 iter983 in self.success: - iter983.write(oprot) + for iter999 in self.success: + iter999.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26160,10 +26506,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype987, _size984) = iprot.readListBegin() - for _i988 in xrange(_size984): - _elem989 = iprot.readString() - self.success.append(_elem989) + (_etype1003, _size1000) = iprot.readListBegin() + for _i1004 in xrange(_size1000): + _elem1005 = iprot.readString() + self.success.append(_elem1005) iprot.readListEnd() else: iprot.skip(ftype) @@ -26186,8 +26532,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 iter990 in self.success: - oprot.writeString(iter990) + for iter1006 in self.success: + oprot.writeString(iter1006) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -29053,10 +29399,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype994, _size991) = iprot.readListBegin() - for _i995 in xrange(_size991): - _elem996 = iprot.readString() - self.success.append(_elem996) + (_etype1010, _size1007) = iprot.readListBegin() + for _i1011 in xrange(_size1007): + _elem1012 = iprot.readString() + self.success.append(_elem1012) iprot.readListEnd() else: iprot.skip(ftype) @@ -29079,8 +29425,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 iter997 in self.success: - oprot.writeString(iter997) + for iter1013 in self.success: + oprot.writeString(iter1013) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29768,10 +30114,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1001, _size998) = iprot.readListBegin() - for _i1002 in xrange(_size998): - _elem1003 = iprot.readString() - self.success.append(_elem1003) + (_etype1017, _size1014) = iprot.readListBegin() + for _i1018 in xrange(_size1014): + _elem1019 = iprot.readString() + self.success.append(_elem1019) iprot.readListEnd() else: iprot.skip(ftype) @@ -29794,8 +30140,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 iter1004 in self.success: - oprot.writeString(iter1004) + for iter1020 in self.success: + oprot.writeString(iter1020) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30309,11 +30655,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1008, _size1005) = iprot.readListBegin() - for _i1009 in xrange(_size1005): - _elem1010 = Role() - _elem1010.read(iprot) - self.success.append(_elem1010) + (_etype1024, _size1021) = iprot.readListBegin() + for _i1025 in xrange(_size1021): + _elem1026 = Role() + _elem1026.read(iprot) + self.success.append(_elem1026) iprot.readListEnd() else: iprot.skip(ftype) @@ -30336,8 +30682,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 iter1011 in self.success: - iter1011.write(oprot) + for iter1027 in self.success: + iter1027.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30846,10 +31192,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype1015, _size1012) = iprot.readListBegin() - for _i1016 in xrange(_size1012): - _elem1017 = iprot.readString() - self.group_names.append(_elem1017) + (_etype1031, _size1028) = iprot.readListBegin() + for _i1032 in xrange(_size1028): + _elem1033 = iprot.readString() + self.group_names.append(_elem1033) iprot.readListEnd() else: iprot.skip(ftype) @@ -30874,8 +31220,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 iter1018 in self.group_names: - oprot.writeString(iter1018) + for iter1034 in self.group_names: + oprot.writeString(iter1034) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31102,11 +31448,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1022, _size1019) = iprot.readListBegin() - for _i1023 in xrange(_size1019): - _elem1024 = HiveObjectPrivilege() - _elem1024.read(iprot) - self.success.append(_elem1024) + (_etype1038, _size1035) = iprot.readListBegin() + for _i1039 in xrange(_size1035): + _elem1040 = HiveObjectPrivilege() + _elem1040.read(iprot) + self.success.append(_elem1040) iprot.readListEnd() else: iprot.skip(ftype) @@ -31129,8 +31475,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 iter1025 in self.success: - iter1025.write(oprot) + for iter1041 in self.success: + iter1041.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31628,10 +31974,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype1029, _size1026) = iprot.readListBegin() - for _i1030 in xrange(_size1026): - _elem1031 = iprot.readString() - self.group_names.append(_elem1031) + (_etype1045, _size1042) = iprot.readListBegin() + for _i1046 in xrange(_size1042): + _elem1047 = iprot.readString() + self.group_names.append(_elem1047) iprot.readListEnd() else: iprot.skip(ftype) @@ -31652,8 +31998,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 iter1032 in self.group_names: - oprot.writeString(iter1032) + for iter1048 in self.group_names: + oprot.writeString(iter1048) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31708,10 +32054,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1036, _size1033) = iprot.readListBegin() - for _i1037 in xrange(_size1033): - _elem1038 = iprot.readString() - self.success.append(_elem1038) + (_etype1052, _size1049) = iprot.readListBegin() + for _i1053 in xrange(_size1049): + _elem1054 = iprot.readString() + self.success.append(_elem1054) iprot.readListEnd() else: iprot.skip(ftype) @@ -31734,8 +32080,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 iter1039 in self.success: - oprot.writeString(iter1039) + for iter1055 in self.success: + oprot.writeString(iter1055) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -32667,10 +33013,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1043, _size1040) = iprot.readListBegin() - for _i1044 in xrange(_size1040): - _elem1045 = iprot.readString() - self.success.append(_elem1045) + (_etype1059, _size1056) = iprot.readListBegin() + for _i1060 in xrange(_size1056): + _elem1061 = iprot.readString() + self.success.append(_elem1061) iprot.readListEnd() else: iprot.skip(ftype) @@ -32687,8 +33033,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 iter1046 in self.success: - oprot.writeString(iter1046) + for iter1062 in self.success: + oprot.writeString(iter1062) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33215,10 +33561,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype1050, _size1047) = iprot.readListBegin() - for _i1051 in xrange(_size1047): - _elem1052 = iprot.readString() - self.success.append(_elem1052) + (_etype1066, _size1063) = iprot.readListBegin() + for _i1067 in xrange(_size1063): + _elem1068 = iprot.readString() + self.success.append(_elem1068) iprot.readListEnd() else: iprot.skip(ftype) @@ -33235,8 +33581,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 iter1053 in self.success: - oprot.writeString(iter1053) + for iter1069 in self.success: + oprot.writeString(iter1069) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() diff --git a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 7cdfc86..98078eb 100644 --- a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -915,6 +915,25 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'exchange_partitions failed: unknown result') end + def exchange_partitions_metadata(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name) + send_exchange_partitions_metadata(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name) + return recv_exchange_partitions_metadata() + end + + def send_exchange_partitions_metadata(partitionSpecs, source_db, source_table_name, dest_db, dest_table_name) + send_message('exchange_partitions_metadata', Exchange_partitions_metadata_args, :partitionSpecs => partitionSpecs, :source_db => source_db, :source_table_name => source_table_name, :dest_db => dest_db, :dest_table_name => dest_table_name) + end + + def recv_exchange_partitions_metadata() + result = receive_message(Exchange_partitions_metadata_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise result.o3 unless result.o3.nil? + raise result.o4 unless result.o4.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'exchange_partitions_metadata failed: unknown result') + end + def get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names) send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names) return recv_get_partition_with_auth() @@ -3273,6 +3292,23 @@ module ThriftHiveMetastore write_result(result, oprot, 'exchange_partitions', seqid) end + def process_exchange_partitions_metadata(seqid, iprot, oprot) + args = read_args(iprot, Exchange_partitions_metadata_args) + result = Exchange_partitions_metadata_result.new() + begin + result.success = @handler.exchange_partitions_metadata(args.partitionSpecs, args.source_db, args.source_table_name, args.dest_db, args.dest_table_name) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::NoSuchObjectException => o2 + result.o2 = o2 + rescue ::InvalidObjectException => o3 + result.o3 = o3 + rescue ::InvalidInputException => o4 + result.o4 = o4 + end + write_result(result, oprot, 'exchange_partitions_metadata', seqid) + end + def process_get_partition_with_auth(seqid, iprot, oprot) args = read_args(iprot, Get_partition_with_auth_args) result = Get_partition_with_auth_result.new() @@ -6486,6 +6522,54 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Exchange_partitions_metadata_args + include ::Thrift::Struct, ::Thrift::Struct_Union + PARTITIONSPECS = 1 + SOURCE_DB = 2 + SOURCE_TABLE_NAME = 3 + DEST_DB = 4 + DEST_TABLE_NAME = 5 + + FIELDS = { + PARTITIONSPECS => {:type => ::Thrift::Types::MAP, :name => 'partitionSpecs', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}, + SOURCE_DB => {:type => ::Thrift::Types::STRING, :name => 'source_db'}, + SOURCE_TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'source_table_name'}, + DEST_DB => {:type => ::Thrift::Types::STRING, :name => 'dest_db'}, + DEST_TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'dest_table_name'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Exchange_partitions_metadata_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + O3 = 3 + O4 = 4 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}, + O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::InvalidObjectException}, + O4 => {:type => ::Thrift::Types::STRUCT, :name => 'o4', :class => ::InvalidInputException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_partition_with_auth_args include ::Thrift::Struct, ::Thrift::Struct_Union DB_NAME = 1 diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index 80b1e98..5542daa 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -2907,53 +2907,19 @@ public Partition exchange_partition(Map partitionSpecs, String sourceDbName, String sourceTableName, String destDbName, String destTableName) throws MetaException, NoSuchObjectException, InvalidObjectException, InvalidInputException, TException { - boolean success = false; - boolean pathCreated = false; + RawStore ms = getMS(); ms.openTransaction(); + Table destinationTable = ms.getTable(destDbName, destTableName); Table sourceTable = ms.getTable(sourceDbName, sourceTableName); - List partVals = MetaStoreUtils.getPvals(sourceTable.getPartitionKeys(), - partitionSpecs); - List partValsPresent = new ArrayList (); - List partitionKeysPresent = new ArrayList (); - int i = 0; - for (FieldSchema fs: sourceTable.getPartitionKeys()) { - String partVal = partVals.get(i); - if (partVal != null && !partVal.equals("")) { - partValsPresent.add(partVal); - partitionKeysPresent.add(fs); - } - i++; - } - List partitionsToExchange = get_partitions_ps(sourceDbName, sourceTableName, - partVals, (short)-1); - boolean sameColumns = MetaStoreUtils.compareFieldColumns( - sourceTable.getSd().getCols(), destinationTable.getSd().getCols()); - boolean samePartitions = MetaStoreUtils.compareFieldColumns( - sourceTable.getPartitionKeys(), destinationTable.getPartitionKeys()); - if (!sameColumns || !samePartitions) { - throw new MetaException("The tables have different schemas." + - " Their partitions cannot be exchanged."); - } - Path sourcePath = new Path(sourceTable.getSd().getLocation(), - Warehouse.makePartName(partitionKeysPresent, partValsPresent)); - Path destPath = new Path(destinationTable.getSd().getLocation(), - Warehouse.makePartName(partitionKeysPresent, partValsPresent)); - List destPartitions = new ArrayList(); - try { - for (Partition partition: partitionsToExchange) { - Partition destPartition = new Partition(partition); - destPartition.setDbName(destDbName); - destPartition.setTableName(destinationTable.getTableName()); - Path destPartitionPath = new Path(destinationTable.getSd().getLocation(), - Warehouse.makePartName(destinationTable.getPartitionKeys(), partition.getValues())); - destPartition.getSd().setLocation(destPartitionPath.toString()); - ms.addPartition(destPartition); - destPartitions.add(destPartition); - ms.dropPartition(partition.getDbName(), sourceTable.getTableName(), - partition.getValues()); - } + + PartitionExchanger partitionExchanger = new PartitionExchanger(sourceTable, destinationTable); + String partitionName = partitionExchanger.getPartitionName(partitionSpecs); + + Path sourcePath = new Path(sourceTable.getSd().getLocation(), partitionName); + Path destPath = new Path(destinationTable.getSd().getLocation(), partitionName); + Path destParentPath = destPath.getParent(); if (!wh.isDir(destParentPath)) { if (!wh.mkdirs(destParentPath, true)) { @@ -2964,24 +2930,63 @@ public Partition exchange_partition(Map partitionSpecs, * TODO: Use the hard link feature of hdfs * once https://issues.apache.org/jira/browse/HDFS-3370 is done */ - pathCreated = wh.renameDir(sourcePath, destPath); + if (wh.renameDir(sourcePath, destPath)) { + return exchange_partitions_metadata(partitionSpecs, sourceDbName, sourceTableName, destDbName, destTableName, ms); + } else { + return new ArrayList<>(); + } + } + @Override + public List exchange_partitions_metadata(Map partitionSpecs, String sourceDbName, + String sourceTableName, String destDbName, + String destTableName) throws TException { + return exchange_partitions_metadata(partitionSpecs, sourceDbName, sourceTableName, destDbName, destTableName, getMS()); + } + + private List exchange_partitions_metadata(Map partitionSpecs, String sourceDbName, + String sourceTableName, String destDbName, + String destTableName, RawStore ms) throws TException { + boolean success = false; + + ms.openTransaction(); + + Table destinationTable = ms.getTable(destDbName, destTableName); + Table sourceTable = ms.getTable(sourceDbName, sourceTableName); + + List partVals = MetaStoreUtils.getPvals(sourceTable.getPartitionKeys(), + partitionSpecs); + List partitionsToExchange = get_partitions_ps(sourceDbName, sourceTableName, + partVals, (short)-1); + + for (Partition partition : partitionsToExchange) { + ms.dropPartition(partition.getDbName(), sourceTable.getTableName(), + partition.getValues()); + } + + PartitionExchanger partitionExchanger = new PartitionExchanger(sourceTable, destinationTable); + List destPartitions = partitionExchanger.getDestPartitions(partitionsToExchange); + for (Partition destPartition : destPartitions) { + ms.addPartition(destPartition); + } + + try { // Setting success to false to make sure that if the listener fails, rollback happens. success = false; fireMetaStoreExchangePartitionEvent(sourceTable, partitionsToExchange, destinationTable, destPartitions, transactionalListeners, true); - success = ms.commitTransaction(); - return destPartitions; + if (success) { + return destPartitions; + } else { + return new ArrayList<>(); + } } finally { - if (!success || !pathCreated) { + if (!success) { ms.rollbackTransaction(); - if (pathCreated) { - wh.renameDir(destPath, sourcePath); - } fireMetaStoreExchangePartitionEvent(sourceTable, partitionsToExchange, - destinationTable, destPartitions, listeners, success); + destinationTable, destPartitions, listeners, false); } } } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 7002620..037b63e 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -692,6 +692,13 @@ public Partition exchange_partition(Map partitionSpecs, } @Override + public List exchange_partitions_metadata(Map partitionSpecs, String sourceDb, + String sourceTable, String destdb, + String destTableName) throws MetaException, NoSuchObjectException, InvalidObjectException, TException { + return client.exchange_partitions_metadata(partitionSpecs, sourceDb, sourceTable, destdb, destTableName); + } + + @Override public void validatePartitionNameCharacters(List partVals) throws TException, MetaException { client.partition_name_has_valid_characters(partVals, true); diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index e9df1e1..3420328 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -502,6 +502,22 @@ Partition exchange_partition(Map partitionSpecs, String destTableName) throws MetaException, NoSuchObjectException, InvalidObjectException, TException; + /** + * With the one partitionSpecs to exchange, multiple partitions could be exchanged. + * e.g., year=2015/month/day, exchanging partition year=2015 results to all the partitions + * belonging to it exchanged. This function returns the list of affected partitions. + * @param partitionSpecs + * @param sourceDb + * @param sourceTable + * @param destdb + * @param destTableName + * @return the list of the new partitions + */ + List exchange_partitions_metadata(Map partitionSpecs, + String sourceDb, String sourceTable, String destdb, + String destTableName) throws MetaException, NoSuchObjectException, + InvalidObjectException, TException; + /** * @param dbName * @param tblName diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java index 79f6d7f..98db12b 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java @@ -44,6 +44,8 @@ import com.google.common.collect.Maps; import org.apache.commons.lang.StringUtils; +import org.apache.hadoop.hive.metastore.api.InvalidInputException; +import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.conf.Configuration; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/PartitionExchanger.java b/metastore/src/java/org/apache/hadoop/hive/metastore/PartitionExchanger.java new file mode 100644 index 0000000..6ea1e01 --- /dev/null +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/PartitionExchanger.java @@ -0,0 +1,85 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.hive.metastore; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import org.apache.hadoop.fs.Path; +import org.apache.hadoop.hive.metastore.api.FieldSchema; +import org.apache.hadoop.hive.metastore.api.InvalidInputException; +import org.apache.hadoop.hive.metastore.api.InvalidObjectException; +import org.apache.hadoop.hive.metastore.api.MetaException; +import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; +import org.apache.hadoop.hive.metastore.api.Partition; +import org.apache.hadoop.hive.metastore.api.Table; + + +public class PartitionExchanger { + + private final Table sourceTable; + private final Table destinationTable; + + public PartitionExchanger(Table sourceTable, Table destinationTable) { + this.sourceTable = sourceTable; + this.destinationTable = destinationTable; + } + + public String getPartitionName(Map partitionSpecs) throws MetaException { + List partVals = MetaStoreUtils.getPvals(this.sourceTable.getPartitionKeys(), + partitionSpecs); + List partValsPresent = new ArrayList<>(); + List partitionKeysPresent = new ArrayList<>(); + int i = 0; + for (FieldSchema fs : this.sourceTable.getPartitionKeys()) { + String partVal = partVals.get(i); + if (partVal != null && !partVal.equals("")) { + partValsPresent.add(partVal); + partitionKeysPresent.add(fs); + } + i++; + } + return Warehouse.makePartName(partitionKeysPresent, partValsPresent); + } + + public List getDestPartitions(List partitionsToExchange) throws MetaException, InvalidObjectException, NoSuchObjectException, InvalidInputException { + boolean sameColumns = MetaStoreUtils.compareFieldColumns( + this.sourceTable.getSd().getCols(), destinationTable.getSd().getCols()); + boolean samePartitions = MetaStoreUtils.compareFieldColumns( + this.sourceTable.getPartitionKeys(), destinationTable.getPartitionKeys()); + if (!sameColumns || !samePartitions) { + throw new MetaException("The tables have different schemas." + + " Their partitions cannot be exchanged."); + } + + List destPartitions = new ArrayList<>(); + + for (Partition partition : partitionsToExchange) { + Partition destPartition = new Partition(partition); + destPartition.setDbName(this.destinationTable.getDbName()); + destPartition.setTableName(this.destinationTable.getTableName()); + Path destPartitionPath = new Path(this.destinationTable.getSd().getLocation(), + Warehouse.makePartName(this.destinationTable.getPartitionKeys(), partition.getValues())); + destPartition.getSd().setLocation(destPartitionPath.toString()); + destPartitions.add(destPartition); + } + return destPartitions; + } +} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java index ed854bf..0523967 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -75,10 +75,12 @@ import org.apache.hadoop.hive.metastore.HiveMetaException; import org.apache.hadoop.hive.metastore.HiveMetaHook; import org.apache.hadoop.hive.metastore.HiveMetaHookLoader; +import org.apache.hadoop.hive.metastore.HiveMetaStore; import org.apache.hadoop.hive.metastore.HiveMetaStoreClient; import org.apache.hadoop.hive.metastore.IMetaStoreClient; import org.apache.hadoop.hive.metastore.MetaStoreUtils; import org.apache.hadoop.hive.metastore.PartitionDropOptions; +import org.apache.hadoop.hive.metastore.PartitionExchanger; import org.apache.hadoop.hive.metastore.RetryingMetaStoreClient; import org.apache.hadoop.hive.metastore.SynchronizedMetaStoreClient; import org.apache.hadoop.hive.metastore.TableType; @@ -3082,12 +3084,18 @@ public static void clearDestForSubDirSrc(final HiveConf conf, Path dest, } } + public static boolean moveFile(final HiveConf conf, Path srcf, final Path destf, + boolean replace, boolean isSrcLocal) throws HiveException { + return moveFile(conf, srcf, destf, replace, isSrcLocal, HiveConf.getBoolVar(conf, + HiveConf.ConfVars.HIVE_WAREHOUSE_SUBDIR_INHERIT_PERMS)); + } + //it is assumed that parent directory of the destf should already exist when this //method is called. when the replace value is true, this method works a little different //from mv command if the destf is a directory, it replaces the destf instead of moving under //the destf. in this case, the replaced destf still preserves the original destf's permission public static boolean moveFile(final HiveConf conf, Path srcf, final Path destf, - boolean replace, boolean isSrcLocal) throws HiveException { + boolean replace, boolean isSrcLocal, final boolean inheritPerms) throws HiveException { final FileSystem srcFs, destFs; try { destFs = destf.getFileSystem(conf); @@ -3103,8 +3111,6 @@ public static boolean moveFile(final HiveConf conf, Path srcf, final Path destf, } //needed for perm inheritance. - final boolean inheritPerms = HiveConf.getBoolVar(conf, - HiveConf.ConfVars.HIVE_WAREHOUSE_SUBDIR_INHERIT_PERMS); HdfsUtils.HadoopFileStatus destStatus = null; // If source path is a subdirectory of the destination path: @@ -3540,14 +3546,39 @@ public static boolean isHadoop1() { } public List exchangeTablePartitions(Map partitionSpecs, - String sourceDb, String sourceTable, String destDb, - String destinationTableName) throws HiveException { + String sourceDbName, String sourceTableName, String destDbName, + String destinationTableName) throws HiveException { try { - List partitions = - getMSC().exchange_partitions(partitionSpecs, sourceDb, sourceTable, destDb, - destinationTableName); - return convertFromMetastore(getTable(destDb, destinationTableName), partitions); + Table sourceTable = getTable(sourceDbName, sourceTableName); + Table destinationTable = getTable(destDbName, destinationTableName); + + String partitionName = new PartitionExchanger(sourceTable.getTTable(), destinationTable.getTTable()).getPartitionName(partitionSpecs); + + Path sourcePath = new Path(sourceTable.getSd().getLocation(), partitionName); + Path destPath = new Path(destinationTable.getSd().getLocation(), partitionName); + + FileSystem destFs = destPath.getFileSystem(this.conf); + + boolean inheritPerms = HiveConf.getBoolVar(conf, + HiveConf.ConfVars.HIVE_WAREHOUSE_SUBDIR_INHERIT_PERMS); + + Path destParentPath = destPath.getParent(); + if (!FileUtils.isDir(destFs, destParentPath)) { + if (!FileUtils.mkdir(destFs, destParentPath, inheritPerms, conf)) { + throw new MetaException("Unable to create path " + destParentPath); + } + } else if (destFs.exists(destPath)) { + throw new IOException("Cannot exchange partitions because destination path already exists"); + } + + if (moveFile(this.conf, sourcePath, destPath, false, false, false)) { + return convertFromMetastore(getTable(destDbName, destinationTableName), + getMSC().exchange_partitions_metadata(partitionSpecs, sourceDbName, sourceTableName, destDbName, + destinationTableName)); + } else { + throw new IOException("Could not rename " + sourcePath + " to " + destPath); + } } catch (Exception ex) { LOG.error(StringUtils.stringifyException(ex)); throw new HiveException(ex); diff --git a/ql/src/test/queries/clientpositive/encryption_exchange_partition.q b/ql/src/test/queries/clientpositive/encryption_exchange_partition.q new file mode 100644 index 0000000..0ada937 --- /dev/null +++ b/ql/src/test/queries/clientpositive/encryption_exchange_partition.q @@ -0,0 +1,27 @@ +DROP TABLE IF EXISTS encrypted_table PURGE; +DROP TABLE IF EXISTS encrypted_table_outloc PURGE; + +CREATE TABLE encrypted_table (key INT, value STRING) PARTITIONED BY (partcol int) LOCATION '${hiveconf:hive.metastore.warehouse.dir}/encrypted_table'; +CRYPTO CREATE_KEY --keyName key_128 --bitLength 128; +CRYPTO CREATE_ZONE --keyName key_128 --path ${hiveconf:hive.metastore.warehouse.dir}/encrypted_table; + +ALTER TABLE encrypted_table ADD PARTITION (partcol=1); +INSERT OVERWRITE TABLE encrypted_table PARTITION (partcol=1) SELECT * FROM src; + +SELECT * FROM encrypted_table; + +CREATE TABLE encrypted_table_outloc (key INT, value STRING) PARTITIONED BY (partcol int) LOCATION '${hiveconf:hive.metastore.warehouse.dir}/../specified_table_location'; +CRYPTO CREATE_KEY --keyName key_128_2 --bitLength 128; +CRYPTO CREATE_ZONE --keyName key_128_2 --path ${hiveconf:hive.metastore.warehouse.dir}/../specified_table_location; + +SELECT * FROM encrypted_table_outloc; + +ALTER TABLE encrypted_table_outloc EXCHANGE PARTITION (partcol=1) WITH TABLE encrypted_table; + +SELECT * FROM encrypted_table; +SELECT * from encrypted_table_outloc; + +DROP TABLE encrypted_table PURGE; +DROP TABLE encrypted_db_outloc PURGE; +CRYPTO DELETE_KEY --keyName key_128; +CRYPTO DELETE_KEY --keyName key_128_2; diff --git a/ql/src/test/results/clientnegative/exchange_partition.q.out b/ql/src/test/results/clientnegative/exchange_partition.q.out index bfdf413..ff89f7b 100644 --- a/ql/src/test/results/clientnegative/exchange_partition.q.out +++ b/ql/src/test/results/clientnegative/exchange_partition.q.out @@ -53,4 +53,4 @@ PREHOOK: query: ALTER TABLE ex_table1 EXCHANGE PARTITION (part='part1') WITH TAB PREHOOK: type: ALTERTABLE_EXCHANGEPARTITION PREHOOK: Input: default@ex_table2 PREHOOK: Output: default@ex_table1 -FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Got exception: java.io.IOException Cannot rename the source path. The destination path already exists.) +FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. java.io.IOException: Cannot exchange partitions because destination path already exists diff --git a/ql/src/test/results/clientpositive/encrypted/encryption_exchange_partition.q.out b/ql/src/test/results/clientpositive/encrypted/encryption_exchange_partition.q.out new file mode 100644 index 0000000..d90f89d --- /dev/null +++ b/ql/src/test/results/clientpositive/encrypted/encryption_exchange_partition.q.out @@ -0,0 +1,1110 @@ +PREHOOK: query: DROP TABLE IF EXISTS encrypted_table PURGE +PREHOOK: type: DROPTABLE +POSTHOOK: query: DROP TABLE IF EXISTS encrypted_table PURGE +POSTHOOK: type: DROPTABLE +PREHOOK: query: DROP TABLE IF EXISTS encrypted_table_outloc PURGE +PREHOOK: type: DROPTABLE +POSTHOOK: query: DROP TABLE IF EXISTS encrypted_table_outloc PURGE +POSTHOOK: type: DROPTABLE +#### A masked pattern was here #### +PREHOOK: type: CREATETABLE +#### A masked pattern was here #### +PREHOOK: Output: database:default +PREHOOK: Output: default@encrypted_table +#### A masked pattern was here #### +POSTHOOK: type: CREATETABLE +#### A masked pattern was here #### +POSTHOOK: Output: database:default +POSTHOOK: Output: default@encrypted_table +Encryption key created: 'key_128' +Encryption zone created: '/build/ql/test/data/warehouse/encrypted_table' using key: 'key_128' +PREHOOK: query: ALTER TABLE encrypted_table ADD PARTITION (partcol=1) +PREHOOK: type: ALTERTABLE_ADDPARTS +PREHOOK: Output: default@encrypted_table +POSTHOOK: query: ALTER TABLE encrypted_table ADD PARTITION (partcol=1) +POSTHOOK: type: ALTERTABLE_ADDPARTS +POSTHOOK: Output: default@encrypted_table +POSTHOOK: Output: default@encrypted_table@partcol=1 +PREHOOK: query: INSERT OVERWRITE TABLE encrypted_table PARTITION (partcol=1) SELECT * FROM src +PREHOOK: type: QUERY +PREHOOK: Input: default@src +PREHOOK: Output: default@encrypted_table@partcol=1 +POSTHOOK: query: INSERT OVERWRITE TABLE encrypted_table PARTITION (partcol=1) SELECT * FROM src +POSTHOOK: type: QUERY +POSTHOOK: Input: default@src +POSTHOOK: Output: default@encrypted_table@partcol=1 +POSTHOOK: Lineage: encrypted_table PARTITION(partcol=1).key EXPRESSION [(src)src.FieldSchema(name:key, type:string, comment:default), ] +POSTHOOK: Lineage: encrypted_table PARTITION(partcol=1).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] +PREHOOK: query: SELECT * FROM encrypted_table +PREHOOK: type: QUERY +PREHOOK: Input: default@encrypted_table +PREHOOK: Input: default@encrypted_table@partcol=1 +#### A PARTIAL masked pattern was here #### data/warehouse/encrypted_table/.hive-staging +POSTHOOK: query: SELECT * FROM encrypted_table +POSTHOOK: type: QUERY +POSTHOOK: Input: default@encrypted_table +POSTHOOK: Input: default@encrypted_table@partcol=1 +#### A PARTIAL masked pattern was here #### data/warehouse/encrypted_table/.hive-staging +238 val_238 1 +86 val_86 1 +311 val_311 1 +27 val_27 1 +165 val_165 1 +409 val_409 1 +255 val_255 1 +278 val_278 1 +98 val_98 1 +484 val_484 1 +265 val_265 1 +193 val_193 1 +401 val_401 1 +150 val_150 1 +273 val_273 1 +224 val_224 1 +369 val_369 1 +66 val_66 1 +128 val_128 1 +213 val_213 1 +146 val_146 1 +406 val_406 1 +429 val_429 1 +374 val_374 1 +152 val_152 1 +469 val_469 1 +145 val_145 1 +495 val_495 1 +37 val_37 1 +327 val_327 1 +281 val_281 1 +277 val_277 1 +209 val_209 1 +15 val_15 1 +82 val_82 1 +403 val_403 1 +166 val_166 1 +417 val_417 1 +430 val_430 1 +252 val_252 1 +292 val_292 1 +219 val_219 1 +287 val_287 1 +153 val_153 1 +193 val_193 1 +338 val_338 1 +446 val_446 1 +459 val_459 1 +394 val_394 1 +237 val_237 1 +482 val_482 1 +174 val_174 1 +413 val_413 1 +494 val_494 1 +207 val_207 1 +199 val_199 1 +466 val_466 1 +208 val_208 1 +174 val_174 1 +399 val_399 1 +396 val_396 1 +247 val_247 1 +417 val_417 1 +489 val_489 1 +162 val_162 1 +377 val_377 1 +397 val_397 1 +309 val_309 1 +365 val_365 1 +266 val_266 1 +439 val_439 1 +342 val_342 1 +367 val_367 1 +325 val_325 1 +167 val_167 1 +195 val_195 1 +475 val_475 1 +17 val_17 1 +113 val_113 1 +155 val_155 1 +203 val_203 1 +339 val_339 1 +0 val_0 1 +455 val_455 1 +128 val_128 1 +311 val_311 1 +316 val_316 1 +57 val_57 1 +302 val_302 1 +205 val_205 1 +149 val_149 1 +438 val_438 1 +345 val_345 1 +129 val_129 1 +170 val_170 1 +20 val_20 1 +489 val_489 1 +157 val_157 1 +378 val_378 1 +221 val_221 1 +92 val_92 1 +111 val_111 1 +47 val_47 1 +72 val_72 1 +4 val_4 1 +280 val_280 1 +35 val_35 1 +427 val_427 1 +277 val_277 1 +208 val_208 1 +356 val_356 1 +399 val_399 1 +169 val_169 1 +382 val_382 1 +498 val_498 1 +125 val_125 1 +386 val_386 1 +437 val_437 1 +469 val_469 1 +192 val_192 1 +286 val_286 1 +187 val_187 1 +176 val_176 1 +54 val_54 1 +459 val_459 1 +51 val_51 1 +138 val_138 1 +103 val_103 1 +239 val_239 1 +213 val_213 1 +216 val_216 1 +430 val_430 1 +278 val_278 1 +176 val_176 1 +289 val_289 1 +221 val_221 1 +65 val_65 1 +318 val_318 1 +332 val_332 1 +311 val_311 1 +275 val_275 1 +137 val_137 1 +241 val_241 1 +83 val_83 1 +333 val_333 1 +180 val_180 1 +284 val_284 1 +12 val_12 1 +230 val_230 1 +181 val_181 1 +67 val_67 1 +260 val_260 1 +404 val_404 1 +384 val_384 1 +489 val_489 1 +353 val_353 1 +373 val_373 1 +272 val_272 1 +138 val_138 1 +217 val_217 1 +84 val_84 1 +348 val_348 1 +466 val_466 1 +58 val_58 1 +8 val_8 1 +411 val_411 1 +230 val_230 1 +208 val_208 1 +348 val_348 1 +24 val_24 1 +463 val_463 1 +431 val_431 1 +179 val_179 1 +172 val_172 1 +42 val_42 1 +129 val_129 1 +158 val_158 1 +119 val_119 1 +496 val_496 1 +0 val_0 1 +322 val_322 1 +197 val_197 1 +468 val_468 1 +393 val_393 1 +454 val_454 1 +100 val_100 1 +298 val_298 1 +199 val_199 1 +191 val_191 1 +418 val_418 1 +96 val_96 1 +26 val_26 1 +165 val_165 1 +327 val_327 1 +230 val_230 1 +205 val_205 1 +120 val_120 1 +131 val_131 1 +51 val_51 1 +404 val_404 1 +43 val_43 1 +436 val_436 1 +156 val_156 1 +469 val_469 1 +468 val_468 1 +308 val_308 1 +95 val_95 1 +196 val_196 1 +288 val_288 1 +481 val_481 1 +457 val_457 1 +98 val_98 1 +282 val_282 1 +197 val_197 1 +187 val_187 1 +318 val_318 1 +318 val_318 1 +409 val_409 1 +470 val_470 1 +137 val_137 1 +369 val_369 1 +316 val_316 1 +169 val_169 1 +413 val_413 1 +85 val_85 1 +77 val_77 1 +0 val_0 1 +490 val_490 1 +87 val_87 1 +364 val_364 1 +179 val_179 1 +118 val_118 1 +134 val_134 1 +395 val_395 1 +282 val_282 1 +138 val_138 1 +238 val_238 1 +419 val_419 1 +15 val_15 1 +118 val_118 1 +72 val_72 1 +90 val_90 1 +307 val_307 1 +19 val_19 1 +435 val_435 1 +10 val_10 1 +277 val_277 1 +273 val_273 1 +306 val_306 1 +224 val_224 1 +309 val_309 1 +389 val_389 1 +327 val_327 1 +242 val_242 1 +369 val_369 1 +392 val_392 1 +272 val_272 1 +331 val_331 1 +401 val_401 1 +242 val_242 1 +452 val_452 1 +177 val_177 1 +226 val_226 1 +5 val_5 1 +497 val_497 1 +402 val_402 1 +396 val_396 1 +317 val_317 1 +395 val_395 1 +58 val_58 1 +35 val_35 1 +336 val_336 1 +95 val_95 1 +11 val_11 1 +168 val_168 1 +34 val_34 1 +229 val_229 1 +233 val_233 1 +143 val_143 1 +472 val_472 1 +322 val_322 1 +498 val_498 1 +160 val_160 1 +195 val_195 1 +42 val_42 1 +321 val_321 1 +430 val_430 1 +119 val_119 1 +489 val_489 1 +458 val_458 1 +78 val_78 1 +76 val_76 1 +41 val_41 1 +223 val_223 1 +492 val_492 1 +149 val_149 1 +449 val_449 1 +218 val_218 1 +228 val_228 1 +138 val_138 1 +453 val_453 1 +30 val_30 1 +209 val_209 1 +64 val_64 1 +468 val_468 1 +76 val_76 1 +74 val_74 1 +342 val_342 1 +69 val_69 1 +230 val_230 1 +33 val_33 1 +368 val_368 1 +103 val_103 1 +296 val_296 1 +113 val_113 1 +216 val_216 1 +367 val_367 1 +344 val_344 1 +167 val_167 1 +274 val_274 1 +219 val_219 1 +239 val_239 1 +485 val_485 1 +116 val_116 1 +223 val_223 1 +256 val_256 1 +263 val_263 1 +70 val_70 1 +487 val_487 1 +480 val_480 1 +401 val_401 1 +288 val_288 1 +191 val_191 1 +5 val_5 1 +244 val_244 1 +438 val_438 1 +128 val_128 1 +467 val_467 1 +432 val_432 1 +202 val_202 1 +316 val_316 1 +229 val_229 1 +469 val_469 1 +463 val_463 1 +280 val_280 1 +2 val_2 1 +35 val_35 1 +283 val_283 1 +331 val_331 1 +235 val_235 1 +80 val_80 1 +44 val_44 1 +193 val_193 1 +321 val_321 1 +335 val_335 1 +104 val_104 1 +466 val_466 1 +366 val_366 1 +175 val_175 1 +403 val_403 1 +483 val_483 1 +53 val_53 1 +105 val_105 1 +257 val_257 1 +406 val_406 1 +409 val_409 1 +190 val_190 1 +406 val_406 1 +401 val_401 1 +114 val_114 1 +258 val_258 1 +90 val_90 1 +203 val_203 1 +262 val_262 1 +348 val_348 1 +424 val_424 1 +12 val_12 1 +396 val_396 1 +201 val_201 1 +217 val_217 1 +164 val_164 1 +431 val_431 1 +454 val_454 1 +478 val_478 1 +298 val_298 1 +125 val_125 1 +431 val_431 1 +164 val_164 1 +424 val_424 1 +187 val_187 1 +382 val_382 1 +5 val_5 1 +70 val_70 1 +397 val_397 1 +480 val_480 1 +291 val_291 1 +24 val_24 1 +351 val_351 1 +255 val_255 1 +104 val_104 1 +70 val_70 1 +163 val_163 1 +438 val_438 1 +119 val_119 1 +414 val_414 1 +200 val_200 1 +491 val_491 1 +237 val_237 1 +439 val_439 1 +360 val_360 1 +248 val_248 1 +479 val_479 1 +305 val_305 1 +417 val_417 1 +199 val_199 1 +444 val_444 1 +120 val_120 1 +429 val_429 1 +169 val_169 1 +443 val_443 1 +323 val_323 1 +325 val_325 1 +277 val_277 1 +230 val_230 1 +478 val_478 1 +178 val_178 1 +468 val_468 1 +310 val_310 1 +317 val_317 1 +333 val_333 1 +493 val_493 1 +460 val_460 1 +207 val_207 1 +249 val_249 1 +265 val_265 1 +480 val_480 1 +83 val_83 1 +136 val_136 1 +353 val_353 1 +172 val_172 1 +214 val_214 1 +462 val_462 1 +233 val_233 1 +406 val_406 1 +133 val_133 1 +175 val_175 1 +189 val_189 1 +454 val_454 1 +375 val_375 1 +401 val_401 1 +421 val_421 1 +407 val_407 1 +384 val_384 1 +256 val_256 1 +26 val_26 1 +134 val_134 1 +67 val_67 1 +384 val_384 1 +379 val_379 1 +18 val_18 1 +462 val_462 1 +492 val_492 1 +100 val_100 1 +298 val_298 1 +9 val_9 1 +341 val_341 1 +498 val_498 1 +146 val_146 1 +458 val_458 1 +362 val_362 1 +186 val_186 1 +285 val_285 1 +348 val_348 1 +167 val_167 1 +18 val_18 1 +273 val_273 1 +183 val_183 1 +281 val_281 1 +344 val_344 1 +97 val_97 1 +469 val_469 1 +315 val_315 1 +84 val_84 1 +28 val_28 1 +37 val_37 1 +448 val_448 1 +152 val_152 1 +348 val_348 1 +307 val_307 1 +194 val_194 1 +414 val_414 1 +477 val_477 1 +222 val_222 1 +126 val_126 1 +90 val_90 1 +169 val_169 1 +403 val_403 1 +400 val_400 1 +200 val_200 1 +97 val_97 1 +#### A masked pattern was here #### +PREHOOK: type: CREATETABLE +#### A masked pattern was here #### +PREHOOK: Output: database:default +PREHOOK: Output: default@encrypted_table_outloc +#### A masked pattern was here #### +POSTHOOK: type: CREATETABLE +#### A masked pattern was here #### +POSTHOOK: Output: database:default +POSTHOOK: Output: default@encrypted_table_outloc +Encryption key created: 'key_128_2' +Encryption zone created: '/build/ql/test/data/specified_table_location' using key: 'key_128_2' +PREHOOK: query: SELECT * FROM encrypted_table_outloc +PREHOOK: type: QUERY +PREHOOK: Input: default@encrypted_table_outloc +#### A masked pattern was here #### +POSTHOOK: query: SELECT * FROM encrypted_table_outloc +POSTHOOK: type: QUERY +POSTHOOK: Input: default@encrypted_table_outloc +#### A masked pattern was here #### +PREHOOK: query: ALTER TABLE encrypted_table_outloc EXCHANGE PARTITION (partcol=1) WITH TABLE encrypted_table +PREHOOK: type: ALTERTABLE_EXCHANGEPARTITION +PREHOOK: Input: default@encrypted_table +PREHOOK: Output: default@encrypted_table_outloc +POSTHOOK: query: ALTER TABLE encrypted_table_outloc EXCHANGE PARTITION (partcol=1) WITH TABLE encrypted_table +POSTHOOK: type: ALTERTABLE_EXCHANGEPARTITION +POSTHOOK: Input: default@encrypted_table +POSTHOOK: Input: default@encrypted_table@partcol=1 +POSTHOOK: Output: default@encrypted_table@partcol=1 +POSTHOOK: Output: default@encrypted_table_outloc +POSTHOOK: Output: default@encrypted_table_outloc@partcol=1 +PREHOOK: query: SELECT * FROM encrypted_table +PREHOOK: type: QUERY +PREHOOK: Input: default@encrypted_table +#### A PARTIAL masked pattern was here #### data/warehouse/encrypted_table/.hive-staging +POSTHOOK: query: SELECT * FROM encrypted_table +POSTHOOK: type: QUERY +POSTHOOK: Input: default@encrypted_table +#### A PARTIAL masked pattern was here #### data/warehouse/encrypted_table/.hive-staging +PREHOOK: query: SELECT * from encrypted_table_outloc +PREHOOK: type: QUERY +PREHOOK: Input: default@encrypted_table_outloc +PREHOOK: Input: default@encrypted_table_outloc@partcol=1 +#### A masked pattern was here #### +POSTHOOK: query: SELECT * from encrypted_table_outloc +POSTHOOK: type: QUERY +POSTHOOK: Input: default@encrypted_table_outloc +POSTHOOK: Input: default@encrypted_table_outloc@partcol=1 +#### A masked pattern was here #### +238 val_238 1 +86 val_86 1 +311 val_311 1 +27 val_27 1 +165 val_165 1 +409 val_409 1 +255 val_255 1 +278 val_278 1 +98 val_98 1 +484 val_484 1 +265 val_265 1 +193 val_193 1 +401 val_401 1 +150 val_150 1 +273 val_273 1 +224 val_224 1 +369 val_369 1 +66 val_66 1 +128 val_128 1 +213 val_213 1 +146 val_146 1 +406 val_406 1 +429 val_429 1 +374 val_374 1 +152 val_152 1 +469 val_469 1 +145 val_145 1 +495 val_495 1 +37 val_37 1 +327 val_327 1 +281 val_281 1 +277 val_277 1 +209 val_209 1 +15 val_15 1 +82 val_82 1 +403 val_403 1 +166 val_166 1 +417 val_417 1 +430 val_430 1 +252 val_252 1 +292 val_292 1 +219 val_219 1 +287 val_287 1 +153 val_153 1 +193 val_193 1 +338 val_338 1 +446 val_446 1 +459 val_459 1 +394 val_394 1 +237 val_237 1 +482 val_482 1 +174 val_174 1 +413 val_413 1 +494 val_494 1 +207 val_207 1 +199 val_199 1 +466 val_466 1 +208 val_208 1 +174 val_174 1 +399 val_399 1 +396 val_396 1 +247 val_247 1 +417 val_417 1 +489 val_489 1 +162 val_162 1 +377 val_377 1 +397 val_397 1 +309 val_309 1 +365 val_365 1 +266 val_266 1 +439 val_439 1 +342 val_342 1 +367 val_367 1 +325 val_325 1 +167 val_167 1 +195 val_195 1 +475 val_475 1 +17 val_17 1 +113 val_113 1 +155 val_155 1 +203 val_203 1 +339 val_339 1 +0 val_0 1 +455 val_455 1 +128 val_128 1 +311 val_311 1 +316 val_316 1 +57 val_57 1 +302 val_302 1 +205 val_205 1 +149 val_149 1 +438 val_438 1 +345 val_345 1 +129 val_129 1 +170 val_170 1 +20 val_20 1 +489 val_489 1 +157 val_157 1 +378 val_378 1 +221 val_221 1 +92 val_92 1 +111 val_111 1 +47 val_47 1 +72 val_72 1 +4 val_4 1 +280 val_280 1 +35 val_35 1 +427 val_427 1 +277 val_277 1 +208 val_208 1 +356 val_356 1 +399 val_399 1 +169 val_169 1 +382 val_382 1 +498 val_498 1 +125 val_125 1 +386 val_386 1 +437 val_437 1 +469 val_469 1 +192 val_192 1 +286 val_286 1 +187 val_187 1 +176 val_176 1 +54 val_54 1 +459 val_459 1 +51 val_51 1 +138 val_138 1 +103 val_103 1 +239 val_239 1 +213 val_213 1 +216 val_216 1 +430 val_430 1 +278 val_278 1 +176 val_176 1 +289 val_289 1 +221 val_221 1 +65 val_65 1 +318 val_318 1 +332 val_332 1 +311 val_311 1 +275 val_275 1 +137 val_137 1 +241 val_241 1 +83 val_83 1 +333 val_333 1 +180 val_180 1 +284 val_284 1 +12 val_12 1 +230 val_230 1 +181 val_181 1 +67 val_67 1 +260 val_260 1 +404 val_404 1 +384 val_384 1 +489 val_489 1 +353 val_353 1 +373 val_373 1 +272 val_272 1 +138 val_138 1 +217 val_217 1 +84 val_84 1 +348 val_348 1 +466 val_466 1 +58 val_58 1 +8 val_8 1 +411 val_411 1 +230 val_230 1 +208 val_208 1 +348 val_348 1 +24 val_24 1 +463 val_463 1 +431 val_431 1 +179 val_179 1 +172 val_172 1 +42 val_42 1 +129 val_129 1 +158 val_158 1 +119 val_119 1 +496 val_496 1 +0 val_0 1 +322 val_322 1 +197 val_197 1 +468 val_468 1 +393 val_393 1 +454 val_454 1 +100 val_100 1 +298 val_298 1 +199 val_199 1 +191 val_191 1 +418 val_418 1 +96 val_96 1 +26 val_26 1 +165 val_165 1 +327 val_327 1 +230 val_230 1 +205 val_205 1 +120 val_120 1 +131 val_131 1 +51 val_51 1 +404 val_404 1 +43 val_43 1 +436 val_436 1 +156 val_156 1 +469 val_469 1 +468 val_468 1 +308 val_308 1 +95 val_95 1 +196 val_196 1 +288 val_288 1 +481 val_481 1 +457 val_457 1 +98 val_98 1 +282 val_282 1 +197 val_197 1 +187 val_187 1 +318 val_318 1 +318 val_318 1 +409 val_409 1 +470 val_470 1 +137 val_137 1 +369 val_369 1 +316 val_316 1 +169 val_169 1 +413 val_413 1 +85 val_85 1 +77 val_77 1 +0 val_0 1 +490 val_490 1 +87 val_87 1 +364 val_364 1 +179 val_179 1 +118 val_118 1 +134 val_134 1 +395 val_395 1 +282 val_282 1 +138 val_138 1 +238 val_238 1 +419 val_419 1 +15 val_15 1 +118 val_118 1 +72 val_72 1 +90 val_90 1 +307 val_307 1 +19 val_19 1 +435 val_435 1 +10 val_10 1 +277 val_277 1 +273 val_273 1 +306 val_306 1 +224 val_224 1 +309 val_309 1 +389 val_389 1 +327 val_327 1 +242 val_242 1 +369 val_369 1 +392 val_392 1 +272 val_272 1 +331 val_331 1 +401 val_401 1 +242 val_242 1 +452 val_452 1 +177 val_177 1 +226 val_226 1 +5 val_5 1 +497 val_497 1 +402 val_402 1 +396 val_396 1 +317 val_317 1 +395 val_395 1 +58 val_58 1 +35 val_35 1 +336 val_336 1 +95 val_95 1 +11 val_11 1 +168 val_168 1 +34 val_34 1 +229 val_229 1 +233 val_233 1 +143 val_143 1 +472 val_472 1 +322 val_322 1 +498 val_498 1 +160 val_160 1 +195 val_195 1 +42 val_42 1 +321 val_321 1 +430 val_430 1 +119 val_119 1 +489 val_489 1 +458 val_458 1 +78 val_78 1 +76 val_76 1 +41 val_41 1 +223 val_223 1 +492 val_492 1 +149 val_149 1 +449 val_449 1 +218 val_218 1 +228 val_228 1 +138 val_138 1 +453 val_453 1 +30 val_30 1 +209 val_209 1 +64 val_64 1 +468 val_468 1 +76 val_76 1 +74 val_74 1 +342 val_342 1 +69 val_69 1 +230 val_230 1 +33 val_33 1 +368 val_368 1 +103 val_103 1 +296 val_296 1 +113 val_113 1 +216 val_216 1 +367 val_367 1 +344 val_344 1 +167 val_167 1 +274 val_274 1 +219 val_219 1 +239 val_239 1 +485 val_485 1 +116 val_116 1 +223 val_223 1 +256 val_256 1 +263 val_263 1 +70 val_70 1 +487 val_487 1 +480 val_480 1 +401 val_401 1 +288 val_288 1 +191 val_191 1 +5 val_5 1 +244 val_244 1 +438 val_438 1 +128 val_128 1 +467 val_467 1 +432 val_432 1 +202 val_202 1 +316 val_316 1 +229 val_229 1 +469 val_469 1 +463 val_463 1 +280 val_280 1 +2 val_2 1 +35 val_35 1 +283 val_283 1 +331 val_331 1 +235 val_235 1 +80 val_80 1 +44 val_44 1 +193 val_193 1 +321 val_321 1 +335 val_335 1 +104 val_104 1 +466 val_466 1 +366 val_366 1 +175 val_175 1 +403 val_403 1 +483 val_483 1 +53 val_53 1 +105 val_105 1 +257 val_257 1 +406 val_406 1 +409 val_409 1 +190 val_190 1 +406 val_406 1 +401 val_401 1 +114 val_114 1 +258 val_258 1 +90 val_90 1 +203 val_203 1 +262 val_262 1 +348 val_348 1 +424 val_424 1 +12 val_12 1 +396 val_396 1 +201 val_201 1 +217 val_217 1 +164 val_164 1 +431 val_431 1 +454 val_454 1 +478 val_478 1 +298 val_298 1 +125 val_125 1 +431 val_431 1 +164 val_164 1 +424 val_424 1 +187 val_187 1 +382 val_382 1 +5 val_5 1 +70 val_70 1 +397 val_397 1 +480 val_480 1 +291 val_291 1 +24 val_24 1 +351 val_351 1 +255 val_255 1 +104 val_104 1 +70 val_70 1 +163 val_163 1 +438 val_438 1 +119 val_119 1 +414 val_414 1 +200 val_200 1 +491 val_491 1 +237 val_237 1 +439 val_439 1 +360 val_360 1 +248 val_248 1 +479 val_479 1 +305 val_305 1 +417 val_417 1 +199 val_199 1 +444 val_444 1 +120 val_120 1 +429 val_429 1 +169 val_169 1 +443 val_443 1 +323 val_323 1 +325 val_325 1 +277 val_277 1 +230 val_230 1 +478 val_478 1 +178 val_178 1 +468 val_468 1 +310 val_310 1 +317 val_317 1 +333 val_333 1 +493 val_493 1 +460 val_460 1 +207 val_207 1 +249 val_249 1 +265 val_265 1 +480 val_480 1 +83 val_83 1 +136 val_136 1 +353 val_353 1 +172 val_172 1 +214 val_214 1 +462 val_462 1 +233 val_233 1 +406 val_406 1 +133 val_133 1 +175 val_175 1 +189 val_189 1 +454 val_454 1 +375 val_375 1 +401 val_401 1 +421 val_421 1 +407 val_407 1 +384 val_384 1 +256 val_256 1 +26 val_26 1 +134 val_134 1 +67 val_67 1 +384 val_384 1 +379 val_379 1 +18 val_18 1 +462 val_462 1 +492 val_492 1 +100 val_100 1 +298 val_298 1 +9 val_9 1 +341 val_341 1 +498 val_498 1 +146 val_146 1 +458 val_458 1 +362 val_362 1 +186 val_186 1 +285 val_285 1 +348 val_348 1 +167 val_167 1 +18 val_18 1 +273 val_273 1 +183 val_183 1 +281 val_281 1 +344 val_344 1 +97 val_97 1 +469 val_469 1 +315 val_315 1 +84 val_84 1 +28 val_28 1 +37 val_37 1 +448 val_448 1 +152 val_152 1 +348 val_348 1 +307 val_307 1 +194 val_194 1 +414 val_414 1 +477 val_477 1 +222 val_222 1 +126 val_126 1 +90 val_90 1 +169 val_169 1 +403 val_403 1 +400 val_400 1 +200 val_200 1 +97 val_97 1 +PREHOOK: query: DROP TABLE encrypted_table PURGE +PREHOOK: type: DROPTABLE +PREHOOK: Input: default@encrypted_table +PREHOOK: Output: default@encrypted_table +POSTHOOK: query: DROP TABLE encrypted_table PURGE +POSTHOOK: type: DROPTABLE +POSTHOOK: Input: default@encrypted_table +POSTHOOK: Output: default@encrypted_table +PREHOOK: query: DROP TABLE encrypted_db_outloc PURGE +PREHOOK: type: DROPTABLE +POSTHOOK: query: DROP TABLE encrypted_db_outloc PURGE +POSTHOOK: type: DROPTABLE +Encryption key deleted: 'key_128' +Encryption key deleted: 'key_128_2'