commit 34ce9c55dd2eb3a99f3563f7d83794cac0840b65 Author: Mithun RK Date: Thu Sep 7 15:57:13 2017 -0700 HIVE-17466: Metastore API to list unique partition-key-value combinations. diff --git a/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java b/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java index 74d0efe..9871083 100644 --- a/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java +++ b/itests/hcatalog-unit/src/test/java/org/apache/hive/hcatalog/listener/DummyRawStoreFailEvent.java @@ -34,6 +34,7 @@ import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId; import org.apache.hadoop.hive.metastore.api.Database; +import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.FileMetadataExprType; import org.apache.hadoop.hive.metastore.api.Function; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; @@ -48,6 +49,7 @@ import org.apache.hadoop.hive.metastore.api.NotificationEventResponse; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; +import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; @@ -281,6 +283,11 @@ public void alterTable(String dbName, String name, Table newTable) } @Override + public PartitionValuesResponse listPartitionValues(String db_name, String tbl_name, List cols, boolean applyDistinct, String filter, boolean ascending, List order, long maxParts) throws MetaException { + return null; + } + + @Override public List listPartitionNamesByFilter(String dbName, String tblName, String filter, short maxParts) throws MetaException { return objectStore.listPartitionNamesByFilter(dbName, tblName, filter, maxParts); diff --git a/metastore/if/hive_metastore.thrift b/metastore/if/hive_metastore.thrift index d056498..8a66bbc 100755 --- a/metastore/if/hive_metastore.thrift +++ b/metastore/if/hive_metastore.thrift @@ -589,6 +589,25 @@ struct DropPartitionsRequest { 8: optional bool needResult=true } +struct PartitionValuesRequest { + 1: required string dbName, + 2: required string tblName, + 3: required list partitionKeys; + 4: optional bool applyDistinct = true; + 5: optional string filter; + 6: optional list partitionOrder; + 7: optional bool ascending = true; + 8: optional i64 maxParts = -1; +} + +struct PartitionValuesRow { + 1: required list row; +} + +struct PartitionValuesResponse { + 1: required list partitionValues; +} + enum FunctionType { JAVA = 1, } @@ -1202,6 +1221,9 @@ service ThriftHiveMetastore extends fb303.FacebookService list get_partition_names(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1) throws(1:MetaException o2) + PartitionValuesResponse get_partition_values(1:PartitionValuesRequest request) + throws(1:MetaException o1, 2:NoSuchObjectException o2); + // get_partition*_ps methods allow filtering by a partial partition specification, // as needed for dynamic partitions. The values that are not restricted should // be empty strings. Nulls were considered (instead of "") but caused errors in diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 42de24e..155aab6 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -1240,14 +1240,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size818; - ::apache::thrift::protocol::TType _etype821; - xfer += iprot->readListBegin(_etype821, _size818); - this->success.resize(_size818); - uint32_t _i822; - for (_i822 = 0; _i822 < _size818; ++_i822) + uint32_t _size848; + ::apache::thrift::protocol::TType _etype851; + xfer += iprot->readListBegin(_etype851, _size848); + this->success.resize(_size848); + uint32_t _i852; + for (_i852 = 0; _i852 < _size848; ++_i852) { - xfer += iprot->readString(this->success[_i822]); + xfer += iprot->readString(this->success[_i852]); } xfer += iprot->readListEnd(); } @@ -1286,10 +1286,10 @@ uint32_t ThriftHiveMetastore_get_databases_result::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter823; - for (_iter823 = this->success.begin(); _iter823 != this->success.end(); ++_iter823) + std::vector ::const_iterator _iter853; + for (_iter853 = this->success.begin(); _iter853 != this->success.end(); ++_iter853) { - xfer += oprot->writeString((*_iter823)); + xfer += oprot->writeString((*_iter853)); } xfer += oprot->writeListEnd(); } @@ -1334,14 +1334,14 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size824; - ::apache::thrift::protocol::TType _etype827; - xfer += iprot->readListBegin(_etype827, _size824); - (*(this->success)).resize(_size824); - uint32_t _i828; - for (_i828 = 0; _i828 < _size824; ++_i828) + uint32_t _size854; + ::apache::thrift::protocol::TType _etype857; + xfer += iprot->readListBegin(_etype857, _size854); + (*(this->success)).resize(_size854); + uint32_t _i858; + for (_i858 = 0; _i858 < _size854; ++_i858) { - xfer += iprot->readString((*(this->success))[_i828]); + xfer += iprot->readString((*(this->success))[_i858]); } xfer += iprot->readListEnd(); } @@ -1458,14 +1458,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size829; - ::apache::thrift::protocol::TType _etype832; - xfer += iprot->readListBegin(_etype832, _size829); - this->success.resize(_size829); - uint32_t _i833; - for (_i833 = 0; _i833 < _size829; ++_i833) + uint32_t _size859; + ::apache::thrift::protocol::TType _etype862; + xfer += iprot->readListBegin(_etype862, _size859); + this->success.resize(_size859); + uint32_t _i863; + for (_i863 = 0; _i863 < _size859; ++_i863) { - xfer += iprot->readString(this->success[_i833]); + xfer += iprot->readString(this->success[_i863]); } xfer += iprot->readListEnd(); } @@ -1504,10 +1504,10 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::write(::apache::thrift::p xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter834; - for (_iter834 = this->success.begin(); _iter834 != this->success.end(); ++_iter834) + std::vector ::const_iterator _iter864; + for (_iter864 = this->success.begin(); _iter864 != this->success.end(); ++_iter864) { - xfer += oprot->writeString((*_iter834)); + xfer += oprot->writeString((*_iter864)); } xfer += oprot->writeListEnd(); } @@ -1552,14 +1552,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size835; - ::apache::thrift::protocol::TType _etype838; - xfer += iprot->readListBegin(_etype838, _size835); - (*(this->success)).resize(_size835); - uint32_t _i839; - for (_i839 = 0; _i839 < _size835; ++_i839) + uint32_t _size865; + ::apache::thrift::protocol::TType _etype868; + xfer += iprot->readListBegin(_etype868, _size865); + (*(this->success)).resize(_size865); + uint32_t _i869; + for (_i869 = 0; _i869 < _size865; ++_i869) { - xfer += iprot->readString((*(this->success))[_i839]); + xfer += iprot->readString((*(this->success))[_i869]); } xfer += iprot->readListEnd(); } @@ -2621,17 +2621,17 @@ uint32_t ThriftHiveMetastore_get_type_all_result::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size840; - ::apache::thrift::protocol::TType _ktype841; - ::apache::thrift::protocol::TType _vtype842; - xfer += iprot->readMapBegin(_ktype841, _vtype842, _size840); - uint32_t _i844; - for (_i844 = 0; _i844 < _size840; ++_i844) + uint32_t _size870; + ::apache::thrift::protocol::TType _ktype871; + ::apache::thrift::protocol::TType _vtype872; + xfer += iprot->readMapBegin(_ktype871, _vtype872, _size870); + uint32_t _i874; + for (_i874 = 0; _i874 < _size870; ++_i874) { - std::string _key845; - xfer += iprot->readString(_key845); - Type& _val846 = this->success[_key845]; - xfer += _val846.read(iprot); + std::string _key875; + xfer += iprot->readString(_key875); + Type& _val876 = this->success[_key875]; + xfer += _val876.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2670,11 +2670,11 @@ uint32_t ThriftHiveMetastore_get_type_all_result::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::map ::const_iterator _iter847; - for (_iter847 = this->success.begin(); _iter847 != this->success.end(); ++_iter847) + std::map ::const_iterator _iter877; + for (_iter877 = this->success.begin(); _iter877 != this->success.end(); ++_iter877) { - xfer += oprot->writeString(_iter847->first); - xfer += _iter847->second.write(oprot); + xfer += oprot->writeString(_iter877->first); + xfer += _iter877->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -2719,17 +2719,17 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size848; - ::apache::thrift::protocol::TType _ktype849; - ::apache::thrift::protocol::TType _vtype850; - xfer += iprot->readMapBegin(_ktype849, _vtype850, _size848); - uint32_t _i852; - for (_i852 = 0; _i852 < _size848; ++_i852) + uint32_t _size878; + ::apache::thrift::protocol::TType _ktype879; + ::apache::thrift::protocol::TType _vtype880; + xfer += iprot->readMapBegin(_ktype879, _vtype880, _size878); + uint32_t _i882; + for (_i882 = 0; _i882 < _size878; ++_i882) { - std::string _key853; - xfer += iprot->readString(_key853); - Type& _val854 = (*(this->success))[_key853]; - xfer += _val854.read(iprot); + std::string _key883; + xfer += iprot->readString(_key883); + Type& _val884 = (*(this->success))[_key883]; + xfer += _val884.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2883,14 +2883,14 @@ uint32_t ThriftHiveMetastore_get_fields_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size855; - ::apache::thrift::protocol::TType _etype858; - xfer += iprot->readListBegin(_etype858, _size855); - this->success.resize(_size855); - uint32_t _i859; - for (_i859 = 0; _i859 < _size855; ++_i859) + uint32_t _size885; + ::apache::thrift::protocol::TType _etype888; + xfer += iprot->readListBegin(_etype888, _size885); + this->success.resize(_size885); + uint32_t _i889; + for (_i889 = 0; _i889 < _size885; ++_i889) { - xfer += this->success[_i859].read(iprot); + xfer += this->success[_i889].read(iprot); } xfer += iprot->readListEnd(); } @@ -2945,10 +2945,10 @@ uint32_t ThriftHiveMetastore_get_fields_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter860; - for (_iter860 = this->success.begin(); _iter860 != this->success.end(); ++_iter860) + std::vector ::const_iterator _iter890; + for (_iter890 = this->success.begin(); _iter890 != this->success.end(); ++_iter890) { - xfer += (*_iter860).write(oprot); + xfer += (*_iter890).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3001,14 +3001,14 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size861; - ::apache::thrift::protocol::TType _etype864; - xfer += iprot->readListBegin(_etype864, _size861); - (*(this->success)).resize(_size861); - uint32_t _i865; - for (_i865 = 0; _i865 < _size861; ++_i865) + uint32_t _size891; + ::apache::thrift::protocol::TType _etype894; + xfer += iprot->readListBegin(_etype894, _size891); + (*(this->success)).resize(_size891); + uint32_t _i895; + for (_i895 = 0; _i895 < _size891; ++_i895) { - xfer += (*(this->success))[_i865].read(iprot); + xfer += (*(this->success))[_i895].read(iprot); } xfer += iprot->readListEnd(); } @@ -3194,14 +3194,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size866; - ::apache::thrift::protocol::TType _etype869; - xfer += iprot->readListBegin(_etype869, _size866); - this->success.resize(_size866); - uint32_t _i870; - for (_i870 = 0; _i870 < _size866; ++_i870) + uint32_t _size896; + ::apache::thrift::protocol::TType _etype899; + xfer += iprot->readListBegin(_etype899, _size896); + this->success.resize(_size896); + uint32_t _i900; + for (_i900 = 0; _i900 < _size896; ++_i900) { - xfer += this->success[_i870].read(iprot); + xfer += this->success[_i900].read(iprot); } xfer += iprot->readListEnd(); } @@ -3256,10 +3256,10 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::write(: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter871; - for (_iter871 = this->success.begin(); _iter871 != this->success.end(); ++_iter871) + std::vector ::const_iterator _iter901; + for (_iter901 = this->success.begin(); _iter901 != this->success.end(); ++_iter901) { - xfer += (*_iter871).write(oprot); + xfer += (*_iter901).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3312,14 +3312,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_presult::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size872; - ::apache::thrift::protocol::TType _etype875; - xfer += iprot->readListBegin(_etype875, _size872); - (*(this->success)).resize(_size872); - uint32_t _i876; - for (_i876 = 0; _i876 < _size872; ++_i876) + uint32_t _size902; + ::apache::thrift::protocol::TType _etype905; + xfer += iprot->readListBegin(_etype905, _size902); + (*(this->success)).resize(_size902); + uint32_t _i906; + for (_i906 = 0; _i906 < _size902; ++_i906) { - xfer += (*(this->success))[_i876].read(iprot); + xfer += (*(this->success))[_i906].read(iprot); } xfer += iprot->readListEnd(); } @@ -3489,14 +3489,14 @@ uint32_t ThriftHiveMetastore_get_schema_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size877; - ::apache::thrift::protocol::TType _etype880; - xfer += iprot->readListBegin(_etype880, _size877); - this->success.resize(_size877); - uint32_t _i881; - for (_i881 = 0; _i881 < _size877; ++_i881) + uint32_t _size907; + ::apache::thrift::protocol::TType _etype910; + xfer += iprot->readListBegin(_etype910, _size907); + this->success.resize(_size907); + uint32_t _i911; + for (_i911 = 0; _i911 < _size907; ++_i911) { - xfer += this->success[_i881].read(iprot); + xfer += this->success[_i911].read(iprot); } xfer += iprot->readListEnd(); } @@ -3551,10 +3551,10 @@ uint32_t ThriftHiveMetastore_get_schema_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter882; - for (_iter882 = this->success.begin(); _iter882 != this->success.end(); ++_iter882) + std::vector ::const_iterator _iter912; + for (_iter912 = this->success.begin(); _iter912 != this->success.end(); ++_iter912) { - xfer += (*_iter882).write(oprot); + xfer += (*_iter912).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3607,14 +3607,14 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size883; - ::apache::thrift::protocol::TType _etype886; - xfer += iprot->readListBegin(_etype886, _size883); - (*(this->success)).resize(_size883); - uint32_t _i887; - for (_i887 = 0; _i887 < _size883; ++_i887) + uint32_t _size913; + ::apache::thrift::protocol::TType _etype916; + xfer += iprot->readListBegin(_etype916, _size913); + (*(this->success)).resize(_size913); + uint32_t _i917; + for (_i917 = 0; _i917 < _size913; ++_i917) { - xfer += (*(this->success))[_i887].read(iprot); + xfer += (*(this->success))[_i917].read(iprot); } xfer += iprot->readListEnd(); } @@ -3800,14 +3800,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size888; - ::apache::thrift::protocol::TType _etype891; - xfer += iprot->readListBegin(_etype891, _size888); - this->success.resize(_size888); - uint32_t _i892; - for (_i892 = 0; _i892 < _size888; ++_i892) + uint32_t _size918; + ::apache::thrift::protocol::TType _etype921; + xfer += iprot->readListBegin(_etype921, _size918); + this->success.resize(_size918); + uint32_t _i922; + for (_i922 = 0; _i922 < _size918; ++_i922) { - xfer += this->success[_i892].read(iprot); + xfer += this->success[_i922].read(iprot); } xfer += iprot->readListEnd(); } @@ -3862,10 +3862,10 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::write(: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter893; - for (_iter893 = this->success.begin(); _iter893 != this->success.end(); ++_iter893) + std::vector ::const_iterator _iter923; + for (_iter923 = this->success.begin(); _iter923 != this->success.end(); ++_iter923) { - xfer += (*_iter893).write(oprot); + xfer += (*_iter923).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3918,14 +3918,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_presult::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size894; - ::apache::thrift::protocol::TType _etype897; - xfer += iprot->readListBegin(_etype897, _size894); - (*(this->success)).resize(_size894); - uint32_t _i898; - for (_i898 = 0; _i898 < _size894; ++_i898) + uint32_t _size924; + ::apache::thrift::protocol::TType _etype927; + xfer += iprot->readListBegin(_etype927, _size924); + (*(this->success)).resize(_size924); + uint32_t _i928; + for (_i928 = 0; _i928 < _size924; ++_i928) { - xfer += (*(this->success))[_i898].read(iprot); + xfer += (*(this->success))[_i928].read(iprot); } xfer += iprot->readListEnd(); } @@ -4518,14 +4518,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->primaryKeys.clear(); - uint32_t _size899; - ::apache::thrift::protocol::TType _etype902; - xfer += iprot->readListBegin(_etype902, _size899); - this->primaryKeys.resize(_size899); - uint32_t _i903; - for (_i903 = 0; _i903 < _size899; ++_i903) + uint32_t _size929; + ::apache::thrift::protocol::TType _etype932; + xfer += iprot->readListBegin(_etype932, _size929); + this->primaryKeys.resize(_size929); + uint32_t _i933; + for (_i933 = 0; _i933 < _size929; ++_i933) { - xfer += this->primaryKeys[_i903].read(iprot); + xfer += this->primaryKeys[_i933].read(iprot); } xfer += iprot->readListEnd(); } @@ -4538,14 +4538,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->foreignKeys.clear(); - uint32_t _size904; - ::apache::thrift::protocol::TType _etype907; - xfer += iprot->readListBegin(_etype907, _size904); - this->foreignKeys.resize(_size904); - uint32_t _i908; - for (_i908 = 0; _i908 < _size904; ++_i908) + uint32_t _size934; + ::apache::thrift::protocol::TType _etype937; + xfer += iprot->readListBegin(_etype937, _size934); + this->foreignKeys.resize(_size934); + uint32_t _i938; + for (_i938 = 0; _i938 < _size934; ++_i938) { - xfer += this->foreignKeys[_i908].read(iprot); + xfer += this->foreignKeys[_i938].read(iprot); } xfer += iprot->readListEnd(); } @@ -4578,10 +4578,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->primaryKeys.size())); - std::vector ::const_iterator _iter909; - for (_iter909 = this->primaryKeys.begin(); _iter909 != this->primaryKeys.end(); ++_iter909) + std::vector ::const_iterator _iter939; + for (_iter939 = this->primaryKeys.begin(); _iter939 != this->primaryKeys.end(); ++_iter939) { - xfer += (*_iter909).write(oprot); + xfer += (*_iter939).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4590,10 +4590,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->foreignKeys.size())); - std::vector ::const_iterator _iter910; - for (_iter910 = this->foreignKeys.begin(); _iter910 != this->foreignKeys.end(); ++_iter910) + std::vector ::const_iterator _iter940; + for (_iter940 = this->foreignKeys.begin(); _iter940 != this->foreignKeys.end(); ++_iter940) { - xfer += (*_iter910).write(oprot); + xfer += (*_iter940).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4621,10 +4621,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->primaryKeys)).size())); - std::vector ::const_iterator _iter911; - for (_iter911 = (*(this->primaryKeys)).begin(); _iter911 != (*(this->primaryKeys)).end(); ++_iter911) + std::vector ::const_iterator _iter941; + for (_iter941 = (*(this->primaryKeys)).begin(); _iter941 != (*(this->primaryKeys)).end(); ++_iter941) { - xfer += (*_iter911).write(oprot); + xfer += (*_iter941).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4633,10 +4633,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->foreignKeys)).size())); - std::vector ::const_iterator _iter912; - for (_iter912 = (*(this->foreignKeys)).begin(); _iter912 != (*(this->foreignKeys)).end(); ++_iter912) + std::vector ::const_iterator _iter942; + for (_iter942 = (*(this->foreignKeys)).begin(); _iter942 != (*(this->foreignKeys)).end(); ++_iter942) { - xfer += (*_iter912).write(oprot); + xfer += (*_iter942).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6055,14 +6055,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size913; - ::apache::thrift::protocol::TType _etype916; - xfer += iprot->readListBegin(_etype916, _size913); - this->success.resize(_size913); - uint32_t _i917; - for (_i917 = 0; _i917 < _size913; ++_i917) + uint32_t _size943; + ::apache::thrift::protocol::TType _etype946; + xfer += iprot->readListBegin(_etype946, _size943); + this->success.resize(_size943); + uint32_t _i947; + for (_i947 = 0; _i947 < _size943; ++_i947) { - xfer += iprot->readString(this->success[_i917]); + xfer += iprot->readString(this->success[_i947]); } xfer += iprot->readListEnd(); } @@ -6101,10 +6101,10 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter918; - for (_iter918 = this->success.begin(); _iter918 != this->success.end(); ++_iter918) + std::vector ::const_iterator _iter948; + for (_iter948 = this->success.begin(); _iter948 != this->success.end(); ++_iter948) { - xfer += oprot->writeString((*_iter918)); + xfer += oprot->writeString((*_iter948)); } xfer += oprot->writeListEnd(); } @@ -6149,14 +6149,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size919; - ::apache::thrift::protocol::TType _etype922; - xfer += iprot->readListBegin(_etype922, _size919); - (*(this->success)).resize(_size919); - uint32_t _i923; - for (_i923 = 0; _i923 < _size919; ++_i923) + uint32_t _size949; + ::apache::thrift::protocol::TType _etype952; + xfer += iprot->readListBegin(_etype952, _size949); + (*(this->success)).resize(_size949); + uint32_t _i953; + for (_i953 = 0; _i953 < _size949; ++_i953) { - xfer += iprot->readString((*(this->success))[_i923]); + xfer += iprot->readString((*(this->success))[_i953]); } xfer += iprot->readListEnd(); } @@ -6326,14 +6326,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_result::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size924; - ::apache::thrift::protocol::TType _etype927; - xfer += iprot->readListBegin(_etype927, _size924); - this->success.resize(_size924); - uint32_t _i928; - for (_i928 = 0; _i928 < _size924; ++_i928) + uint32_t _size954; + ::apache::thrift::protocol::TType _etype957; + xfer += iprot->readListBegin(_etype957, _size954); + this->success.resize(_size954); + uint32_t _i958; + for (_i958 = 0; _i958 < _size954; ++_i958) { - xfer += iprot->readString(this->success[_i928]); + xfer += iprot->readString(this->success[_i958]); } xfer += iprot->readListEnd(); } @@ -6372,10 +6372,10 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_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 _iter929; - for (_iter929 = this->success.begin(); _iter929 != this->success.end(); ++_iter929) + std::vector ::const_iterator _iter959; + for (_iter959 = this->success.begin(); _iter959 != this->success.end(); ++_iter959) { - xfer += oprot->writeString((*_iter929)); + xfer += oprot->writeString((*_iter959)); } xfer += oprot->writeListEnd(); } @@ -6420,14 +6420,14 @@ uint32_t ThriftHiveMetastore_get_tables_by_type_presult::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size930; - ::apache::thrift::protocol::TType _etype933; - xfer += iprot->readListBegin(_etype933, _size930); - (*(this->success)).resize(_size930); - uint32_t _i934; - for (_i934 = 0; _i934 < _size930; ++_i934) + uint32_t _size960; + ::apache::thrift::protocol::TType _etype963; + xfer += iprot->readListBegin(_etype963, _size960); + (*(this->success)).resize(_size960); + uint32_t _i964; + for (_i964 = 0; _i964 < _size960; ++_i964) { - xfer += iprot->readString((*(this->success))[_i934]); + xfer += iprot->readString((*(this->success))[_i964]); } xfer += iprot->readListEnd(); } @@ -6502,14 +6502,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_types.clear(); - uint32_t _size935; - ::apache::thrift::protocol::TType _etype938; - xfer += iprot->readListBegin(_etype938, _size935); - this->tbl_types.resize(_size935); - uint32_t _i939; - for (_i939 = 0; _i939 < _size935; ++_i939) + uint32_t _size965; + ::apache::thrift::protocol::TType _etype968; + xfer += iprot->readListBegin(_etype968, _size965); + this->tbl_types.resize(_size965); + uint32_t _i969; + for (_i969 = 0; _i969 < _size965; ++_i969) { - xfer += iprot->readString(this->tbl_types[_i939]); + xfer += iprot->readString(this->tbl_types[_i969]); } xfer += iprot->readListEnd(); } @@ -6546,10 +6546,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_types.size())); - std::vector ::const_iterator _iter940; - for (_iter940 = this->tbl_types.begin(); _iter940 != this->tbl_types.end(); ++_iter940) + std::vector ::const_iterator _iter970; + for (_iter970 = this->tbl_types.begin(); _iter970 != this->tbl_types.end(); ++_iter970) { - xfer += oprot->writeString((*_iter940)); + xfer += oprot->writeString((*_iter970)); } xfer += oprot->writeListEnd(); } @@ -6581,10 +6581,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_types)).size())); - std::vector ::const_iterator _iter941; - for (_iter941 = (*(this->tbl_types)).begin(); _iter941 != (*(this->tbl_types)).end(); ++_iter941) + std::vector ::const_iterator _iter971; + for (_iter971 = (*(this->tbl_types)).begin(); _iter971 != (*(this->tbl_types)).end(); ++_iter971) { - xfer += oprot->writeString((*_iter941)); + xfer += oprot->writeString((*_iter971)); } xfer += oprot->writeListEnd(); } @@ -6625,14 +6625,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size942; - ::apache::thrift::protocol::TType _etype945; - xfer += iprot->readListBegin(_etype945, _size942); - this->success.resize(_size942); - uint32_t _i946; - for (_i946 = 0; _i946 < _size942; ++_i946) + uint32_t _size972; + ::apache::thrift::protocol::TType _etype975; + xfer += iprot->readListBegin(_etype975, _size972); + this->success.resize(_size972); + uint32_t _i976; + for (_i976 = 0; _i976 < _size972; ++_i976) { - xfer += this->success[_i946].read(iprot); + xfer += this->success[_i976].read(iprot); } xfer += iprot->readListEnd(); } @@ -6671,10 +6671,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter947; - for (_iter947 = this->success.begin(); _iter947 != this->success.end(); ++_iter947) + std::vector ::const_iterator _iter977; + for (_iter977 = this->success.begin(); _iter977 != this->success.end(); ++_iter977) { - xfer += (*_iter947).write(oprot); + xfer += (*_iter977).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6719,14 +6719,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size948; - ::apache::thrift::protocol::TType _etype951; - xfer += iprot->readListBegin(_etype951, _size948); - (*(this->success)).resize(_size948); - uint32_t _i952; - for (_i952 = 0; _i952 < _size948; ++_i952) + uint32_t _size978; + ::apache::thrift::protocol::TType _etype981; + xfer += iprot->readListBegin(_etype981, _size978); + (*(this->success)).resize(_size978); + uint32_t _i982; + for (_i982 = 0; _i982 < _size978; ++_i982) { - xfer += (*(this->success))[_i952].read(iprot); + xfer += (*(this->success))[_i982].read(iprot); } xfer += iprot->readListEnd(); } @@ -6864,14 +6864,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size953; - ::apache::thrift::protocol::TType _etype956; - xfer += iprot->readListBegin(_etype956, _size953); - this->success.resize(_size953); - uint32_t _i957; - for (_i957 = 0; _i957 < _size953; ++_i957) + uint32_t _size983; + ::apache::thrift::protocol::TType _etype986; + xfer += iprot->readListBegin(_etype986, _size983); + this->success.resize(_size983); + uint32_t _i987; + for (_i987 = 0; _i987 < _size983; ++_i987) { - xfer += iprot->readString(this->success[_i957]); + xfer += iprot->readString(this->success[_i987]); } xfer += iprot->readListEnd(); } @@ -6910,10 +6910,10 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter958; - for (_iter958 = this->success.begin(); _iter958 != this->success.end(); ++_iter958) + std::vector ::const_iterator _iter988; + for (_iter988 = this->success.begin(); _iter988 != this->success.end(); ++_iter988) { - xfer += oprot->writeString((*_iter958)); + xfer += oprot->writeString((*_iter988)); } xfer += oprot->writeListEnd(); } @@ -6958,14 +6958,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size959; - ::apache::thrift::protocol::TType _etype962; - xfer += iprot->readListBegin(_etype962, _size959); - (*(this->success)).resize(_size959); - uint32_t _i963; - for (_i963 = 0; _i963 < _size959; ++_i963) + uint32_t _size989; + ::apache::thrift::protocol::TType _etype992; + xfer += iprot->readListBegin(_etype992, _size989); + (*(this->success)).resize(_size989); + uint32_t _i993; + for (_i993 = 0; _i993 < _size989; ++_i993) { - xfer += iprot->readString((*(this->success))[_i963]); + xfer += iprot->readString((*(this->success))[_i993]); } xfer += iprot->readListEnd(); } @@ -7275,14 +7275,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_names.clear(); - uint32_t _size964; - ::apache::thrift::protocol::TType _etype967; - xfer += iprot->readListBegin(_etype967, _size964); - this->tbl_names.resize(_size964); - uint32_t _i968; - for (_i968 = 0; _i968 < _size964; ++_i968) + uint32_t _size994; + ::apache::thrift::protocol::TType _etype997; + xfer += iprot->readListBegin(_etype997, _size994); + this->tbl_names.resize(_size994); + uint32_t _i998; + for (_i998 = 0; _i998 < _size994; ++_i998) { - xfer += iprot->readString(this->tbl_names[_i968]); + xfer += iprot->readString(this->tbl_names[_i998]); } xfer += iprot->readListEnd(); } @@ -7315,10 +7315,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thr xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_names.size())); - std::vector ::const_iterator _iter969; - for (_iter969 = this->tbl_names.begin(); _iter969 != this->tbl_names.end(); ++_iter969) + std::vector ::const_iterator _iter999; + for (_iter999 = this->tbl_names.begin(); _iter999 != this->tbl_names.end(); ++_iter999) { - xfer += oprot->writeString((*_iter969)); + xfer += oprot->writeString((*_iter999)); } xfer += oprot->writeListEnd(); } @@ -7346,10 +7346,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::th xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_names)).size())); - std::vector ::const_iterator _iter970; - for (_iter970 = (*(this->tbl_names)).begin(); _iter970 != (*(this->tbl_names)).end(); ++_iter970) + std::vector ::const_iterator _iter1000; + for (_iter1000 = (*(this->tbl_names)).begin(); _iter1000 != (*(this->tbl_names)).end(); ++_iter1000) { - xfer += oprot->writeString((*_iter970)); + xfer += oprot->writeString((*_iter1000)); } xfer += oprot->writeListEnd(); } @@ -7390,14 +7390,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size971; - ::apache::thrift::protocol::TType _etype974; - xfer += iprot->readListBegin(_etype974, _size971); - this->success.resize(_size971); - uint32_t _i975; - for (_i975 = 0; _i975 < _size971; ++_i975) + uint32_t _size1001; + ::apache::thrift::protocol::TType _etype1004; + xfer += iprot->readListBegin(_etype1004, _size1001); + this->success.resize(_size1001); + uint32_t _i1005; + for (_i1005 = 0; _i1005 < _size1001; ++_i1005) { - xfer += this->success[_i975].read(iprot); + xfer += this->success[_i1005].read(iprot); } xfer += iprot->readListEnd(); } @@ -7428,10 +7428,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter976; - for (_iter976 = this->success.begin(); _iter976 != this->success.end(); ++_iter976) + std::vector
::const_iterator _iter1006; + for (_iter1006 = this->success.begin(); _iter1006 != this->success.end(); ++_iter1006) { - xfer += (*_iter976).write(oprot); + xfer += (*_iter1006).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7472,14 +7472,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size977; - ::apache::thrift::protocol::TType _etype980; - xfer += iprot->readListBegin(_etype980, _size977); - (*(this->success)).resize(_size977); - uint32_t _i981; - for (_i981 = 0; _i981 < _size977; ++_i981) + uint32_t _size1007; + ::apache::thrift::protocol::TType _etype1010; + xfer += iprot->readListBegin(_etype1010, _size1007); + (*(this->success)).resize(_size1007); + uint32_t _i1011; + for (_i1011 = 0; _i1011 < _size1007; ++_i1011) { - xfer += (*(this->success))[_i981].read(iprot); + xfer += (*(this->success))[_i1011].read(iprot); } xfer += iprot->readListEnd(); } @@ -8115,14 +8115,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size982; - ::apache::thrift::protocol::TType _etype985; - xfer += iprot->readListBegin(_etype985, _size982); - this->success.resize(_size982); - uint32_t _i986; - for (_i986 = 0; _i986 < _size982; ++_i986) + uint32_t _size1012; + ::apache::thrift::protocol::TType _etype1015; + xfer += iprot->readListBegin(_etype1015, _size1012); + this->success.resize(_size1012); + uint32_t _i1016; + for (_i1016 = 0; _i1016 < _size1012; ++_i1016) { - xfer += iprot->readString(this->success[_i986]); + xfer += iprot->readString(this->success[_i1016]); } xfer += iprot->readListEnd(); } @@ -8177,10 +8177,10 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter987; - for (_iter987 = this->success.begin(); _iter987 != this->success.end(); ++_iter987) + std::vector ::const_iterator _iter1017; + for (_iter1017 = this->success.begin(); _iter1017 != this->success.end(); ++_iter1017) { - xfer += oprot->writeString((*_iter987)); + xfer += oprot->writeString((*_iter1017)); } xfer += oprot->writeListEnd(); } @@ -8233,14 +8233,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size988; - ::apache::thrift::protocol::TType _etype991; - xfer += iprot->readListBegin(_etype991, _size988); - (*(this->success)).resize(_size988); - uint32_t _i992; - for (_i992 = 0; _i992 < _size988; ++_i992) + uint32_t _size1018; + ::apache::thrift::protocol::TType _etype1021; + xfer += iprot->readListBegin(_etype1021, _size1018); + (*(this->success)).resize(_size1018); + uint32_t _i1022; + for (_i1022 = 0; _i1022 < _size1018; ++_i1022) { - xfer += iprot->readString((*(this->success))[_i992]); + xfer += iprot->readString((*(this->success))[_i1022]); } xfer += iprot->readListEnd(); } @@ -9574,14 +9574,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size993; - ::apache::thrift::protocol::TType _etype996; - xfer += iprot->readListBegin(_etype996, _size993); - this->new_parts.resize(_size993); - uint32_t _i997; - for (_i997 = 0; _i997 < _size993; ++_i997) + uint32_t _size1023; + ::apache::thrift::protocol::TType _etype1026; + xfer += iprot->readListBegin(_etype1026, _size1023); + this->new_parts.resize(_size1023); + uint32_t _i1027; + for (_i1027 = 0; _i1027 < _size1023; ++_i1027) { - xfer += this->new_parts[_i997].read(iprot); + xfer += this->new_parts[_i1027].read(iprot); } xfer += iprot->readListEnd(); } @@ -9610,10 +9610,10 @@ uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter998; - for (_iter998 = this->new_parts.begin(); _iter998 != this->new_parts.end(); ++_iter998) + std::vector ::const_iterator _iter1028; + for (_iter1028 = this->new_parts.begin(); _iter1028 != this->new_parts.end(); ++_iter1028) { - xfer += (*_iter998).write(oprot); + xfer += (*_iter1028).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9637,10 +9637,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter999; - for (_iter999 = (*(this->new_parts)).begin(); _iter999 != (*(this->new_parts)).end(); ++_iter999) + std::vector ::const_iterator _iter1029; + for (_iter1029 = (*(this->new_parts)).begin(); _iter1029 != (*(this->new_parts)).end(); ++_iter1029) { - xfer += (*_iter999).write(oprot); + xfer += (*_iter1029).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9849,14 +9849,14 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1000; - ::apache::thrift::protocol::TType _etype1003; - xfer += iprot->readListBegin(_etype1003, _size1000); - this->new_parts.resize(_size1000); - uint32_t _i1004; - for (_i1004 = 0; _i1004 < _size1000; ++_i1004) + uint32_t _size1030; + ::apache::thrift::protocol::TType _etype1033; + xfer += iprot->readListBegin(_etype1033, _size1030); + this->new_parts.resize(_size1030); + uint32_t _i1034; + for (_i1034 = 0; _i1034 < _size1030; ++_i1034) { - xfer += this->new_parts[_i1004].read(iprot); + xfer += this->new_parts[_i1034].read(iprot); } xfer += iprot->readListEnd(); } @@ -9885,10 +9885,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::write(::apache::thrift:: xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter1005; - for (_iter1005 = this->new_parts.begin(); _iter1005 != this->new_parts.end(); ++_iter1005) + std::vector ::const_iterator _iter1035; + for (_iter1035 = this->new_parts.begin(); _iter1035 != this->new_parts.end(); ++_iter1035) { - xfer += (*_iter1005).write(oprot); + xfer += (*_iter1035).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9912,10 +9912,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_pargs::write(::apache::thrift: xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter1006; - for (_iter1006 = (*(this->new_parts)).begin(); _iter1006 != (*(this->new_parts)).end(); ++_iter1006) + std::vector ::const_iterator _iter1036; + for (_iter1036 = (*(this->new_parts)).begin(); _iter1036 != (*(this->new_parts)).end(); ++_iter1036) { - xfer += (*_iter1006).write(oprot); + xfer += (*_iter1036).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10140,14 +10140,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1007; - ::apache::thrift::protocol::TType _etype1010; - xfer += iprot->readListBegin(_etype1010, _size1007); - this->part_vals.resize(_size1007); - uint32_t _i1011; - for (_i1011 = 0; _i1011 < _size1007; ++_i1011) + uint32_t _size1037; + ::apache::thrift::protocol::TType _etype1040; + xfer += iprot->readListBegin(_etype1040, _size1037); + this->part_vals.resize(_size1037); + uint32_t _i1041; + for (_i1041 = 0; _i1041 < _size1037; ++_i1041) { - xfer += iprot->readString(this->part_vals[_i1011]); + xfer += iprot->readString(this->part_vals[_i1041]); } xfer += iprot->readListEnd(); } @@ -10184,10 +10184,10 @@ uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1012; - for (_iter1012 = this->part_vals.begin(); _iter1012 != this->part_vals.end(); ++_iter1012) + std::vector ::const_iterator _iter1042; + for (_iter1042 = this->part_vals.begin(); _iter1042 != this->part_vals.end(); ++_iter1042) { - xfer += oprot->writeString((*_iter1012)); + xfer += oprot->writeString((*_iter1042)); } xfer += oprot->writeListEnd(); } @@ -10219,10 +10219,10 @@ uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1013; - for (_iter1013 = (*(this->part_vals)).begin(); _iter1013 != (*(this->part_vals)).end(); ++_iter1013) + std::vector ::const_iterator _iter1043; + for (_iter1043 = (*(this->part_vals)).begin(); _iter1043 != (*(this->part_vals)).end(); ++_iter1043) { - xfer += oprot->writeString((*_iter1013)); + xfer += oprot->writeString((*_iter1043)); } xfer += oprot->writeListEnd(); } @@ -10694,14 +10694,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1014; - ::apache::thrift::protocol::TType _etype1017; - xfer += iprot->readListBegin(_etype1017, _size1014); - this->part_vals.resize(_size1014); - uint32_t _i1018; - for (_i1018 = 0; _i1018 < _size1014; ++_i1018) + uint32_t _size1044; + ::apache::thrift::protocol::TType _etype1047; + xfer += iprot->readListBegin(_etype1047, _size1044); + this->part_vals.resize(_size1044); + uint32_t _i1048; + for (_i1048 = 0; _i1048 < _size1044; ++_i1048) { - xfer += iprot->readString(this->part_vals[_i1018]); + xfer += iprot->readString(this->part_vals[_i1048]); } xfer += iprot->readListEnd(); } @@ -10746,10 +10746,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::wri xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1019; - for (_iter1019 = this->part_vals.begin(); _iter1019 != this->part_vals.end(); ++_iter1019) + std::vector ::const_iterator _iter1049; + for (_iter1049 = this->part_vals.begin(); _iter1049 != this->part_vals.end(); ++_iter1049) { - xfer += oprot->writeString((*_iter1019)); + xfer += oprot->writeString((*_iter1049)); } xfer += oprot->writeListEnd(); } @@ -10785,10 +10785,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_pargs::wr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1020; - for (_iter1020 = (*(this->part_vals)).begin(); _iter1020 != (*(this->part_vals)).end(); ++_iter1020) + std::vector ::const_iterator _iter1050; + for (_iter1050 = (*(this->part_vals)).begin(); _iter1050 != (*(this->part_vals)).end(); ++_iter1050) { - xfer += oprot->writeString((*_iter1020)); + xfer += oprot->writeString((*_iter1050)); } xfer += oprot->writeListEnd(); } @@ -11591,14 +11591,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1021; - ::apache::thrift::protocol::TType _etype1024; - xfer += iprot->readListBegin(_etype1024, _size1021); - this->part_vals.resize(_size1021); - uint32_t _i1025; - for (_i1025 = 0; _i1025 < _size1021; ++_i1025) + uint32_t _size1051; + ::apache::thrift::protocol::TType _etype1054; + xfer += iprot->readListBegin(_etype1054, _size1051); + this->part_vals.resize(_size1051); + uint32_t _i1055; + for (_i1055 = 0; _i1055 < _size1051; ++_i1055) { - xfer += iprot->readString(this->part_vals[_i1025]); + xfer += iprot->readString(this->part_vals[_i1055]); } xfer += iprot->readListEnd(); } @@ -11643,10 +11643,10 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1026; - for (_iter1026 = this->part_vals.begin(); _iter1026 != this->part_vals.end(); ++_iter1026) + std::vector ::const_iterator _iter1056; + for (_iter1056 = this->part_vals.begin(); _iter1056 != this->part_vals.end(); ++_iter1056) { - xfer += oprot->writeString((*_iter1026)); + xfer += oprot->writeString((*_iter1056)); } xfer += oprot->writeListEnd(); } @@ -11682,10 +11682,10 @@ uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1027; - for (_iter1027 = (*(this->part_vals)).begin(); _iter1027 != (*(this->part_vals)).end(); ++_iter1027) + std::vector ::const_iterator _iter1057; + for (_iter1057 = (*(this->part_vals)).begin(); _iter1057 != (*(this->part_vals)).end(); ++_iter1057) { - xfer += oprot->writeString((*_iter1027)); + xfer += oprot->writeString((*_iter1057)); } xfer += oprot->writeListEnd(); } @@ -11894,14 +11894,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1028; - ::apache::thrift::protocol::TType _etype1031; - xfer += iprot->readListBegin(_etype1031, _size1028); - this->part_vals.resize(_size1028); - uint32_t _i1032; - for (_i1032 = 0; _i1032 < _size1028; ++_i1032) + uint32_t _size1058; + ::apache::thrift::protocol::TType _etype1061; + xfer += iprot->readListBegin(_etype1061, _size1058); + this->part_vals.resize(_size1058); + uint32_t _i1062; + for (_i1062 = 0; _i1062 < _size1058; ++_i1062) { - xfer += iprot->readString(this->part_vals[_i1032]); + xfer += iprot->readString(this->part_vals[_i1062]); } xfer += iprot->readListEnd(); } @@ -11954,10 +11954,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1033; - for (_iter1033 = this->part_vals.begin(); _iter1033 != this->part_vals.end(); ++_iter1033) + std::vector ::const_iterator _iter1063; + for (_iter1063 = this->part_vals.begin(); _iter1063 != this->part_vals.end(); ++_iter1063) { - xfer += oprot->writeString((*_iter1033)); + xfer += oprot->writeString((*_iter1063)); } xfer += oprot->writeListEnd(); } @@ -11997,10 +11997,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::writ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1034; - for (_iter1034 = (*(this->part_vals)).begin(); _iter1034 != (*(this->part_vals)).end(); ++_iter1034) + std::vector ::const_iterator _iter1064; + for (_iter1064 = (*(this->part_vals)).begin(); _iter1064 != (*(this->part_vals)).end(); ++_iter1064) { - xfer += oprot->writeString((*_iter1034)); + xfer += oprot->writeString((*_iter1064)); } xfer += oprot->writeListEnd(); } @@ -13006,14 +13006,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1035; - ::apache::thrift::protocol::TType _etype1038; - xfer += iprot->readListBegin(_etype1038, _size1035); - this->part_vals.resize(_size1035); - uint32_t _i1039; - for (_i1039 = 0; _i1039 < _size1035; ++_i1039) + uint32_t _size1065; + ::apache::thrift::protocol::TType _etype1068; + xfer += iprot->readListBegin(_etype1068, _size1065); + this->part_vals.resize(_size1065); + uint32_t _i1069; + for (_i1069 = 0; _i1069 < _size1065; ++_i1069) { - xfer += iprot->readString(this->part_vals[_i1039]); + xfer += iprot->readString(this->part_vals[_i1069]); } xfer += iprot->readListEnd(); } @@ -13050,10 +13050,10 @@ uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protoco xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter1040; - for (_iter1040 = this->part_vals.begin(); _iter1040 != this->part_vals.end(); ++_iter1040) + std::vector ::const_iterator _iter1070; + for (_iter1070 = this->part_vals.begin(); _iter1070 != this->part_vals.end(); ++_iter1070) { - xfer += oprot->writeString((*_iter1040)); + xfer += oprot->writeString((*_iter1070)); } xfer += oprot->writeListEnd(); } @@ -13085,10 +13085,10 @@ uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter1041; - for (_iter1041 = (*(this->part_vals)).begin(); _iter1041 != (*(this->part_vals)).end(); ++_iter1041) + std::vector ::const_iterator _iter1071; + for (_iter1071 = (*(this->part_vals)).begin(); _iter1071 != (*(this->part_vals)).end(); ++_iter1071) { - xfer += oprot->writeString((*_iter1041)); + xfer += oprot->writeString((*_iter1071)); } xfer += oprot->writeListEnd(); } @@ -13277,17 +13277,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1042; - ::apache::thrift::protocol::TType _ktype1043; - ::apache::thrift::protocol::TType _vtype1044; - xfer += iprot->readMapBegin(_ktype1043, _vtype1044, _size1042); - uint32_t _i1046; - for (_i1046 = 0; _i1046 < _size1042; ++_i1046) + uint32_t _size1072; + ::apache::thrift::protocol::TType _ktype1073; + ::apache::thrift::protocol::TType _vtype1074; + xfer += iprot->readMapBegin(_ktype1073, _vtype1074, _size1072); + uint32_t _i1076; + for (_i1076 = 0; _i1076 < _size1072; ++_i1076) { - std::string _key1047; - xfer += iprot->readString(_key1047); - std::string& _val1048 = this->partitionSpecs[_key1047]; - xfer += iprot->readString(_val1048); + std::string _key1077; + xfer += iprot->readString(_key1077); + std::string& _val1078 = this->partitionSpecs[_key1077]; + xfer += iprot->readString(_val1078); } xfer += iprot->readMapEnd(); } @@ -13348,11 +13348,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->partitionSpecs.size())); - std::map ::const_iterator _iter1049; - for (_iter1049 = this->partitionSpecs.begin(); _iter1049 != this->partitionSpecs.end(); ++_iter1049) + std::map ::const_iterator _iter1079; + for (_iter1079 = this->partitionSpecs.begin(); _iter1079 != this->partitionSpecs.end(); ++_iter1079) { - xfer += oprot->writeString(_iter1049->first); - xfer += oprot->writeString(_iter1049->second); + xfer += oprot->writeString(_iter1079->first); + xfer += oprot->writeString(_iter1079->second); } xfer += oprot->writeMapEnd(); } @@ -13392,11 +13392,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_pargs::write(::apache::thrift::p xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->partitionSpecs)).size())); - std::map ::const_iterator _iter1050; - for (_iter1050 = (*(this->partitionSpecs)).begin(); _iter1050 != (*(this->partitionSpecs)).end(); ++_iter1050) + std::map ::const_iterator _iter1080; + for (_iter1080 = (*(this->partitionSpecs)).begin(); _iter1080 != (*(this->partitionSpecs)).end(); ++_iter1080) { - xfer += oprot->writeString(_iter1050->first); - xfer += oprot->writeString(_iter1050->second); + xfer += oprot->writeString(_iter1080->first); + xfer += oprot->writeString(_iter1080->second); } xfer += oprot->writeMapEnd(); } @@ -13641,17 +13641,17 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size1051; - ::apache::thrift::protocol::TType _ktype1052; - ::apache::thrift::protocol::TType _vtype1053; - xfer += iprot->readMapBegin(_ktype1052, _vtype1053, _size1051); - uint32_t _i1055; - for (_i1055 = 0; _i1055 < _size1051; ++_i1055) + uint32_t _size1081; + ::apache::thrift::protocol::TType _ktype1082; + ::apache::thrift::protocol::TType _vtype1083; + xfer += iprot->readMapBegin(_ktype1082, _vtype1083, _size1081); + uint32_t _i1085; + for (_i1085 = 0; _i1085 < _size1081; ++_i1085) { - std::string _key1056; - xfer += iprot->readString(_key1056); - std::string& _val1057 = this->partitionSpecs[_key1056]; - xfer += iprot->readString(_val1057); + std::string _key1086; + xfer += iprot->readString(_key1086); + std::string& _val1087 = this->partitionSpecs[_key1086]; + xfer += iprot->readString(_val1087); } xfer += iprot->readMapEnd(); } @@ -13712,11 +13712,11 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::write(::apache::thrift::p xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->partitionSpecs.size())); - std::map ::const_iterator _iter1058; - for (_iter1058 = this->partitionSpecs.begin(); _iter1058 != this->partitionSpecs.end(); ++_iter1058) + std::map ::const_iterator _iter1088; + for (_iter1088 = this->partitionSpecs.begin(); _iter1088 != this->partitionSpecs.end(); ++_iter1088) { - xfer += oprot->writeString(_iter1058->first); - xfer += oprot->writeString(_iter1058->second); + xfer += oprot->writeString(_iter1088->first); + xfer += oprot->writeString(_iter1088->second); } xfer += oprot->writeMapEnd(); } @@ -13756,11 +13756,11 @@ uint32_t ThriftHiveMetastore_exchange_partitions_pargs::write(::apache::thrift:: xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->partitionSpecs)).size())); - std::map ::const_iterator _iter1059; - for (_iter1059 = (*(this->partitionSpecs)).begin(); _iter1059 != (*(this->partitionSpecs)).end(); ++_iter1059) + std::map ::const_iterator _iter1089; + for (_iter1089 = (*(this->partitionSpecs)).begin(); _iter1089 != (*(this->partitionSpecs)).end(); ++_iter1089) { - xfer += oprot->writeString(_iter1059->first); - xfer += oprot->writeString(_iter1059->second); + xfer += oprot->writeString(_iter1089->first); + xfer += oprot->writeString(_iter1089->second); } xfer += oprot->writeMapEnd(); } @@ -13817,14 +13817,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1060; - ::apache::thrift::protocol::TType _etype1063; - xfer += iprot->readListBegin(_etype1063, _size1060); - this->success.resize(_size1060); - uint32_t _i1064; - for (_i1064 = 0; _i1064 < _size1060; ++_i1064) + uint32_t _size1090; + ::apache::thrift::protocol::TType _etype1093; + xfer += iprot->readListBegin(_etype1093, _size1090); + this->success.resize(_size1090); + uint32_t _i1094; + for (_i1094 = 0; _i1094 < _size1090; ++_i1094) { - xfer += this->success[_i1064].read(iprot); + xfer += this->success[_i1094].read(iprot); } xfer += iprot->readListEnd(); } @@ -13887,10 +13887,10 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::write(::apache::thrift: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter1065; - for (_iter1065 = this->success.begin(); _iter1065 != this->success.end(); ++_iter1065) + std::vector ::const_iterator _iter1095; + for (_iter1095 = this->success.begin(); _iter1095 != this->success.end(); ++_iter1095) { - xfer += (*_iter1065).write(oprot); + xfer += (*_iter1095).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13947,14 +13947,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1066; - ::apache::thrift::protocol::TType _etype1069; - xfer += iprot->readListBegin(_etype1069, _size1066); - (*(this->success)).resize(_size1066); - uint32_t _i1070; - for (_i1070 = 0; _i1070 < _size1066; ++_i1070) + uint32_t _size1096; + ::apache::thrift::protocol::TType _etype1099; + xfer += iprot->readListBegin(_etype1099, _size1096); + (*(this->success)).resize(_size1096); + uint32_t _i1100; + for (_i1100 = 0; _i1100 < _size1096; ++_i1100) { - xfer += (*(this->success))[_i1070].read(iprot); + xfer += (*(this->success))[_i1100].read(iprot); } xfer += iprot->readListEnd(); } @@ -14053,14 +14053,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 _size1101; + ::apache::thrift::protocol::TType _etype1104; + xfer += iprot->readListBegin(_etype1104, _size1101); + this->part_vals.resize(_size1101); + uint32_t _i1105; + for (_i1105 = 0; _i1105 < _size1101; ++_i1105) { - xfer += iprot->readString(this->part_vals[_i1075]); + xfer += iprot->readString(this->part_vals[_i1105]); } xfer += iprot->readListEnd(); } @@ -14081,14 +14081,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 _size1106; + ::apache::thrift::protocol::TType _etype1109; + xfer += iprot->readListBegin(_etype1109, _size1106); + this->group_names.resize(_size1106); + uint32_t _i1110; + for (_i1110 = 0; _i1110 < _size1106; ++_i1110) { - xfer += iprot->readString(this->group_names[_i1080]); + xfer += iprot->readString(this->group_names[_i1110]); } xfer += iprot->readListEnd(); } @@ -14125,10 +14125,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 _iter1111; + for (_iter1111 = this->part_vals.begin(); _iter1111 != this->part_vals.end(); ++_iter1111) { - xfer += oprot->writeString((*_iter1081)); + xfer += oprot->writeString((*_iter1111)); } xfer += oprot->writeListEnd(); } @@ -14141,10 +14141,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 _iter1112; + for (_iter1112 = this->group_names.begin(); _iter1112 != this->group_names.end(); ++_iter1112) { - xfer += oprot->writeString((*_iter1082)); + xfer += oprot->writeString((*_iter1112)); } xfer += oprot->writeListEnd(); } @@ -14176,10 +14176,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 _iter1113; + for (_iter1113 = (*(this->part_vals)).begin(); _iter1113 != (*(this->part_vals)).end(); ++_iter1113) { - xfer += oprot->writeString((*_iter1083)); + xfer += oprot->writeString((*_iter1113)); } xfer += oprot->writeListEnd(); } @@ -14192,10 +14192,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 _iter1114; + for (_iter1114 = (*(this->group_names)).begin(); _iter1114 != (*(this->group_names)).end(); ++_iter1114) { - xfer += oprot->writeString((*_iter1084)); + xfer += oprot->writeString((*_iter1114)); } xfer += oprot->writeListEnd(); } @@ -14754,14 +14754,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 _size1115; + ::apache::thrift::protocol::TType _etype1118; + xfer += iprot->readListBegin(_etype1118, _size1115); + this->success.resize(_size1115); + uint32_t _i1119; + for (_i1119 = 0; _i1119 < _size1115; ++_i1119) { - xfer += this->success[_i1089].read(iprot); + xfer += this->success[_i1119].read(iprot); } xfer += iprot->readListEnd(); } @@ -14808,10 +14808,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 _iter1120; + for (_iter1120 = this->success.begin(); _iter1120 != this->success.end(); ++_iter1120) { - xfer += (*_iter1090).write(oprot); + xfer += (*_iter1120).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14860,14 +14860,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 _size1121; + ::apache::thrift::protocol::TType _etype1124; + xfer += iprot->readListBegin(_etype1124, _size1121); + (*(this->success)).resize(_size1121); + uint32_t _i1125; + for (_i1125 = 0; _i1125 < _size1121; ++_i1125) { - xfer += (*(this->success))[_i1095].read(iprot); + xfer += (*(this->success))[_i1125].read(iprot); } xfer += iprot->readListEnd(); } @@ -14966,14 +14966,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 _size1126; + ::apache::thrift::protocol::TType _etype1129; + xfer += iprot->readListBegin(_etype1129, _size1126); + this->group_names.resize(_size1126); + uint32_t _i1130; + for (_i1130 = 0; _i1130 < _size1126; ++_i1130) { - xfer += iprot->readString(this->group_names[_i1100]); + xfer += iprot->readString(this->group_names[_i1130]); } xfer += iprot->readListEnd(); } @@ -15018,10 +15018,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 _iter1131; + for (_iter1131 = this->group_names.begin(); _iter1131 != this->group_names.end(); ++_iter1131) { - xfer += oprot->writeString((*_iter1101)); + xfer += oprot->writeString((*_iter1131)); } xfer += oprot->writeListEnd(); } @@ -15061,10 +15061,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 _iter1132; + for (_iter1132 = (*(this->group_names)).begin(); _iter1132 != (*(this->group_names)).end(); ++_iter1132) { - xfer += oprot->writeString((*_iter1102)); + xfer += oprot->writeString((*_iter1132)); } xfer += oprot->writeListEnd(); } @@ -15105,14 +15105,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 _size1133; + ::apache::thrift::protocol::TType _etype1136; + xfer += iprot->readListBegin(_etype1136, _size1133); + this->success.resize(_size1133); + uint32_t _i1137; + for (_i1137 = 0; _i1137 < _size1133; ++_i1137) { - xfer += this->success[_i1107].read(iprot); + xfer += this->success[_i1137].read(iprot); } xfer += iprot->readListEnd(); } @@ -15159,10 +15159,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 _iter1138; + for (_iter1138 = this->success.begin(); _iter1138 != this->success.end(); ++_iter1138) { - xfer += (*_iter1108).write(oprot); + xfer += (*_iter1138).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15211,14 +15211,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 _size1139; + ::apache::thrift::protocol::TType _etype1142; + xfer += iprot->readListBegin(_etype1142, _size1139); + (*(this->success)).resize(_size1139); + uint32_t _i1143; + for (_i1143 = 0; _i1143 < _size1139; ++_i1143) { - xfer += (*(this->success))[_i1113].read(iprot); + xfer += (*(this->success))[_i1143].read(iprot); } xfer += iprot->readListEnd(); } @@ -15396,14 +15396,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 _size1144; + ::apache::thrift::protocol::TType _etype1147; + xfer += iprot->readListBegin(_etype1147, _size1144); + this->success.resize(_size1144); + uint32_t _i1148; + for (_i1148 = 0; _i1148 < _size1144; ++_i1148) { - xfer += this->success[_i1118].read(iprot); + xfer += this->success[_i1148].read(iprot); } xfer += iprot->readListEnd(); } @@ -15450,10 +15450,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 _iter1149; + for (_iter1149 = this->success.begin(); _iter1149 != this->success.end(); ++_iter1149) { - xfer += (*_iter1119).write(oprot); + xfer += (*_iter1149).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15502,14 +15502,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 _size1150; + ::apache::thrift::protocol::TType _etype1153; + xfer += iprot->readListBegin(_etype1153, _size1150); + (*(this->success)).resize(_size1150); + uint32_t _i1154; + for (_i1154 = 0; _i1154 < _size1150; ++_i1154) { - xfer += (*(this->success))[_i1124].read(iprot); + xfer += (*(this->success))[_i1154].read(iprot); } xfer += iprot->readListEnd(); } @@ -15687,14 +15687,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 _size1155; + ::apache::thrift::protocol::TType _etype1158; + xfer += iprot->readListBegin(_etype1158, _size1155); + this->success.resize(_size1155); + uint32_t _i1159; + for (_i1159 = 0; _i1159 < _size1155; ++_i1159) { - xfer += iprot->readString(this->success[_i1129]); + xfer += iprot->readString(this->success[_i1159]); } xfer += iprot->readListEnd(); } @@ -15733,10 +15733,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 _iter1160; + for (_iter1160 = this->success.begin(); _iter1160 != this->success.end(); ++_iter1160) { - xfer += oprot->writeString((*_iter1130)); + xfer += oprot->writeString((*_iter1160)); } xfer += oprot->writeListEnd(); } @@ -15781,14 +15781,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 _size1161; + ::apache::thrift::protocol::TType _etype1164; + xfer += iprot->readListBegin(_etype1164, _size1161); + (*(this->success)).resize(_size1161); + uint32_t _i1165; + for (_i1165 = 0; _i1165 < _size1161; ++_i1165) { - xfer += iprot->readString((*(this->success))[_i1135]); + xfer += iprot->readString((*(this->success))[_i1165]); } xfer += iprot->readListEnd(); } @@ -15818,6 +15818,233 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: } +ThriftHiveMetastore_get_partition_values_args::~ThriftHiveMetastore_get_partition_values_args() throw() { +} + + +uint32_t ThriftHiveMetastore_get_partition_values_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_STRUCT) { + xfer += this->request.read(iprot); + this->__isset.request = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_partition_values_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_values_args"); + + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->request.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_partition_values_pargs::~ThriftHiveMetastore_get_partition_values_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_get_partition_values_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_values_pargs"); + + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->request)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_partition_values_result::~ThriftHiveMetastore_get_partition_values_result() throw() { +} + + +uint32_t ThriftHiveMetastore_get_partition_values_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_STRUCT) { + xfer += this->success.read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_partition_values_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_values_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_partition_values_presult::~ThriftHiveMetastore_get_partition_values_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_get_partition_values_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_STRUCT) { + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + ThriftHiveMetastore_get_partitions_ps_args::~ThriftHiveMetastore_get_partitions_ps_args() throw() { } @@ -15863,14 +16090,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 _size1166; + ::apache::thrift::protocol::TType _etype1169; + xfer += iprot->readListBegin(_etype1169, _size1166); + this->part_vals.resize(_size1166); + uint32_t _i1170; + for (_i1170 = 0; _i1170 < _size1166; ++_i1170) { - xfer += iprot->readString(this->part_vals[_i1140]); + xfer += iprot->readString(this->part_vals[_i1170]); } xfer += iprot->readListEnd(); } @@ -15915,10 +16142,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 _iter1171; + for (_iter1171 = this->part_vals.begin(); _iter1171 != this->part_vals.end(); ++_iter1171) { - xfer += oprot->writeString((*_iter1141)); + xfer += oprot->writeString((*_iter1171)); } xfer += oprot->writeListEnd(); } @@ -15954,10 +16181,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 _iter1172; + for (_iter1172 = (*(this->part_vals)).begin(); _iter1172 != (*(this->part_vals)).end(); ++_iter1172) { - xfer += oprot->writeString((*_iter1142)); + xfer += oprot->writeString((*_iter1172)); } xfer += oprot->writeListEnd(); } @@ -16002,14 +16229,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 _size1173; + ::apache::thrift::protocol::TType _etype1176; + xfer += iprot->readListBegin(_etype1176, _size1173); + this->success.resize(_size1173); + uint32_t _i1177; + for (_i1177 = 0; _i1177 < _size1173; ++_i1177) { - xfer += this->success[_i1147].read(iprot); + xfer += this->success[_i1177].read(iprot); } xfer += iprot->readListEnd(); } @@ -16056,10 +16283,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 _iter1178; + for (_iter1178 = this->success.begin(); _iter1178 != this->success.end(); ++_iter1178) { - xfer += (*_iter1148).write(oprot); + xfer += (*_iter1178).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16108,14 +16335,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 _size1179; + ::apache::thrift::protocol::TType _etype1182; + xfer += iprot->readListBegin(_etype1182, _size1179); + (*(this->success)).resize(_size1179); + uint32_t _i1183; + for (_i1183 = 0; _i1183 < _size1179; ++_i1183) { - xfer += (*(this->success))[_i1153].read(iprot); + xfer += (*(this->success))[_i1183].read(iprot); } xfer += iprot->readListEnd(); } @@ -16198,14 +16425,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 _size1184; + ::apache::thrift::protocol::TType _etype1187; + xfer += iprot->readListBegin(_etype1187, _size1184); + this->part_vals.resize(_size1184); + uint32_t _i1188; + for (_i1188 = 0; _i1188 < _size1184; ++_i1188) { - xfer += iprot->readString(this->part_vals[_i1158]); + xfer += iprot->readString(this->part_vals[_i1188]); } xfer += iprot->readListEnd(); } @@ -16234,14 +16461,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 _size1189; + ::apache::thrift::protocol::TType _etype1192; + xfer += iprot->readListBegin(_etype1192, _size1189); + this->group_names.resize(_size1189); + uint32_t _i1193; + for (_i1193 = 0; _i1193 < _size1189; ++_i1193) { - xfer += iprot->readString(this->group_names[_i1163]); + xfer += iprot->readString(this->group_names[_i1193]); } xfer += iprot->readListEnd(); } @@ -16278,10 +16505,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 _iter1194; + for (_iter1194 = this->part_vals.begin(); _iter1194 != this->part_vals.end(); ++_iter1194) { - xfer += oprot->writeString((*_iter1164)); + xfer += oprot->writeString((*_iter1194)); } xfer += oprot->writeListEnd(); } @@ -16298,10 +16525,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 _iter1195; + for (_iter1195 = this->group_names.begin(); _iter1195 != this->group_names.end(); ++_iter1195) { - xfer += oprot->writeString((*_iter1165)); + xfer += oprot->writeString((*_iter1195)); } xfer += oprot->writeListEnd(); } @@ -16333,10 +16560,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 _iter1196; + for (_iter1196 = (*(this->part_vals)).begin(); _iter1196 != (*(this->part_vals)).end(); ++_iter1196) { - xfer += oprot->writeString((*_iter1166)); + xfer += oprot->writeString((*_iter1196)); } xfer += oprot->writeListEnd(); } @@ -16353,10 +16580,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 _iter1197; + for (_iter1197 = (*(this->group_names)).begin(); _iter1197 != (*(this->group_names)).end(); ++_iter1197) { - xfer += oprot->writeString((*_iter1167)); + xfer += oprot->writeString((*_iter1197)); } xfer += oprot->writeListEnd(); } @@ -16397,14 +16624,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 _size1198; + ::apache::thrift::protocol::TType _etype1201; + xfer += iprot->readListBegin(_etype1201, _size1198); + this->success.resize(_size1198); + uint32_t _i1202; + for (_i1202 = 0; _i1202 < _size1198; ++_i1202) { - xfer += this->success[_i1172].read(iprot); + xfer += this->success[_i1202].read(iprot); } xfer += iprot->readListEnd(); } @@ -16451,10 +16678,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 _iter1203; + for (_iter1203 = this->success.begin(); _iter1203 != this->success.end(); ++_iter1203) { - xfer += (*_iter1173).write(oprot); + xfer += (*_iter1203).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16503,14 +16730,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 _size1204; + ::apache::thrift::protocol::TType _etype1207; + xfer += iprot->readListBegin(_etype1207, _size1204); + (*(this->success)).resize(_size1204); + uint32_t _i1208; + for (_i1208 = 0; _i1208 < _size1204; ++_i1208) { - xfer += (*(this->success))[_i1178].read(iprot); + xfer += (*(this->success))[_i1208].read(iprot); } xfer += iprot->readListEnd(); } @@ -16593,14 +16820,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 _size1209; + ::apache::thrift::protocol::TType _etype1212; + xfer += iprot->readListBegin(_etype1212, _size1209); + this->part_vals.resize(_size1209); + uint32_t _i1213; + for (_i1213 = 0; _i1213 < _size1209; ++_i1213) { - xfer += iprot->readString(this->part_vals[_i1183]); + xfer += iprot->readString(this->part_vals[_i1213]); } xfer += iprot->readListEnd(); } @@ -16645,10 +16872,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 _iter1214; + for (_iter1214 = this->part_vals.begin(); _iter1214 != this->part_vals.end(); ++_iter1214) { - xfer += oprot->writeString((*_iter1184)); + xfer += oprot->writeString((*_iter1214)); } xfer += oprot->writeListEnd(); } @@ -16684,10 +16911,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 _iter1215; + for (_iter1215 = (*(this->part_vals)).begin(); _iter1215 != (*(this->part_vals)).end(); ++_iter1215) { - xfer += oprot->writeString((*_iter1185)); + xfer += oprot->writeString((*_iter1215)); } xfer += oprot->writeListEnd(); } @@ -16732,14 +16959,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 _size1216; + ::apache::thrift::protocol::TType _etype1219; + xfer += iprot->readListBegin(_etype1219, _size1216); + this->success.resize(_size1216); + uint32_t _i1220; + for (_i1220 = 0; _i1220 < _size1216; ++_i1220) { - xfer += iprot->readString(this->success[_i1190]); + xfer += iprot->readString(this->success[_i1220]); } xfer += iprot->readListEnd(); } @@ -16786,10 +17013,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 _iter1221; + for (_iter1221 = this->success.begin(); _iter1221 != this->success.end(); ++_iter1221) { - xfer += oprot->writeString((*_iter1191)); + xfer += oprot->writeString((*_iter1221)); } xfer += oprot->writeListEnd(); } @@ -16838,14 +17065,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 _size1222; + ::apache::thrift::protocol::TType _etype1225; + xfer += iprot->readListBegin(_etype1225, _size1222); + (*(this->success)).resize(_size1222); + uint32_t _i1226; + for (_i1226 = 0; _i1226 < _size1222; ++_i1226) { - xfer += iprot->readString((*(this->success))[_i1196]); + xfer += iprot->readString((*(this->success))[_i1226]); } xfer += iprot->readListEnd(); } @@ -17039,14 +17266,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 _size1227; + ::apache::thrift::protocol::TType _etype1230; + xfer += iprot->readListBegin(_etype1230, _size1227); + this->success.resize(_size1227); + uint32_t _i1231; + for (_i1231 = 0; _i1231 < _size1227; ++_i1231) { - xfer += this->success[_i1201].read(iprot); + xfer += this->success[_i1231].read(iprot); } xfer += iprot->readListEnd(); } @@ -17093,10 +17320,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 _iter1232; + for (_iter1232 = this->success.begin(); _iter1232 != this->success.end(); ++_iter1232) { - xfer += (*_iter1202).write(oprot); + xfer += (*_iter1232).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17145,14 +17372,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 _size1233; + ::apache::thrift::protocol::TType _etype1236; + xfer += iprot->readListBegin(_etype1236, _size1233); + (*(this->success)).resize(_size1233); + uint32_t _i1237; + for (_i1237 = 0; _i1237 < _size1233; ++_i1237) { - xfer += (*(this->success))[_i1207].read(iprot); + xfer += (*(this->success))[_i1237].read(iprot); } xfer += iprot->readListEnd(); } @@ -17346,14 +17573,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 _size1238; + ::apache::thrift::protocol::TType _etype1241; + xfer += iprot->readListBegin(_etype1241, _size1238); + this->success.resize(_size1238); + uint32_t _i1242; + for (_i1242 = 0; _i1242 < _size1238; ++_i1242) { - xfer += this->success[_i1212].read(iprot); + xfer += this->success[_i1242].read(iprot); } xfer += iprot->readListEnd(); } @@ -17400,10 +17627,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 _iter1243; + for (_iter1243 = this->success.begin(); _iter1243 != this->success.end(); ++_iter1243) { - xfer += (*_iter1213).write(oprot); + xfer += (*_iter1243).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17452,14 +17679,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 _size1244; + ::apache::thrift::protocol::TType _etype1247; + xfer += iprot->readListBegin(_etype1247, _size1244); + (*(this->success)).resize(_size1244); + uint32_t _i1248; + for (_i1248 = 0; _i1248 < _size1244; ++_i1248) { - xfer += (*(this->success))[_i1218].read(iprot); + xfer += (*(this->success))[_i1248].read(iprot); } xfer += iprot->readListEnd(); } @@ -18028,14 +18255,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 _size1249; + ::apache::thrift::protocol::TType _etype1252; + xfer += iprot->readListBegin(_etype1252, _size1249); + this->names.resize(_size1249); + uint32_t _i1253; + for (_i1253 = 0; _i1253 < _size1249; ++_i1253) { - xfer += iprot->readString(this->names[_i1223]); + xfer += iprot->readString(this->names[_i1253]); } xfer += iprot->readListEnd(); } @@ -18072,10 +18299,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 _iter1254; + for (_iter1254 = this->names.begin(); _iter1254 != this->names.end(); ++_iter1254) { - xfer += oprot->writeString((*_iter1224)); + xfer += oprot->writeString((*_iter1254)); } xfer += oprot->writeListEnd(); } @@ -18107,10 +18334,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 _iter1255; + for (_iter1255 = (*(this->names)).begin(); _iter1255 != (*(this->names)).end(); ++_iter1255) { - xfer += oprot->writeString((*_iter1225)); + xfer += oprot->writeString((*_iter1255)); } xfer += oprot->writeListEnd(); } @@ -18151,14 +18378,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 _size1256; + ::apache::thrift::protocol::TType _etype1259; + xfer += iprot->readListBegin(_etype1259, _size1256); + this->success.resize(_size1256); + uint32_t _i1260; + for (_i1260 = 0; _i1260 < _size1256; ++_i1260) { - xfer += this->success[_i1230].read(iprot); + xfer += this->success[_i1260].read(iprot); } xfer += iprot->readListEnd(); } @@ -18205,10 +18432,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 _iter1261; + for (_iter1261 = this->success.begin(); _iter1261 != this->success.end(); ++_iter1261) { - xfer += (*_iter1231).write(oprot); + xfer += (*_iter1261).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18257,14 +18484,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 _size1262; + ::apache::thrift::protocol::TType _etype1265; + xfer += iprot->readListBegin(_etype1265, _size1262); + (*(this->success)).resize(_size1262); + uint32_t _i1266; + for (_i1266 = 0; _i1266 < _size1262; ++_i1266) { - xfer += (*(this->success))[_i1236].read(iprot); + xfer += (*(this->success))[_i1266].read(iprot); } xfer += iprot->readListEnd(); } @@ -18586,14 +18813,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 _size1267; + ::apache::thrift::protocol::TType _etype1270; + xfer += iprot->readListBegin(_etype1270, _size1267); + this->new_parts.resize(_size1267); + uint32_t _i1271; + for (_i1271 = 0; _i1271 < _size1267; ++_i1271) { - xfer += this->new_parts[_i1241].read(iprot); + xfer += this->new_parts[_i1271].read(iprot); } xfer += iprot->readListEnd(); } @@ -18630,10 +18857,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 _iter1272; + for (_iter1272 = this->new_parts.begin(); _iter1272 != this->new_parts.end(); ++_iter1272) { - xfer += (*_iter1242).write(oprot); + xfer += (*_iter1272).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18665,10 +18892,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 _iter1273; + for (_iter1273 = (*(this->new_parts)).begin(); _iter1273 != (*(this->new_parts)).end(); ++_iter1273) { - xfer += (*_iter1243).write(oprot); + xfer += (*_iter1273).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18853,14 +19080,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 _size1274; + ::apache::thrift::protocol::TType _etype1277; + xfer += iprot->readListBegin(_etype1277, _size1274); + this->new_parts.resize(_size1274); + uint32_t _i1278; + for (_i1278 = 0; _i1278 < _size1274; ++_i1278) { - xfer += this->new_parts[_i1248].read(iprot); + xfer += this->new_parts[_i1278].read(iprot); } xfer += iprot->readListEnd(); } @@ -18905,10 +19132,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 _iter1279; + for (_iter1279 = this->new_parts.begin(); _iter1279 != this->new_parts.end(); ++_iter1279) { - xfer += (*_iter1249).write(oprot); + xfer += (*_iter1279).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18944,10 +19171,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 _iter1280; + for (_iter1280 = (*(this->new_parts)).begin(); _iter1280 != (*(this->new_parts)).end(); ++_iter1280) { - xfer += (*_iter1250).write(oprot); + xfer += (*_iter1280).write(oprot); } xfer += oprot->writeListEnd(); } @@ -19391,14 +19618,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 _size1281; + ::apache::thrift::protocol::TType _etype1284; + xfer += iprot->readListBegin(_etype1284, _size1281); + this->part_vals.resize(_size1281); + uint32_t _i1285; + for (_i1285 = 0; _i1285 < _size1281; ++_i1285) { - xfer += iprot->readString(this->part_vals[_i1255]); + xfer += iprot->readString(this->part_vals[_i1285]); } xfer += iprot->readListEnd(); } @@ -19443,10 +19670,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 _iter1286; + for (_iter1286 = this->part_vals.begin(); _iter1286 != this->part_vals.end(); ++_iter1286) { - xfer += oprot->writeString((*_iter1256)); + xfer += oprot->writeString((*_iter1286)); } xfer += oprot->writeListEnd(); } @@ -19482,10 +19709,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 _iter1287; + for (_iter1287 = (*(this->part_vals)).begin(); _iter1287 != (*(this->part_vals)).end(); ++_iter1287) { - xfer += oprot->writeString((*_iter1257)); + xfer += oprot->writeString((*_iter1287)); } xfer += oprot->writeListEnd(); } @@ -19658,14 +19885,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 _size1288; + ::apache::thrift::protocol::TType _etype1291; + xfer += iprot->readListBegin(_etype1291, _size1288); + this->part_vals.resize(_size1288); + uint32_t _i1292; + for (_i1292 = 0; _i1292 < _size1288; ++_i1292) { - xfer += iprot->readString(this->part_vals[_i1262]); + xfer += iprot->readString(this->part_vals[_i1292]); } xfer += iprot->readListEnd(); } @@ -19702,10 +19929,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 _iter1293; + for (_iter1293 = this->part_vals.begin(); _iter1293 != this->part_vals.end(); ++_iter1293) { - xfer += oprot->writeString((*_iter1263)); + xfer += oprot->writeString((*_iter1293)); } xfer += oprot->writeListEnd(); } @@ -19733,10 +19960,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 _iter1294; + for (_iter1294 = (*(this->part_vals)).begin(); _iter1294 != (*(this->part_vals)).end(); ++_iter1294) { - xfer += oprot->writeString((*_iter1264)); + xfer += oprot->writeString((*_iter1294)); } xfer += oprot->writeListEnd(); } @@ -20211,14 +20438,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 _size1295; + ::apache::thrift::protocol::TType _etype1298; + xfer += iprot->readListBegin(_etype1298, _size1295); + this->success.resize(_size1295); + uint32_t _i1299; + for (_i1299 = 0; _i1299 < _size1295; ++_i1299) { - xfer += iprot->readString(this->success[_i1269]); + xfer += iprot->readString(this->success[_i1299]); } xfer += iprot->readListEnd(); } @@ -20257,10 +20484,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 _iter1300; + for (_iter1300 = this->success.begin(); _iter1300 != this->success.end(); ++_iter1300) { - xfer += oprot->writeString((*_iter1270)); + xfer += oprot->writeString((*_iter1300)); } xfer += oprot->writeListEnd(); } @@ -20305,14 +20532,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 _size1301; + ::apache::thrift::protocol::TType _etype1304; + xfer += iprot->readListBegin(_etype1304, _size1301); + (*(this->success)).resize(_size1301); + uint32_t _i1305; + for (_i1305 = 0; _i1305 < _size1301; ++_i1305) { - xfer += iprot->readString((*(this->success))[_i1275]); + xfer += iprot->readString((*(this->success))[_i1305]); } xfer += iprot->readListEnd(); } @@ -20450,17 +20677,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 _size1306; + ::apache::thrift::protocol::TType _ktype1307; + ::apache::thrift::protocol::TType _vtype1308; + xfer += iprot->readMapBegin(_ktype1307, _vtype1308, _size1306); + uint32_t _i1310; + for (_i1310 = 0; _i1310 < _size1306; ++_i1310) { - std::string _key1281; - xfer += iprot->readString(_key1281); - std::string& _val1282 = this->success[_key1281]; - xfer += iprot->readString(_val1282); + std::string _key1311; + xfer += iprot->readString(_key1311); + std::string& _val1312 = this->success[_key1311]; + xfer += iprot->readString(_val1312); } xfer += iprot->readMapEnd(); } @@ -20499,11 +20726,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 _iter1313; + for (_iter1313 = this->success.begin(); _iter1313 != this->success.end(); ++_iter1313) { - xfer += oprot->writeString(_iter1283->first); - xfer += oprot->writeString(_iter1283->second); + xfer += oprot->writeString(_iter1313->first); + xfer += oprot->writeString(_iter1313->second); } xfer += oprot->writeMapEnd(); } @@ -20548,17 +20775,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 _size1314; + ::apache::thrift::protocol::TType _ktype1315; + ::apache::thrift::protocol::TType _vtype1316; + xfer += iprot->readMapBegin(_ktype1315, _vtype1316, _size1314); + uint32_t _i1318; + for (_i1318 = 0; _i1318 < _size1314; ++_i1318) { - std::string _key1289; - xfer += iprot->readString(_key1289); - std::string& _val1290 = (*(this->success))[_key1289]; - xfer += iprot->readString(_val1290); + std::string _key1319; + xfer += iprot->readString(_key1319); + std::string& _val1320 = (*(this->success))[_key1319]; + xfer += iprot->readString(_val1320); } xfer += iprot->readMapEnd(); } @@ -20633,17 +20860,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 _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 _key1296; - xfer += iprot->readString(_key1296); - std::string& _val1297 = this->part_vals[_key1296]; - xfer += iprot->readString(_val1297); + std::string _key1326; + xfer += iprot->readString(_key1326); + std::string& _val1327 = this->part_vals[_key1326]; + xfer += iprot->readString(_val1327); } xfer += iprot->readMapEnd(); } @@ -20654,9 +20881,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 ecast1328; + xfer += iprot->readI32(ecast1328); + this->eventType = (PartitionEventType::type)ecast1328; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -20690,11 +20917,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 _iter1329; + for (_iter1329 = this->part_vals.begin(); _iter1329 != this->part_vals.end(); ++_iter1329) { - xfer += oprot->writeString(_iter1299->first); - xfer += oprot->writeString(_iter1299->second); + xfer += oprot->writeString(_iter1329->first); + xfer += oprot->writeString(_iter1329->second); } xfer += oprot->writeMapEnd(); } @@ -20730,11 +20957,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 _iter1330; + for (_iter1330 = (*(this->part_vals)).begin(); _iter1330 != (*(this->part_vals)).end(); ++_iter1330) { - xfer += oprot->writeString(_iter1300->first); - xfer += oprot->writeString(_iter1300->second); + xfer += oprot->writeString(_iter1330->first); + xfer += oprot->writeString(_iter1330->second); } xfer += oprot->writeMapEnd(); } @@ -21003,17 +21230,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 _size1331; + ::apache::thrift::protocol::TType _ktype1332; + ::apache::thrift::protocol::TType _vtype1333; + xfer += iprot->readMapBegin(_ktype1332, _vtype1333, _size1331); + uint32_t _i1335; + for (_i1335 = 0; _i1335 < _size1331; ++_i1335) { - std::string _key1306; - xfer += iprot->readString(_key1306); - std::string& _val1307 = this->part_vals[_key1306]; - xfer += iprot->readString(_val1307); + std::string _key1336; + xfer += iprot->readString(_key1336); + std::string& _val1337 = this->part_vals[_key1336]; + xfer += iprot->readString(_val1337); } xfer += iprot->readMapEnd(); } @@ -21024,9 +21251,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 ecast1338; + xfer += iprot->readI32(ecast1338); + this->eventType = (PartitionEventType::type)ecast1338; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -21060,11 +21287,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 _iter1339; + for (_iter1339 = this->part_vals.begin(); _iter1339 != this->part_vals.end(); ++_iter1339) { - xfer += oprot->writeString(_iter1309->first); - xfer += oprot->writeString(_iter1309->second); + xfer += oprot->writeString(_iter1339->first); + xfer += oprot->writeString(_iter1339->second); } xfer += oprot->writeMapEnd(); } @@ -21100,11 +21327,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 _iter1340; + for (_iter1340 = (*(this->part_vals)).begin(); _iter1340 != (*(this->part_vals)).end(); ++_iter1340) { - xfer += oprot->writeString(_iter1310->first); - xfer += oprot->writeString(_iter1310->second); + xfer += oprot->writeString(_iter1340->first); + xfer += oprot->writeString(_iter1340->second); } xfer += oprot->writeMapEnd(); } @@ -22540,14 +22767,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 _size1341; + ::apache::thrift::protocol::TType _etype1344; + xfer += iprot->readListBegin(_etype1344, _size1341); + this->success.resize(_size1341); + uint32_t _i1345; + for (_i1345 = 0; _i1345 < _size1341; ++_i1345) { - xfer += this->success[_i1315].read(iprot); + xfer += this->success[_i1345].read(iprot); } xfer += iprot->readListEnd(); } @@ -22594,10 +22821,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 _iter1346; + for (_iter1346 = this->success.begin(); _iter1346 != this->success.end(); ++_iter1346) { - xfer += (*_iter1316).write(oprot); + xfer += (*_iter1346).write(oprot); } xfer += oprot->writeListEnd(); } @@ -22646,14 +22873,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 _size1347; + ::apache::thrift::protocol::TType _etype1350; + xfer += iprot->readListBegin(_etype1350, _size1347); + (*(this->success)).resize(_size1347); + uint32_t _i1351; + for (_i1351 = 0; _i1351 < _size1347; ++_i1351) { - xfer += (*(this->success))[_i1321].read(iprot); + xfer += (*(this->success))[_i1351].read(iprot); } xfer += iprot->readListEnd(); } @@ -22831,14 +23058,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 _size1352; + ::apache::thrift::protocol::TType _etype1355; + xfer += iprot->readListBegin(_etype1355, _size1352); + this->success.resize(_size1352); + uint32_t _i1356; + for (_i1356 = 0; _i1356 < _size1352; ++_i1356) { - xfer += iprot->readString(this->success[_i1326]); + xfer += iprot->readString(this->success[_i1356]); } xfer += iprot->readListEnd(); } @@ -22877,10 +23104,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 _iter1357; + for (_iter1357 = this->success.begin(); _iter1357 != this->success.end(); ++_iter1357) { - xfer += oprot->writeString((*_iter1327)); + xfer += oprot->writeString((*_iter1357)); } xfer += oprot->writeListEnd(); } @@ -22925,14 +23152,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 _size1358; + ::apache::thrift::protocol::TType _etype1361; + xfer += iprot->readListBegin(_etype1361, _size1358); + (*(this->success)).resize(_size1358); + uint32_t _i1362; + for (_i1362 = 0; _i1362 < _size1358; ++_i1362) { - xfer += iprot->readString((*(this->success))[_i1332]); + xfer += iprot->readString((*(this->success))[_i1362]); } xfer += iprot->readListEnd(); } @@ -26959,14 +27186,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 _size1363; + ::apache::thrift::protocol::TType _etype1366; + xfer += iprot->readListBegin(_etype1366, _size1363); + this->success.resize(_size1363); + uint32_t _i1367; + for (_i1367 = 0; _i1367 < _size1363; ++_i1367) { - xfer += iprot->readString(this->success[_i1337]); + xfer += iprot->readString(this->success[_i1367]); } xfer += iprot->readListEnd(); } @@ -27005,10 +27232,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 _iter1368; + for (_iter1368 = this->success.begin(); _iter1368 != this->success.end(); ++_iter1368) { - xfer += oprot->writeString((*_iter1338)); + xfer += oprot->writeString((*_iter1368)); } xfer += oprot->writeListEnd(); } @@ -27053,14 +27280,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 _size1369; + ::apache::thrift::protocol::TType _etype1372; + xfer += iprot->readListBegin(_etype1372, _size1369); + (*(this->success)).resize(_size1369); + uint32_t _i1373; + for (_i1373 = 0; _i1373 < _size1369; ++_i1373) { - xfer += iprot->readString((*(this->success))[_i1343]); + xfer += iprot->readString((*(this->success))[_i1373]); } xfer += iprot->readListEnd(); } @@ -28020,14 +28247,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 _size1374; + ::apache::thrift::protocol::TType _etype1377; + xfer += iprot->readListBegin(_etype1377, _size1374); + this->success.resize(_size1374); + uint32_t _i1378; + for (_i1378 = 0; _i1378 < _size1374; ++_i1378) { - xfer += iprot->readString(this->success[_i1348]); + xfer += iprot->readString(this->success[_i1378]); } xfer += iprot->readListEnd(); } @@ -28066,10 +28293,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 _iter1379; + for (_iter1379 = this->success.begin(); _iter1379 != this->success.end(); ++_iter1379) { - xfer += oprot->writeString((*_iter1349)); + xfer += oprot->writeString((*_iter1379)); } xfer += oprot->writeListEnd(); } @@ -28114,14 +28341,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 _size1380; + ::apache::thrift::protocol::TType _etype1383; + xfer += iprot->readListBegin(_etype1383, _size1380); + (*(this->success)).resize(_size1380); + uint32_t _i1384; + for (_i1384 = 0; _i1384 < _size1380; ++_i1384) { - xfer += iprot->readString((*(this->success))[_i1354]); + xfer += iprot->readString((*(this->success))[_i1384]); } xfer += iprot->readListEnd(); } @@ -28194,9 +28421,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 ecast1385; + xfer += iprot->readI32(ecast1385); + this->principal_type = (PrincipalType::type)ecast1385; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -28212,9 +28439,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 ecast1386; + xfer += iprot->readI32(ecast1386); + this->grantorType = (PrincipalType::type)ecast1386; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -28485,9 +28712,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 ecast1387; + xfer += iprot->readI32(ecast1387); + this->principal_type = (PrincipalType::type)ecast1387; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -28718,9 +28945,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 ecast1388; + xfer += iprot->readI32(ecast1388); + this->principal_type = (PrincipalType::type)ecast1388; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -28809,14 +29036,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 _size1389; + ::apache::thrift::protocol::TType _etype1392; + xfer += iprot->readListBegin(_etype1392, _size1389); + this->success.resize(_size1389); + uint32_t _i1393; + for (_i1393 = 0; _i1393 < _size1389; ++_i1393) { - xfer += this->success[_i1363].read(iprot); + xfer += this->success[_i1393].read(iprot); } xfer += iprot->readListEnd(); } @@ -28855,10 +29082,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 _iter1394; + for (_iter1394 = this->success.begin(); _iter1394 != this->success.end(); ++_iter1394) { - xfer += (*_iter1364).write(oprot); + xfer += (*_iter1394).write(oprot); } xfer += oprot->writeListEnd(); } @@ -28903,14 +29130,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 _size1395; + ::apache::thrift::protocol::TType _etype1398; + xfer += iprot->readListBegin(_etype1398, _size1395); + (*(this->success)).resize(_size1395); + uint32_t _i1399; + for (_i1399 = 0; _i1399 < _size1395; ++_i1399) { - xfer += (*(this->success))[_i1369].read(iprot); + xfer += (*(this->success))[_i1399].read(iprot); } xfer += iprot->readListEnd(); } @@ -29606,14 +29833,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 _size1400; + ::apache::thrift::protocol::TType _etype1403; + xfer += iprot->readListBegin(_etype1403, _size1400); + this->group_names.resize(_size1400); + uint32_t _i1404; + for (_i1404 = 0; _i1404 < _size1400; ++_i1404) { - xfer += iprot->readString(this->group_names[_i1374]); + xfer += iprot->readString(this->group_names[_i1404]); } xfer += iprot->readListEnd(); } @@ -29650,10 +29877,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 _iter1405; + for (_iter1405 = this->group_names.begin(); _iter1405 != this->group_names.end(); ++_iter1405) { - xfer += oprot->writeString((*_iter1375)); + xfer += oprot->writeString((*_iter1405)); } xfer += oprot->writeListEnd(); } @@ -29685,10 +29912,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 _iter1406; + for (_iter1406 = (*(this->group_names)).begin(); _iter1406 != (*(this->group_names)).end(); ++_iter1406) { - xfer += oprot->writeString((*_iter1376)); + xfer += oprot->writeString((*_iter1406)); } xfer += oprot->writeListEnd(); } @@ -29863,9 +30090,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 ecast1407; + xfer += iprot->readI32(ecast1407); + this->principal_type = (PrincipalType::type)ecast1407; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -29970,14 +30197,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 _size1408; + ::apache::thrift::protocol::TType _etype1411; + xfer += iprot->readListBegin(_etype1411, _size1408); + this->success.resize(_size1408); + uint32_t _i1412; + for (_i1412 = 0; _i1412 < _size1408; ++_i1412) { - xfer += this->success[_i1382].read(iprot); + xfer += this->success[_i1412].read(iprot); } xfer += iprot->readListEnd(); } @@ -30016,10 +30243,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 _iter1413; + for (_iter1413 = this->success.begin(); _iter1413 != this->success.end(); ++_iter1413) { - xfer += (*_iter1383).write(oprot); + xfer += (*_iter1413).write(oprot); } xfer += oprot->writeListEnd(); } @@ -30064,14 +30291,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 _size1414; + ::apache::thrift::protocol::TType _etype1417; + xfer += iprot->readListBegin(_etype1417, _size1414); + (*(this->success)).resize(_size1414); + uint32_t _i1418; + for (_i1418 = 0; _i1418 < _size1414; ++_i1418) { - xfer += (*(this->success))[_i1388].read(iprot); + xfer += (*(this->success))[_i1418].read(iprot); } xfer += iprot->readListEnd(); } @@ -30759,14 +30986,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 _size1419; + ::apache::thrift::protocol::TType _etype1422; + xfer += iprot->readListBegin(_etype1422, _size1419); + this->group_names.resize(_size1419); + uint32_t _i1423; + for (_i1423 = 0; _i1423 < _size1419; ++_i1423) { - xfer += iprot->readString(this->group_names[_i1393]); + xfer += iprot->readString(this->group_names[_i1423]); } xfer += iprot->readListEnd(); } @@ -30799,10 +31026,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 _iter1424; + for (_iter1424 = this->group_names.begin(); _iter1424 != this->group_names.end(); ++_iter1424) { - xfer += oprot->writeString((*_iter1394)); + xfer += oprot->writeString((*_iter1424)); } xfer += oprot->writeListEnd(); } @@ -30830,10 +31057,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 _iter1425; + for (_iter1425 = (*(this->group_names)).begin(); _iter1425 != (*(this->group_names)).end(); ++_iter1425) { - xfer += oprot->writeString((*_iter1395)); + xfer += oprot->writeString((*_iter1425)); } xfer += oprot->writeListEnd(); } @@ -30874,14 +31101,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 _size1426; + ::apache::thrift::protocol::TType _etype1429; + xfer += iprot->readListBegin(_etype1429, _size1426); + this->success.resize(_size1426); + uint32_t _i1430; + for (_i1430 = 0; _i1430 < _size1426; ++_i1430) { - xfer += iprot->readString(this->success[_i1400]); + xfer += iprot->readString(this->success[_i1430]); } xfer += iprot->readListEnd(); } @@ -30920,10 +31147,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 _iter1431; + for (_iter1431 = this->success.begin(); _iter1431 != this->success.end(); ++_iter1431) { - xfer += oprot->writeString((*_iter1401)); + xfer += oprot->writeString((*_iter1431)); } xfer += oprot->writeListEnd(); } @@ -30968,14 +31195,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 _size1432; + ::apache::thrift::protocol::TType _etype1435; + xfer += iprot->readListBegin(_etype1435, _size1432); + (*(this->success)).resize(_size1432); + uint32_t _i1436; + for (_i1436 = 0; _i1436 < _size1432; ++_i1436) { - xfer += iprot->readString((*(this->success))[_i1406]); + xfer += iprot->readString((*(this->success))[_i1436]); } xfer += iprot->readListEnd(); } @@ -32286,14 +32513,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 _size1437; + ::apache::thrift::protocol::TType _etype1440; + xfer += iprot->readListBegin(_etype1440, _size1437); + this->success.resize(_size1437); + uint32_t _i1441; + for (_i1441 = 0; _i1441 < _size1437; ++_i1441) { - xfer += iprot->readString(this->success[_i1411]); + xfer += iprot->readString(this->success[_i1441]); } xfer += iprot->readListEnd(); } @@ -32324,10 +32551,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 _iter1442; + for (_iter1442 = this->success.begin(); _iter1442 != this->success.end(); ++_iter1442) { - xfer += oprot->writeString((*_iter1412)); + xfer += oprot->writeString((*_iter1442)); } xfer += oprot->writeListEnd(); } @@ -32368,14 +32595,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 _size1443; + ::apache::thrift::protocol::TType _etype1446; + xfer += iprot->readListBegin(_etype1446, _size1443); + (*(this->success)).resize(_size1443); + uint32_t _i1447; + for (_i1447 = 0; _i1447 < _size1443; ++_i1447) { - xfer += iprot->readString((*(this->success))[_i1417]); + xfer += iprot->readString((*(this->success))[_i1447]); } xfer += iprot->readListEnd(); } @@ -33101,14 +33328,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 _size1448; + ::apache::thrift::protocol::TType _etype1451; + xfer += iprot->readListBegin(_etype1451, _size1448); + this->success.resize(_size1448); + uint32_t _i1452; + for (_i1452 = 0; _i1452 < _size1448; ++_i1452) { - xfer += iprot->readString(this->success[_i1422]); + xfer += iprot->readString(this->success[_i1452]); } xfer += iprot->readListEnd(); } @@ -33139,10 +33366,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 _iter1453; + for (_iter1453 = this->success.begin(); _iter1453 != this->success.end(); ++_iter1453) { - xfer += oprot->writeString((*_iter1423)); + xfer += oprot->writeString((*_iter1453)); } xfer += oprot->writeListEnd(); } @@ -33183,14 +33410,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 _size1454; + ::apache::thrift::protocol::TType _etype1457; + xfer += iprot->readListBegin(_etype1457, _size1454); + (*(this->success)).resize(_size1454); + uint32_t _i1458; + for (_i1458 = 0; _i1458 < _size1454; ++_i1458) { - xfer += iprot->readString((*(this->success))[_i1428]); + xfer += iprot->readString((*(this->success))[_i1458]); } xfer += iprot->readListEnd(); } @@ -41774,6 +42001,70 @@ void ThriftHiveMetastoreClient::recv_get_partition_names(std::vectorwriteMessageBegin("get_partition_values", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_partition_values_pargs args; + args.request = &request; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_partition_values(PartitionValuesResponse& _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("get_partition_values") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_partition_values_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.o1) { + throw result.o1; + } + if (result.__isset.o2) { + throw result.o2; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_values failed: unknown result"); +} + void ThriftHiveMetastoreClient::get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) { send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts); @@ -51210,6 +51501,66 @@ void ThriftHiveMetastoreProcessor::process_get_partition_names(int32_t seqid, :: } } +void ThriftHiveMetastoreProcessor::process_get_partition_values(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("ThriftHiveMetastore.get_partition_values", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_partition_values"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_partition_values"); + } + + ThriftHiveMetastore_get_partition_values_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_partition_values", bytes); + } + + ThriftHiveMetastore_get_partition_values_result result; + try { + iface_->get_partition_values(result.success, args.request); + result.__isset.success = true; + } catch (MetaException &o1) { + result.o1 = o1; + result.__isset.o1 = true; + } catch (NoSuchObjectException &o2) { + result.o2 = o2; + result.__isset.o2 = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_partition_values"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_partition_values", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_partition_values"); + } + + oprot->writeMessageBegin("get_partition_values", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_partition_values", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_get_partitions_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -62183,6 +62534,98 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_partition_names(std::vectorsync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("get_partition_values", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_partition_values_pargs args; + args.request = &request; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_get_partition_values(PartitionValuesResponse& _return, const int32_t seqid) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + // the read mutex gets dropped and reacquired as part of waitForWork() + // The destructor of this sentry wakes up other clients + ::apache::thrift::async::TConcurrentRecvSentry sentry(&this->sync_, seqid); + + while(true) { + if(!this->sync_.getPending(fname, mtype, rseqid)) { + iprot_->readMessageBegin(fname, mtype, rseqid); + } + if(seqid == rseqid) { + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + sentry.commit(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("get_partition_values") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + // in a bad state, don't commit + using ::apache::thrift::protocol::TProtocolException; + throw TProtocolException(TProtocolException::INVALID_DATA); + } + ThriftHiveMetastore_get_partition_values_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + sentry.commit(); + return; + } + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } + if (result.__isset.o2) { + sentry.commit(); + throw result.o2; + } + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_values 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_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) { int32_t seqid = send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts); diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index fca5ae5..43127b5 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -81,6 +81,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void get_partitions_with_auth(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts, const std::string& user_name, const std::vector & group_names) = 0; virtual void get_partitions_pspec(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int32_t max_parts) = 0; virtual void get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) = 0; + virtual void get_partition_values(PartitionValuesResponse& _return, const PartitionValuesRequest& request) = 0; virtual void get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) = 0; virtual void get_partitions_ps_with_auth(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts, const std::string& user_name, const std::vector & group_names) = 0; virtual void get_partition_names_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) = 0; @@ -389,6 +390,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void get_partition_names(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const int16_t /* max_parts */) { return; } + void get_partition_values(PartitionValuesResponse& /* _return */, const PartitionValuesRequest& /* request */) { + return; + } void get_partitions_ps(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */, const int16_t /* max_parts */) { return; } @@ -8371,6 +8375,126 @@ class ThriftHiveMetastore_get_partition_names_presult { }; +typedef struct _ThriftHiveMetastore_get_partition_values_args__isset { + _ThriftHiveMetastore_get_partition_values_args__isset() : request(false) {} + bool request :1; +} _ThriftHiveMetastore_get_partition_values_args__isset; + +class ThriftHiveMetastore_get_partition_values_args { + public: + + ThriftHiveMetastore_get_partition_values_args(const ThriftHiveMetastore_get_partition_values_args&); + ThriftHiveMetastore_get_partition_values_args& operator=(const ThriftHiveMetastore_get_partition_values_args&); + ThriftHiveMetastore_get_partition_values_args() { + } + + virtual ~ThriftHiveMetastore_get_partition_values_args() throw(); + PartitionValuesRequest request; + + _ThriftHiveMetastore_get_partition_values_args__isset __isset; + + void __set_request(const PartitionValuesRequest& val); + + bool operator == (const ThriftHiveMetastore_get_partition_values_args & rhs) const + { + if (!(request == rhs.request)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_partition_values_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_partition_values_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_partition_values_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_partition_values_pargs() throw(); + const PartitionValuesRequest* request; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_partition_values_result__isset { + _ThriftHiveMetastore_get_partition_values_result__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_partition_values_result__isset; + +class ThriftHiveMetastore_get_partition_values_result { + public: + + ThriftHiveMetastore_get_partition_values_result(const ThriftHiveMetastore_get_partition_values_result&); + ThriftHiveMetastore_get_partition_values_result& operator=(const ThriftHiveMetastore_get_partition_values_result&); + ThriftHiveMetastore_get_partition_values_result() { + } + + virtual ~ThriftHiveMetastore_get_partition_values_result() throw(); + PartitionValuesResponse success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_partition_values_result__isset __isset; + + void __set_success(const PartitionValuesResponse& val); + + void __set_o1(const MetaException& val); + + void __set_o2(const NoSuchObjectException& val); + + bool operator == (const ThriftHiveMetastore_get_partition_values_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_partition_values_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_partition_values_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_partition_values_presult__isset { + _ThriftHiveMetastore_get_partition_values_presult__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_partition_values_presult__isset; + +class ThriftHiveMetastore_get_partition_values_presult { + public: + + + virtual ~ThriftHiveMetastore_get_partition_values_presult() throw(); + PartitionValuesResponse* success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_partition_values_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_get_partitions_ps_args__isset { _ThriftHiveMetastore_get_partitions_ps_args__isset() : db_name(false), tbl_name(false), part_vals(false), max_parts(true) {} bool db_name :1; @@ -19789,6 +19913,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts); void send_get_partition_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts); void recv_get_partition_names(std::vector & _return); + void get_partition_values(PartitionValuesResponse& _return, const PartitionValuesRequest& request); + void send_get_partition_values(const PartitionValuesRequest& request); + void recv_get_partition_values(PartitionValuesResponse& _return); void get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts); void send_get_partitions_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts); void recv_get_partitions_ps(std::vector & _return); @@ -20140,6 +20267,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_get_partitions_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partitions_pspec(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partition_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_partition_values(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partitions_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partitions_ps_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partition_names_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -20297,6 +20425,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["get_partitions_with_auth"] = &ThriftHiveMetastoreProcessor::process_get_partitions_with_auth; processMap_["get_partitions_pspec"] = &ThriftHiveMetastoreProcessor::process_get_partitions_pspec; processMap_["get_partition_names"] = &ThriftHiveMetastoreProcessor::process_get_partition_names; + processMap_["get_partition_values"] = &ThriftHiveMetastoreProcessor::process_get_partition_values; processMap_["get_partitions_ps"] = &ThriftHiveMetastoreProcessor::process_get_partitions_ps; processMap_["get_partitions_ps_with_auth"] = &ThriftHiveMetastoreProcessor::process_get_partitions_ps_with_auth; processMap_["get_partition_names_ps"] = &ThriftHiveMetastoreProcessor::process_get_partition_names_ps; @@ -20991,6 +21120,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void get_partition_values(PartitionValuesResponse& _return, const PartitionValuesRequest& request) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_partition_values(_return, request); + } + ifaces_[i]->get_partition_values(_return, request); + return; + } + void get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) { size_t sz = ifaces_.size(); size_t i = 0; @@ -22084,6 +22223,9 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts); int32_t send_get_partition_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts); void recv_get_partition_names(std::vector & _return, const int32_t seqid); + void get_partition_values(PartitionValuesResponse& _return, const PartitionValuesRequest& request); + int32_t send_get_partition_values(const PartitionValuesRequest& request); + void recv_get_partition_values(PartitionValuesResponse& _return, const int32_t seqid); void get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts); int32_t send_get_partitions_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts); void recv_get_partitions_ps(std::vector & _return, 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..62b86e4 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -317,6 +317,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("get_partition_names\n"); } + void get_partition_values(PartitionValuesResponse& _return, const PartitionValuesRequest& request) { + // Your implementation goes here + printf("get_partition_values\n"); + } + void get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) { // Your implementation goes here printf("get_partitions_ps\n"); diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index be8429e..ed847cd 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -11216,6 +11216,503 @@ void DropPartitionsRequest::printTo(std::ostream& out) const { } +PartitionValuesRequest::~PartitionValuesRequest() throw() { +} + + +void PartitionValuesRequest::__set_dbName(const std::string& val) { + this->dbName = val; +} + +void PartitionValuesRequest::__set_tblName(const std::string& val) { + this->tblName = val; +} + +void PartitionValuesRequest::__set_partitionKeys(const std::vector & val) { + this->partitionKeys = val; +} + +void PartitionValuesRequest::__set_applyDistinct(const bool val) { + this->applyDistinct = val; +__isset.applyDistinct = true; +} + +void PartitionValuesRequest::__set_filter(const std::string& val) { + this->filter = val; +__isset.filter = true; +} + +void PartitionValuesRequest::__set_partitionOrder(const std::vector & val) { + this->partitionOrder = val; +__isset.partitionOrder = true; +} + +void PartitionValuesRequest::__set_ascending(const bool val) { + this->ascending = val; +__isset.ascending = true; +} + +void PartitionValuesRequest::__set_maxParts(const int64_t val) { + this->maxParts = val; +__isset.maxParts = true; +} + +uint32_t PartitionValuesRequest::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; + + bool isset_dbName = false; + bool isset_tblName = false; + bool isset_partitionKeys = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dbName); + isset_dbName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tblName); + isset_tblName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitionKeys.clear(); + uint32_t _size493; + ::apache::thrift::protocol::TType _etype496; + xfer += iprot->readListBegin(_etype496, _size493); + this->partitionKeys.resize(_size493); + uint32_t _i497; + for (_i497 = 0; _i497 < _size493; ++_i497) + { + xfer += this->partitionKeys[_i497].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_partitionKeys = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->applyDistinct); + this->__isset.applyDistinct = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->filter); + this->__isset.filter = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->partitionOrder.clear(); + uint32_t _size498; + ::apache::thrift::protocol::TType _etype501; + xfer += iprot->readListBegin(_etype501, _size498); + this->partitionOrder.resize(_size498); + uint32_t _i502; + for (_i502 = 0; _i502 < _size498; ++_i502) + { + xfer += this->partitionOrder[_i502].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.partitionOrder = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->ascending); + this->__isset.ascending = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->maxParts); + this->__isset.maxParts = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_dbName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_tblName) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_partitionKeys) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t PartitionValuesRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("PartitionValuesRequest"); + + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dbName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tblName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tblName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("partitionKeys", ::apache::thrift::protocol::T_LIST, 3); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionKeys.size())); + std::vector ::const_iterator _iter503; + for (_iter503 = this->partitionKeys.begin(); _iter503 != this->partitionKeys.end(); ++_iter503) + { + xfer += (*_iter503).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + if (this->__isset.applyDistinct) { + xfer += oprot->writeFieldBegin("applyDistinct", ::apache::thrift::protocol::T_BOOL, 4); + xfer += oprot->writeBool(this->applyDistinct); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.filter) { + xfer += oprot->writeFieldBegin("filter", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->filter); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.partitionOrder) { + xfer += oprot->writeFieldBegin("partitionOrder", ::apache::thrift::protocol::T_LIST, 6); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionOrder.size())); + std::vector ::const_iterator _iter504; + for (_iter504 = this->partitionOrder.begin(); _iter504 != this->partitionOrder.end(); ++_iter504) + { + xfer += (*_iter504).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.ascending) { + xfer += oprot->writeFieldBegin("ascending", ::apache::thrift::protocol::T_BOOL, 7); + xfer += oprot->writeBool(this->ascending); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.maxParts) { + xfer += oprot->writeFieldBegin("maxParts", ::apache::thrift::protocol::T_I64, 8); + xfer += oprot->writeI64(this->maxParts); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(PartitionValuesRequest &a, PartitionValuesRequest &b) { + using ::std::swap; + swap(a.dbName, b.dbName); + swap(a.tblName, b.tblName); + swap(a.partitionKeys, b.partitionKeys); + swap(a.applyDistinct, b.applyDistinct); + swap(a.filter, b.filter); + swap(a.partitionOrder, b.partitionOrder); + swap(a.ascending, b.ascending); + swap(a.maxParts, b.maxParts); + swap(a.__isset, b.__isset); +} + +PartitionValuesRequest::PartitionValuesRequest(const PartitionValuesRequest& other505) { + dbName = other505.dbName; + tblName = other505.tblName; + partitionKeys = other505.partitionKeys; + applyDistinct = other505.applyDistinct; + filter = other505.filter; + partitionOrder = other505.partitionOrder; + ascending = other505.ascending; + maxParts = other505.maxParts; + __isset = other505.__isset; +} +PartitionValuesRequest& PartitionValuesRequest::operator=(const PartitionValuesRequest& other506) { + dbName = other506.dbName; + tblName = other506.tblName; + partitionKeys = other506.partitionKeys; + applyDistinct = other506.applyDistinct; + filter = other506.filter; + partitionOrder = other506.partitionOrder; + ascending = other506.ascending; + maxParts = other506.maxParts; + __isset = other506.__isset; + return *this; +} +void PartitionValuesRequest::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "PartitionValuesRequest("; + out << "dbName=" << to_string(dbName); + out << ", " << "tblName=" << to_string(tblName); + out << ", " << "partitionKeys=" << to_string(partitionKeys); + out << ", " << "applyDistinct="; (__isset.applyDistinct ? (out << to_string(applyDistinct)) : (out << "")); + out << ", " << "filter="; (__isset.filter ? (out << to_string(filter)) : (out << "")); + out << ", " << "partitionOrder="; (__isset.partitionOrder ? (out << to_string(partitionOrder)) : (out << "")); + out << ", " << "ascending="; (__isset.ascending ? (out << to_string(ascending)) : (out << "")); + out << ", " << "maxParts="; (__isset.maxParts ? (out << to_string(maxParts)) : (out << "")); + out << ")"; +} + + +PartitionValuesRow::~PartitionValuesRow() throw() { +} + + +void PartitionValuesRow::__set_row(const std::vector & val) { + this->row = val; +} + +uint32_t PartitionValuesRow::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; + + bool isset_row = false; + + 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_LIST) { + { + this->row.clear(); + uint32_t _size507; + ::apache::thrift::protocol::TType _etype510; + xfer += iprot->readListBegin(_etype510, _size507); + this->row.resize(_size507); + uint32_t _i511; + for (_i511 = 0; _i511 < _size507; ++_i511) + { + xfer += iprot->readString(this->row[_i511]); + } + xfer += iprot->readListEnd(); + } + isset_row = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_row) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t PartitionValuesRow::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("PartitionValuesRow"); + + xfer += oprot->writeFieldBegin("row", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->row.size())); + std::vector ::const_iterator _iter512; + for (_iter512 = this->row.begin(); _iter512 != this->row.end(); ++_iter512) + { + xfer += oprot->writeString((*_iter512)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(PartitionValuesRow &a, PartitionValuesRow &b) { + using ::std::swap; + swap(a.row, b.row); +} + +PartitionValuesRow::PartitionValuesRow(const PartitionValuesRow& other513) { + row = other513.row; +} +PartitionValuesRow& PartitionValuesRow::operator=(const PartitionValuesRow& other514) { + row = other514.row; + return *this; +} +void PartitionValuesRow::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "PartitionValuesRow("; + out << "row=" << to_string(row); + out << ")"; +} + + +PartitionValuesResponse::~PartitionValuesResponse() throw() { +} + + +void PartitionValuesResponse::__set_partitionValues(const std::vector & val) { + this->partitionValues = val; +} + +uint32_t PartitionValuesResponse::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; + + bool isset_partitionValues = false; + + 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_LIST) { + { + this->partitionValues.clear(); + uint32_t _size515; + ::apache::thrift::protocol::TType _etype518; + xfer += iprot->readListBegin(_etype518, _size515); + this->partitionValues.resize(_size515); + uint32_t _i519; + for (_i519 = 0; _i519 < _size515; ++_i519) + { + xfer += this->partitionValues[_i519].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_partitionValues = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_partitionValues) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t PartitionValuesResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("PartitionValuesResponse"); + + xfer += oprot->writeFieldBegin("partitionValues", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionValues.size())); + std::vector ::const_iterator _iter520; + for (_iter520 = this->partitionValues.begin(); _iter520 != this->partitionValues.end(); ++_iter520) + { + xfer += (*_iter520).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(PartitionValuesResponse &a, PartitionValuesResponse &b) { + using ::std::swap; + swap(a.partitionValues, b.partitionValues); +} + +PartitionValuesResponse::PartitionValuesResponse(const PartitionValuesResponse& other521) { + partitionValues = other521.partitionValues; +} +PartitionValuesResponse& PartitionValuesResponse::operator=(const PartitionValuesResponse& other522) { + partitionValues = other522.partitionValues; + return *this; +} +void PartitionValuesResponse::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "PartitionValuesResponse("; + out << "partitionValues=" << to_string(partitionValues); + out << ")"; +} + + ResourceUri::~ResourceUri() throw() { } @@ -11251,9 +11748,9 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast493; - xfer += iprot->readI32(ecast493); - this->resourceType = (ResourceType::type)ecast493; + int32_t ecast523; + xfer += iprot->readI32(ecast523); + this->resourceType = (ResourceType::type)ecast523; this->__isset.resourceType = true; } else { xfer += iprot->skip(ftype); @@ -11304,15 +11801,15 @@ void swap(ResourceUri &a, ResourceUri &b) { swap(a.__isset, b.__isset); } -ResourceUri::ResourceUri(const ResourceUri& other494) { - resourceType = other494.resourceType; - uri = other494.uri; - __isset = other494.__isset; +ResourceUri::ResourceUri(const ResourceUri& other524) { + resourceType = other524.resourceType; + uri = other524.uri; + __isset = other524.__isset; } -ResourceUri& ResourceUri::operator=(const ResourceUri& other495) { - resourceType = other495.resourceType; - uri = other495.uri; - __isset = other495.__isset; +ResourceUri& ResourceUri::operator=(const ResourceUri& other525) { + resourceType = other525.resourceType; + uri = other525.uri; + __isset = other525.__isset; return *this; } void ResourceUri::printTo(std::ostream& out) const { @@ -11415,9 +11912,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast496; - xfer += iprot->readI32(ecast496); - this->ownerType = (PrincipalType::type)ecast496; + int32_t ecast526; + xfer += iprot->readI32(ecast526); + this->ownerType = (PrincipalType::type)ecast526; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -11433,9 +11930,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast497; - xfer += iprot->readI32(ecast497); - this->functionType = (FunctionType::type)ecast497; + int32_t ecast527; + xfer += iprot->readI32(ecast527); + this->functionType = (FunctionType::type)ecast527; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); @@ -11445,14 +11942,14 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourceUris.clear(); - uint32_t _size498; - ::apache::thrift::protocol::TType _etype501; - xfer += iprot->readListBegin(_etype501, _size498); - this->resourceUris.resize(_size498); - uint32_t _i502; - for (_i502 = 0; _i502 < _size498; ++_i502) + uint32_t _size528; + ::apache::thrift::protocol::TType _etype531; + xfer += iprot->readListBegin(_etype531, _size528); + this->resourceUris.resize(_size528); + uint32_t _i532; + for (_i532 = 0; _i532 < _size528; ++_i532) { - xfer += this->resourceUris[_i502].read(iprot); + xfer += this->resourceUris[_i532].read(iprot); } xfer += iprot->readListEnd(); } @@ -11509,10 +12006,10 @@ uint32_t Function::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("resourceUris", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->resourceUris.size())); - std::vector ::const_iterator _iter503; - for (_iter503 = this->resourceUris.begin(); _iter503 != this->resourceUris.end(); ++_iter503) + std::vector ::const_iterator _iter533; + for (_iter533 = this->resourceUris.begin(); _iter533 != this->resourceUris.end(); ++_iter533) { - xfer += (*_iter503).write(oprot); + xfer += (*_iter533).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11536,27 +12033,27 @@ void swap(Function &a, Function &b) { swap(a.__isset, b.__isset); } -Function::Function(const Function& other504) { - functionName = other504.functionName; - dbName = other504.dbName; - className = other504.className; - ownerName = other504.ownerName; - ownerType = other504.ownerType; - createTime = other504.createTime; - functionType = other504.functionType; - resourceUris = other504.resourceUris; - __isset = other504.__isset; -} -Function& Function::operator=(const Function& other505) { - functionName = other505.functionName; - dbName = other505.dbName; - className = other505.className; - ownerName = other505.ownerName; - ownerType = other505.ownerType; - createTime = other505.createTime; - functionType = other505.functionType; - resourceUris = other505.resourceUris; - __isset = other505.__isset; +Function::Function(const Function& other534) { + functionName = other534.functionName; + dbName = other534.dbName; + className = other534.className; + ownerName = other534.ownerName; + ownerType = other534.ownerType; + createTime = other534.createTime; + functionType = other534.functionType; + resourceUris = other534.resourceUris; + __isset = other534.__isset; +} +Function& Function::operator=(const Function& other535) { + functionName = other535.functionName; + dbName = other535.dbName; + className = other535.className; + ownerName = other535.ownerName; + ownerType = other535.ownerType; + createTime = other535.createTime; + functionType = other535.functionType; + resourceUris = other535.resourceUris; + __isset = other535.__isset; return *this; } void Function::printTo(std::ostream& out) const { @@ -11654,9 +12151,9 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast506; - xfer += iprot->readI32(ecast506); - this->state = (TxnState::type)ecast506; + int32_t ecast536; + xfer += iprot->readI32(ecast536); + this->state = (TxnState::type)ecast536; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -11803,29 +12300,29 @@ void swap(TxnInfo &a, TxnInfo &b) { swap(a.__isset, b.__isset); } -TxnInfo::TxnInfo(const TxnInfo& other507) { - id = other507.id; - state = other507.state; - user = other507.user; - hostname = other507.hostname; - agentInfo = other507.agentInfo; - heartbeatCount = other507.heartbeatCount; - metaInfo = other507.metaInfo; - startedTime = other507.startedTime; - lastHeartbeatTime = other507.lastHeartbeatTime; - __isset = other507.__isset; -} -TxnInfo& TxnInfo::operator=(const TxnInfo& other508) { - id = other508.id; - state = other508.state; - user = other508.user; - hostname = other508.hostname; - agentInfo = other508.agentInfo; - heartbeatCount = other508.heartbeatCount; - metaInfo = other508.metaInfo; - startedTime = other508.startedTime; - lastHeartbeatTime = other508.lastHeartbeatTime; - __isset = other508.__isset; +TxnInfo::TxnInfo(const TxnInfo& other537) { + id = other537.id; + state = other537.state; + user = other537.user; + hostname = other537.hostname; + agentInfo = other537.agentInfo; + heartbeatCount = other537.heartbeatCount; + metaInfo = other537.metaInfo; + startedTime = other537.startedTime; + lastHeartbeatTime = other537.lastHeartbeatTime; + __isset = other537.__isset; +} +TxnInfo& TxnInfo::operator=(const TxnInfo& other538) { + id = other538.id; + state = other538.state; + user = other538.user; + hostname = other538.hostname; + agentInfo = other538.agentInfo; + heartbeatCount = other538.heartbeatCount; + metaInfo = other538.metaInfo; + startedTime = other538.startedTime; + lastHeartbeatTime = other538.lastHeartbeatTime; + __isset = other538.__isset; return *this; } void TxnInfo::printTo(std::ostream& out) const { @@ -11891,14 +12388,14 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size509; - ::apache::thrift::protocol::TType _etype512; - xfer += iprot->readListBegin(_etype512, _size509); - this->open_txns.resize(_size509); - uint32_t _i513; - for (_i513 = 0; _i513 < _size509; ++_i513) + uint32_t _size539; + ::apache::thrift::protocol::TType _etype542; + xfer += iprot->readListBegin(_etype542, _size539); + this->open_txns.resize(_size539); + uint32_t _i543; + for (_i543 = 0; _i543 < _size539; ++_i543) { - xfer += this->open_txns[_i513].read(iprot); + xfer += this->open_txns[_i543].read(iprot); } xfer += iprot->readListEnd(); } @@ -11935,10 +12432,10 @@ uint32_t GetOpenTxnsInfoResponse::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("open_txns", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->open_txns.size())); - std::vector ::const_iterator _iter514; - for (_iter514 = this->open_txns.begin(); _iter514 != this->open_txns.end(); ++_iter514) + std::vector ::const_iterator _iter544; + for (_iter544 = this->open_txns.begin(); _iter544 != this->open_txns.end(); ++_iter544) { - xfer += (*_iter514).write(oprot); + xfer += (*_iter544).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11955,13 +12452,13 @@ void swap(GetOpenTxnsInfoResponse &a, GetOpenTxnsInfoResponse &b) { swap(a.open_txns, b.open_txns); } -GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other515) { - txn_high_water_mark = other515.txn_high_water_mark; - open_txns = other515.open_txns; +GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other545) { + txn_high_water_mark = other545.txn_high_water_mark; + open_txns = other545.open_txns; } -GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other516) { - txn_high_water_mark = other516.txn_high_water_mark; - open_txns = other516.open_txns; +GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other546) { + txn_high_water_mark = other546.txn_high_water_mark; + open_txns = other546.open_txns; return *this; } void GetOpenTxnsInfoResponse::printTo(std::ostream& out) const { @@ -12025,15 +12522,15 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_SET) { { this->open_txns.clear(); - uint32_t _size517; - ::apache::thrift::protocol::TType _etype520; - xfer += iprot->readSetBegin(_etype520, _size517); - uint32_t _i521; - for (_i521 = 0; _i521 < _size517; ++_i521) + uint32_t _size547; + ::apache::thrift::protocol::TType _etype550; + xfer += iprot->readSetBegin(_etype550, _size547); + uint32_t _i551; + for (_i551 = 0; _i551 < _size547; ++_i551) { - int64_t _elem522; - xfer += iprot->readI64(_elem522); - this->open_txns.insert(_elem522); + int64_t _elem552; + xfer += iprot->readI64(_elem552); + this->open_txns.insert(_elem552); } xfer += iprot->readSetEnd(); } @@ -12078,10 +12575,10 @@ uint32_t GetOpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("open_txns", ::apache::thrift::protocol::T_SET, 2); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->open_txns.size())); - std::set ::const_iterator _iter523; - for (_iter523 = this->open_txns.begin(); _iter523 != this->open_txns.end(); ++_iter523) + std::set ::const_iterator _iter553; + for (_iter553 = this->open_txns.begin(); _iter553 != this->open_txns.end(); ++_iter553) { - xfer += oprot->writeI64((*_iter523)); + xfer += oprot->writeI64((*_iter553)); } xfer += oprot->writeSetEnd(); } @@ -12105,17 +12602,17 @@ void swap(GetOpenTxnsResponse &a, GetOpenTxnsResponse &b) { swap(a.__isset, b.__isset); } -GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other524) { - txn_high_water_mark = other524.txn_high_water_mark; - open_txns = other524.open_txns; - min_open_txn = other524.min_open_txn; - __isset = other524.__isset; +GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other554) { + txn_high_water_mark = other554.txn_high_water_mark; + open_txns = other554.open_txns; + min_open_txn = other554.min_open_txn; + __isset = other554.__isset; } -GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other525) { - txn_high_water_mark = other525.txn_high_water_mark; - open_txns = other525.open_txns; - min_open_txn = other525.min_open_txn; - __isset = other525.__isset; +GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other555) { + txn_high_water_mark = other555.txn_high_water_mark; + open_txns = other555.open_txns; + min_open_txn = other555.min_open_txn; + __isset = other555.__isset; return *this; } void GetOpenTxnsResponse::printTo(std::ostream& out) const { @@ -12259,19 +12756,19 @@ void swap(OpenTxnRequest &a, OpenTxnRequest &b) { swap(a.__isset, b.__isset); } -OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other526) { - num_txns = other526.num_txns; - user = other526.user; - hostname = other526.hostname; - agentInfo = other526.agentInfo; - __isset = other526.__isset; +OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other556) { + num_txns = other556.num_txns; + user = other556.user; + hostname = other556.hostname; + agentInfo = other556.agentInfo; + __isset = other556.__isset; } -OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other527) { - num_txns = other527.num_txns; - user = other527.user; - hostname = other527.hostname; - agentInfo = other527.agentInfo; - __isset = other527.__isset; +OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other557) { + num_txns = other557.num_txns; + user = other557.user; + hostname = other557.hostname; + agentInfo = other557.agentInfo; + __isset = other557.__isset; return *this; } void OpenTxnRequest::printTo(std::ostream& out) const { @@ -12319,14 +12816,14 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size528; - ::apache::thrift::protocol::TType _etype531; - xfer += iprot->readListBegin(_etype531, _size528); - this->txn_ids.resize(_size528); - uint32_t _i532; - for (_i532 = 0; _i532 < _size528; ++_i532) + uint32_t _size558; + ::apache::thrift::protocol::TType _etype561; + xfer += iprot->readListBegin(_etype561, _size558); + this->txn_ids.resize(_size558); + uint32_t _i562; + for (_i562 = 0; _i562 < _size558; ++_i562) { - xfer += iprot->readI64(this->txn_ids[_i532]); + xfer += iprot->readI64(this->txn_ids[_i562]); } xfer += iprot->readListEnd(); } @@ -12357,10 +12854,10 @@ uint32_t OpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("txn_ids", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->txn_ids.size())); - std::vector ::const_iterator _iter533; - for (_iter533 = this->txn_ids.begin(); _iter533 != this->txn_ids.end(); ++_iter533) + std::vector ::const_iterator _iter563; + for (_iter563 = this->txn_ids.begin(); _iter563 != this->txn_ids.end(); ++_iter563) { - xfer += oprot->writeI64((*_iter533)); + xfer += oprot->writeI64((*_iter563)); } xfer += oprot->writeListEnd(); } @@ -12376,11 +12873,11 @@ void swap(OpenTxnsResponse &a, OpenTxnsResponse &b) { swap(a.txn_ids, b.txn_ids); } -OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other534) { - txn_ids = other534.txn_ids; +OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other564) { + txn_ids = other564.txn_ids; } -OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other535) { - txn_ids = other535.txn_ids; +OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other565) { + txn_ids = other565.txn_ids; return *this; } void OpenTxnsResponse::printTo(std::ostream& out) const { @@ -12462,11 +12959,11 @@ void swap(AbortTxnRequest &a, AbortTxnRequest &b) { swap(a.txnid, b.txnid); } -AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other536) { - txnid = other536.txnid; +AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other566) { + txnid = other566.txnid; } -AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other537) { - txnid = other537.txnid; +AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other567) { + txnid = other567.txnid; return *this; } void AbortTxnRequest::printTo(std::ostream& out) const { @@ -12511,14 +13008,14 @@ uint32_t AbortTxnsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size538; - ::apache::thrift::protocol::TType _etype541; - xfer += iprot->readListBegin(_etype541, _size538); - this->txn_ids.resize(_size538); - uint32_t _i542; - for (_i542 = 0; _i542 < _size538; ++_i542) + uint32_t _size568; + ::apache::thrift::protocol::TType _etype571; + xfer += iprot->readListBegin(_etype571, _size568); + this->txn_ids.resize(_size568); + uint32_t _i572; + for (_i572 = 0; _i572 < _size568; ++_i572) { - xfer += iprot->readI64(this->txn_ids[_i542]); + xfer += iprot->readI64(this->txn_ids[_i572]); } xfer += iprot->readListEnd(); } @@ -12549,10 +13046,10 @@ uint32_t AbortTxnsRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("txn_ids", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->txn_ids.size())); - std::vector ::const_iterator _iter543; - for (_iter543 = this->txn_ids.begin(); _iter543 != this->txn_ids.end(); ++_iter543) + std::vector ::const_iterator _iter573; + for (_iter573 = this->txn_ids.begin(); _iter573 != this->txn_ids.end(); ++_iter573) { - xfer += oprot->writeI64((*_iter543)); + xfer += oprot->writeI64((*_iter573)); } xfer += oprot->writeListEnd(); } @@ -12568,11 +13065,11 @@ void swap(AbortTxnsRequest &a, AbortTxnsRequest &b) { swap(a.txn_ids, b.txn_ids); } -AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other544) { - txn_ids = other544.txn_ids; +AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other574) { + txn_ids = other574.txn_ids; } -AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other545) { - txn_ids = other545.txn_ids; +AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other575) { + txn_ids = other575.txn_ids; return *this; } void AbortTxnsRequest::printTo(std::ostream& out) const { @@ -12654,11 +13151,11 @@ void swap(CommitTxnRequest &a, CommitTxnRequest &b) { swap(a.txnid, b.txnid); } -CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other546) { - txnid = other546.txnid; +CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other576) { + txnid = other576.txnid; } -CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other547) { - txnid = other547.txnid; +CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other577) { + txnid = other577.txnid; return *this; } void CommitTxnRequest::printTo(std::ostream& out) const { @@ -12736,9 +13233,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast548; - xfer += iprot->readI32(ecast548); - this->type = (LockType::type)ecast548; + int32_t ecast578; + xfer += iprot->readI32(ecast578); + this->type = (LockType::type)ecast578; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -12746,9 +13243,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast549; - xfer += iprot->readI32(ecast549); - this->level = (LockLevel::type)ecast549; + int32_t ecast579; + xfer += iprot->readI32(ecast579); + this->level = (LockLevel::type)ecast579; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -12780,9 +13277,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast550; - xfer += iprot->readI32(ecast550); - this->operationType = (DataOperationType::type)ecast550; + int32_t ecast580; + xfer += iprot->readI32(ecast580); + this->operationType = (DataOperationType::type)ecast580; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -12882,27 +13379,27 @@ void swap(LockComponent &a, LockComponent &b) { swap(a.__isset, b.__isset); } -LockComponent::LockComponent(const LockComponent& other551) { - type = other551.type; - level = other551.level; - dbname = other551.dbname; - tablename = other551.tablename; - partitionname = other551.partitionname; - operationType = other551.operationType; - isAcid = other551.isAcid; - isDynamicPartitionWrite = other551.isDynamicPartitionWrite; - __isset = other551.__isset; -} -LockComponent& LockComponent::operator=(const LockComponent& other552) { - type = other552.type; - level = other552.level; - dbname = other552.dbname; - tablename = other552.tablename; - partitionname = other552.partitionname; - operationType = other552.operationType; - isAcid = other552.isAcid; - isDynamicPartitionWrite = other552.isDynamicPartitionWrite; - __isset = other552.__isset; +LockComponent::LockComponent(const LockComponent& other581) { + type = other581.type; + level = other581.level; + dbname = other581.dbname; + tablename = other581.tablename; + partitionname = other581.partitionname; + operationType = other581.operationType; + isAcid = other581.isAcid; + isDynamicPartitionWrite = other581.isDynamicPartitionWrite; + __isset = other581.__isset; +} +LockComponent& LockComponent::operator=(const LockComponent& other582) { + type = other582.type; + level = other582.level; + dbname = other582.dbname; + tablename = other582.tablename; + partitionname = other582.partitionname; + operationType = other582.operationType; + isAcid = other582.isAcid; + isDynamicPartitionWrite = other582.isDynamicPartitionWrite; + __isset = other582.__isset; return *this; } void LockComponent::printTo(std::ostream& out) const { @@ -12974,14 +13471,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->component.clear(); - uint32_t _size553; - ::apache::thrift::protocol::TType _etype556; - xfer += iprot->readListBegin(_etype556, _size553); - this->component.resize(_size553); - uint32_t _i557; - for (_i557 = 0; _i557 < _size553; ++_i557) + uint32_t _size583; + ::apache::thrift::protocol::TType _etype586; + xfer += iprot->readListBegin(_etype586, _size583); + this->component.resize(_size583); + uint32_t _i587; + for (_i587 = 0; _i587 < _size583; ++_i587) { - xfer += this->component[_i557].read(iprot); + xfer += this->component[_i587].read(iprot); } xfer += iprot->readListEnd(); } @@ -13048,10 +13545,10 @@ uint32_t LockRequest::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldBegin("component", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->component.size())); - std::vector ::const_iterator _iter558; - for (_iter558 = this->component.begin(); _iter558 != this->component.end(); ++_iter558) + std::vector ::const_iterator _iter588; + for (_iter588 = this->component.begin(); _iter588 != this->component.end(); ++_iter588) { - xfer += (*_iter558).write(oprot); + xfer += (*_iter588).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13090,21 +13587,21 @@ void swap(LockRequest &a, LockRequest &b) { swap(a.__isset, b.__isset); } -LockRequest::LockRequest(const LockRequest& other559) { - component = other559.component; - txnid = other559.txnid; - user = other559.user; - hostname = other559.hostname; - agentInfo = other559.agentInfo; - __isset = other559.__isset; -} -LockRequest& LockRequest::operator=(const LockRequest& other560) { - component = other560.component; - txnid = other560.txnid; - user = other560.user; - hostname = other560.hostname; - agentInfo = other560.agentInfo; - __isset = other560.__isset; +LockRequest::LockRequest(const LockRequest& other589) { + component = other589.component; + txnid = other589.txnid; + user = other589.user; + hostname = other589.hostname; + agentInfo = other589.agentInfo; + __isset = other589.__isset; +} +LockRequest& LockRequest::operator=(const LockRequest& other590) { + component = other590.component; + txnid = other590.txnid; + user = other590.user; + hostname = other590.hostname; + agentInfo = other590.agentInfo; + __isset = other590.__isset; return *this; } void LockRequest::printTo(std::ostream& out) const { @@ -13164,9 +13661,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast561; - xfer += iprot->readI32(ecast561); - this->state = (LockState::type)ecast561; + int32_t ecast591; + xfer += iprot->readI32(ecast591); + this->state = (LockState::type)ecast591; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -13212,13 +13709,13 @@ void swap(LockResponse &a, LockResponse &b) { swap(a.state, b.state); } -LockResponse::LockResponse(const LockResponse& other562) { - lockid = other562.lockid; - state = other562.state; +LockResponse::LockResponse(const LockResponse& other592) { + lockid = other592.lockid; + state = other592.state; } -LockResponse& LockResponse::operator=(const LockResponse& other563) { - lockid = other563.lockid; - state = other563.state; +LockResponse& LockResponse::operator=(const LockResponse& other593) { + lockid = other593.lockid; + state = other593.state; return *this; } void LockResponse::printTo(std::ostream& out) const { @@ -13340,17 +13837,17 @@ void swap(CheckLockRequest &a, CheckLockRequest &b) { swap(a.__isset, b.__isset); } -CheckLockRequest::CheckLockRequest(const CheckLockRequest& other564) { - lockid = other564.lockid; - txnid = other564.txnid; - elapsed_ms = other564.elapsed_ms; - __isset = other564.__isset; +CheckLockRequest::CheckLockRequest(const CheckLockRequest& other594) { + lockid = other594.lockid; + txnid = other594.txnid; + elapsed_ms = other594.elapsed_ms; + __isset = other594.__isset; } -CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other565) { - lockid = other565.lockid; - txnid = other565.txnid; - elapsed_ms = other565.elapsed_ms; - __isset = other565.__isset; +CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other595) { + lockid = other595.lockid; + txnid = other595.txnid; + elapsed_ms = other595.elapsed_ms; + __isset = other595.__isset; return *this; } void CheckLockRequest::printTo(std::ostream& out) const { @@ -13434,11 +13931,11 @@ void swap(UnlockRequest &a, UnlockRequest &b) { swap(a.lockid, b.lockid); } -UnlockRequest::UnlockRequest(const UnlockRequest& other566) { - lockid = other566.lockid; +UnlockRequest::UnlockRequest(const UnlockRequest& other596) { + lockid = other596.lockid; } -UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other567) { - lockid = other567.lockid; +UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other597) { + lockid = other597.lockid; return *this; } void UnlockRequest::printTo(std::ostream& out) const { @@ -13577,19 +14074,19 @@ void swap(ShowLocksRequest &a, ShowLocksRequest &b) { swap(a.__isset, b.__isset); } -ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other568) { - dbname = other568.dbname; - tablename = other568.tablename; - partname = other568.partname; - isExtended = other568.isExtended; - __isset = other568.__isset; +ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other598) { + dbname = other598.dbname; + tablename = other598.tablename; + partname = other598.partname; + isExtended = other598.isExtended; + __isset = other598.__isset; } -ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other569) { - dbname = other569.dbname; - tablename = other569.tablename; - partname = other569.partname; - isExtended = other569.isExtended; - __isset = other569.__isset; +ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other599) { + dbname = other599.dbname; + tablename = other599.tablename; + partname = other599.partname; + isExtended = other599.isExtended; + __isset = other599.__isset; return *this; } void ShowLocksRequest::printTo(std::ostream& out) const { @@ -13742,9 +14239,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast570; - xfer += iprot->readI32(ecast570); - this->state = (LockState::type)ecast570; + int32_t ecast600; + xfer += iprot->readI32(ecast600); + this->state = (LockState::type)ecast600; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -13752,9 +14249,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast571; - xfer += iprot->readI32(ecast571); - this->type = (LockType::type)ecast571; + int32_t ecast601; + xfer += iprot->readI32(ecast601); + this->type = (LockType::type)ecast601; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -13970,43 +14467,43 @@ void swap(ShowLocksResponseElement &a, ShowLocksResponseElement &b) { swap(a.__isset, b.__isset); } -ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other572) { - lockid = other572.lockid; - dbname = other572.dbname; - tablename = other572.tablename; - partname = other572.partname; - state = other572.state; - type = other572.type; - txnid = other572.txnid; - lastheartbeat = other572.lastheartbeat; - acquiredat = other572.acquiredat; - user = other572.user; - hostname = other572.hostname; - heartbeatCount = other572.heartbeatCount; - agentInfo = other572.agentInfo; - blockedByExtId = other572.blockedByExtId; - blockedByIntId = other572.blockedByIntId; - lockIdInternal = other572.lockIdInternal; - __isset = other572.__isset; -} -ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other573) { - lockid = other573.lockid; - dbname = other573.dbname; - tablename = other573.tablename; - partname = other573.partname; - state = other573.state; - type = other573.type; - txnid = other573.txnid; - lastheartbeat = other573.lastheartbeat; - acquiredat = other573.acquiredat; - user = other573.user; - hostname = other573.hostname; - heartbeatCount = other573.heartbeatCount; - agentInfo = other573.agentInfo; - blockedByExtId = other573.blockedByExtId; - blockedByIntId = other573.blockedByIntId; - lockIdInternal = other573.lockIdInternal; - __isset = other573.__isset; +ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other602) { + lockid = other602.lockid; + dbname = other602.dbname; + tablename = other602.tablename; + partname = other602.partname; + state = other602.state; + type = other602.type; + txnid = other602.txnid; + lastheartbeat = other602.lastheartbeat; + acquiredat = other602.acquiredat; + user = other602.user; + hostname = other602.hostname; + heartbeatCount = other602.heartbeatCount; + agentInfo = other602.agentInfo; + blockedByExtId = other602.blockedByExtId; + blockedByIntId = other602.blockedByIntId; + lockIdInternal = other602.lockIdInternal; + __isset = other602.__isset; +} +ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other603) { + lockid = other603.lockid; + dbname = other603.dbname; + tablename = other603.tablename; + partname = other603.partname; + state = other603.state; + type = other603.type; + txnid = other603.txnid; + lastheartbeat = other603.lastheartbeat; + acquiredat = other603.acquiredat; + user = other603.user; + hostname = other603.hostname; + heartbeatCount = other603.heartbeatCount; + agentInfo = other603.agentInfo; + blockedByExtId = other603.blockedByExtId; + blockedByIntId = other603.blockedByIntId; + lockIdInternal = other603.lockIdInternal; + __isset = other603.__isset; return *this; } void ShowLocksResponseElement::printTo(std::ostream& out) const { @@ -14065,14 +14562,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->locks.clear(); - uint32_t _size574; - ::apache::thrift::protocol::TType _etype577; - xfer += iprot->readListBegin(_etype577, _size574); - this->locks.resize(_size574); - uint32_t _i578; - for (_i578 = 0; _i578 < _size574; ++_i578) + uint32_t _size604; + ::apache::thrift::protocol::TType _etype607; + xfer += iprot->readListBegin(_etype607, _size604); + this->locks.resize(_size604); + uint32_t _i608; + for (_i608 = 0; _i608 < _size604; ++_i608) { - xfer += this->locks[_i578].read(iprot); + xfer += this->locks[_i608].read(iprot); } xfer += iprot->readListEnd(); } @@ -14101,10 +14598,10 @@ uint32_t ShowLocksResponse::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("locks", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->locks.size())); - std::vector ::const_iterator _iter579; - for (_iter579 = this->locks.begin(); _iter579 != this->locks.end(); ++_iter579) + std::vector ::const_iterator _iter609; + for (_iter609 = this->locks.begin(); _iter609 != this->locks.end(); ++_iter609) { - xfer += (*_iter579).write(oprot); + xfer += (*_iter609).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14121,13 +14618,13 @@ void swap(ShowLocksResponse &a, ShowLocksResponse &b) { swap(a.__isset, b.__isset); } -ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other580) { - locks = other580.locks; - __isset = other580.__isset; +ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other610) { + locks = other610.locks; + __isset = other610.__isset; } -ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other581) { - locks = other581.locks; - __isset = other581.__isset; +ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other611) { + locks = other611.locks; + __isset = other611.__isset; return *this; } void ShowLocksResponse::printTo(std::ostream& out) const { @@ -14228,15 +14725,15 @@ void swap(HeartbeatRequest &a, HeartbeatRequest &b) { swap(a.__isset, b.__isset); } -HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other582) { - lockid = other582.lockid; - txnid = other582.txnid; - __isset = other582.__isset; +HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other612) { + lockid = other612.lockid; + txnid = other612.txnid; + __isset = other612.__isset; } -HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other583) { - lockid = other583.lockid; - txnid = other583.txnid; - __isset = other583.__isset; +HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other613) { + lockid = other613.lockid; + txnid = other613.txnid; + __isset = other613.__isset; return *this; } void HeartbeatRequest::printTo(std::ostream& out) const { @@ -14339,13 +14836,13 @@ void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b) { swap(a.max, b.max); } -HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other584) { - min = other584.min; - max = other584.max; +HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other614) { + min = other614.min; + max = other614.max; } -HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other585) { - min = other585.min; - max = other585.max; +HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other615) { + min = other615.min; + max = other615.max; return *this; } void HeartbeatTxnRangeRequest::printTo(std::ostream& out) const { @@ -14396,15 +14893,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->aborted.clear(); - uint32_t _size586; - ::apache::thrift::protocol::TType _etype589; - xfer += iprot->readSetBegin(_etype589, _size586); - uint32_t _i590; - for (_i590 = 0; _i590 < _size586; ++_i590) + uint32_t _size616; + ::apache::thrift::protocol::TType _etype619; + xfer += iprot->readSetBegin(_etype619, _size616); + uint32_t _i620; + for (_i620 = 0; _i620 < _size616; ++_i620) { - int64_t _elem591; - xfer += iprot->readI64(_elem591); - this->aborted.insert(_elem591); + int64_t _elem621; + xfer += iprot->readI64(_elem621); + this->aborted.insert(_elem621); } xfer += iprot->readSetEnd(); } @@ -14417,15 +14914,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->nosuch.clear(); - uint32_t _size592; - ::apache::thrift::protocol::TType _etype595; - xfer += iprot->readSetBegin(_etype595, _size592); - uint32_t _i596; - for (_i596 = 0; _i596 < _size592; ++_i596) + uint32_t _size622; + ::apache::thrift::protocol::TType _etype625; + xfer += iprot->readSetBegin(_etype625, _size622); + uint32_t _i626; + for (_i626 = 0; _i626 < _size622; ++_i626) { - int64_t _elem597; - xfer += iprot->readI64(_elem597); - this->nosuch.insert(_elem597); + int64_t _elem627; + xfer += iprot->readI64(_elem627); + this->nosuch.insert(_elem627); } xfer += iprot->readSetEnd(); } @@ -14458,10 +14955,10 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("aborted", ::apache::thrift::protocol::T_SET, 1); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->aborted.size())); - std::set ::const_iterator _iter598; - for (_iter598 = this->aborted.begin(); _iter598 != this->aborted.end(); ++_iter598) + std::set ::const_iterator _iter628; + for (_iter628 = this->aborted.begin(); _iter628 != this->aborted.end(); ++_iter628) { - xfer += oprot->writeI64((*_iter598)); + xfer += oprot->writeI64((*_iter628)); } xfer += oprot->writeSetEnd(); } @@ -14470,10 +14967,10 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("nosuch", ::apache::thrift::protocol::T_SET, 2); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->nosuch.size())); - std::set ::const_iterator _iter599; - for (_iter599 = this->nosuch.begin(); _iter599 != this->nosuch.end(); ++_iter599) + std::set ::const_iterator _iter629; + for (_iter629 = this->nosuch.begin(); _iter629 != this->nosuch.end(); ++_iter629) { - xfer += oprot->writeI64((*_iter599)); + xfer += oprot->writeI64((*_iter629)); } xfer += oprot->writeSetEnd(); } @@ -14490,13 +14987,13 @@ void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b) { swap(a.nosuch, b.nosuch); } -HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other600) { - aborted = other600.aborted; - nosuch = other600.nosuch; +HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other630) { + aborted = other630.aborted; + nosuch = other630.nosuch; } -HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other601) { - aborted = other601.aborted; - nosuch = other601.nosuch; +HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other631) { + aborted = other631.aborted; + nosuch = other631.nosuch; return *this; } void HeartbeatTxnRangeResponse::printTo(std::ostream& out) const { @@ -14589,9 +15086,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast602; - xfer += iprot->readI32(ecast602); - this->type = (CompactionType::type)ecast602; + int32_t ecast632; + xfer += iprot->readI32(ecast632); + this->type = (CompactionType::type)ecast632; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -14609,17 +15106,17 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size603; - ::apache::thrift::protocol::TType _ktype604; - ::apache::thrift::protocol::TType _vtype605; - xfer += iprot->readMapBegin(_ktype604, _vtype605, _size603); - uint32_t _i607; - for (_i607 = 0; _i607 < _size603; ++_i607) + uint32_t _size633; + ::apache::thrift::protocol::TType _ktype634; + ::apache::thrift::protocol::TType _vtype635; + xfer += iprot->readMapBegin(_ktype634, _vtype635, _size633); + uint32_t _i637; + for (_i637 = 0; _i637 < _size633; ++_i637) { - std::string _key608; - xfer += iprot->readString(_key608); - std::string& _val609 = this->properties[_key608]; - xfer += iprot->readString(_val609); + std::string _key638; + xfer += iprot->readString(_key638); + std::string& _val639 = this->properties[_key638]; + xfer += iprot->readString(_val639); } xfer += iprot->readMapEnd(); } @@ -14677,11 +15174,11 @@ uint32_t CompactionRequest::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 6); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter610; - for (_iter610 = this->properties.begin(); _iter610 != this->properties.end(); ++_iter610) + std::map ::const_iterator _iter640; + for (_iter640 = this->properties.begin(); _iter640 != this->properties.end(); ++_iter640) { - xfer += oprot->writeString(_iter610->first); - xfer += oprot->writeString(_iter610->second); + xfer += oprot->writeString(_iter640->first); + xfer += oprot->writeString(_iter640->second); } xfer += oprot->writeMapEnd(); } @@ -14703,23 +15200,23 @@ void swap(CompactionRequest &a, CompactionRequest &b) { swap(a.__isset, b.__isset); } -CompactionRequest::CompactionRequest(const CompactionRequest& other611) { - dbname = other611.dbname; - tablename = other611.tablename; - partitionname = other611.partitionname; - type = other611.type; - runas = other611.runas; - properties = other611.properties; - __isset = other611.__isset; -} -CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other612) { - dbname = other612.dbname; - tablename = other612.tablename; - partitionname = other612.partitionname; - type = other612.type; - runas = other612.runas; - properties = other612.properties; - __isset = other612.__isset; +CompactionRequest::CompactionRequest(const CompactionRequest& other641) { + dbname = other641.dbname; + tablename = other641.tablename; + partitionname = other641.partitionname; + type = other641.type; + runas = other641.runas; + properties = other641.properties; + __isset = other641.__isset; +} +CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other642) { + dbname = other642.dbname; + tablename = other642.tablename; + partitionname = other642.partitionname; + type = other642.type; + runas = other642.runas; + properties = other642.properties; + __isset = other642.__isset; return *this; } void CompactionRequest::printTo(std::ostream& out) const { @@ -14846,15 +15343,15 @@ void swap(CompactionResponse &a, CompactionResponse &b) { swap(a.accepted, b.accepted); } -CompactionResponse::CompactionResponse(const CompactionResponse& other613) { - id = other613.id; - state = other613.state; - accepted = other613.accepted; +CompactionResponse::CompactionResponse(const CompactionResponse& other643) { + id = other643.id; + state = other643.state; + accepted = other643.accepted; } -CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other614) { - id = other614.id; - state = other614.state; - accepted = other614.accepted; +CompactionResponse& CompactionResponse::operator=(const CompactionResponse& other644) { + id = other644.id; + state = other644.state; + accepted = other644.accepted; return *this; } void CompactionResponse::printTo(std::ostream& out) const { @@ -14915,11 +15412,11 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) { (void) b; } -ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other615) { - (void) other615; +ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other645) { + (void) other645; } -ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other616) { - (void) other616; +ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other646) { + (void) other646; return *this; } void ShowCompactRequest::printTo(std::ostream& out) const { @@ -15045,9 +15542,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast617; - xfer += iprot->readI32(ecast617); - this->type = (CompactionType::type)ecast617; + int32_t ecast647; + xfer += iprot->readI32(ecast647); + this->type = (CompactionType::type)ecast647; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -15234,37 +15731,37 @@ void swap(ShowCompactResponseElement &a, ShowCompactResponseElement &b) { swap(a.__isset, b.__isset); } -ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other618) { - dbname = other618.dbname; - tablename = other618.tablename; - partitionname = other618.partitionname; - type = other618.type; - state = other618.state; - workerid = other618.workerid; - start = other618.start; - runAs = other618.runAs; - hightestTxnId = other618.hightestTxnId; - metaInfo = other618.metaInfo; - endTime = other618.endTime; - hadoopJobId = other618.hadoopJobId; - id = other618.id; - __isset = other618.__isset; -} -ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other619) { - dbname = other619.dbname; - tablename = other619.tablename; - partitionname = other619.partitionname; - type = other619.type; - state = other619.state; - workerid = other619.workerid; - start = other619.start; - runAs = other619.runAs; - hightestTxnId = other619.hightestTxnId; - metaInfo = other619.metaInfo; - endTime = other619.endTime; - hadoopJobId = other619.hadoopJobId; - id = other619.id; - __isset = other619.__isset; +ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other648) { + dbname = other648.dbname; + tablename = other648.tablename; + partitionname = other648.partitionname; + type = other648.type; + state = other648.state; + workerid = other648.workerid; + start = other648.start; + runAs = other648.runAs; + hightestTxnId = other648.hightestTxnId; + metaInfo = other648.metaInfo; + endTime = other648.endTime; + hadoopJobId = other648.hadoopJobId; + id = other648.id; + __isset = other648.__isset; +} +ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other649) { + dbname = other649.dbname; + tablename = other649.tablename; + partitionname = other649.partitionname; + type = other649.type; + state = other649.state; + workerid = other649.workerid; + start = other649.start; + runAs = other649.runAs; + hightestTxnId = other649.hightestTxnId; + metaInfo = other649.metaInfo; + endTime = other649.endTime; + hadoopJobId = other649.hadoopJobId; + id = other649.id; + __isset = other649.__isset; return *this; } void ShowCompactResponseElement::printTo(std::ostream& out) const { @@ -15321,14 +15818,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->compacts.clear(); - uint32_t _size620; - ::apache::thrift::protocol::TType _etype623; - xfer += iprot->readListBegin(_etype623, _size620); - this->compacts.resize(_size620); - uint32_t _i624; - for (_i624 = 0; _i624 < _size620; ++_i624) + uint32_t _size650; + ::apache::thrift::protocol::TType _etype653; + xfer += iprot->readListBegin(_etype653, _size650); + this->compacts.resize(_size650); + uint32_t _i654; + for (_i654 = 0; _i654 < _size650; ++_i654) { - xfer += this->compacts[_i624].read(iprot); + xfer += this->compacts[_i654].read(iprot); } xfer += iprot->readListEnd(); } @@ -15359,10 +15856,10 @@ uint32_t ShowCompactResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("compacts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->compacts.size())); - std::vector ::const_iterator _iter625; - for (_iter625 = this->compacts.begin(); _iter625 != this->compacts.end(); ++_iter625) + std::vector ::const_iterator _iter655; + for (_iter655 = this->compacts.begin(); _iter655 != this->compacts.end(); ++_iter655) { - xfer += (*_iter625).write(oprot); + xfer += (*_iter655).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15378,11 +15875,11 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) { swap(a.compacts, b.compacts); } -ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other626) { - compacts = other626.compacts; +ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other656) { + compacts = other656.compacts; } -ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other627) { - compacts = other627.compacts; +ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other657) { + compacts = other657.compacts; return *this; } void ShowCompactResponse::printTo(std::ostream& out) const { @@ -15471,14 +15968,14 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionnames.clear(); - uint32_t _size628; - ::apache::thrift::protocol::TType _etype631; - xfer += iprot->readListBegin(_etype631, _size628); - this->partitionnames.resize(_size628); - uint32_t _i632; - for (_i632 = 0; _i632 < _size628; ++_i632) + uint32_t _size658; + ::apache::thrift::protocol::TType _etype661; + xfer += iprot->readListBegin(_etype661, _size658); + this->partitionnames.resize(_size658); + uint32_t _i662; + for (_i662 = 0; _i662 < _size658; ++_i662) { - xfer += iprot->readString(this->partitionnames[_i632]); + xfer += iprot->readString(this->partitionnames[_i662]); } xfer += iprot->readListEnd(); } @@ -15489,9 +15986,9 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast633; - xfer += iprot->readI32(ecast633); - this->operationType = (DataOperationType::type)ecast633; + int32_t ecast663; + xfer += iprot->readI32(ecast663); + this->operationType = (DataOperationType::type)ecast663; this->__isset.operationType = true; } else { xfer += iprot->skip(ftype); @@ -15537,10 +16034,10 @@ uint32_t AddDynamicPartitions::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("partitionnames", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionnames.size())); - std::vector ::const_iterator _iter634; - for (_iter634 = this->partitionnames.begin(); _iter634 != this->partitionnames.end(); ++_iter634) + std::vector ::const_iterator _iter664; + for (_iter664 = this->partitionnames.begin(); _iter664 != this->partitionnames.end(); ++_iter664) { - xfer += oprot->writeString((*_iter634)); + xfer += oprot->writeString((*_iter664)); } xfer += oprot->writeListEnd(); } @@ -15566,21 +16063,21 @@ void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) { swap(a.__isset, b.__isset); } -AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other635) { - txnid = other635.txnid; - dbname = other635.dbname; - tablename = other635.tablename; - partitionnames = other635.partitionnames; - operationType = other635.operationType; - __isset = other635.__isset; -} -AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other636) { - txnid = other636.txnid; - dbname = other636.dbname; - tablename = other636.tablename; - partitionnames = other636.partitionnames; - operationType = other636.operationType; - __isset = other636.__isset; +AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other665) { + txnid = other665.txnid; + dbname = other665.dbname; + tablename = other665.tablename; + partitionnames = other665.partitionnames; + operationType = other665.operationType; + __isset = other665.__isset; +} +AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other666) { + txnid = other666.txnid; + dbname = other666.dbname; + tablename = other666.tablename; + partitionnames = other666.partitionnames; + operationType = other666.operationType; + __isset = other666.__isset; return *this; } void AddDynamicPartitions::printTo(std::ostream& out) const { @@ -15686,15 +16183,15 @@ void swap(NotificationEventRequest &a, NotificationEventRequest &b) { swap(a.__isset, b.__isset); } -NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other637) { - lastEvent = other637.lastEvent; - maxEvents = other637.maxEvents; - __isset = other637.__isset; +NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other667) { + lastEvent = other667.lastEvent; + maxEvents = other667.maxEvents; + __isset = other667.__isset; } -NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other638) { - lastEvent = other638.lastEvent; - maxEvents = other638.maxEvents; - __isset = other638.__isset; +NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other668) { + lastEvent = other668.lastEvent; + maxEvents = other668.maxEvents; + __isset = other668.__isset; return *this; } void NotificationEventRequest::printTo(std::ostream& out) const { @@ -15895,25 +16392,25 @@ void swap(NotificationEvent &a, NotificationEvent &b) { swap(a.__isset, b.__isset); } -NotificationEvent::NotificationEvent(const NotificationEvent& other639) { - eventId = other639.eventId; - eventTime = other639.eventTime; - eventType = other639.eventType; - dbName = other639.dbName; - tableName = other639.tableName; - message = other639.message; - messageFormat = other639.messageFormat; - __isset = other639.__isset; -} -NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other640) { - eventId = other640.eventId; - eventTime = other640.eventTime; - eventType = other640.eventType; - dbName = other640.dbName; - tableName = other640.tableName; - message = other640.message; - messageFormat = other640.messageFormat; - __isset = other640.__isset; +NotificationEvent::NotificationEvent(const NotificationEvent& other669) { + eventId = other669.eventId; + eventTime = other669.eventTime; + eventType = other669.eventType; + dbName = other669.dbName; + tableName = other669.tableName; + message = other669.message; + messageFormat = other669.messageFormat; + __isset = other669.__isset; +} +NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other670) { + eventId = other670.eventId; + eventTime = other670.eventTime; + eventType = other670.eventType; + dbName = other670.dbName; + tableName = other670.tableName; + message = other670.message; + messageFormat = other670.messageFormat; + __isset = other670.__isset; return *this; } void NotificationEvent::printTo(std::ostream& out) const { @@ -15964,14 +16461,14 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->events.clear(); - uint32_t _size641; - ::apache::thrift::protocol::TType _etype644; - xfer += iprot->readListBegin(_etype644, _size641); - this->events.resize(_size641); - uint32_t _i645; - for (_i645 = 0; _i645 < _size641; ++_i645) + uint32_t _size671; + ::apache::thrift::protocol::TType _etype674; + xfer += iprot->readListBegin(_etype674, _size671); + this->events.resize(_size671); + uint32_t _i675; + for (_i675 = 0; _i675 < _size671; ++_i675) { - xfer += this->events[_i645].read(iprot); + xfer += this->events[_i675].read(iprot); } xfer += iprot->readListEnd(); } @@ -16002,10 +16499,10 @@ uint32_t NotificationEventResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("events", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->events.size())); - std::vector ::const_iterator _iter646; - for (_iter646 = this->events.begin(); _iter646 != this->events.end(); ++_iter646) + std::vector ::const_iterator _iter676; + for (_iter676 = this->events.begin(); _iter676 != this->events.end(); ++_iter676) { - xfer += (*_iter646).write(oprot); + xfer += (*_iter676).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16021,11 +16518,11 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) { swap(a.events, b.events); } -NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other647) { - events = other647.events; +NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other677) { + events = other677.events; } -NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other648) { - events = other648.events; +NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other678) { + events = other678.events; return *this; } void NotificationEventResponse::printTo(std::ostream& out) const { @@ -16107,11 +16604,11 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) { swap(a.eventId, b.eventId); } -CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other649) { - eventId = other649.eventId; +CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other679) { + eventId = other679.eventId; } -CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other650) { - eventId = other650.eventId; +CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other680) { + eventId = other680.eventId; return *this; } void CurrentNotificationEventId::printTo(std::ostream& out) const { @@ -16161,14 +16658,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAdded.clear(); - uint32_t _size651; - ::apache::thrift::protocol::TType _etype654; - xfer += iprot->readListBegin(_etype654, _size651); - this->filesAdded.resize(_size651); - uint32_t _i655; - for (_i655 = 0; _i655 < _size651; ++_i655) + uint32_t _size681; + ::apache::thrift::protocol::TType _etype684; + xfer += iprot->readListBegin(_etype684, _size681); + this->filesAdded.resize(_size681); + uint32_t _i685; + for (_i685 = 0; _i685 < _size681; ++_i685) { - xfer += iprot->readString(this->filesAdded[_i655]); + xfer += iprot->readString(this->filesAdded[_i685]); } xfer += iprot->readListEnd(); } @@ -16181,14 +16678,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAddedChecksum.clear(); - uint32_t _size656; - ::apache::thrift::protocol::TType _etype659; - xfer += iprot->readListBegin(_etype659, _size656); - this->filesAddedChecksum.resize(_size656); - uint32_t _i660; - for (_i660 = 0; _i660 < _size656; ++_i660) + uint32_t _size686; + ::apache::thrift::protocol::TType _etype689; + xfer += iprot->readListBegin(_etype689, _size686); + this->filesAddedChecksum.resize(_size686); + uint32_t _i690; + for (_i690 = 0; _i690 < _size686; ++_i690) { - xfer += iprot->readString(this->filesAddedChecksum[_i660]); + xfer += iprot->readString(this->filesAddedChecksum[_i690]); } xfer += iprot->readListEnd(); } @@ -16219,10 +16716,10 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("filesAdded", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->filesAdded.size())); - std::vector ::const_iterator _iter661; - for (_iter661 = this->filesAdded.begin(); _iter661 != this->filesAdded.end(); ++_iter661) + std::vector ::const_iterator _iter691; + for (_iter691 = this->filesAdded.begin(); _iter691 != this->filesAdded.end(); ++_iter691) { - xfer += oprot->writeString((*_iter661)); + xfer += oprot->writeString((*_iter691)); } xfer += oprot->writeListEnd(); } @@ -16232,10 +16729,10 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("filesAddedChecksum", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->filesAddedChecksum.size())); - std::vector ::const_iterator _iter662; - for (_iter662 = this->filesAddedChecksum.begin(); _iter662 != this->filesAddedChecksum.end(); ++_iter662) + std::vector ::const_iterator _iter692; + for (_iter692 = this->filesAddedChecksum.begin(); _iter692 != this->filesAddedChecksum.end(); ++_iter692) { - xfer += oprot->writeString((*_iter662)); + xfer += oprot->writeString((*_iter692)); } xfer += oprot->writeListEnd(); } @@ -16253,15 +16750,15 @@ void swap(InsertEventRequestData &a, InsertEventRequestData &b) { swap(a.__isset, b.__isset); } -InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other663) { - filesAdded = other663.filesAdded; - filesAddedChecksum = other663.filesAddedChecksum; - __isset = other663.__isset; +InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other693) { + filesAdded = other693.filesAdded; + filesAddedChecksum = other693.filesAddedChecksum; + __isset = other693.__isset; } -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other664) { - filesAdded = other664.filesAdded; - filesAddedChecksum = other664.filesAddedChecksum; - __isset = other664.__isset; +InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other694) { + filesAdded = other694.filesAdded; + filesAddedChecksum = other694.filesAddedChecksum; + __isset = other694.__isset; return *this; } void InsertEventRequestData::printTo(std::ostream& out) const { @@ -16342,13 +16839,13 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) { swap(a.__isset, b.__isset); } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other665) { - insertData = other665.insertData; - __isset = other665.__isset; +FireEventRequestData::FireEventRequestData(const FireEventRequestData& other695) { + insertData = other695.insertData; + __isset = other695.__isset; } -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other666) { - insertData = other666.insertData; - __isset = other666.__isset; +FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other696) { + insertData = other696.insertData; + __isset = other696.__isset; return *this; } void FireEventRequestData::printTo(std::ostream& out) const { @@ -16445,14 +16942,14 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionVals.clear(); - uint32_t _size667; - ::apache::thrift::protocol::TType _etype670; - xfer += iprot->readListBegin(_etype670, _size667); - this->partitionVals.resize(_size667); - uint32_t _i671; - for (_i671 = 0; _i671 < _size667; ++_i671) + uint32_t _size697; + ::apache::thrift::protocol::TType _etype700; + xfer += iprot->readListBegin(_etype700, _size697); + this->partitionVals.resize(_size697); + uint32_t _i701; + for (_i701 = 0; _i701 < _size697; ++_i701) { - xfer += iprot->readString(this->partitionVals[_i671]); + xfer += iprot->readString(this->partitionVals[_i701]); } xfer += iprot->readListEnd(); } @@ -16504,10 +17001,10 @@ uint32_t FireEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("partitionVals", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionVals.size())); - std::vector ::const_iterator _iter672; - for (_iter672 = this->partitionVals.begin(); _iter672 != this->partitionVals.end(); ++_iter672) + std::vector ::const_iterator _iter702; + for (_iter702 = this->partitionVals.begin(); _iter702 != this->partitionVals.end(); ++_iter702) { - xfer += oprot->writeString((*_iter672)); + xfer += oprot->writeString((*_iter702)); } xfer += oprot->writeListEnd(); } @@ -16528,21 +17025,21 @@ void swap(FireEventRequest &a, FireEventRequest &b) { swap(a.__isset, b.__isset); } -FireEventRequest::FireEventRequest(const FireEventRequest& other673) { - successful = other673.successful; - data = other673.data; - dbName = other673.dbName; - tableName = other673.tableName; - partitionVals = other673.partitionVals; - __isset = other673.__isset; -} -FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other674) { - successful = other674.successful; - data = other674.data; - dbName = other674.dbName; - tableName = other674.tableName; - partitionVals = other674.partitionVals; - __isset = other674.__isset; +FireEventRequest::FireEventRequest(const FireEventRequest& other703) { + successful = other703.successful; + data = other703.data; + dbName = other703.dbName; + tableName = other703.tableName; + partitionVals = other703.partitionVals; + __isset = other703.__isset; +} +FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other704) { + successful = other704.successful; + data = other704.data; + dbName = other704.dbName; + tableName = other704.tableName; + partitionVals = other704.partitionVals; + __isset = other704.__isset; return *this; } void FireEventRequest::printTo(std::ostream& out) const { @@ -16605,11 +17102,11 @@ void swap(FireEventResponse &a, FireEventResponse &b) { (void) b; } -FireEventResponse::FireEventResponse(const FireEventResponse& other675) { - (void) other675; +FireEventResponse::FireEventResponse(const FireEventResponse& other705) { + (void) other705; } -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other676) { - (void) other676; +FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other706) { + (void) other706; return *this; } void FireEventResponse::printTo(std::ostream& out) const { @@ -16709,15 +17206,15 @@ void swap(MetadataPpdResult &a, MetadataPpdResult &b) { swap(a.__isset, b.__isset); } -MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other677) { - metadata = other677.metadata; - includeBitset = other677.includeBitset; - __isset = other677.__isset; +MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other707) { + metadata = other707.metadata; + includeBitset = other707.includeBitset; + __isset = other707.__isset; } -MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other678) { - metadata = other678.metadata; - includeBitset = other678.includeBitset; - __isset = other678.__isset; +MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other708) { + metadata = other708.metadata; + includeBitset = other708.includeBitset; + __isset = other708.__isset; return *this; } void MetadataPpdResult::printTo(std::ostream& out) const { @@ -16768,17 +17265,17 @@ uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size679; - ::apache::thrift::protocol::TType _ktype680; - ::apache::thrift::protocol::TType _vtype681; - xfer += iprot->readMapBegin(_ktype680, _vtype681, _size679); - uint32_t _i683; - for (_i683 = 0; _i683 < _size679; ++_i683) + uint32_t _size709; + ::apache::thrift::protocol::TType _ktype710; + ::apache::thrift::protocol::TType _vtype711; + xfer += iprot->readMapBegin(_ktype710, _vtype711, _size709); + uint32_t _i713; + for (_i713 = 0; _i713 < _size709; ++_i713) { - int64_t _key684; - xfer += iprot->readI64(_key684); - MetadataPpdResult& _val685 = this->metadata[_key684]; - xfer += _val685.read(iprot); + int64_t _key714; + xfer += iprot->readI64(_key714); + MetadataPpdResult& _val715 = this->metadata[_key714]; + xfer += _val715.read(iprot); } xfer += iprot->readMapEnd(); } @@ -16819,11 +17316,11 @@ uint32_t GetFileMetadataByExprResult::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I64, ::apache::thrift::protocol::T_STRUCT, static_cast(this->metadata.size())); - std::map ::const_iterator _iter686; - for (_iter686 = this->metadata.begin(); _iter686 != this->metadata.end(); ++_iter686) + std::map ::const_iterator _iter716; + for (_iter716 = this->metadata.begin(); _iter716 != this->metadata.end(); ++_iter716) { - xfer += oprot->writeI64(_iter686->first); - xfer += _iter686->second.write(oprot); + xfer += oprot->writeI64(_iter716->first); + xfer += _iter716->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -16844,13 +17341,13 @@ void swap(GetFileMetadataByExprResult &a, GetFileMetadataByExprResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other687) { - metadata = other687.metadata; - isSupported = other687.isSupported; +GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other717) { + metadata = other717.metadata; + isSupported = other717.isSupported; } -GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other688) { - metadata = other688.metadata; - isSupported = other688.isSupported; +GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other718) { + metadata = other718.metadata; + isSupported = other718.isSupported; return *this; } void GetFileMetadataByExprResult::printTo(std::ostream& out) const { @@ -16911,14 +17408,14 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size689; - ::apache::thrift::protocol::TType _etype692; - xfer += iprot->readListBegin(_etype692, _size689); - this->fileIds.resize(_size689); - uint32_t _i693; - for (_i693 = 0; _i693 < _size689; ++_i693) + uint32_t _size719; + ::apache::thrift::protocol::TType _etype722; + xfer += iprot->readListBegin(_etype722, _size719); + this->fileIds.resize(_size719); + uint32_t _i723; + for (_i723 = 0; _i723 < _size719; ++_i723) { - xfer += iprot->readI64(this->fileIds[_i693]); + xfer += iprot->readI64(this->fileIds[_i723]); } xfer += iprot->readListEnd(); } @@ -16945,9 +17442,9 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast694; - xfer += iprot->readI32(ecast694); - this->type = (FileMetadataExprType::type)ecast694; + int32_t ecast724; + xfer += iprot->readI32(ecast724); + this->type = (FileMetadataExprType::type)ecast724; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -16977,10 +17474,10 @@ uint32_t GetFileMetadataByExprRequest::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter695; - for (_iter695 = this->fileIds.begin(); _iter695 != this->fileIds.end(); ++_iter695) + std::vector ::const_iterator _iter725; + for (_iter725 = this->fileIds.begin(); _iter725 != this->fileIds.end(); ++_iter725) { - xfer += oprot->writeI64((*_iter695)); + xfer += oprot->writeI64((*_iter725)); } xfer += oprot->writeListEnd(); } @@ -17014,19 +17511,19 @@ void swap(GetFileMetadataByExprRequest &a, GetFileMetadataByExprRequest &b) { swap(a.__isset, b.__isset); } -GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other696) { - fileIds = other696.fileIds; - expr = other696.expr; - doGetFooters = other696.doGetFooters; - type = other696.type; - __isset = other696.__isset; +GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other726) { + fileIds = other726.fileIds; + expr = other726.expr; + doGetFooters = other726.doGetFooters; + type = other726.type; + __isset = other726.__isset; } -GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other697) { - fileIds = other697.fileIds; - expr = other697.expr; - doGetFooters = other697.doGetFooters; - type = other697.type; - __isset = other697.__isset; +GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other727) { + fileIds = other727.fileIds; + expr = other727.expr; + doGetFooters = other727.doGetFooters; + type = other727.type; + __isset = other727.__isset; return *this; } void GetFileMetadataByExprRequest::printTo(std::ostream& out) const { @@ -17079,17 +17576,17 @@ uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size698; - ::apache::thrift::protocol::TType _ktype699; - ::apache::thrift::protocol::TType _vtype700; - xfer += iprot->readMapBegin(_ktype699, _vtype700, _size698); - uint32_t _i702; - for (_i702 = 0; _i702 < _size698; ++_i702) + uint32_t _size728; + ::apache::thrift::protocol::TType _ktype729; + ::apache::thrift::protocol::TType _vtype730; + xfer += iprot->readMapBegin(_ktype729, _vtype730, _size728); + uint32_t _i732; + for (_i732 = 0; _i732 < _size728; ++_i732) { - int64_t _key703; - xfer += iprot->readI64(_key703); - std::string& _val704 = this->metadata[_key703]; - xfer += iprot->readBinary(_val704); + int64_t _key733; + xfer += iprot->readI64(_key733); + std::string& _val734 = this->metadata[_key733]; + xfer += iprot->readBinary(_val734); } xfer += iprot->readMapEnd(); } @@ -17130,11 +17627,11 @@ uint32_t GetFileMetadataResult::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I64, ::apache::thrift::protocol::T_STRING, static_cast(this->metadata.size())); - std::map ::const_iterator _iter705; - for (_iter705 = this->metadata.begin(); _iter705 != this->metadata.end(); ++_iter705) + std::map ::const_iterator _iter735; + for (_iter735 = this->metadata.begin(); _iter735 != this->metadata.end(); ++_iter735) { - xfer += oprot->writeI64(_iter705->first); - xfer += oprot->writeBinary(_iter705->second); + xfer += oprot->writeI64(_iter735->first); + xfer += oprot->writeBinary(_iter735->second); } xfer += oprot->writeMapEnd(); } @@ -17155,13 +17652,13 @@ void swap(GetFileMetadataResult &a, GetFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other706) { - metadata = other706.metadata; - isSupported = other706.isSupported; +GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other736) { + metadata = other736.metadata; + isSupported = other736.isSupported; } -GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other707) { - metadata = other707.metadata; - isSupported = other707.isSupported; +GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other737) { + metadata = other737.metadata; + isSupported = other737.isSupported; return *this; } void GetFileMetadataResult::printTo(std::ostream& out) const { @@ -17207,14 +17704,14 @@ uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size708; - ::apache::thrift::protocol::TType _etype711; - xfer += iprot->readListBegin(_etype711, _size708); - this->fileIds.resize(_size708); - uint32_t _i712; - for (_i712 = 0; _i712 < _size708; ++_i712) + uint32_t _size738; + ::apache::thrift::protocol::TType _etype741; + xfer += iprot->readListBegin(_etype741, _size738); + this->fileIds.resize(_size738); + uint32_t _i742; + for (_i742 = 0; _i742 < _size738; ++_i742) { - xfer += iprot->readI64(this->fileIds[_i712]); + xfer += iprot->readI64(this->fileIds[_i742]); } xfer += iprot->readListEnd(); } @@ -17245,10 +17742,10 @@ uint32_t GetFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter713; - for (_iter713 = this->fileIds.begin(); _iter713 != this->fileIds.end(); ++_iter713) + std::vector ::const_iterator _iter743; + for (_iter743 = this->fileIds.begin(); _iter743 != this->fileIds.end(); ++_iter743) { - xfer += oprot->writeI64((*_iter713)); + xfer += oprot->writeI64((*_iter743)); } xfer += oprot->writeListEnd(); } @@ -17264,11 +17761,11 @@ void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other714) { - fileIds = other714.fileIds; +GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other744) { + fileIds = other744.fileIds; } -GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other715) { - fileIds = other715.fileIds; +GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other745) { + fileIds = other745.fileIds; return *this; } void GetFileMetadataRequest::printTo(std::ostream& out) const { @@ -17327,11 +17824,11 @@ void swap(PutFileMetadataResult &a, PutFileMetadataResult &b) { (void) b; } -PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other716) { - (void) other716; +PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other746) { + (void) other746; } -PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other717) { - (void) other717; +PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other747) { + (void) other747; return *this; } void PutFileMetadataResult::printTo(std::ostream& out) const { @@ -17385,14 +17882,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size718; - ::apache::thrift::protocol::TType _etype721; - xfer += iprot->readListBegin(_etype721, _size718); - this->fileIds.resize(_size718); - uint32_t _i722; - for (_i722 = 0; _i722 < _size718; ++_i722) + uint32_t _size748; + ::apache::thrift::protocol::TType _etype751; + xfer += iprot->readListBegin(_etype751, _size748); + this->fileIds.resize(_size748); + uint32_t _i752; + for (_i752 = 0; _i752 < _size748; ++_i752) { - xfer += iprot->readI64(this->fileIds[_i722]); + xfer += iprot->readI64(this->fileIds[_i752]); } xfer += iprot->readListEnd(); } @@ -17405,14 +17902,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->metadata.clear(); - uint32_t _size723; - ::apache::thrift::protocol::TType _etype726; - xfer += iprot->readListBegin(_etype726, _size723); - this->metadata.resize(_size723); - uint32_t _i727; - for (_i727 = 0; _i727 < _size723; ++_i727) + uint32_t _size753; + ::apache::thrift::protocol::TType _etype756; + xfer += iprot->readListBegin(_etype756, _size753); + this->metadata.resize(_size753); + uint32_t _i757; + for (_i757 = 0; _i757 < _size753; ++_i757) { - xfer += iprot->readBinary(this->metadata[_i727]); + xfer += iprot->readBinary(this->metadata[_i757]); } xfer += iprot->readListEnd(); } @@ -17423,9 +17920,9 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast728; - xfer += iprot->readI32(ecast728); - this->type = (FileMetadataExprType::type)ecast728; + int32_t ecast758; + xfer += iprot->readI32(ecast758); + this->type = (FileMetadataExprType::type)ecast758; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -17455,10 +17952,10 @@ uint32_t PutFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter729; - for (_iter729 = this->fileIds.begin(); _iter729 != this->fileIds.end(); ++_iter729) + std::vector ::const_iterator _iter759; + for (_iter759 = this->fileIds.begin(); _iter759 != this->fileIds.end(); ++_iter759) { - xfer += oprot->writeI64((*_iter729)); + xfer += oprot->writeI64((*_iter759)); } xfer += oprot->writeListEnd(); } @@ -17467,10 +17964,10 @@ uint32_t PutFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->metadata.size())); - std::vector ::const_iterator _iter730; - for (_iter730 = this->metadata.begin(); _iter730 != this->metadata.end(); ++_iter730) + std::vector ::const_iterator _iter760; + for (_iter760 = this->metadata.begin(); _iter760 != this->metadata.end(); ++_iter760) { - xfer += oprot->writeBinary((*_iter730)); + xfer += oprot->writeBinary((*_iter760)); } xfer += oprot->writeListEnd(); } @@ -17494,17 +17991,17 @@ void swap(PutFileMetadataRequest &a, PutFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other731) { - fileIds = other731.fileIds; - metadata = other731.metadata; - type = other731.type; - __isset = other731.__isset; +PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other761) { + fileIds = other761.fileIds; + metadata = other761.metadata; + type = other761.type; + __isset = other761.__isset; } -PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other732) { - fileIds = other732.fileIds; - metadata = other732.metadata; - type = other732.type; - __isset = other732.__isset; +PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other762) { + fileIds = other762.fileIds; + metadata = other762.metadata; + type = other762.type; + __isset = other762.__isset; return *this; } void PutFileMetadataRequest::printTo(std::ostream& out) const { @@ -17565,11 +18062,11 @@ void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { (void) b; } -ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other733) { - (void) other733; +ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other763) { + (void) other763; } -ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other734) { - (void) other734; +ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other764) { + (void) other764; return *this; } void ClearFileMetadataResult::printTo(std::ostream& out) const { @@ -17613,14 +18110,14 @@ uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size735; - ::apache::thrift::protocol::TType _etype738; - xfer += iprot->readListBegin(_etype738, _size735); - this->fileIds.resize(_size735); - uint32_t _i739; - for (_i739 = 0; _i739 < _size735; ++_i739) + uint32_t _size765; + ::apache::thrift::protocol::TType _etype768; + xfer += iprot->readListBegin(_etype768, _size765); + this->fileIds.resize(_size765); + uint32_t _i769; + for (_i769 = 0; _i769 < _size765; ++_i769) { - xfer += iprot->readI64(this->fileIds[_i739]); + xfer += iprot->readI64(this->fileIds[_i769]); } xfer += iprot->readListEnd(); } @@ -17651,10 +18148,10 @@ uint32_t ClearFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter740; - for (_iter740 = this->fileIds.begin(); _iter740 != this->fileIds.end(); ++_iter740) + std::vector ::const_iterator _iter770; + for (_iter770 = this->fileIds.begin(); _iter770 != this->fileIds.end(); ++_iter770) { - xfer += oprot->writeI64((*_iter740)); + xfer += oprot->writeI64((*_iter770)); } xfer += oprot->writeListEnd(); } @@ -17670,11 +18167,11 @@ void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other741) { - fileIds = other741.fileIds; +ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other771) { + fileIds = other771.fileIds; } -ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other742) { - fileIds = other742.fileIds; +ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other772) { + fileIds = other772.fileIds; return *this; } void ClearFileMetadataRequest::printTo(std::ostream& out) const { @@ -17756,11 +18253,11 @@ void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other743) { - isSupported = other743.isSupported; +CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other773) { + isSupported = other773.isSupported; } -CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other744) { - isSupported = other744.isSupported; +CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other774) { + isSupported = other774.isSupported; return *this; } void CacheFileMetadataResult::printTo(std::ostream& out) const { @@ -17901,19 +18398,19 @@ void swap(CacheFileMetadataRequest &a, CacheFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other745) { - dbName = other745.dbName; - tblName = other745.tblName; - partName = other745.partName; - isAllParts = other745.isAllParts; - __isset = other745.__isset; +CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other775) { + dbName = other775.dbName; + tblName = other775.tblName; + partName = other775.partName; + isAllParts = other775.isAllParts; + __isset = other775.__isset; } -CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other746) { - dbName = other746.dbName; - tblName = other746.tblName; - partName = other746.partName; - isAllParts = other746.isAllParts; - __isset = other746.__isset; +CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other776) { + dbName = other776.dbName; + tblName = other776.tblName; + partName = other776.partName; + isAllParts = other776.isAllParts; + __isset = other776.__isset; return *this; } void CacheFileMetadataRequest::printTo(std::ostream& out) const { @@ -17961,14 +18458,14 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->functions.clear(); - uint32_t _size747; - ::apache::thrift::protocol::TType _etype750; - xfer += iprot->readListBegin(_etype750, _size747); - this->functions.resize(_size747); - uint32_t _i751; - for (_i751 = 0; _i751 < _size747; ++_i751) + uint32_t _size777; + ::apache::thrift::protocol::TType _etype780; + xfer += iprot->readListBegin(_etype780, _size777); + this->functions.resize(_size777); + uint32_t _i781; + for (_i781 = 0; _i781 < _size777; ++_i781) { - xfer += this->functions[_i751].read(iprot); + xfer += this->functions[_i781].read(iprot); } xfer += iprot->readListEnd(); } @@ -17998,10 +18495,10 @@ uint32_t GetAllFunctionsResponse::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("functions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->functions.size())); - std::vector ::const_iterator _iter752; - for (_iter752 = this->functions.begin(); _iter752 != this->functions.end(); ++_iter752) + std::vector ::const_iterator _iter782; + for (_iter782 = this->functions.begin(); _iter782 != this->functions.end(); ++_iter782) { - xfer += (*_iter752).write(oprot); + xfer += (*_iter782).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18018,13 +18515,13 @@ void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { swap(a.__isset, b.__isset); } -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other753) { - functions = other753.functions; - __isset = other753.__isset; +GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other783) { + functions = other783.functions; + __isset = other783.__isset; } -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other754) { - functions = other754.functions; - __isset = other754.__isset; +GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other784) { + functions = other784.functions; + __isset = other784.__isset; return *this; } void GetAllFunctionsResponse::printTo(std::ostream& out) const { @@ -18069,16 +18566,16 @@ uint32_t ClientCapabilities::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size755; - ::apache::thrift::protocol::TType _etype758; - xfer += iprot->readListBegin(_etype758, _size755); - this->values.resize(_size755); - uint32_t _i759; - for (_i759 = 0; _i759 < _size755; ++_i759) + uint32_t _size785; + ::apache::thrift::protocol::TType _etype788; + xfer += iprot->readListBegin(_etype788, _size785); + this->values.resize(_size785); + uint32_t _i789; + for (_i789 = 0; _i789 < _size785; ++_i789) { - int32_t ecast760; - xfer += iprot->readI32(ecast760); - this->values[_i759] = (ClientCapability::type)ecast760; + int32_t ecast790; + xfer += iprot->readI32(ecast790); + this->values[_i789] = (ClientCapability::type)ecast790; } xfer += iprot->readListEnd(); } @@ -18109,10 +18606,10 @@ uint32_t ClientCapabilities::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I32, static_cast(this->values.size())); - std::vector ::const_iterator _iter761; - for (_iter761 = this->values.begin(); _iter761 != this->values.end(); ++_iter761) + std::vector ::const_iterator _iter791; + for (_iter791 = this->values.begin(); _iter791 != this->values.end(); ++_iter791) { - xfer += oprot->writeI32((int32_t)(*_iter761)); + xfer += oprot->writeI32((int32_t)(*_iter791)); } xfer += oprot->writeListEnd(); } @@ -18128,11 +18625,11 @@ void swap(ClientCapabilities &a, ClientCapabilities &b) { swap(a.values, b.values); } -ClientCapabilities::ClientCapabilities(const ClientCapabilities& other762) { - values = other762.values; +ClientCapabilities::ClientCapabilities(const ClientCapabilities& other792) { + values = other792.values; } -ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other763) { - values = other763.values; +ClientCapabilities& ClientCapabilities::operator=(const ClientCapabilities& other793) { + values = other793.values; return *this; } void ClientCapabilities::printTo(std::ostream& out) const { @@ -18254,17 +18751,17 @@ void swap(GetTableRequest &a, GetTableRequest &b) { swap(a.__isset, b.__isset); } -GetTableRequest::GetTableRequest(const GetTableRequest& other764) { - dbName = other764.dbName; - tblName = other764.tblName; - capabilities = other764.capabilities; - __isset = other764.__isset; +GetTableRequest::GetTableRequest(const GetTableRequest& other794) { + dbName = other794.dbName; + tblName = other794.tblName; + capabilities = other794.capabilities; + __isset = other794.__isset; } -GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other765) { - dbName = other765.dbName; - tblName = other765.tblName; - capabilities = other765.capabilities; - __isset = other765.__isset; +GetTableRequest& GetTableRequest::operator=(const GetTableRequest& other795) { + dbName = other795.dbName; + tblName = other795.tblName; + capabilities = other795.capabilities; + __isset = other795.__isset; return *this; } void GetTableRequest::printTo(std::ostream& out) const { @@ -18348,11 +18845,11 @@ void swap(GetTableResult &a, GetTableResult &b) { swap(a.table, b.table); } -GetTableResult::GetTableResult(const GetTableResult& other766) { - table = other766.table; +GetTableResult::GetTableResult(const GetTableResult& other796) { + table = other796.table; } -GetTableResult& GetTableResult::operator=(const GetTableResult& other767) { - table = other767.table; +GetTableResult& GetTableResult::operator=(const GetTableResult& other797) { + table = other797.table; return *this; } void GetTableResult::printTo(std::ostream& out) const { @@ -18415,14 +18912,14 @@ uint32_t GetTablesRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tblNames.clear(); - uint32_t _size768; - ::apache::thrift::protocol::TType _etype771; - xfer += iprot->readListBegin(_etype771, _size768); - this->tblNames.resize(_size768); - uint32_t _i772; - for (_i772 = 0; _i772 < _size768; ++_i772) + uint32_t _size798; + ::apache::thrift::protocol::TType _etype801; + xfer += iprot->readListBegin(_etype801, _size798); + this->tblNames.resize(_size798); + uint32_t _i802; + for (_i802 = 0; _i802 < _size798; ++_i802) { - xfer += iprot->readString(this->tblNames[_i772]); + xfer += iprot->readString(this->tblNames[_i802]); } xfer += iprot->readListEnd(); } @@ -18466,10 +18963,10 @@ uint32_t GetTablesRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("tblNames", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tblNames.size())); - std::vector ::const_iterator _iter773; - for (_iter773 = this->tblNames.begin(); _iter773 != this->tblNames.end(); ++_iter773) + std::vector ::const_iterator _iter803; + for (_iter803 = this->tblNames.begin(); _iter803 != this->tblNames.end(); ++_iter803) { - xfer += oprot->writeString((*_iter773)); + xfer += oprot->writeString((*_iter803)); } xfer += oprot->writeListEnd(); } @@ -18493,17 +18990,17 @@ void swap(GetTablesRequest &a, GetTablesRequest &b) { swap(a.__isset, b.__isset); } -GetTablesRequest::GetTablesRequest(const GetTablesRequest& other774) { - dbName = other774.dbName; - tblNames = other774.tblNames; - capabilities = other774.capabilities; - __isset = other774.__isset; +GetTablesRequest::GetTablesRequest(const GetTablesRequest& other804) { + dbName = other804.dbName; + tblNames = other804.tblNames; + capabilities = other804.capabilities; + __isset = other804.__isset; } -GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other775) { - dbName = other775.dbName; - tblNames = other775.tblNames; - capabilities = other775.capabilities; - __isset = other775.__isset; +GetTablesRequest& GetTablesRequest::operator=(const GetTablesRequest& other805) { + dbName = other805.dbName; + tblNames = other805.tblNames; + capabilities = other805.capabilities; + __isset = other805.__isset; return *this; } void GetTablesRequest::printTo(std::ostream& out) const { @@ -18550,14 +19047,14 @@ uint32_t GetTablesResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tables.clear(); - uint32_t _size776; - ::apache::thrift::protocol::TType _etype779; - xfer += iprot->readListBegin(_etype779, _size776); - this->tables.resize(_size776); - uint32_t _i780; - for (_i780 = 0; _i780 < _size776; ++_i780) + uint32_t _size806; + ::apache::thrift::protocol::TType _etype809; + xfer += iprot->readListBegin(_etype809, _size806); + this->tables.resize(_size806); + uint32_t _i810; + for (_i810 = 0; _i810 < _size806; ++_i810) { - xfer += this->tables[_i780].read(iprot); + xfer += this->tables[_i810].read(iprot); } xfer += iprot->readListEnd(); } @@ -18588,10 +19085,10 @@ uint32_t GetTablesResult::write(::apache::thrift::protocol::TProtocol* oprot) co xfer += oprot->writeFieldBegin("tables", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->tables.size())); - std::vector
::const_iterator _iter781; - for (_iter781 = this->tables.begin(); _iter781 != this->tables.end(); ++_iter781) + std::vector
::const_iterator _iter811; + for (_iter811 = this->tables.begin(); _iter811 != this->tables.end(); ++_iter811) { - xfer += (*_iter781).write(oprot); + xfer += (*_iter811).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18607,11 +19104,11 @@ void swap(GetTablesResult &a, GetTablesResult &b) { swap(a.tables, b.tables); } -GetTablesResult::GetTablesResult(const GetTablesResult& other782) { - tables = other782.tables; +GetTablesResult::GetTablesResult(const GetTablesResult& other812) { + tables = other812.tables; } -GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other783) { - tables = other783.tables; +GetTablesResult& GetTablesResult::operator=(const GetTablesResult& other813) { + tables = other813.tables; return *this; } void GetTablesResult::printTo(std::ostream& out) const { @@ -18753,19 +19250,19 @@ void swap(TableMeta &a, TableMeta &b) { swap(a.__isset, b.__isset); } -TableMeta::TableMeta(const TableMeta& other784) { - dbName = other784.dbName; - tableName = other784.tableName; - tableType = other784.tableType; - comments = other784.comments; - __isset = other784.__isset; +TableMeta::TableMeta(const TableMeta& other814) { + dbName = other814.dbName; + tableName = other814.tableName; + tableType = other814.tableType; + comments = other814.comments; + __isset = other814.__isset; } -TableMeta& TableMeta::operator=(const TableMeta& other785) { - dbName = other785.dbName; - tableName = other785.tableName; - tableType = other785.tableType; - comments = other785.comments; - __isset = other785.__isset; +TableMeta& TableMeta::operator=(const TableMeta& other815) { + dbName = other815.dbName; + tableName = other815.tableName; + tableType = other815.tableType; + comments = other815.comments; + __isset = other815.__isset; return *this; } void TableMeta::printTo(std::ostream& out) const { @@ -18848,13 +19345,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other786) : TException() { - message = other786.message; - __isset = other786.__isset; +MetaException::MetaException(const MetaException& other816) : TException() { + message = other816.message; + __isset = other816.__isset; } -MetaException& MetaException::operator=(const MetaException& other787) { - message = other787.message; - __isset = other787.__isset; +MetaException& MetaException::operator=(const MetaException& other817) { + message = other817.message; + __isset = other817.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -18945,13 +19442,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other788) : TException() { - message = other788.message; - __isset = other788.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other818) : TException() { + message = other818.message; + __isset = other818.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other789) { - message = other789.message; - __isset = other789.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other819) { + message = other819.message; + __isset = other819.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -19042,13 +19539,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other790) : TException() { - message = other790.message; - __isset = other790.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other820) : TException() { + message = other820.message; + __isset = other820.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other791) { - message = other791.message; - __isset = other791.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other821) { + message = other821.message; + __isset = other821.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -19139,13 +19636,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other792) : TException() { - message = other792.message; - __isset = other792.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other822) : TException() { + message = other822.message; + __isset = other822.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other793) { - message = other793.message; - __isset = other793.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other823) { + message = other823.message; + __isset = other823.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -19236,13 +19733,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other794) : TException() { - message = other794.message; - __isset = other794.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other824) : TException() { + message = other824.message; + __isset = other824.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other795) { - message = other795.message; - __isset = other795.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other825) { + message = other825.message; + __isset = other825.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -19333,13 +19830,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other796) : TException() { - message = other796.message; - __isset = other796.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other826) : TException() { + message = other826.message; + __isset = other826.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other797) { - message = other797.message; - __isset = other797.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other827) { + message = other827.message; + __isset = other827.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -19430,13 +19927,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other798) : TException() { - message = other798.message; - __isset = other798.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other828) : TException() { + message = other828.message; + __isset = other828.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other799) { - message = other799.message; - __isset = other799.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other829) { + message = other829.message; + __isset = other829.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -19527,13 +20024,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other800) : TException() { - message = other800.message; - __isset = other800.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other830) : TException() { + message = other830.message; + __isset = other830.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other801) { - message = other801.message; - __isset = other801.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other831) { + message = other831.message; + __isset = other831.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -19624,13 +20121,13 @@ void swap(IndexAlreadyExistsException &a, IndexAlreadyExistsException &b) { swap(a.__isset, b.__isset); } -IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other802) : TException() { - message = other802.message; - __isset = other802.__isset; +IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other832) : TException() { + message = other832.message; + __isset = other832.__isset; } -IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other803) { - message = other803.message; - __isset = other803.__isset; +IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other833) { + message = other833.message; + __isset = other833.__isset; return *this; } void IndexAlreadyExistsException::printTo(std::ostream& out) const { @@ -19721,13 +20218,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other804) : TException() { - message = other804.message; - __isset = other804.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other834) : TException() { + message = other834.message; + __isset = other834.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other805) { - message = other805.message; - __isset = other805.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other835) { + message = other835.message; + __isset = other835.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -19818,13 +20315,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other806) : TException() { - message = other806.message; - __isset = other806.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other836) : TException() { + message = other836.message; + __isset = other836.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other807) { - message = other807.message; - __isset = other807.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other837) { + message = other837.message; + __isset = other837.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -19915,13 +20412,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other808) : TException() { - message = other808.message; - __isset = other808.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other838) : TException() { + message = other838.message; + __isset = other838.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other809) { - message = other809.message; - __isset = other809.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other839) { + message = other839.message; + __isset = other839.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -20012,13 +20509,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other810) : TException() { - message = other810.message; - __isset = other810.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other840) : TException() { + message = other840.message; + __isset = other840.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other811) { - message = other811.message; - __isset = other811.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other841) { + message = other841.message; + __isset = other841.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -20109,13 +20606,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other812) : TException() { - message = other812.message; - __isset = other812.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other842) : TException() { + message = other842.message; + __isset = other842.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other813) { - message = other813.message; - __isset = other813.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other843) { + message = other843.message; + __isset = other843.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -20206,13 +20703,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other814) : TException() { - message = other814.message; - __isset = other814.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other844) : TException() { + message = other844.message; + __isset = other844.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other815) { - message = other815.message; - __isset = other815.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other845) { + message = other845.message; + __isset = other845.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -20303,13 +20800,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other816) : TException() { - message = other816.message; - __isset = other816.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other846) : TException() { + message = other846.message; + __isset = other846.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other817) { - message = other817.message; - __isset = other817.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other847) { + message = other847.message; + __isset = other847.__isset; return *this; } void NoSuchLockException::printTo(std::ostream& out) const { diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index e73333a..c5bd146 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -302,6 +302,12 @@ class RequestPartsSpec; class DropPartitionsRequest; +class PartitionValuesRequest; + +class PartitionValuesRow; + +class PartitionValuesResponse; + class ResourceUri; class Function; @@ -4640,6 +4646,181 @@ inline std::ostream& operator<<(std::ostream& out, const DropPartitionsRequest& return out; } +typedef struct _PartitionValuesRequest__isset { + _PartitionValuesRequest__isset() : applyDistinct(true), filter(false), partitionOrder(false), ascending(true), maxParts(true) {} + bool applyDistinct :1; + bool filter :1; + bool partitionOrder :1; + bool ascending :1; + bool maxParts :1; +} _PartitionValuesRequest__isset; + +class PartitionValuesRequest { + public: + + PartitionValuesRequest(const PartitionValuesRequest&); + PartitionValuesRequest& operator=(const PartitionValuesRequest&); + PartitionValuesRequest() : dbName(), tblName(), applyDistinct(true), filter(), ascending(true), maxParts(-1LL) { + } + + virtual ~PartitionValuesRequest() throw(); + std::string dbName; + std::string tblName; + std::vector partitionKeys; + bool applyDistinct; + std::string filter; + std::vector partitionOrder; + bool ascending; + int64_t maxParts; + + _PartitionValuesRequest__isset __isset; + + void __set_dbName(const std::string& val); + + void __set_tblName(const std::string& val); + + void __set_partitionKeys(const std::vector & val); + + void __set_applyDistinct(const bool val); + + void __set_filter(const std::string& val); + + void __set_partitionOrder(const std::vector & val); + + void __set_ascending(const bool val); + + void __set_maxParts(const int64_t val); + + bool operator == (const PartitionValuesRequest & rhs) const + { + if (!(dbName == rhs.dbName)) + return false; + if (!(tblName == rhs.tblName)) + return false; + if (!(partitionKeys == rhs.partitionKeys)) + return false; + if (__isset.applyDistinct != rhs.__isset.applyDistinct) + return false; + else if (__isset.applyDistinct && !(applyDistinct == rhs.applyDistinct)) + return false; + if (__isset.filter != rhs.__isset.filter) + return false; + else if (__isset.filter && !(filter == rhs.filter)) + return false; + if (__isset.partitionOrder != rhs.__isset.partitionOrder) + return false; + else if (__isset.partitionOrder && !(partitionOrder == rhs.partitionOrder)) + return false; + if (__isset.ascending != rhs.__isset.ascending) + return false; + else if (__isset.ascending && !(ascending == rhs.ascending)) + return false; + if (__isset.maxParts != rhs.__isset.maxParts) + return false; + else if (__isset.maxParts && !(maxParts == rhs.maxParts)) + return false; + return true; + } + bool operator != (const PartitionValuesRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const PartitionValuesRequest & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(PartitionValuesRequest &a, PartitionValuesRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const PartitionValuesRequest& obj) +{ + obj.printTo(out); + return out; +} + + +class PartitionValuesRow { + public: + + PartitionValuesRow(const PartitionValuesRow&); + PartitionValuesRow& operator=(const PartitionValuesRow&); + PartitionValuesRow() { + } + + virtual ~PartitionValuesRow() throw(); + std::vector row; + + void __set_row(const std::vector & val); + + bool operator == (const PartitionValuesRow & rhs) const + { + if (!(row == rhs.row)) + return false; + return true; + } + bool operator != (const PartitionValuesRow &rhs) const { + return !(*this == rhs); + } + + bool operator < (const PartitionValuesRow & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(PartitionValuesRow &a, PartitionValuesRow &b); + +inline std::ostream& operator<<(std::ostream& out, const PartitionValuesRow& obj) +{ + obj.printTo(out); + return out; +} + + +class PartitionValuesResponse { + public: + + PartitionValuesResponse(const PartitionValuesResponse&); + PartitionValuesResponse& operator=(const PartitionValuesResponse&); + PartitionValuesResponse() { + } + + virtual ~PartitionValuesResponse() throw(); + std::vector partitionValues; + + void __set_partitionValues(const std::vector & val); + + bool operator == (const PartitionValuesResponse & rhs) const + { + if (!(partitionValues == rhs.partitionValues)) + return false; + return true; + } + bool operator != (const PartitionValuesResponse &rhs) const { + return !(*this == rhs); + } + + bool operator < (const PartitionValuesResponse & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(PartitionValuesResponse &a, PartitionValuesResponse &b); + +inline std::ostream& operator<<(std::ostream& out, const PartitionValuesResponse& obj) +{ + obj.printTo(out); + return out; +} + typedef struct _ResourceUri__isset { _ResourceUri__isset() : resourceType(false), uri(false) {} bool resourceType :1; diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java index d89eb97..eee1e64 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AbortTxnsRequest st case 1: // TXN_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list484 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list484.size); - long _elem485; - for (int _i486 = 0; _i486 < _list484.size; ++_i486) + org.apache.thrift.protocol.TList _list516 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list516.size); + long _elem517; + for (int _i518 = 0; _i518 < _list516.size; ++_i518) { - _elem485 = iprot.readI64(); - struct.txn_ids.add(_elem485); + _elem517 = iprot.readI64(); + struct.txn_ids.add(_elem517); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AbortTxnsRequest s oprot.writeFieldBegin(TXN_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txn_ids.size())); - for (long _iter487 : struct.txn_ids) + for (long _iter519 : struct.txn_ids) { - oprot.writeI64(_iter487); + oprot.writeI64(_iter519); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest st TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txn_ids.size()); - for (long _iter488 : struct.txn_ids) + for (long _iter520 : struct.txn_ids) { - oprot.writeI64(_iter488); + oprot.writeI64(_iter520); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest st public void read(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list489.size); - long _elem490; - for (int _i491 = 0; _i491 < _list489.size; ++_i491) + org.apache.thrift.protocol.TList _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list521.size); + long _elem522; + for (int _i523 = 0; _i523 < _list521.size; ++_i523) { - _elem490 = iprot.readI64(); - struct.txn_ids.add(_elem490); + _elem522 = iprot.readI64(); + struct.txn_ids.add(_elem522); } } struct.setTxn_idsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java index ba06a56..054cf1b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java @@ -727,13 +727,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddDynamicPartition case 4: // PARTITIONNAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list542 = iprot.readListBegin(); - struct.partitionnames = new ArrayList(_list542.size); - String _elem543; - for (int _i544 = 0; _i544 < _list542.size; ++_i544) + org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); + struct.partitionnames = new ArrayList(_list574.size); + String _elem575; + for (int _i576 = 0; _i576 < _list574.size; ++_i576) { - _elem543 = iprot.readString(); - struct.partitionnames.add(_elem543); + _elem575 = iprot.readString(); + struct.partitionnames.add(_elem575); } iprot.readListEnd(); } @@ -780,9 +780,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddDynamicPartitio oprot.writeFieldBegin(PARTITIONNAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionnames.size())); - for (String _iter545 : struct.partitionnames) + for (String _iter577 : struct.partitionnames) { - oprot.writeString(_iter545); + oprot.writeString(_iter577); } oprot.writeListEnd(); } @@ -817,9 +817,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartition oprot.writeString(struct.tablename); { oprot.writeI32(struct.partitionnames.size()); - for (String _iter546 : struct.partitionnames) + for (String _iter578 : struct.partitionnames) { - oprot.writeString(_iter546); + oprot.writeString(_iter578); } } BitSet optionals = new BitSet(); @@ -842,13 +842,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); { - org.apache.thrift.protocol.TList _list547 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionnames = new ArrayList(_list547.size); - String _elem548; - for (int _i549 = 0; _i549 < _list547.size; ++_i549) + org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList(_list579.size); + String _elem580; + for (int _i581 = 0; _i581 < _list579.size; ++_i581) { - _elem548 = iprot.readString(); - struct.partitionnames.add(_elem548); + _elem580 = iprot.readString(); + struct.partitionnames.add(_elem580); } } struct.setPartitionnamesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java index 0da09bf..0b6574d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ClearFileMetadataRe case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list634 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list634.size); - long _elem635; - for (int _i636 = 0; _i636 < _list634.size; ++_i636) + org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list666.size); + long _elem667; + for (int _i668 = 0; _i668 < _list666.size; ++_i668) { - _elem635 = iprot.readI64(); - struct.fileIds.add(_elem635); + _elem667 = iprot.readI64(); + struct.fileIds.add(_elem667); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ClearFileMetadataR oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter637 : struct.fileIds) + for (long _iter669 : struct.fileIds) { - oprot.writeI64(_iter637); + oprot.writeI64(_iter669); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter638 : struct.fileIds) + for (long _iter670 : struct.fileIds) { - oprot.writeI64(_iter638); + oprot.writeI64(_iter670); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRe public void read(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list639 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list639.size); - long _elem640; - for (int _i641 = 0; _i641 < _list639.size; ++_i641) + org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list671.size); + long _elem672; + for (int _i673 = 0; _i673 < _list671.size; ++_i673) { - _elem640 = iprot.readI64(); - struct.fileIds.add(_elem640); + _elem672 = iprot.readI64(); + struct.fileIds.add(_elem672); } } struct.setFileIdsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java index 81534fe..19e671b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClientCapabilities.java @@ -354,13 +354,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ClientCapabilities case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); - struct.values = new ArrayList(_list650.size); - ClientCapability _elem651; - for (int _i652 = 0; _i652 < _list650.size; ++_i652) + org.apache.thrift.protocol.TList _list682 = iprot.readListBegin(); + struct.values = new ArrayList(_list682.size); + ClientCapability _elem683; + for (int _i684 = 0; _i684 < _list682.size; ++_i684) { - _elem651 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem651); + _elem683 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem683); } iprot.readListEnd(); } @@ -386,9 +386,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ClientCapabilities oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.values.size())); - for (ClientCapability _iter653 : struct.values) + for (ClientCapability _iter685 : struct.values) { - oprot.writeI32(_iter653.getValue()); + oprot.writeI32(_iter685.getValue()); } oprot.writeListEnd(); } @@ -413,9 +413,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.values.size()); - for (ClientCapability _iter654 : struct.values) + for (ClientCapability _iter686 : struct.values) { - oprot.writeI32(_iter654.getValue()); + oprot.writeI32(_iter686.getValue()); } } } @@ -424,13 +424,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities public void read(org.apache.thrift.protocol.TProtocol prot, ClientCapabilities struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); - struct.values = new ArrayList(_list655.size); - ClientCapability _elem656; - for (int _i657 = 0; _i657 < _list655.size; ++_i657) + org.apache.thrift.protocol.TList _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, iprot.readI32()); + struct.values = new ArrayList(_list687.size); + ClientCapability _elem688; + for (int _i689 = 0; _i689 < _list687.size; ++_i689) { - _elem656 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); - struct.values.add(_elem656); + _elem688 = org.apache.hadoop.hive.metastore.api.ClientCapability.findByValue(iprot.readI32()); + struct.values.add(_elem688); } } struct.setValuesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java index d3fc92a..3acb203 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/CompactionRequest.java @@ -814,15 +814,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, CompactionRequest s case 6: // PROPERTIES if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map524 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map524.size); - String _key525; - String _val526; - for (int _i527 = 0; _i527 < _map524.size; ++_i527) + org.apache.thrift.protocol.TMap _map556 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map556.size); + String _key557; + String _val558; + for (int _i559 = 0; _i559 < _map556.size; ++_i559) { - _key525 = iprot.readString(); - _val526 = iprot.readString(); - struct.properties.put(_key525, _val526); + _key557 = iprot.readString(); + _val558 = iprot.readString(); + struct.properties.put(_key557, _val558); } iprot.readMapEnd(); } @@ -878,10 +878,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, CompactionRequest oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size())); - for (Map.Entry _iter528 : struct.properties.entrySet()) + for (Map.Entry _iter560 : struct.properties.entrySet()) { - oprot.writeString(_iter528.getKey()); - oprot.writeString(_iter528.getValue()); + oprot.writeString(_iter560.getKey()); + oprot.writeString(_iter560.getValue()); } oprot.writeMapEnd(); } @@ -928,10 +928,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, CompactionRequest s if (struct.isSetProperties()) { { oprot.writeI32(struct.properties.size()); - for (Map.Entry _iter529 : struct.properties.entrySet()) + for (Map.Entry _iter561 : struct.properties.entrySet()) { - oprot.writeString(_iter529.getKey()); - oprot.writeString(_iter529.getValue()); + oprot.writeString(_iter561.getKey()); + oprot.writeString(_iter561.getValue()); } } } @@ -957,15 +957,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, CompactionRequest st } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map530 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.properties = new HashMap(2*_map530.size); - String _key531; - String _val532; - for (int _i533 = 0; _i533 < _map530.size; ++_i533) + org.apache.thrift.protocol.TMap _map562 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.properties = new HashMap(2*_map562.size); + String _key563; + String _val564; + for (int _i565 = 0; _i565 < _map562.size; ++_i565) { - _key531 = iprot.readString(); - _val532 = iprot.readString(); - struct.properties.put(_key531, _val532); + _key563 = iprot.readString(); + _val564 = iprot.readString(); + struct.properties.put(_key563, _val564); } } struct.setPropertiesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java index 7bb10b3..cc336c5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java @@ -713,13 +713,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, FireEventRequest st case 5: // PARTITION_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list574.size); - String _elem575; - for (int _i576 = 0; _i576 < _list574.size; ++_i576) + org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list606.size); + String _elem607; + for (int _i608 = 0; _i608 < _list606.size; ++_i608) { - _elem575 = iprot.readString(); - struct.partitionVals.add(_elem575); + _elem607 = iprot.readString(); + struct.partitionVals.add(_elem607); } iprot.readListEnd(); } @@ -768,9 +768,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, FireEventRequest s oprot.writeFieldBegin(PARTITION_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionVals.size())); - for (String _iter577 : struct.partitionVals) + for (String _iter609 : struct.partitionVals) { - oprot.writeString(_iter577); + oprot.writeString(_iter609); } oprot.writeListEnd(); } @@ -816,9 +816,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, FireEventRequest st if (struct.isSetPartitionVals()) { { oprot.writeI32(struct.partitionVals.size()); - for (String _iter578 : struct.partitionVals) + for (String _iter610 : struct.partitionVals) { - oprot.writeString(_iter578); + oprot.writeString(_iter610); } } } @@ -843,13 +843,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionVals = new ArrayList(_list579.size); - String _elem580; - for (int _i581 = 0; _i581 < _list579.size; ++_i581) + org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list611.size); + String _elem612; + for (int _i613 = 0; _i613 < _list611.size; ++_i613) { - _elem580 = iprot.readString(); - struct.partitionVals.add(_elem580); + _elem612 = iprot.readString(); + struct.partitionVals.add(_elem612); } } struct.setPartitionValsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java index 56a4d30..ad12ab1 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java @@ -997,14 +997,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Function struct) th case 8: // RESOURCE_URIS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list452 = iprot.readListBegin(); - struct.resourceUris = new ArrayList(_list452.size); - ResourceUri _elem453; - for (int _i454 = 0; _i454 < _list452.size; ++_i454) + org.apache.thrift.protocol.TList _list484 = iprot.readListBegin(); + struct.resourceUris = new ArrayList(_list484.size); + ResourceUri _elem485; + for (int _i486 = 0; _i486 < _list484.size; ++_i486) { - _elem453 = new ResourceUri(); - _elem453.read(iprot); - struct.resourceUris.add(_elem453); + _elem485 = new ResourceUri(); + _elem485.read(iprot); + struct.resourceUris.add(_elem485); } iprot.readListEnd(); } @@ -1063,9 +1063,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Function struct) t oprot.writeFieldBegin(RESOURCE_URIS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.resourceUris.size())); - for (ResourceUri _iter455 : struct.resourceUris) + for (ResourceUri _iter487 : struct.resourceUris) { - _iter455.write(oprot); + _iter487.write(oprot); } oprot.writeListEnd(); } @@ -1138,9 +1138,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Function struct) th if (struct.isSetResourceUris()) { { oprot.writeI32(struct.resourceUris.size()); - for (ResourceUri _iter456 : struct.resourceUris) + for (ResourceUri _iter488 : struct.resourceUris) { - _iter456.write(oprot); + _iter488.write(oprot); } } } @@ -1180,14 +1180,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Function struct) thr } if (incoming.get(7)) { { - org.apache.thrift.protocol.TList _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourceUris = new ArrayList(_list457.size); - ResourceUri _elem458; - for (int _i459 = 0; _i459 < _list457.size; ++_i459) + org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourceUris = new ArrayList(_list489.size); + ResourceUri _elem490; + for (int _i491 = 0; _i491 < _list489.size; ++_i491) { - _elem458 = new ResourceUri(); - _elem458.read(iprot); - struct.resourceUris.add(_elem458); + _elem490 = new ResourceUri(); + _elem490.read(iprot); + struct.resourceUris.add(_elem490); } } struct.setResourceUrisIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java index 49a1be2..bb11fe3 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetAllFunctionsResp case 1: // FUNCTIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list642 = iprot.readListBegin(); - struct.functions = new ArrayList(_list642.size); - Function _elem643; - for (int _i644 = 0; _i644 < _list642.size; ++_i644) + org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); + struct.functions = new ArrayList(_list674.size); + Function _elem675; + for (int _i676 = 0; _i676 < _list674.size; ++_i676) { - _elem643 = new Function(); - _elem643.read(iprot); - struct.functions.add(_elem643); + _elem675 = new Function(); + _elem675.read(iprot); + struct.functions.add(_elem675); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetAllFunctionsRes oprot.writeFieldBegin(FUNCTIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.functions.size())); - for (Function _iter645 : struct.functions) + for (Function _iter677 : struct.functions) { - _iter645.write(oprot); + _iter677.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetAllFunctionsResp if (struct.isSetFunctions()) { { oprot.writeI32(struct.functions.size()); - for (Function _iter646 : struct.functions) + for (Function _iter678 : struct.functions) { - _iter646.write(oprot); + _iter678.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetAllFunctionsRespo BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList(_list647.size); - Function _elem648; - for (int _i649 = 0; _i649 < _list647.size; ++_i649) + org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list679.size); + Function _elem680; + for (int _i681 = 0; _i681 < _list679.size; ++_i681) { - _elem648 = new Function(); - _elem648.read(iprot); - struct.functions.add(_elem648); + _elem680 = new Function(); + _elem680.read(iprot); + struct.functions.add(_elem680); } } struct.setFunctionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java index 20b82cf..ef758cd 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java @@ -619,13 +619,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataByEx case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list592 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list592.size); - long _elem593; - for (int _i594 = 0; _i594 < _list592.size; ++_i594) + org.apache.thrift.protocol.TList _list624 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list624.size); + long _elem625; + for (int _i626 = 0; _i626 < _list624.size; ++_i626) { - _elem593 = iprot.readI64(); - struct.fileIds.add(_elem593); + _elem625 = iprot.readI64(); + struct.fileIds.add(_elem625); } iprot.readListEnd(); } @@ -675,9 +675,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataByE oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter595 : struct.fileIds) + for (long _iter627 : struct.fileIds) { - oprot.writeI64(_iter595); + oprot.writeI64(_iter627); } oprot.writeListEnd(); } @@ -719,9 +719,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter596 : struct.fileIds) + for (long _iter628 : struct.fileIds) { - oprot.writeI64(_iter596); + oprot.writeI64(_iter628); } } oprot.writeBinary(struct.expr); @@ -745,13 +745,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExprRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list597 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list597.size); - long _elem598; - for (int _i599 = 0; _i599 < _list597.size; ++_i599) + org.apache.thrift.protocol.TList _list629 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list629.size); + long _elem630; + for (int _i631 = 0; _i631 < _list629.size; ++_i631) { - _elem598 = iprot.readI64(); - struct.fileIds.add(_elem598); + _elem630 = iprot.readI64(); + struct.fileIds.add(_elem630); } } struct.setFileIdsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java index 9975dfc..ee94380 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java @@ -444,16 +444,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataByEx case 1: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map582 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map582.size); - long _key583; - MetadataPpdResult _val584; - for (int _i585 = 0; _i585 < _map582.size; ++_i585) + org.apache.thrift.protocol.TMap _map614 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map614.size); + long _key615; + MetadataPpdResult _val616; + for (int _i617 = 0; _i617 < _map614.size; ++_i617) { - _key583 = iprot.readI64(); - _val584 = new MetadataPpdResult(); - _val584.read(iprot); - struct.metadata.put(_key583, _val584); + _key615 = iprot.readI64(); + _val616 = new MetadataPpdResult(); + _val616.read(iprot); + struct.metadata.put(_key615, _val616); } iprot.readMapEnd(); } @@ -487,10 +487,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataByE oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.metadata.size())); - for (Map.Entry _iter586 : struct.metadata.entrySet()) + for (Map.Entry _iter618 : struct.metadata.entrySet()) { - oprot.writeI64(_iter586.getKey()); - _iter586.getValue().write(oprot); + oprot.writeI64(_iter618.getKey()); + _iter618.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -518,10 +518,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.metadata.size()); - for (Map.Entry _iter587 : struct.metadata.entrySet()) + for (Map.Entry _iter619 : struct.metadata.entrySet()) { - oprot.writeI64(_iter587.getKey()); - _iter587.getValue().write(oprot); + oprot.writeI64(_iter619.getKey()); + _iter619.getValue().write(oprot); } } oprot.writeBool(struct.isSupported); @@ -531,16 +531,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExprResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map588 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.metadata = new HashMap(2*_map588.size); - long _key589; - MetadataPpdResult _val590; - for (int _i591 = 0; _i591 < _map588.size; ++_i591) + org.apache.thrift.protocol.TMap _map620 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.metadata = new HashMap(2*_map620.size); + long _key621; + MetadataPpdResult _val622; + for (int _i623 = 0; _i623 < _map620.size; ++_i623) { - _key589 = iprot.readI64(); - _val590 = new MetadataPpdResult(); - _val590.read(iprot); - struct.metadata.put(_key589, _val590); + _key621 = iprot.readI64(); + _val622 = new MetadataPpdResult(); + _val622.read(iprot); + struct.metadata.put(_key621, _val622); } } struct.setMetadataIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java index 7aebede..f8c8258 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataRequ case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list610 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list610.size); - long _elem611; - for (int _i612 = 0; _i612 < _list610.size; ++_i612) + org.apache.thrift.protocol.TList _list642 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list642.size); + long _elem643; + for (int _i644 = 0; _i644 < _list642.size; ++_i644) { - _elem611 = iprot.readI64(); - struct.fileIds.add(_elem611); + _elem643 = iprot.readI64(); + struct.fileIds.add(_elem643); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataReq oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter613 : struct.fileIds) + for (long _iter645 : struct.fileIds) { - oprot.writeI64(_iter613); + oprot.writeI64(_iter645); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequ TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter614 : struct.fileIds) + for (long _iter646 : struct.fileIds) { - oprot.writeI64(_iter614); + oprot.writeI64(_iter646); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequ public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list615 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list615.size); - long _elem616; - for (int _i617 = 0; _i617 < _list615.size; ++_i617) + org.apache.thrift.protocol.TList _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list647.size); + long _elem648; + for (int _i649 = 0; _i649 < _list647.size; ++_i649) { - _elem616 = iprot.readI64(); - struct.fileIds.add(_elem616); + _elem648 = iprot.readI64(); + struct.fileIds.add(_elem648); } } struct.setFileIdsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java index fe83a6e..73888e9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java @@ -433,15 +433,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataResu case 1: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map600 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map600.size); - long _key601; - ByteBuffer _val602; - for (int _i603 = 0; _i603 < _map600.size; ++_i603) + org.apache.thrift.protocol.TMap _map632 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map632.size); + long _key633; + ByteBuffer _val634; + for (int _i635 = 0; _i635 < _map632.size; ++_i635) { - _key601 = iprot.readI64(); - _val602 = iprot.readBinary(); - struct.metadata.put(_key601, _val602); + _key633 = iprot.readI64(); + _val634 = iprot.readBinary(); + struct.metadata.put(_key633, _val634); } iprot.readMapEnd(); } @@ -475,10 +475,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataRes oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.metadata.size())); - for (Map.Entry _iter604 : struct.metadata.entrySet()) + for (Map.Entry _iter636 : struct.metadata.entrySet()) { - oprot.writeI64(_iter604.getKey()); - oprot.writeBinary(_iter604.getValue()); + oprot.writeI64(_iter636.getKey()); + oprot.writeBinary(_iter636.getValue()); } oprot.writeMapEnd(); } @@ -506,10 +506,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResu TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.metadata.size()); - for (Map.Entry _iter605 : struct.metadata.entrySet()) + for (Map.Entry _iter637 : struct.metadata.entrySet()) { - oprot.writeI64(_iter605.getKey()); - oprot.writeBinary(_iter605.getValue()); + oprot.writeI64(_iter637.getKey()); + oprot.writeBinary(_iter637.getValue()); } } oprot.writeBool(struct.isSupported); @@ -519,15 +519,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResu public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map606 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new HashMap(2*_map606.size); - long _key607; - ByteBuffer _val608; - for (int _i609 = 0; _i609 < _map606.size; ++_i609) + org.apache.thrift.protocol.TMap _map638 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new HashMap(2*_map638.size); + long _key639; + ByteBuffer _val640; + for (int _i641 = 0; _i641 < _map638.size; ++_i641) { - _key607 = iprot.readI64(); - _val608 = iprot.readBinary(); - struct.metadata.put(_key607, _val608); + _key639 = iprot.readI64(); + _val640 = iprot.readBinary(); + struct.metadata.put(_key639, _val640); } } struct.setMetadataIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java index e68793b..18a8e62 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java @@ -447,14 +447,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetOpenTxnsInfoResp case 2: // OPEN_TXNS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list460 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list460.size); - TxnInfo _elem461; - for (int _i462 = 0; _i462 < _list460.size; ++_i462) + org.apache.thrift.protocol.TList _list492 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list492.size); + TxnInfo _elem493; + for (int _i494 = 0; _i494 < _list492.size; ++_i494) { - _elem461 = new TxnInfo(); - _elem461.read(iprot); - struct.open_txns.add(_elem461); + _elem493 = new TxnInfo(); + _elem493.read(iprot); + struct.open_txns.add(_elem493); } iprot.readListEnd(); } @@ -483,9 +483,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetOpenTxnsInfoRes oprot.writeFieldBegin(OPEN_TXNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.open_txns.size())); - for (TxnInfo _iter463 : struct.open_txns) + for (TxnInfo _iter495 : struct.open_txns) { - _iter463.write(oprot); + _iter495.write(oprot); } oprot.writeListEnd(); } @@ -511,9 +511,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsInfoResp oprot.writeI64(struct.txn_high_water_mark); { oprot.writeI32(struct.open_txns.size()); - for (TxnInfo _iter464 : struct.open_txns) + for (TxnInfo _iter496 : struct.open_txns) { - _iter464.write(oprot); + _iter496.write(oprot); } } } @@ -524,14 +524,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsInfoRespo struct.txn_high_water_mark = iprot.readI64(); struct.setTxn_high_water_markIsSet(true); { - org.apache.thrift.protocol.TList _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.open_txns = new ArrayList(_list465.size); - TxnInfo _elem466; - for (int _i467 = 0; _i467 < _list465.size; ++_i467) + org.apache.thrift.protocol.TList _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.open_txns = new ArrayList(_list497.size); + TxnInfo _elem498; + for (int _i499 = 0; _i499 < _list497.size; ++_i499) { - _elem466 = new TxnInfo(); - _elem466.read(iprot); - struct.open_txns.add(_elem466); + _elem498 = new TxnInfo(); + _elem498.read(iprot); + struct.open_txns.add(_elem498); } } struct.setOpen_txnsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java index 8230d38..572e2cd 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java @@ -521,13 +521,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetOpenTxnsResponse case 2: // OPEN_TXNS if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set468 = iprot.readSetBegin(); - struct.open_txns = new HashSet(2*_set468.size); - long _elem469; - for (int _i470 = 0; _i470 < _set468.size; ++_i470) + org.apache.thrift.protocol.TSet _set500 = iprot.readSetBegin(); + struct.open_txns = new HashSet(2*_set500.size); + long _elem501; + for (int _i502 = 0; _i502 < _set500.size; ++_i502) { - _elem469 = iprot.readI64(); - struct.open_txns.add(_elem469); + _elem501 = iprot.readI64(); + struct.open_txns.add(_elem501); } iprot.readSetEnd(); } @@ -564,9 +564,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetOpenTxnsRespons oprot.writeFieldBegin(OPEN_TXNS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.open_txns.size())); - for (long _iter471 : struct.open_txns) + for (long _iter503 : struct.open_txns) { - oprot.writeI64(_iter471); + oprot.writeI64(_iter503); } oprot.writeSetEnd(); } @@ -597,9 +597,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsResponse oprot.writeI64(struct.txn_high_water_mark); { oprot.writeI32(struct.open_txns.size()); - for (long _iter472 : struct.open_txns) + for (long _iter504 : struct.open_txns) { - oprot.writeI64(_iter472); + oprot.writeI64(_iter504); } } BitSet optionals = new BitSet(); @@ -618,13 +618,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsResponse struct.txn_high_water_mark = iprot.readI64(); struct.setTxn_high_water_markIsSet(true); { - org.apache.thrift.protocol.TSet _set473 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.open_txns = new HashSet(2*_set473.size); - long _elem474; - for (int _i475 = 0; _i475 < _set473.size; ++_i475) + org.apache.thrift.protocol.TSet _set505 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.open_txns = new HashSet(2*_set505.size); + long _elem506; + for (int _i507 = 0; _i507 < _set505.size; ++_i507) { - _elem474 = iprot.readI64(); - struct.open_txns.add(_elem474); + _elem506 = iprot.readI64(); + struct.open_txns.add(_elem506); } } struct.setOpen_txnsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java index 225fda9..5195427 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesRequest.java @@ -525,13 +525,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesRequest st case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); - struct.tblNames = new ArrayList(_list658.size); - String _elem659; - for (int _i660 = 0; _i660 < _list658.size; ++_i660) + org.apache.thrift.protocol.TList _list690 = iprot.readListBegin(); + struct.tblNames = new ArrayList(_list690.size); + String _elem691; + for (int _i692 = 0; _i692 < _list690.size; ++_i692) { - _elem659 = iprot.readString(); - struct.tblNames.add(_elem659); + _elem691 = iprot.readString(); + struct.tblNames.add(_elem691); } iprot.readListEnd(); } @@ -572,9 +572,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesRequest s oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tblNames.size())); - for (String _iter661 : struct.tblNames) + for (String _iter693 : struct.tblNames) { - oprot.writeString(_iter661); + oprot.writeString(_iter693); } oprot.writeListEnd(); } @@ -617,9 +617,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest st if (struct.isSetTblNames()) { { oprot.writeI32(struct.tblNames.size()); - for (String _iter662 : struct.tblNames) + for (String _iter694 : struct.tblNames) { - oprot.writeString(_iter662); + oprot.writeString(_iter694); } } } @@ -636,13 +636,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesRequest str BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tblNames = new ArrayList(_list663.size); - String _elem664; - for (int _i665 = 0; _i665 < _list663.size; ++_i665) + org.apache.thrift.protocol.TList _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tblNames = new ArrayList(_list695.size); + String _elem696; + for (int _i697 = 0; _i697 < _list695.size; ++_i697) { - _elem664 = iprot.readString(); - struct.tblNames.add(_elem664); + _elem696 = iprot.readString(); + struct.tblNames.add(_elem696); } } struct.setTblNamesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java index 91cb198..1ade2f5 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetTablesResult.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetTablesResult str case 1: // TABLES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); - struct.tables = new ArrayList
(_list666.size); - Table _elem667; - for (int _i668 = 0; _i668 < _list666.size; ++_i668) + org.apache.thrift.protocol.TList _list698 = iprot.readListBegin(); + struct.tables = new ArrayList
(_list698.size); + Table _elem699; + for (int _i700 = 0; _i700 < _list698.size; ++_i700) { - _elem667 = new Table(); - _elem667.read(iprot); - struct.tables.add(_elem667); + _elem699 = new Table(); + _elem699.read(iprot); + struct.tables.add(_elem699); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetTablesResult st oprot.writeFieldBegin(TABLES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tables.size())); - for (Table _iter669 : struct.tables) + for (Table _iter701 : struct.tables) { - _iter669.write(oprot); + _iter701.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesResult str TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.tables.size()); - for (Table _iter670 : struct.tables) + for (Table _iter702 : struct.tables) { - _iter670.write(oprot); + _iter702.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetTablesResult str public void read(org.apache.thrift.protocol.TProtocol prot, GetTablesResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tables = new ArrayList
(_list671.size); - Table _elem672; - for (int _i673 = 0; _i673 < _list671.size; ++_i673) + org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tables = new ArrayList
(_list703.size); + Table _elem704; + for (int _i705 = 0; _i705 < _list703.size; ++_i705) { - _elem672 = new Table(); - _elem672.read(iprot); - struct.tables.add(_elem672); + _elem704 = new Table(); + _elem704.read(iprot); + struct.tables.add(_elem704); } } struct.setTablesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java index 164ff51..a33210d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java @@ -453,13 +453,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatTxnRangeRe case 1: // ABORTED if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set508 = iprot.readSetBegin(); - struct.aborted = new HashSet(2*_set508.size); - long _elem509; - for (int _i510 = 0; _i510 < _set508.size; ++_i510) + org.apache.thrift.protocol.TSet _set540 = iprot.readSetBegin(); + struct.aborted = new HashSet(2*_set540.size); + long _elem541; + for (int _i542 = 0; _i542 < _set540.size; ++_i542) { - _elem509 = iprot.readI64(); - struct.aborted.add(_elem509); + _elem541 = iprot.readI64(); + struct.aborted.add(_elem541); } iprot.readSetEnd(); } @@ -471,13 +471,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatTxnRangeRe case 2: // NOSUCH if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set511 = iprot.readSetBegin(); - struct.nosuch = new HashSet(2*_set511.size); - long _elem512; - for (int _i513 = 0; _i513 < _set511.size; ++_i513) + org.apache.thrift.protocol.TSet _set543 = iprot.readSetBegin(); + struct.nosuch = new HashSet(2*_set543.size); + long _elem544; + for (int _i545 = 0; _i545 < _set543.size; ++_i545) { - _elem512 = iprot.readI64(); - struct.nosuch.add(_elem512); + _elem544 = iprot.readI64(); + struct.nosuch.add(_elem544); } iprot.readSetEnd(); } @@ -503,9 +503,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, HeartbeatTxnRangeR oprot.writeFieldBegin(ABORTED_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.aborted.size())); - for (long _iter514 : struct.aborted) + for (long _iter546 : struct.aborted) { - oprot.writeI64(_iter514); + oprot.writeI64(_iter546); } oprot.writeSetEnd(); } @@ -515,9 +515,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, HeartbeatTxnRangeR oprot.writeFieldBegin(NOSUCH_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.nosuch.size())); - for (long _iter515 : struct.nosuch) + for (long _iter547 : struct.nosuch) { - oprot.writeI64(_iter515); + oprot.writeI64(_iter547); } oprot.writeSetEnd(); } @@ -542,16 +542,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.aborted.size()); - for (long _iter516 : struct.aborted) + for (long _iter548 : struct.aborted) { - oprot.writeI64(_iter516); + oprot.writeI64(_iter548); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter517 : struct.nosuch) + for (long _iter549 : struct.nosuch) { - oprot.writeI64(_iter517); + oprot.writeI64(_iter549); } } } @@ -560,24 +560,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeRe public void read(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TSet _set518 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.aborted = new HashSet(2*_set518.size); - long _elem519; - for (int _i520 = 0; _i520 < _set518.size; ++_i520) + org.apache.thrift.protocol.TSet _set550 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.aborted = new HashSet(2*_set550.size); + long _elem551; + for (int _i552 = 0; _i552 < _set550.size; ++_i552) { - _elem519 = iprot.readI64(); - struct.aborted.add(_elem519); + _elem551 = iprot.readI64(); + struct.aborted.add(_elem551); } } struct.setAbortedIsSet(true); { - org.apache.thrift.protocol.TSet _set521 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.nosuch = new HashSet(2*_set521.size); - long _elem522; - for (int _i523 = 0; _i523 < _set521.size; ++_i523) + org.apache.thrift.protocol.TSet _set553 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.nosuch = new HashSet(2*_set553.size); + long _elem554; + for (int _i555 = 0; _i555 < _set553.size; ++_i555) { - _elem522 = iprot.readI64(); - struct.nosuch.add(_elem522); + _elem554 = iprot.readI64(); + struct.nosuch.add(_elem554); } } struct.setNosuchIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java index fd1dc06..766d7d3 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java @@ -450,13 +450,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD case 1: // FILES_ADDED if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list558 = iprot.readListBegin(); - struct.filesAdded = new ArrayList(_list558.size); - String _elem559; - for (int _i560 = 0; _i560 < _list558.size; ++_i560) + org.apache.thrift.protocol.TList _list590 = iprot.readListBegin(); + struct.filesAdded = new ArrayList(_list590.size); + String _elem591; + for (int _i592 = 0; _i592 < _list590.size; ++_i592) { - _elem559 = iprot.readString(); - struct.filesAdded.add(_elem559); + _elem591 = iprot.readString(); + struct.filesAdded.add(_elem591); } iprot.readListEnd(); } @@ -468,13 +468,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD case 2: // FILES_ADDED_CHECKSUM if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list561 = iprot.readListBegin(); - struct.filesAddedChecksum = new ArrayList(_list561.size); - String _elem562; - for (int _i563 = 0; _i563 < _list561.size; ++_i563) + org.apache.thrift.protocol.TList _list593 = iprot.readListBegin(); + struct.filesAddedChecksum = new ArrayList(_list593.size); + String _elem594; + for (int _i595 = 0; _i595 < _list593.size; ++_i595) { - _elem562 = iprot.readString(); - struct.filesAddedChecksum.add(_elem562); + _elem594 = iprot.readString(); + struct.filesAddedChecksum.add(_elem594); } iprot.readListEnd(); } @@ -500,9 +500,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, InsertEventRequest oprot.writeFieldBegin(FILES_ADDED_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.filesAdded.size())); - for (String _iter564 : struct.filesAdded) + for (String _iter596 : struct.filesAdded) { - oprot.writeString(_iter564); + oprot.writeString(_iter596); } oprot.writeListEnd(); } @@ -513,9 +513,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, InsertEventRequest oprot.writeFieldBegin(FILES_ADDED_CHECKSUM_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.filesAddedChecksum.size())); - for (String _iter565 : struct.filesAddedChecksum) + for (String _iter597 : struct.filesAddedChecksum) { - oprot.writeString(_iter565); + oprot.writeString(_iter597); } oprot.writeListEnd(); } @@ -541,9 +541,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.filesAdded.size()); - for (String _iter566 : struct.filesAdded) + for (String _iter598 : struct.filesAdded) { - oprot.writeString(_iter566); + oprot.writeString(_iter598); } } BitSet optionals = new BitSet(); @@ -554,9 +554,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD if (struct.isSetFilesAddedChecksum()) { { oprot.writeI32(struct.filesAddedChecksum.size()); - for (String _iter567 : struct.filesAddedChecksum) + for (String _iter599 : struct.filesAddedChecksum) { - oprot.writeString(_iter567); + oprot.writeString(_iter599); } } } @@ -566,26 +566,26 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD public void read(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestData struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list568 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAdded = new ArrayList(_list568.size); - String _elem569; - for (int _i570 = 0; _i570 < _list568.size; ++_i570) + org.apache.thrift.protocol.TList _list600 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAdded = new ArrayList(_list600.size); + String _elem601; + for (int _i602 = 0; _i602 < _list600.size; ++_i602) { - _elem569 = iprot.readString(); - struct.filesAdded.add(_elem569); + _elem601 = iprot.readString(); + struct.filesAdded.add(_elem601); } } struct.setFilesAddedIsSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAddedChecksum = new ArrayList(_list571.size); - String _elem572; - for (int _i573 = 0; _i573 < _list571.size; ++_i573) + org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAddedChecksum = new ArrayList(_list603.size); + String _elem604; + for (int _i605 = 0; _i605 < _list603.size; ++_i605) { - _elem572 = iprot.readString(); - struct.filesAddedChecksum.add(_elem572); + _elem604 = iprot.readString(); + struct.filesAddedChecksum.add(_elem604); } } struct.setFilesAddedChecksumIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java index a1a1cac..833adbb 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java @@ -689,14 +689,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, LockRequest struct) case 1: // COMPONENT if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list492 = iprot.readListBegin(); - struct.component = new ArrayList(_list492.size); - LockComponent _elem493; - for (int _i494 = 0; _i494 < _list492.size; ++_i494) + org.apache.thrift.protocol.TList _list524 = iprot.readListBegin(); + struct.component = new ArrayList(_list524.size); + LockComponent _elem525; + for (int _i526 = 0; _i526 < _list524.size; ++_i526) { - _elem493 = new LockComponent(); - _elem493.read(iprot); - struct.component.add(_elem493); + _elem525 = new LockComponent(); + _elem525.read(iprot); + struct.component.add(_elem525); } iprot.readListEnd(); } @@ -754,9 +754,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, LockRequest struct oprot.writeFieldBegin(COMPONENT_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.component.size())); - for (LockComponent _iter495 : struct.component) + for (LockComponent _iter527 : struct.component) { - _iter495.write(oprot); + _iter527.write(oprot); } oprot.writeListEnd(); } @@ -803,9 +803,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.component.size()); - for (LockComponent _iter496 : struct.component) + for (LockComponent _iter528 : struct.component) { - _iter496.write(oprot); + _iter528.write(oprot); } } oprot.writeString(struct.user); @@ -830,14 +830,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) public void read(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.component = new ArrayList(_list497.size); - LockComponent _elem498; - for (int _i499 = 0; _i499 < _list497.size; ++_i499) + org.apache.thrift.protocol.TList _list529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list529.size); + LockComponent _elem530; + for (int _i531 = 0; _i531 < _list529.size; ++_i531) { - _elem498 = new LockComponent(); - _elem498.read(iprot); - struct.component.add(_elem498); + _elem530 = new LockComponent(); + _elem530.read(iprot); + struct.component.add(_elem530); } } struct.setComponentIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java index edc548a..bcfc75b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, NotificationEventRe case 1: // EVENTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list550 = iprot.readListBegin(); - struct.events = new ArrayList(_list550.size); - NotificationEvent _elem551; - for (int _i552 = 0; _i552 < _list550.size; ++_i552) + org.apache.thrift.protocol.TList _list582 = iprot.readListBegin(); + struct.events = new ArrayList(_list582.size); + NotificationEvent _elem583; + for (int _i584 = 0; _i584 < _list582.size; ++_i584) { - _elem551 = new NotificationEvent(); - _elem551.read(iprot); - struct.events.add(_elem551); + _elem583 = new NotificationEvent(); + _elem583.read(iprot); + struct.events.add(_elem583); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, NotificationEventR oprot.writeFieldBegin(EVENTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.events.size())); - for (NotificationEvent _iter553 : struct.events) + for (NotificationEvent _iter585 : struct.events) { - _iter553.write(oprot); + _iter585.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.events.size()); - for (NotificationEvent _iter554 : struct.events) + for (NotificationEvent _iter586 : struct.events) { - _iter554.write(oprot); + _iter586.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRe public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list555 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.events = new ArrayList(_list555.size); - NotificationEvent _elem556; - for (int _i557 = 0; _i557 < _list555.size; ++_i557) + org.apache.thrift.protocol.TList _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.events = new ArrayList(_list587.size); + NotificationEvent _elem588; + for (int _i589 = 0; _i589 < _list587.size; ++_i589) { - _elem556 = new NotificationEvent(); - _elem556.read(iprot); - struct.events.add(_elem556); + _elem588 = new NotificationEvent(); + _elem588.read(iprot); + struct.events.add(_elem588); } } struct.setEventsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java index a8af71b..c23482a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, OpenTxnsResponse st case 1: // TXN_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list476 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list476.size); - long _elem477; - for (int _i478 = 0; _i478 < _list476.size; ++_i478) + org.apache.thrift.protocol.TList _list508 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list508.size); + long _elem509; + for (int _i510 = 0; _i510 < _list508.size; ++_i510) { - _elem477 = iprot.readI64(); - struct.txn_ids.add(_elem477); + _elem509 = iprot.readI64(); + struct.txn_ids.add(_elem509); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, OpenTxnsResponse s oprot.writeFieldBegin(TXN_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txn_ids.size())); - for (long _iter479 : struct.txn_ids) + for (long _iter511 : struct.txn_ids) { - oprot.writeI64(_iter479); + oprot.writeI64(_iter511); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse st TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txn_ids.size()); - for (long _iter480 : struct.txn_ids) + for (long _iter512 : struct.txn_ids) { - oprot.writeI64(_iter480); + oprot.writeI64(_iter512); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse st public void read(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list481 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list481.size); - long _elem482; - for (int _i483 = 0; _i483 < _list481.size; ++_i483) + org.apache.thrift.protocol.TList _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list513.size); + long _elem514; + for (int _i515 = 0; _i515 < _list513.size; ++_i515) { - _elem482 = iprot.readI64(); - struct.txn_ids.add(_elem482); + _elem514 = iprot.readI64(); + struct.txn_ids.add(_elem514); } } struct.setTxn_idsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java new file mode 100644 index 0000000..552da08 --- /dev/null +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRequest.java @@ -0,0 +1,1222 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +public class PartitionValuesRequest 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("PartitionValuesRequest"); + + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("dbName", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tblName", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PARTITION_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionKeys", org.apache.thrift.protocol.TType.LIST, (short)3); + private static final org.apache.thrift.protocol.TField APPLY_DISTINCT_FIELD_DESC = new org.apache.thrift.protocol.TField("applyDistinct", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("filter", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField PARTITION_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionOrder", org.apache.thrift.protocol.TType.LIST, (short)6); + private static final org.apache.thrift.protocol.TField ASCENDING_FIELD_DESC = new org.apache.thrift.protocol.TField("ascending", org.apache.thrift.protocol.TType.BOOL, (short)7); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("maxParts", org.apache.thrift.protocol.TType.I64, (short)8); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new PartitionValuesRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new PartitionValuesRequestTupleSchemeFactory()); + } + + private String dbName; // required + private String tblName; // required + private List partitionKeys; // required + private boolean applyDistinct; // optional + private String filter; // optional + private List partitionOrder; // optional + private boolean ascending; // optional + private long maxParts; // optional + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + DB_NAME((short)1, "dbName"), + TBL_NAME((short)2, "tblName"), + PARTITION_KEYS((short)3, "partitionKeys"), + APPLY_DISTINCT((short)4, "applyDistinct"), + FILTER((short)5, "filter"), + PARTITION_ORDER((short)6, "partitionOrder"), + ASCENDING((short)7, "ascending"), + MAX_PARTS((short)8, "maxParts"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PARTITION_KEYS + return PARTITION_KEYS; + case 4: // APPLY_DISTINCT + return APPLY_DISTINCT; + case 5: // FILTER + return FILTER; + case 6: // PARTITION_ORDER + return PARTITION_ORDER; + case 7: // ASCENDING + return ASCENDING; + case 8: // MAX_PARTS + return MAX_PARTS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __APPLYDISTINCT_ISSET_ID = 0; + private static final int __ASCENDING_ISSET_ID = 1; + private static final int __MAXPARTS_ISSET_ID = 2; + private byte __isset_bitfield = 0; + private static final _Fields optionals[] = {_Fields.APPLY_DISTINCT,_Fields.FILTER,_Fields.PARTITION_ORDER,_Fields.ASCENDING,_Fields.MAX_PARTS}; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("dbName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tblName", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PARTITION_KEYS, new org.apache.thrift.meta_data.FieldMetaData("partitionKeys", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FieldSchema.class)))); + tmpMap.put(_Fields.APPLY_DISTINCT, new org.apache.thrift.meta_data.FieldMetaData("applyDistinct", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.FILTER, new org.apache.thrift.meta_data.FieldMetaData("filter", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PARTITION_ORDER, new org.apache.thrift.meta_data.FieldMetaData("partitionOrder", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FieldSchema.class)))); + tmpMap.put(_Fields.ASCENDING, new org.apache.thrift.meta_data.FieldMetaData("ascending", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("maxParts", org.apache.thrift.TFieldRequirementType.OPTIONAL, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PartitionValuesRequest.class, metaDataMap); + } + + public PartitionValuesRequest() { + this.applyDistinct = true; + + this.ascending = true; + + this.maxParts = -1L; + + } + + public PartitionValuesRequest( + String dbName, + String tblName, + List partitionKeys) + { + this(); + this.dbName = dbName; + this.tblName = tblName; + this.partitionKeys = partitionKeys; + } + + /** + * Performs a deep copy on other. + */ + public PartitionValuesRequest(PartitionValuesRequest other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDbName()) { + this.dbName = other.dbName; + } + if (other.isSetTblName()) { + this.tblName = other.tblName; + } + if (other.isSetPartitionKeys()) { + List __this__partitionKeys = new ArrayList(other.partitionKeys.size()); + for (FieldSchema other_element : other.partitionKeys) { + __this__partitionKeys.add(new FieldSchema(other_element)); + } + this.partitionKeys = __this__partitionKeys; + } + this.applyDistinct = other.applyDistinct; + if (other.isSetFilter()) { + this.filter = other.filter; + } + if (other.isSetPartitionOrder()) { + List __this__partitionOrder = new ArrayList(other.partitionOrder.size()); + for (FieldSchema other_element : other.partitionOrder) { + __this__partitionOrder.add(new FieldSchema(other_element)); + } + this.partitionOrder = __this__partitionOrder; + } + this.ascending = other.ascending; + this.maxParts = other.maxParts; + } + + public PartitionValuesRequest deepCopy() { + return new PartitionValuesRequest(this); + } + + @Override + public void clear() { + this.dbName = null; + this.tblName = null; + this.partitionKeys = null; + this.applyDistinct = true; + + this.filter = null; + this.partitionOrder = null; + this.ascending = true; + + this.maxParts = -1L; + + } + + public String getDbName() { + return this.dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + } + + public void unsetDbName() { + this.dbName = null; + } + + /** Returns true if field dbName is set (has been assigned a value) and false otherwise */ + public boolean isSetDbName() { + return this.dbName != null; + } + + public void setDbNameIsSet(boolean value) { + if (!value) { + this.dbName = null; + } + } + + public String getTblName() { + return this.tblName; + } + + public void setTblName(String tblName) { + this.tblName = tblName; + } + + public void unsetTblName() { + this.tblName = null; + } + + /** Returns true if field tblName is set (has been assigned a value) and false otherwise */ + public boolean isSetTblName() { + return this.tblName != null; + } + + public void setTblNameIsSet(boolean value) { + if (!value) { + this.tblName = null; + } + } + + public int getPartitionKeysSize() { + return (this.partitionKeys == null) ? 0 : this.partitionKeys.size(); + } + + public java.util.Iterator getPartitionKeysIterator() { + return (this.partitionKeys == null) ? null : this.partitionKeys.iterator(); + } + + public void addToPartitionKeys(FieldSchema elem) { + if (this.partitionKeys == null) { + this.partitionKeys = new ArrayList(); + } + this.partitionKeys.add(elem); + } + + public List getPartitionKeys() { + return this.partitionKeys; + } + + public void setPartitionKeys(List partitionKeys) { + this.partitionKeys = partitionKeys; + } + + public void unsetPartitionKeys() { + this.partitionKeys = null; + } + + /** Returns true if field partitionKeys is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionKeys() { + return this.partitionKeys != null; + } + + public void setPartitionKeysIsSet(boolean value) { + if (!value) { + this.partitionKeys = null; + } + } + + public boolean isApplyDistinct() { + return this.applyDistinct; + } + + public void setApplyDistinct(boolean applyDistinct) { + this.applyDistinct = applyDistinct; + setApplyDistinctIsSet(true); + } + + public void unsetApplyDistinct() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __APPLYDISTINCT_ISSET_ID); + } + + /** Returns true if field applyDistinct is set (has been assigned a value) and false otherwise */ + public boolean isSetApplyDistinct() { + return EncodingUtils.testBit(__isset_bitfield, __APPLYDISTINCT_ISSET_ID); + } + + public void setApplyDistinctIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __APPLYDISTINCT_ISSET_ID, value); + } + + public String getFilter() { + return this.filter; + } + + public void setFilter(String filter) { + this.filter = filter; + } + + public void unsetFilter() { + this.filter = null; + } + + /** Returns true if field filter is set (has been assigned a value) and false otherwise */ + public boolean isSetFilter() { + return this.filter != null; + } + + public void setFilterIsSet(boolean value) { + if (!value) { + this.filter = null; + } + } + + public int getPartitionOrderSize() { + return (this.partitionOrder == null) ? 0 : this.partitionOrder.size(); + } + + public java.util.Iterator getPartitionOrderIterator() { + return (this.partitionOrder == null) ? null : this.partitionOrder.iterator(); + } + + public void addToPartitionOrder(FieldSchema elem) { + if (this.partitionOrder == null) { + this.partitionOrder = new ArrayList(); + } + this.partitionOrder.add(elem); + } + + public List getPartitionOrder() { + return this.partitionOrder; + } + + public void setPartitionOrder(List partitionOrder) { + this.partitionOrder = partitionOrder; + } + + public void unsetPartitionOrder() { + this.partitionOrder = null; + } + + /** Returns true if field partitionOrder is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionOrder() { + return this.partitionOrder != null; + } + + public void setPartitionOrderIsSet(boolean value) { + if (!value) { + this.partitionOrder = null; + } + } + + public boolean isAscending() { + return this.ascending; + } + + public void setAscending(boolean ascending) { + this.ascending = ascending; + setAscendingIsSet(true); + } + + public void unsetAscending() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASCENDING_ISSET_ID); + } + + /** Returns true if field ascending is set (has been assigned a value) and false otherwise */ + public boolean isSetAscending() { + return EncodingUtils.testBit(__isset_bitfield, __ASCENDING_ISSET_ID); + } + + public void setAscendingIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASCENDING_ISSET_ID, value); + } + + public long getMaxParts() { + return this.maxParts; + } + + public void setMaxParts(long maxParts) { + this.maxParts = maxParts; + setMaxPartsIsSet(true); + } + + public void unsetMaxParts() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXPARTS_ISSET_ID); + } + + /** Returns true if field maxParts is set (has been assigned a value) and false otherwise */ + public boolean isSetMaxParts() { + return EncodingUtils.testBit(__isset_bitfield, __MAXPARTS_ISSET_ID); + } + + public void setMaxPartsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXPARTS_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDbName(); + } else { + setDbName((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTblName(); + } else { + setTblName((String)value); + } + break; + + case PARTITION_KEYS: + if (value == null) { + unsetPartitionKeys(); + } else { + setPartitionKeys((List)value); + } + break; + + case APPLY_DISTINCT: + if (value == null) { + unsetApplyDistinct(); + } else { + setApplyDistinct((Boolean)value); + } + break; + + case FILTER: + if (value == null) { + unsetFilter(); + } else { + setFilter((String)value); + } + break; + + case PARTITION_ORDER: + if (value == null) { + unsetPartitionOrder(); + } else { + setPartitionOrder((List)value); + } + break; + + case ASCENDING: + if (value == null) { + unsetAscending(); + } else { + setAscending((Boolean)value); + } + break; + + case MAX_PARTS: + if (value == null) { + unsetMaxParts(); + } else { + setMaxParts((Long)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDbName(); + + case TBL_NAME: + return getTblName(); + + case PARTITION_KEYS: + return getPartitionKeys(); + + case APPLY_DISTINCT: + return isApplyDistinct(); + + case FILTER: + return getFilter(); + + case PARTITION_ORDER: + return getPartitionOrder(); + + case ASCENDING: + return isAscending(); + + case MAX_PARTS: + return getMaxParts(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case DB_NAME: + return isSetDbName(); + case TBL_NAME: + return isSetTblName(); + case PARTITION_KEYS: + return isSetPartitionKeys(); + case APPLY_DISTINCT: + return isSetApplyDistinct(); + case FILTER: + return isSetFilter(); + case PARTITION_ORDER: + return isSetPartitionOrder(); + case ASCENDING: + return isSetAscending(); + case MAX_PARTS: + return isSetMaxParts(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof PartitionValuesRequest) + return this.equals((PartitionValuesRequest)that); + return false; + } + + public boolean equals(PartitionValuesRequest that) { + if (that == null) + return false; + + boolean this_present_dbName = true && this.isSetDbName(); + boolean that_present_dbName = true && that.isSetDbName(); + if (this_present_dbName || that_present_dbName) { + if (!(this_present_dbName && that_present_dbName)) + return false; + if (!this.dbName.equals(that.dbName)) + return false; + } + + boolean this_present_tblName = true && this.isSetTblName(); + boolean that_present_tblName = true && that.isSetTblName(); + if (this_present_tblName || that_present_tblName) { + if (!(this_present_tblName && that_present_tblName)) + return false; + if (!this.tblName.equals(that.tblName)) + return false; + } + + boolean this_present_partitionKeys = true && this.isSetPartitionKeys(); + boolean that_present_partitionKeys = true && that.isSetPartitionKeys(); + if (this_present_partitionKeys || that_present_partitionKeys) { + if (!(this_present_partitionKeys && that_present_partitionKeys)) + return false; + if (!this.partitionKeys.equals(that.partitionKeys)) + return false; + } + + boolean this_present_applyDistinct = true && this.isSetApplyDistinct(); + boolean that_present_applyDistinct = true && that.isSetApplyDistinct(); + if (this_present_applyDistinct || that_present_applyDistinct) { + if (!(this_present_applyDistinct && that_present_applyDistinct)) + return false; + if (this.applyDistinct != that.applyDistinct) + return false; + } + + boolean this_present_filter = true && this.isSetFilter(); + boolean that_present_filter = true && that.isSetFilter(); + if (this_present_filter || that_present_filter) { + if (!(this_present_filter && that_present_filter)) + return false; + if (!this.filter.equals(that.filter)) + return false; + } + + boolean this_present_partitionOrder = true && this.isSetPartitionOrder(); + boolean that_present_partitionOrder = true && that.isSetPartitionOrder(); + if (this_present_partitionOrder || that_present_partitionOrder) { + if (!(this_present_partitionOrder && that_present_partitionOrder)) + return false; + if (!this.partitionOrder.equals(that.partitionOrder)) + return false; + } + + boolean this_present_ascending = true && this.isSetAscending(); + boolean that_present_ascending = true && that.isSetAscending(); + if (this_present_ascending || that_present_ascending) { + if (!(this_present_ascending && that_present_ascending)) + return false; + if (this.ascending != that.ascending) + return false; + } + + boolean this_present_maxParts = true && this.isSetMaxParts(); + boolean that_present_maxParts = true && that.isSetMaxParts(); + if (this_present_maxParts || that_present_maxParts) { + if (!(this_present_maxParts && that_present_maxParts)) + return false; + if (this.maxParts != that.maxParts) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_dbName = true && (isSetDbName()); + list.add(present_dbName); + if (present_dbName) + list.add(dbName); + + boolean present_tblName = true && (isSetTblName()); + list.add(present_tblName); + if (present_tblName) + list.add(tblName); + + boolean present_partitionKeys = true && (isSetPartitionKeys()); + list.add(present_partitionKeys); + if (present_partitionKeys) + list.add(partitionKeys); + + boolean present_applyDistinct = true && (isSetApplyDistinct()); + list.add(present_applyDistinct); + if (present_applyDistinct) + list.add(applyDistinct); + + boolean present_filter = true && (isSetFilter()); + list.add(present_filter); + if (present_filter) + list.add(filter); + + boolean present_partitionOrder = true && (isSetPartitionOrder()); + list.add(present_partitionOrder); + if (present_partitionOrder) + list.add(partitionOrder); + + boolean present_ascending = true && (isSetAscending()); + list.add(present_ascending); + if (present_ascending) + list.add(ascending); + + boolean present_maxParts = true && (isSetMaxParts()); + list.add(present_maxParts); + if (present_maxParts) + list.add(maxParts); + + return list.hashCode(); + } + + @Override + public int compareTo(PartitionValuesRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetDbName()).compareTo(other.isSetDbName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDbName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dbName, other.dbName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTblName()).compareTo(other.isSetTblName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTblName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tblName, other.tblName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartitionKeys()).compareTo(other.isSetPartitionKeys()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitionKeys()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionKeys, other.partitionKeys); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetApplyDistinct()).compareTo(other.isSetApplyDistinct()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetApplyDistinct()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.applyDistinct, other.applyDistinct); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFilter()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, other.filter); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartitionOrder()).compareTo(other.isSetPartitionOrder()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitionOrder()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionOrder, other.partitionOrder); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetAscending()).compareTo(other.isSetAscending()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetAscending()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ascending, other.ascending); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetMaxParts()).compareTo(other.isSetMaxParts()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetMaxParts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxParts, other.maxParts); + 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("PartitionValuesRequest("); + boolean first = true; + + sb.append("dbName:"); + if (this.dbName == null) { + sb.append("null"); + } else { + sb.append(this.dbName); + } + first = false; + if (!first) sb.append(", "); + sb.append("tblName:"); + if (this.tblName == null) { + sb.append("null"); + } else { + sb.append(this.tblName); + } + first = false; + if (!first) sb.append(", "); + sb.append("partitionKeys:"); + if (this.partitionKeys == null) { + sb.append("null"); + } else { + sb.append(this.partitionKeys); + } + first = false; + if (isSetApplyDistinct()) { + if (!first) sb.append(", "); + sb.append("applyDistinct:"); + sb.append(this.applyDistinct); + first = false; + } + if (isSetFilter()) { + if (!first) sb.append(", "); + sb.append("filter:"); + if (this.filter == null) { + sb.append("null"); + } else { + sb.append(this.filter); + } + first = false; + } + if (isSetPartitionOrder()) { + if (!first) sb.append(", "); + sb.append("partitionOrder:"); + if (this.partitionOrder == null) { + sb.append("null"); + } else { + sb.append(this.partitionOrder); + } + first = false; + } + if (isSetAscending()) { + if (!first) sb.append(", "); + sb.append("ascending:"); + sb.append(this.ascending); + first = false; + } + if (isSetMaxParts()) { + if (!first) sb.append(", "); + sb.append("maxParts:"); + sb.append(this.maxParts); + first = false; + } + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetDbName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbName' is unset! Struct:" + toString()); + } + + if (!isSetTblName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'tblName' is unset! Struct:" + toString()); + } + + if (!isSetPartitionKeys()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'partitionKeys' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class PartitionValuesRequestStandardSchemeFactory implements SchemeFactory { + public PartitionValuesRequestStandardScheme getScheme() { + return new PartitionValuesRequestStandardScheme(); + } + } + + private static class PartitionValuesRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesRequest struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PARTITION_KEYS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list452 = iprot.readListBegin(); + struct.partitionKeys = new ArrayList(_list452.size); + FieldSchema _elem453; + for (int _i454 = 0; _i454 < _list452.size; ++_i454) + { + _elem453 = new FieldSchema(); + _elem453.read(iprot); + struct.partitionKeys.add(_elem453); + } + iprot.readListEnd(); + } + struct.setPartitionKeysIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // APPLY_DISTINCT + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.applyDistinct = iprot.readBool(); + struct.setApplyDistinctIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // FILTER + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // PARTITION_ORDER + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list455 = iprot.readListBegin(); + struct.partitionOrder = new ArrayList(_list455.size); + FieldSchema _elem456; + for (int _i457 = 0; _i457 < _list455.size; ++_i457) + { + _elem456 = new FieldSchema(); + _elem456.read(iprot); + struct.partitionOrder.add(_elem456); + } + iprot.readListEnd(); + } + struct.setPartitionOrderIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // ASCENDING + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.ascending = iprot.readBool(); + struct.setAscendingIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // MAX_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.maxParts = iprot.readI64(); + struct.setMaxPartsIsSet(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, PartitionValuesRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.dbName != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.dbName); + oprot.writeFieldEnd(); + } + if (struct.tblName != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tblName); + oprot.writeFieldEnd(); + } + if (struct.partitionKeys != null) { + oprot.writeFieldBegin(PARTITION_KEYS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionKeys.size())); + for (FieldSchema _iter458 : struct.partitionKeys) + { + _iter458.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.isSetApplyDistinct()) { + oprot.writeFieldBegin(APPLY_DISTINCT_FIELD_DESC); + oprot.writeBool(struct.applyDistinct); + oprot.writeFieldEnd(); + } + if (struct.filter != null) { + if (struct.isSetFilter()) { + oprot.writeFieldBegin(FILTER_FIELD_DESC); + oprot.writeString(struct.filter); + oprot.writeFieldEnd(); + } + } + if (struct.partitionOrder != null) { + if (struct.isSetPartitionOrder()) { + oprot.writeFieldBegin(PARTITION_ORDER_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionOrder.size())); + for (FieldSchema _iter459 : struct.partitionOrder) + { + _iter459.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + } + if (struct.isSetAscending()) { + oprot.writeFieldBegin(ASCENDING_FIELD_DESC); + oprot.writeBool(struct.ascending); + oprot.writeFieldEnd(); + } + if (struct.isSetMaxParts()) { + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI64(struct.maxParts); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class PartitionValuesRequestTupleSchemeFactory implements SchemeFactory { + public PartitionValuesRequestTupleScheme getScheme() { + return new PartitionValuesRequestTupleScheme(); + } + } + + private static class PartitionValuesRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.dbName); + oprot.writeString(struct.tblName); + { + oprot.writeI32(struct.partitionKeys.size()); + for (FieldSchema _iter460 : struct.partitionKeys) + { + _iter460.write(oprot); + } + } + BitSet optionals = new BitSet(); + if (struct.isSetApplyDistinct()) { + optionals.set(0); + } + if (struct.isSetFilter()) { + optionals.set(1); + } + if (struct.isSetPartitionOrder()) { + optionals.set(2); + } + if (struct.isSetAscending()) { + optionals.set(3); + } + if (struct.isSetMaxParts()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); + if (struct.isSetApplyDistinct()) { + oprot.writeBool(struct.applyDistinct); + } + if (struct.isSetFilter()) { + oprot.writeString(struct.filter); + } + if (struct.isSetPartitionOrder()) { + { + oprot.writeI32(struct.partitionOrder.size()); + for (FieldSchema _iter461 : struct.partitionOrder) + { + _iter461.write(oprot); + } + } + } + if (struct.isSetAscending()) { + oprot.writeBool(struct.ascending); + } + if (struct.isSetMaxParts()) { + oprot.writeI64(struct.maxParts); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.dbName = iprot.readString(); + struct.setDbNameIsSet(true); + struct.tblName = iprot.readString(); + struct.setTblNameIsSet(true); + { + org.apache.thrift.protocol.TList _list462 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionKeys = new ArrayList(_list462.size); + FieldSchema _elem463; + for (int _i464 = 0; _i464 < _list462.size; ++_i464) + { + _elem463 = new FieldSchema(); + _elem463.read(iprot); + struct.partitionKeys.add(_elem463); + } + } + struct.setPartitionKeysIsSet(true); + BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.applyDistinct = iprot.readBool(); + struct.setApplyDistinctIsSet(true); + } + if (incoming.get(1)) { + struct.filter = iprot.readString(); + struct.setFilterIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionOrder = new ArrayList(_list465.size); + FieldSchema _elem466; + for (int _i467 = 0; _i467 < _list465.size; ++_i467) + { + _elem466 = new FieldSchema(); + _elem466.read(iprot); + struct.partitionOrder.add(_elem466); + } + } + struct.setPartitionOrderIsSet(true); + } + if (incoming.get(3)) { + struct.ascending = iprot.readBool(); + struct.setAscendingIsSet(true); + } + if (incoming.get(4)) { + struct.maxParts = iprot.readI64(); + struct.setMaxPartsIsSet(true); + } + } + } + +} + diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java new file mode 100644 index 0000000..da3f4fb --- /dev/null +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesResponse.java @@ -0,0 +1,443 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +public class PartitionValuesResponse 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("PartitionValuesResponse"); + + private static final org.apache.thrift.protocol.TField PARTITION_VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("partitionValues", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new PartitionValuesResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new PartitionValuesResponseTupleSchemeFactory()); + } + + private List partitionValues; // 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_VALUES((short)1, "partitionValues"); + + 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_VALUES + return PARTITION_VALUES; + 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_VALUES, new org.apache.thrift.meta_data.FieldMetaData("partitionValues", org.apache.thrift.TFieldRequirementType.REQUIRED, + 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, PartitionValuesRow.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PartitionValuesResponse.class, metaDataMap); + } + + public PartitionValuesResponse() { + } + + public PartitionValuesResponse( + List partitionValues) + { + this(); + this.partitionValues = partitionValues; + } + + /** + * Performs a deep copy on other. + */ + public PartitionValuesResponse(PartitionValuesResponse other) { + if (other.isSetPartitionValues()) { + List __this__partitionValues = new ArrayList(other.partitionValues.size()); + for (PartitionValuesRow other_element : other.partitionValues) { + __this__partitionValues.add(new PartitionValuesRow(other_element)); + } + this.partitionValues = __this__partitionValues; + } + } + + public PartitionValuesResponse deepCopy() { + return new PartitionValuesResponse(this); + } + + @Override + public void clear() { + this.partitionValues = null; + } + + public int getPartitionValuesSize() { + return (this.partitionValues == null) ? 0 : this.partitionValues.size(); + } + + public java.util.Iterator getPartitionValuesIterator() { + return (this.partitionValues == null) ? null : this.partitionValues.iterator(); + } + + public void addToPartitionValues(PartitionValuesRow elem) { + if (this.partitionValues == null) { + this.partitionValues = new ArrayList(); + } + this.partitionValues.add(elem); + } + + public List getPartitionValues() { + return this.partitionValues; + } + + public void setPartitionValues(List partitionValues) { + this.partitionValues = partitionValues; + } + + public void unsetPartitionValues() { + this.partitionValues = null; + } + + /** Returns true if field partitionValues is set (has been assigned a value) and false otherwise */ + public boolean isSetPartitionValues() { + return this.partitionValues != null; + } + + public void setPartitionValuesIsSet(boolean value) { + if (!value) { + this.partitionValues = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PARTITION_VALUES: + if (value == null) { + unsetPartitionValues(); + } else { + setPartitionValues((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PARTITION_VALUES: + return getPartitionValues(); + + } + 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_VALUES: + return isSetPartitionValues(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof PartitionValuesResponse) + return this.equals((PartitionValuesResponse)that); + return false; + } + + public boolean equals(PartitionValuesResponse that) { + if (that == null) + return false; + + boolean this_present_partitionValues = true && this.isSetPartitionValues(); + boolean that_present_partitionValues = true && that.isSetPartitionValues(); + if (this_present_partitionValues || that_present_partitionValues) { + if (!(this_present_partitionValues && that_present_partitionValues)) + return false; + if (!this.partitionValues.equals(that.partitionValues)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_partitionValues = true && (isSetPartitionValues()); + list.add(present_partitionValues); + if (present_partitionValues) + list.add(partitionValues); + + return list.hashCode(); + } + + @Override + public int compareTo(PartitionValuesResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetPartitionValues()).compareTo(other.isSetPartitionValues()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartitionValues()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partitionValues, other.partitionValues); + 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("PartitionValuesResponse("); + boolean first = true; + + sb.append("partitionValues:"); + if (this.partitionValues == null) { + sb.append("null"); + } else { + sb.append(this.partitionValues); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetPartitionValues()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'partitionValues' is unset! Struct:" + toString()); + } + + // 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 PartitionValuesResponseStandardSchemeFactory implements SchemeFactory { + public PartitionValuesResponseStandardScheme getScheme() { + return new PartitionValuesResponseStandardScheme(); + } + } + + private static class PartitionValuesResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesResponse 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_VALUES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list476 = iprot.readListBegin(); + struct.partitionValues = new ArrayList(_list476.size); + PartitionValuesRow _elem477; + for (int _i478 = 0; _i478 < _list476.size; ++_i478) + { + _elem477 = new PartitionValuesRow(); + _elem477.read(iprot); + struct.partitionValues.add(_elem477); + } + iprot.readListEnd(); + } + struct.setPartitionValuesIsSet(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, PartitionValuesResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.partitionValues != null) { + oprot.writeFieldBegin(PARTITION_VALUES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionValues.size())); + for (PartitionValuesRow _iter479 : struct.partitionValues) + { + _iter479.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class PartitionValuesResponseTupleSchemeFactory implements SchemeFactory { + public PartitionValuesResponseTupleScheme getScheme() { + return new PartitionValuesResponseTupleScheme(); + } + } + + private static class PartitionValuesResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.partitionValues.size()); + for (PartitionValuesRow _iter480 : struct.partitionValues) + { + _iter480.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list481 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionValues = new ArrayList(_list481.size); + PartitionValuesRow _elem482; + for (int _i483 = 0; _i483 < _list481.size; ++_i483) + { + _elem482 = new PartitionValuesRow(); + _elem482.read(iprot); + struct.partitionValues.add(_elem482); + } + } + struct.setPartitionValuesIsSet(true); + } + } + +} + diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java new file mode 100644 index 0000000..ed3b8e0 --- /dev/null +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionValuesRow.java @@ -0,0 +1,438 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +public class PartitionValuesRow 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("PartitionValuesRow"); + + private static final org.apache.thrift.protocol.TField ROW_FIELD_DESC = new org.apache.thrift.protocol.TField("row", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new PartitionValuesRowStandardSchemeFactory()); + schemes.put(TupleScheme.class, new PartitionValuesRowTupleSchemeFactory()); + } + + private List row; // 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 { + ROW((short)1, "row"); + + 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: // ROW + return ROW; + 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.ROW, new org.apache.thrift.meta_data.FieldMetaData("row", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PartitionValuesRow.class, metaDataMap); + } + + public PartitionValuesRow() { + } + + public PartitionValuesRow( + List row) + { + this(); + this.row = row; + } + + /** + * Performs a deep copy on other. + */ + public PartitionValuesRow(PartitionValuesRow other) { + if (other.isSetRow()) { + List __this__row = new ArrayList(other.row); + this.row = __this__row; + } + } + + public PartitionValuesRow deepCopy() { + return new PartitionValuesRow(this); + } + + @Override + public void clear() { + this.row = null; + } + + public int getRowSize() { + return (this.row == null) ? 0 : this.row.size(); + } + + public java.util.Iterator getRowIterator() { + return (this.row == null) ? null : this.row.iterator(); + } + + public void addToRow(String elem) { + if (this.row == null) { + this.row = new ArrayList(); + } + this.row.add(elem); + } + + public List getRow() { + return this.row; + } + + public void setRow(List row) { + this.row = row; + } + + public void unsetRow() { + this.row = null; + } + + /** Returns true if field row is set (has been assigned a value) and false otherwise */ + public boolean isSetRow() { + return this.row != null; + } + + public void setRowIsSet(boolean value) { + if (!value) { + this.row = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case ROW: + if (value == null) { + unsetRow(); + } else { + setRow((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case ROW: + return getRow(); + + } + 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 ROW: + return isSetRow(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof PartitionValuesRow) + return this.equals((PartitionValuesRow)that); + return false; + } + + public boolean equals(PartitionValuesRow that) { + if (that == null) + return false; + + boolean this_present_row = true && this.isSetRow(); + boolean that_present_row = true && that.isSetRow(); + if (this_present_row || that_present_row) { + if (!(this_present_row && that_present_row)) + return false; + if (!this.row.equals(that.row)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_row = true && (isSetRow()); + list.add(present_row); + if (present_row) + list.add(row); + + return list.hashCode(); + } + + @Override + public int compareTo(PartitionValuesRow other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetRow()).compareTo(other.isSetRow()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRow()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row, other.row); + 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("PartitionValuesRow("); + boolean first = true; + + sb.append("row:"); + if (this.row == null) { + sb.append("null"); + } else { + sb.append(this.row); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetRow()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'row' is unset! Struct:" + toString()); + } + + // 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 PartitionValuesRowStandardSchemeFactory implements SchemeFactory { + public PartitionValuesRowStandardScheme getScheme() { + return new PartitionValuesRowStandardScheme(); + } + } + + private static class PartitionValuesRowStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionValuesRow 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: // ROW + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list468 = iprot.readListBegin(); + struct.row = new ArrayList(_list468.size); + String _elem469; + for (int _i470 = 0; _i470 < _list468.size; ++_i470) + { + _elem469 = iprot.readString(); + struct.row.add(_elem469); + } + iprot.readListEnd(); + } + struct.setRowIsSet(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, PartitionValuesRow struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.row != null) { + oprot.writeFieldBegin(ROW_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.row.size())); + for (String _iter471 : struct.row) + { + oprot.writeString(_iter471); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class PartitionValuesRowTupleSchemeFactory implements SchemeFactory { + public PartitionValuesRowTupleScheme getScheme() { + return new PartitionValuesRowTupleScheme(); + } + } + + private static class PartitionValuesRowTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRow struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.row.size()); + for (String _iter472 : struct.row) + { + oprot.writeString(_iter472); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, PartitionValuesRow struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list473 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.row = new ArrayList(_list473.size); + String _elem474; + for (int _i475 = 0; _i475 < _list473.size; ++_i475) + { + _elem474 = iprot.readString(); + struct.row.add(_elem474); + } + } + struct.setRowIsSet(true); + } + } + +} + diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java index 0a1302f..0c06ff3 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java @@ -547,13 +547,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PutFileMetadataRequ case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list618 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list618.size); - long _elem619; - for (int _i620 = 0; _i620 < _list618.size; ++_i620) + org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list650.size); + long _elem651; + for (int _i652 = 0; _i652 < _list650.size; ++_i652) { - _elem619 = iprot.readI64(); - struct.fileIds.add(_elem619); + _elem651 = iprot.readI64(); + struct.fileIds.add(_elem651); } iprot.readListEnd(); } @@ -565,13 +565,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PutFileMetadataRequ case 2: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list621 = iprot.readListBegin(); - struct.metadata = new ArrayList(_list621.size); - ByteBuffer _elem622; - for (int _i623 = 0; _i623 < _list621.size; ++_i623) + org.apache.thrift.protocol.TList _list653 = iprot.readListBegin(); + struct.metadata = new ArrayList(_list653.size); + ByteBuffer _elem654; + for (int _i655 = 0; _i655 < _list653.size; ++_i655) { - _elem622 = iprot.readBinary(); - struct.metadata.add(_elem622); + _elem654 = iprot.readBinary(); + struct.metadata.add(_elem654); } iprot.readListEnd(); } @@ -605,9 +605,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PutFileMetadataReq oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter624 : struct.fileIds) + for (long _iter656 : struct.fileIds) { - oprot.writeI64(_iter624); + oprot.writeI64(_iter656); } oprot.writeListEnd(); } @@ -617,9 +617,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PutFileMetadataReq oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.metadata.size())); - for (ByteBuffer _iter625 : struct.metadata) + for (ByteBuffer _iter657 : struct.metadata) { - oprot.writeBinary(_iter625); + oprot.writeBinary(_iter657); } oprot.writeListEnd(); } @@ -651,16 +651,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequ TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter626 : struct.fileIds) + for (long _iter658 : struct.fileIds) { - oprot.writeI64(_iter626); + oprot.writeI64(_iter658); } } { oprot.writeI32(struct.metadata.size()); - for (ByteBuffer _iter627 : struct.metadata) + for (ByteBuffer _iter659 : struct.metadata) { - oprot.writeBinary(_iter627); + oprot.writeBinary(_iter659); } } BitSet optionals = new BitSet(); @@ -677,24 +677,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequ public void read(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list628 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list628.size); - long _elem629; - for (int _i630 = 0; _i630 < _list628.size; ++_i630) + org.apache.thrift.protocol.TList _list660 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list660.size); + long _elem661; + for (int _i662 = 0; _i662 < _list660.size; ++_i662) { - _elem629 = iprot.readI64(); - struct.fileIds.add(_elem629); + _elem661 = iprot.readI64(); + struct.fileIds.add(_elem661); } } struct.setFileIdsIsSet(true); { - org.apache.thrift.protocol.TList _list631 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new ArrayList(_list631.size); - ByteBuffer _elem632; - for (int _i633 = 0; _i633 < _list631.size; ++_i633) + org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new ArrayList(_list663.size); + ByteBuffer _elem664; + for (int _i665 = 0; _i665 < _list663.size; ++_i665) { - _elem632 = iprot.readBinary(); - struct.metadata.add(_elem632); + _elem664 = iprot.readBinary(); + struct.metadata.add(_elem664); } } struct.setMetadataIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java index ed86165..1dd13cc 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowCompactResponse case 1: // COMPACTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list534 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list534.size); - ShowCompactResponseElement _elem535; - for (int _i536 = 0; _i536 < _list534.size; ++_i536) + org.apache.thrift.protocol.TList _list566 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list566.size); + ShowCompactResponseElement _elem567; + for (int _i568 = 0; _i568 < _list566.size; ++_i568) { - _elem535 = new ShowCompactResponseElement(); - _elem535.read(iprot); - struct.compacts.add(_elem535); + _elem567 = new ShowCompactResponseElement(); + _elem567.read(iprot); + struct.compacts.add(_elem567); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ShowCompactRespons oprot.writeFieldBegin(COMPACTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.compacts.size())); - for (ShowCompactResponseElement _iter537 : struct.compacts) + for (ShowCompactResponseElement _iter569 : struct.compacts) { - _iter537.write(oprot); + _iter569.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.compacts.size()); - for (ShowCompactResponseElement _iter538 : struct.compacts) + for (ShowCompactResponseElement _iter570 : struct.compacts) { - _iter538.write(oprot); + _iter570.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse public void read(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.compacts = new ArrayList(_list539.size); - ShowCompactResponseElement _elem540; - for (int _i541 = 0; _i541 < _list539.size; ++_i541) + org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list571.size); + ShowCompactResponseElement _elem572; + for (int _i573 = 0; _i573 < _list571.size; ++_i573) { - _elem540 = new ShowCompactResponseElement(); - _elem540.read(iprot); - struct.compacts.add(_elem540); + _elem572 = new ShowCompactResponseElement(); + _elem572.read(iprot); + struct.compacts.add(_elem572); } } struct.setCompactsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java index da181e6..11ef050 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowLocksResponse s case 1: // LOCKS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list500 = iprot.readListBegin(); - struct.locks = new ArrayList(_list500.size); - ShowLocksResponseElement _elem501; - for (int _i502 = 0; _i502 < _list500.size; ++_i502) + org.apache.thrift.protocol.TList _list532 = iprot.readListBegin(); + struct.locks = new ArrayList(_list532.size); + ShowLocksResponseElement _elem533; + for (int _i534 = 0; _i534 < _list532.size; ++_i534) { - _elem501 = new ShowLocksResponseElement(); - _elem501.read(iprot); - struct.locks.add(_elem501); + _elem533 = new ShowLocksResponseElement(); + _elem533.read(iprot); + struct.locks.add(_elem533); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ShowLocksResponse oprot.writeFieldBegin(LOCKS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.locks.size())); - for (ShowLocksResponseElement _iter503 : struct.locks) + for (ShowLocksResponseElement _iter535 : struct.locks) { - _iter503.write(oprot); + _iter535.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponse s if (struct.isSetLocks()) { { oprot.writeI32(struct.locks.size()); - for (ShowLocksResponseElement _iter504 : struct.locks) + for (ShowLocksResponseElement _iter536 : struct.locks) { - _iter504.write(oprot); + _iter536.write(oprot); } } } @@ -430,14 +430,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponse st BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.locks = new ArrayList(_list505.size); - ShowLocksResponseElement _elem506; - for (int _i507 = 0; _i507 < _list505.size; ++_i507) + org.apache.thrift.protocol.TList _list537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.locks = new ArrayList(_list537.size); + ShowLocksResponseElement _elem538; + for (int _i539 = 0; _i539 < _list537.size; ++_i539) { - _elem506 = new ShowLocksResponseElement(); - _elem506.read(iprot); - struct.locks.add(_elem506); + _elem538 = new ShowLocksResponseElement(); + _elem538.read(iprot); + struct.locks.add(_elem538); } } struct.setLocksIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index b7b7da7..cc3871b 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 @@ -160,6 +160,8 @@ public List get_partition_names(String db_name, String tbl_name, short max_parts) throws MetaException, org.apache.thrift.TException; + public PartitionValuesResponse get_partition_values(PartitionValuesRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + public List get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; public List get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; @@ -470,6 +472,8 @@ public void get_partition_names(String db_name, String tbl_name, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partition_values(PartitionValuesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void get_partitions_ps_with_auth(String db_name, String tbl_name, List part_vals, short max_parts, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -2479,6 +2483,35 @@ public void send_get_partition_names(String db_name, String tbl_name, short max_ throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result"); } + public PartitionValuesResponse get_partition_values(PartitionValuesRequest request) throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + send_get_partition_values(request); + return recv_get_partition_values(); + } + + public void send_get_partition_values(PartitionValuesRequest request) throws org.apache.thrift.TException + { + get_partition_values_args args = new get_partition_values_args(); + args.setRequest(request); + sendBase("get_partition_values", args); + } + + public PartitionValuesResponse recv_get_partition_values() throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + get_partition_values_result result = new get_partition_values_result(); + receiveBase(result, "get_partition_values"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partition_values failed: unknown result"); + } + public List get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts) throws MetaException, NoSuchObjectException, org.apache.thrift.TException { send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts); @@ -7243,6 +7276,38 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } + public void get_partition_values(PartitionValuesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_partition_values_call method_call = new get_partition_values_call(request, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class get_partition_values_call extends org.apache.thrift.async.TAsyncMethodCall { + private PartitionValuesRequest request; + public get_partition_values_call(PartitionValuesRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.request = request; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_partition_values", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_partition_values_args args = new get_partition_values_args(); + args.setRequest(request); + args.write(prot); + prot.writeMessageEnd(); + } + + public PartitionValuesResponse getResult() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_partition_values(); + } + } + public void get_partitions_ps(String db_name, String tbl_name, List part_vals, short max_parts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_partitions_ps_call method_call = new get_partitions_ps_call(db_name, tbl_name, part_vals, max_parts, resultHandler, this, ___protocolFactory, ___transport); @@ -10557,6 +10622,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public get_partition_values() { + super("get_partition_values"); + } + + public get_partition_values_args getEmptyArgsInstance() { + return new get_partition_values_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_partition_values_result getResult(I iface, get_partition_values_args args) throws org.apache.thrift.TException { + get_partition_values_result result = new get_partition_values_result(); + try { + result.success = iface.get_partition_values(args.request); + } catch (MetaException o1) { + result.o1 = o1; + } catch (NoSuchObjectException o2) { + result.o2 = o2; + } + return result; + } + } + public static class get_partitions_ps extends org.apache.thrift.ProcessFunction { public get_partitions_ps() { super("get_partitions_ps"); @@ -14622,6 +14714,7 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction { + public get_partition_values() { + super("get_partition_values"); + } + + public get_partition_values_args getEmptyArgsInstance() { + return new get_partition_values_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(PartitionValuesResponse o) { + get_partition_values_result result = new get_partition_values_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_values_result result = new get_partition_values_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) e; + result.setO2IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_partition_values_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_partition_values(args.request,resultHandler); + } + } + public static class get_partitions_ps extends org.apache.thrift.AsyncProcessFunction> { public get_partitions_ps() { super("get_partitions_ps"); @@ -29414,13 +29569,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); - struct.success = new ArrayList(_list674.size); - String _elem675; - for (int _i676 = 0; _i676 < _list674.size; ++_i676) + org.apache.thrift.protocol.TList _list706 = iprot.readListBegin(); + struct.success = new ArrayList(_list706.size); + String _elem707; + for (int _i708 = 0; _i708 < _list706.size; ++_i708) { - _elem675 = iprot.readString(); - struct.success.add(_elem675); + _elem707 = iprot.readString(); + struct.success.add(_elem707); } iprot.readListEnd(); } @@ -29455,9 +29610,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_databases_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 _iter677 : struct.success) + for (String _iter709 : struct.success) { - oprot.writeString(_iter677); + oprot.writeString(_iter709); } oprot.writeListEnd(); } @@ -29496,9 +29651,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter678 : struct.success) + for (String _iter710 : struct.success) { - oprot.writeString(_iter678); + oprot.writeString(_iter710); } } } @@ -29513,13 +29668,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list679.size); - String _elem680; - for (int _i681 = 0; _i681 < _list679.size; ++_i681) + org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list711.size); + String _elem712; + for (int _i713 = 0; _i713 < _list711.size; ++_i713) { - _elem680 = iprot.readString(); - struct.success.add(_elem680); + _elem712 = iprot.readString(); + struct.success.add(_elem712); } } struct.setSuccessIsSet(true); @@ -30173,13 +30328,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_databases_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list682 = iprot.readListBegin(); - struct.success = new ArrayList(_list682.size); - String _elem683; - for (int _i684 = 0; _i684 < _list682.size; ++_i684) + org.apache.thrift.protocol.TList _list714 = iprot.readListBegin(); + struct.success = new ArrayList(_list714.size); + String _elem715; + for (int _i716 = 0; _i716 < _list714.size; ++_i716) { - _elem683 = iprot.readString(); - struct.success.add(_elem683); + _elem715 = iprot.readString(); + struct.success.add(_elem715); } iprot.readListEnd(); } @@ -30214,9 +30369,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_databases_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter685 : struct.success) + for (String _iter717 : struct.success) { - oprot.writeString(_iter685); + oprot.writeString(_iter717); } oprot.writeListEnd(); } @@ -30255,9 +30410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter686 : struct.success) + for (String _iter718 : struct.success) { - oprot.writeString(_iter686); + oprot.writeString(_iter718); } } } @@ -30272,13 +30427,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_re BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list687.size); - String _elem688; - for (int _i689 = 0; _i689 < _list687.size; ++_i689) + org.apache.thrift.protocol.TList _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list719.size); + String _elem720; + for (int _i721 = 0; _i721 < _list719.size; ++_i721) { - _elem688 = iprot.readString(); - struct.success.add(_elem688); + _elem720 = iprot.readString(); + struct.success.add(_elem720); } } struct.setSuccessIsSet(true); @@ -34885,16 +35040,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_result case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map690 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map690.size); - String _key691; - Type _val692; - for (int _i693 = 0; _i693 < _map690.size; ++_i693) + org.apache.thrift.protocol.TMap _map722 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map722.size); + String _key723; + Type _val724; + for (int _i725 = 0; _i725 < _map722.size; ++_i725) { - _key691 = iprot.readString(); - _val692 = new Type(); - _val692.read(iprot); - struct.success.put(_key691, _val692); + _key723 = iprot.readString(); + _val724 = new Type(); + _val724.read(iprot); + struct.success.put(_key723, _val724); } iprot.readMapEnd(); } @@ -34929,10 +35084,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_all_resul oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter694 : struct.success.entrySet()) + for (Map.Entry _iter726 : struct.success.entrySet()) { - oprot.writeString(_iter694.getKey()); - _iter694.getValue().write(oprot); + oprot.writeString(_iter726.getKey()); + _iter726.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -34971,10 +35126,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_type_all_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter695 : struct.success.entrySet()) + for (Map.Entry _iter727 : struct.success.entrySet()) { - oprot.writeString(_iter695.getKey()); - _iter695.getValue().write(oprot); + oprot.writeString(_iter727.getKey()); + _iter727.getValue().write(oprot); } } } @@ -34989,16 +35144,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map696 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map696.size); - String _key697; - Type _val698; - for (int _i699 = 0; _i699 < _map696.size; ++_i699) + org.apache.thrift.protocol.TMap _map728 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map728.size); + String _key729; + Type _val730; + for (int _i731 = 0; _i731 < _map728.size; ++_i731) { - _key697 = iprot.readString(); - _val698 = new Type(); - _val698.read(iprot); - struct.success.put(_key697, _val698); + _key729 = iprot.readString(); + _val730 = new Type(); + _val730.read(iprot); + struct.success.put(_key729, _val730); } } struct.setSuccessIsSet(true); @@ -36033,14 +36188,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list700 = iprot.readListBegin(); - struct.success = new ArrayList(_list700.size); - FieldSchema _elem701; - for (int _i702 = 0; _i702 < _list700.size; ++_i702) + org.apache.thrift.protocol.TList _list732 = iprot.readListBegin(); + struct.success = new ArrayList(_list732.size); + FieldSchema _elem733; + for (int _i734 = 0; _i734 < _list732.size; ++_i734) { - _elem701 = new FieldSchema(); - _elem701.read(iprot); - struct.success.add(_elem701); + _elem733 = new FieldSchema(); + _elem733.read(iprot); + struct.success.add(_elem733); } iprot.readListEnd(); } @@ -36093,9 +36248,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter703 : struct.success) + for (FieldSchema _iter735 : struct.success) { - _iter703.write(oprot); + _iter735.write(oprot); } oprot.writeListEnd(); } @@ -36150,9 +36305,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter704 : struct.success) + for (FieldSchema _iter736 : struct.success) { - _iter704.write(oprot); + _iter736.write(oprot); } } } @@ -36173,14 +36328,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_result st BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list705 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list705.size); - FieldSchema _elem706; - for (int _i707 = 0; _i707 < _list705.size; ++_i707) + org.apache.thrift.protocol.TList _list737 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list737.size); + FieldSchema _elem738; + for (int _i739 = 0; _i739 < _list737.size; ++_i739) { - _elem706 = new FieldSchema(); - _elem706.read(iprot); - struct.success.add(_elem706); + _elem738 = new FieldSchema(); + _elem738.read(iprot); + struct.success.add(_elem738); } } struct.setSuccessIsSet(true); @@ -37334,14 +37489,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_env case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list708 = iprot.readListBegin(); - struct.success = new ArrayList(_list708.size); - FieldSchema _elem709; - for (int _i710 = 0; _i710 < _list708.size; ++_i710) + org.apache.thrift.protocol.TList _list740 = iprot.readListBegin(); + struct.success = new ArrayList(_list740.size); + FieldSchema _elem741; + for (int _i742 = 0; _i742 < _list740.size; ++_i742) { - _elem709 = new FieldSchema(); - _elem709.read(iprot); - struct.success.add(_elem709); + _elem741 = new FieldSchema(); + _elem741.read(iprot); + struct.success.add(_elem741); } iprot.readListEnd(); } @@ -37394,9 +37549,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_with_en oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter711 : struct.success) + for (FieldSchema _iter743 : struct.success) { - _iter711.write(oprot); + _iter743.write(oprot); } oprot.writeListEnd(); } @@ -37451,9 +37606,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter712 : struct.success) + for (FieldSchema _iter744 : struct.success) { - _iter712.write(oprot); + _iter744.write(oprot); } } } @@ -37474,14 +37629,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list713 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list713.size); - FieldSchema _elem714; - for (int _i715 = 0; _i715 < _list713.size; ++_i715) + org.apache.thrift.protocol.TList _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list745.size); + FieldSchema _elem746; + for (int _i747 = 0; _i747 < _list745.size; ++_i747) { - _elem714 = new FieldSchema(); - _elem714.read(iprot); - struct.success.add(_elem714); + _elem746 = new FieldSchema(); + _elem746.read(iprot); + struct.success.add(_elem746); } } struct.setSuccessIsSet(true); @@ -38526,14 +38681,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list716 = iprot.readListBegin(); - struct.success = new ArrayList(_list716.size); - FieldSchema _elem717; - for (int _i718 = 0; _i718 < _list716.size; ++_i718) + org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); + struct.success = new ArrayList(_list748.size); + FieldSchema _elem749; + for (int _i750 = 0; _i750 < _list748.size; ++_i750) { - _elem717 = new FieldSchema(); - _elem717.read(iprot); - struct.success.add(_elem717); + _elem749 = new FieldSchema(); + _elem749.read(iprot); + struct.success.add(_elem749); } iprot.readListEnd(); } @@ -38586,9 +38741,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter719 : struct.success) + for (FieldSchema _iter751 : struct.success) { - _iter719.write(oprot); + _iter751.write(oprot); } oprot.writeListEnd(); } @@ -38643,9 +38798,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter720 : struct.success) + for (FieldSchema _iter752 : struct.success) { - _iter720.write(oprot); + _iter752.write(oprot); } } } @@ -38666,14 +38821,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result st BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list721 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list721.size); - FieldSchema _elem722; - for (int _i723 = 0; _i723 < _list721.size; ++_i723) + org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list753.size); + FieldSchema _elem754; + for (int _i755 = 0; _i755 < _list753.size; ++_i755) { - _elem722 = new FieldSchema(); - _elem722.read(iprot); - struct.success.add(_elem722); + _elem754 = new FieldSchema(); + _elem754.read(iprot); + struct.success.add(_elem754); } } struct.setSuccessIsSet(true); @@ -39827,14 +39982,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list724 = iprot.readListBegin(); - struct.success = new ArrayList(_list724.size); - FieldSchema _elem725; - for (int _i726 = 0; _i726 < _list724.size; ++_i726) + org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); + struct.success = new ArrayList(_list756.size); + FieldSchema _elem757; + for (int _i758 = 0; _i758 < _list756.size; ++_i758) { - _elem725 = new FieldSchema(); - _elem725.read(iprot); - struct.success.add(_elem725); + _elem757 = new FieldSchema(); + _elem757.read(iprot); + struct.success.add(_elem757); } iprot.readListEnd(); } @@ -39887,9 +40042,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_en oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter727 : struct.success) + for (FieldSchema _iter759 : struct.success) { - _iter727.write(oprot); + _iter759.write(oprot); } oprot.writeListEnd(); } @@ -39944,9 +40099,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter728 : struct.success) + for (FieldSchema _iter760 : struct.success) { - _iter728.write(oprot); + _iter760.write(oprot); } } } @@ -39967,14 +40122,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_envi BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list729 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list729.size); - FieldSchema _elem730; - for (int _i731 = 0; _i731 < _list729.size; ++_i731) + org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list761.size); + FieldSchema _elem762; + for (int _i763 = 0; _i763 < _list761.size; ++_i763) { - _elem730 = new FieldSchema(); - _elem730.read(iprot); - struct.success.add(_elem730); + _elem762 = new FieldSchema(); + _elem762.read(iprot); + struct.success.add(_elem762); } } struct.setSuccessIsSet(true); @@ -42699,14 +42854,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 2: // PRIMARY_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list732 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list732.size); - SQLPrimaryKey _elem733; - for (int _i734 = 0; _i734 < _list732.size; ++_i734) + org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list764.size); + SQLPrimaryKey _elem765; + for (int _i766 = 0; _i766 < _list764.size; ++_i766) { - _elem733 = new SQLPrimaryKey(); - _elem733.read(iprot); - struct.primaryKeys.add(_elem733); + _elem765 = new SQLPrimaryKey(); + _elem765.read(iprot); + struct.primaryKeys.add(_elem765); } iprot.readListEnd(); } @@ -42718,14 +42873,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 3: // FOREIGN_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list735 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list735.size); - SQLForeignKey _elem736; - for (int _i737 = 0; _i737 < _list735.size; ++_i737) + org.apache.thrift.protocol.TList _list767 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list767.size); + SQLForeignKey _elem768; + for (int _i769 = 0; _i769 < _list767.size; ++_i769) { - _elem736 = new SQLForeignKey(); - _elem736.read(iprot); - struct.foreignKeys.add(_elem736); + _elem768 = new SQLForeignKey(); + _elem768.read(iprot); + struct.foreignKeys.add(_elem768); } iprot.readListEnd(); } @@ -42756,9 +42911,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(PRIMARY_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.primaryKeys.size())); - for (SQLPrimaryKey _iter738 : struct.primaryKeys) + for (SQLPrimaryKey _iter770 : struct.primaryKeys) { - _iter738.write(oprot); + _iter770.write(oprot); } oprot.writeListEnd(); } @@ -42768,9 +42923,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(FOREIGN_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeys.size())); - for (SQLForeignKey _iter739 : struct.foreignKeys) + for (SQLForeignKey _iter771 : struct.foreignKeys) { - _iter739.write(oprot); + _iter771.write(oprot); } oprot.writeListEnd(); } @@ -42810,18 +42965,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter740 : struct.primaryKeys) + for (SQLPrimaryKey _iter772 : struct.primaryKeys) { - _iter740.write(oprot); + _iter772.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter741 : struct.foreignKeys) + for (SQLForeignKey _iter773 : struct.foreignKeys) { - _iter741.write(oprot); + _iter773.write(oprot); } } } @@ -42838,28 +42993,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list742 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list742.size); - SQLPrimaryKey _elem743; - for (int _i744 = 0; _i744 < _list742.size; ++_i744) + org.apache.thrift.protocol.TList _list774 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list774.size); + SQLPrimaryKey _elem775; + for (int _i776 = 0; _i776 < _list774.size; ++_i776) { - _elem743 = new SQLPrimaryKey(); - _elem743.read(iprot); - struct.primaryKeys.add(_elem743); + _elem775 = new SQLPrimaryKey(); + _elem775.read(iprot); + struct.primaryKeys.add(_elem775); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list745.size); - SQLForeignKey _elem746; - for (int _i747 = 0; _i747 < _list745.size; ++_i747) + org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list777.size); + SQLForeignKey _elem778; + for (int _i779 = 0; _i779 < _list777.size; ++_i779) { - _elem746 = new SQLForeignKey(); - _elem746.read(iprot); - struct.foreignKeys.add(_elem746); + _elem778 = new SQLForeignKey(); + _elem778.read(iprot); + struct.foreignKeys.add(_elem778); } } struct.setForeignKeysIsSet(true); @@ -49058,13 +49213,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); - struct.success = new ArrayList(_list748.size); - String _elem749; - for (int _i750 = 0; _i750 < _list748.size; ++_i750) + org.apache.thrift.protocol.TList _list780 = iprot.readListBegin(); + struct.success = new ArrayList(_list780.size); + String _elem781; + for (int _i782 = 0; _i782 < _list780.size; ++_i782) { - _elem749 = iprot.readString(); - struct.success.add(_elem749); + _elem781 = iprot.readString(); + struct.success.add(_elem781); } iprot.readListEnd(); } @@ -49099,9 +49254,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter751 : struct.success) + for (String _iter783 : struct.success) { - oprot.writeString(_iter751); + oprot.writeString(_iter783); } oprot.writeListEnd(); } @@ -49140,9 +49295,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter752 : struct.success) + for (String _iter784 : struct.success) { - oprot.writeString(_iter752); + oprot.writeString(_iter784); } } } @@ -49157,13 +49312,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list753.size); - String _elem754; - for (int _i755 = 0; _i755 < _list753.size; ++_i755) + org.apache.thrift.protocol.TList _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list785.size); + String _elem786; + for (int _i787 = 0; _i787 < _list785.size; ++_i787) { - _elem754 = iprot.readString(); - struct.success.add(_elem754); + _elem786 = iprot.readString(); + struct.success.add(_elem786); } } struct.setSuccessIsSet(true); @@ -50137,13 +50292,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_by_type_ case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); - struct.success = new ArrayList(_list756.size); - String _elem757; - for (int _i758 = 0; _i758 < _list756.size; ++_i758) + org.apache.thrift.protocol.TList _list788 = iprot.readListBegin(); + struct.success = new ArrayList(_list788.size); + String _elem789; + for (int _i790 = 0; _i790 < _list788.size; ++_i790) { - _elem757 = iprot.readString(); - struct.success.add(_elem757); + _elem789 = iprot.readString(); + struct.success.add(_elem789); } iprot.readListEnd(); } @@ -50178,9 +50333,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_by_type oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter759 : struct.success) + for (String _iter791 : struct.success) { - oprot.writeString(_iter759); + oprot.writeString(_iter791); } oprot.writeListEnd(); } @@ -50219,9 +50374,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter760 : struct.success) + for (String _iter792 : struct.success) { - oprot.writeString(_iter760); + oprot.writeString(_iter792); } } } @@ -50236,13 +50391,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_by_type_r BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list761.size); - String _elem762; - for (int _i763 = 0; _i763 < _list761.size; ++_i763) + org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list793.size); + String _elem794; + for (int _i795 = 0; _i795 < _list793.size; ++_i795) { - _elem762 = iprot.readString(); - struct.success.add(_elem762); + _elem794 = iprot.readString(); + struct.success.add(_elem794); } } struct.setSuccessIsSet(true); @@ -50747,13 +50902,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args case 3: // TBL_TYPES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list764.size); - String _elem765; - for (int _i766 = 0; _i766 < _list764.size; ++_i766) + org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list796.size); + String _elem797; + for (int _i798 = 0; _i798 < _list796.size; ++_i798) { - _elem765 = iprot.readString(); - struct.tbl_types.add(_elem765); + _elem797 = iprot.readString(); + struct.tbl_types.add(_elem797); } iprot.readListEnd(); } @@ -50789,9 +50944,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_arg oprot.writeFieldBegin(TBL_TYPES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_types.size())); - for (String _iter767 : struct.tbl_types) + for (String _iter799 : struct.tbl_types) { - oprot.writeString(_iter767); + oprot.writeString(_iter799); } oprot.writeListEnd(); } @@ -50834,9 +50989,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args if (struct.isSetTbl_types()) { { oprot.writeI32(struct.tbl_types.size()); - for (String _iter768 : struct.tbl_types) + for (String _iter800 : struct.tbl_types) { - oprot.writeString(_iter768); + oprot.writeString(_iter800); } } } @@ -50856,13 +51011,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list769.size); - String _elem770; - for (int _i771 = 0; _i771 < _list769.size; ++_i771) + org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list801.size); + String _elem802; + for (int _i803 = 0; _i803 < _list801.size; ++_i803) { - _elem770 = iprot.readString(); - struct.tbl_types.add(_elem770); + _elem802 = iprot.readString(); + struct.tbl_types.add(_elem802); } } struct.setTbl_typesIsSet(true); @@ -51268,14 +51423,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list772 = iprot.readListBegin(); - struct.success = new ArrayList(_list772.size); - TableMeta _elem773; - for (int _i774 = 0; _i774 < _list772.size; ++_i774) + org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); + struct.success = new ArrayList(_list804.size); + TableMeta _elem805; + for (int _i806 = 0; _i806 < _list804.size; ++_i806) { - _elem773 = new TableMeta(); - _elem773.read(iprot); - struct.success.add(_elem773); + _elem805 = new TableMeta(); + _elem805.read(iprot); + struct.success.add(_elem805); } iprot.readListEnd(); } @@ -51310,9 +51465,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TableMeta _iter775 : struct.success) + for (TableMeta _iter807 : struct.success) { - _iter775.write(oprot); + _iter807.write(oprot); } oprot.writeListEnd(); } @@ -51351,9 +51506,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter776 : struct.success) + for (TableMeta _iter808 : struct.success) { - _iter776.write(oprot); + _iter808.write(oprot); } } } @@ -51368,14 +51523,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list777.size); - TableMeta _elem778; - for (int _i779 = 0; _i779 < _list777.size; ++_i779) + org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list809.size); + TableMeta _elem810; + for (int _i811 = 0; _i811 < _list809.size; ++_i811) { - _elem778 = new TableMeta(); - _elem778.read(iprot); - struct.success.add(_elem778); + _elem810 = new TableMeta(); + _elem810.read(iprot); + struct.success.add(_elem810); } } struct.setSuccessIsSet(true); @@ -52141,13 +52296,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list780 = iprot.readListBegin(); - struct.success = new ArrayList(_list780.size); - String _elem781; - for (int _i782 = 0; _i782 < _list780.size; ++_i782) + org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); + struct.success = new ArrayList(_list812.size); + String _elem813; + for (int _i814 = 0; _i814 < _list812.size; ++_i814) { - _elem781 = iprot.readString(); - struct.success.add(_elem781); + _elem813 = iprot.readString(); + struct.success.add(_elem813); } iprot.readListEnd(); } @@ -52182,9 +52337,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_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 _iter783 : struct.success) + for (String _iter815 : struct.success) { - oprot.writeString(_iter783); + oprot.writeString(_iter815); } oprot.writeListEnd(); } @@ -52223,9 +52378,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter784 : struct.success) + for (String _iter816 : struct.success) { - oprot.writeString(_iter784); + oprot.writeString(_iter816); } } } @@ -52240,13 +52395,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list785.size); - String _elem786; - for (int _i787 = 0; _i787 < _list785.size; ++_i787) + org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list817.size); + String _elem818; + for (int _i819 = 0; _i819 < _list817.size; ++_i819) { - _elem786 = iprot.readString(); - struct.success.add(_elem786); + _elem818 = iprot.readString(); + struct.success.add(_elem818); } } struct.setSuccessIsSet(true); @@ -53699,13 +53854,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list788 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list788.size); - String _elem789; - for (int _i790 = 0; _i790 < _list788.size; ++_i790) + org.apache.thrift.protocol.TList _list820 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list820.size); + String _elem821; + for (int _i822 = 0; _i822 < _list820.size; ++_i822) { - _elem789 = iprot.readString(); - struct.tbl_names.add(_elem789); + _elem821 = iprot.readString(); + struct.tbl_names.add(_elem821); } iprot.readListEnd(); } @@ -53736,9 +53891,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); - for (String _iter791 : struct.tbl_names) + for (String _iter823 : struct.tbl_names) { - oprot.writeString(_iter791); + oprot.writeString(_iter823); } oprot.writeListEnd(); } @@ -53775,9 +53930,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetTbl_names()) { { oprot.writeI32(struct.tbl_names.size()); - for (String _iter792 : struct.tbl_names) + for (String _iter824 : struct.tbl_names) { - oprot.writeString(_iter792); + oprot.writeString(_iter824); } } } @@ -53793,13 +53948,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list793.size); - String _elem794; - for (int _i795 = 0; _i795 < _list793.size; ++_i795) + org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list825.size); + String _elem826; + for (int _i827 = 0; _i827 < _list825.size; ++_i827) { - _elem794 = iprot.readString(); - struct.tbl_names.add(_elem794); + _elem826 = iprot.readString(); + struct.tbl_names.add(_elem826); } } struct.setTbl_namesIsSet(true); @@ -54124,14 +54279,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); - struct.success = new ArrayList
(_list796.size); - Table _elem797; - for (int _i798 = 0; _i798 < _list796.size; ++_i798) + org.apache.thrift.protocol.TList _list828 = iprot.readListBegin(); + struct.success = new ArrayList
(_list828.size); + Table _elem829; + for (int _i830 = 0; _i830 < _list828.size; ++_i830) { - _elem797 = new Table(); - _elem797.read(iprot); - struct.success.add(_elem797); + _elem829 = new Table(); + _elem829.read(iprot); + struct.success.add(_elem829); } iprot.readListEnd(); } @@ -54157,9 +54312,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Table _iter799 : struct.success) + for (Table _iter831 : struct.success) { - _iter799.write(oprot); + _iter831.write(oprot); } oprot.writeListEnd(); } @@ -54190,9 +54345,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter800 : struct.success) + for (Table _iter832 : struct.success) { - _iter800.write(oprot); + _iter832.write(oprot); } } } @@ -54204,14 +54359,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list801.size); - Table _elem802; - for (int _i803 = 0; _i803 < _list801.size; ++_i803) + org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list833.size); + Table _elem834; + for (int _i835 = 0; _i835 < _list833.size; ++_i835) { - _elem802 = new Table(); - _elem802.read(iprot); - struct.success.add(_elem802); + _elem834 = new Table(); + _elem834.read(iprot); + struct.success.add(_elem834); } } struct.setSuccessIsSet(true); @@ -57324,13 +57479,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); - struct.success = new ArrayList(_list804.size); - String _elem805; - for (int _i806 = 0; _i806 < _list804.size; ++_i806) + org.apache.thrift.protocol.TList _list836 = iprot.readListBegin(); + struct.success = new ArrayList(_list836.size); + String _elem837; + for (int _i838 = 0; _i838 < _list836.size; ++_i838) { - _elem805 = iprot.readString(); - struct.success.add(_elem805); + _elem837 = iprot.readString(); + struct.success.add(_elem837); } iprot.readListEnd(); } @@ -57383,9 +57538,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter807 : struct.success) + for (String _iter839 : struct.success) { - oprot.writeString(_iter807); + oprot.writeString(_iter839); } oprot.writeListEnd(); } @@ -57440,9 +57595,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter808 : struct.success) + for (String _iter840 : struct.success) { - oprot.writeString(_iter808); + oprot.writeString(_iter840); } } } @@ -57463,13 +57618,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list809.size); - String _elem810; - for (int _i811 = 0; _i811 < _list809.size; ++_i811) + org.apache.thrift.protocol.TList _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list841.size); + String _elem842; + for (int _i843 = 0; _i843 < _list841.size; ++_i843) { - _elem810 = iprot.readString(); - struct.success.add(_elem810); + _elem842 = iprot.readString(); + struct.success.add(_elem842); } } struct.setSuccessIsSet(true); @@ -63328,14 +63483,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list812.size); - Partition _elem813; - for (int _i814 = 0; _i814 < _list812.size; ++_i814) + org.apache.thrift.protocol.TList _list844 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list844.size); + Partition _elem845; + for (int _i846 = 0; _i846 < _list844.size; ++_i846) { - _elem813 = new Partition(); - _elem813.read(iprot); - struct.new_parts.add(_elem813); + _elem845 = new Partition(); + _elem845.read(iprot); + struct.new_parts.add(_elem845); } iprot.readListEnd(); } @@ -63361,9 +63516,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_arg oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter815 : struct.new_parts) + for (Partition _iter847 : struct.new_parts) { - _iter815.write(oprot); + _iter847.write(oprot); } oprot.writeListEnd(); } @@ -63394,9 +63549,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter816 : struct.new_parts) + for (Partition _iter848 : struct.new_parts) { - _iter816.write(oprot); + _iter848.write(oprot); } } } @@ -63408,14 +63563,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list817.size); - Partition _elem818; - for (int _i819 = 0; _i819 < _list817.size; ++_i819) + org.apache.thrift.protocol.TList _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list849.size); + Partition _elem850; + for (int _i851 = 0; _i851 < _list849.size; ++_i851) { - _elem818 = new Partition(); - _elem818.read(iprot); - struct.new_parts.add(_elem818); + _elem850 = new Partition(); + _elem850.read(iprot); + struct.new_parts.add(_elem850); } } struct.setNew_partsIsSet(true); @@ -64416,14 +64571,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list820 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list820.size); - PartitionSpec _elem821; - for (int _i822 = 0; _i822 < _list820.size; ++_i822) + org.apache.thrift.protocol.TList _list852 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list852.size); + PartitionSpec _elem853; + for (int _i854 = 0; _i854 < _list852.size; ++_i854) { - _elem821 = new PartitionSpec(); - _elem821.read(iprot); - struct.new_parts.add(_elem821); + _elem853 = new PartitionSpec(); + _elem853.read(iprot); + struct.new_parts.add(_elem853); } iprot.readListEnd(); } @@ -64449,9 +64604,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp 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 (PartitionSpec _iter823 : struct.new_parts) + for (PartitionSpec _iter855 : struct.new_parts) { - _iter823.write(oprot); + _iter855.write(oprot); } oprot.writeListEnd(); } @@ -64482,9 +64637,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (PartitionSpec _iter824 : struct.new_parts) + for (PartitionSpec _iter856 : struct.new_parts) { - _iter824.write(oprot); + _iter856.write(oprot); } } } @@ -64496,14 +64651,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list825.size); - PartitionSpec _elem826; - for (int _i827 = 0; _i827 < _list825.size; ++_i827) + org.apache.thrift.protocol.TList _list857 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list857.size); + PartitionSpec _elem858; + for (int _i859 = 0; _i859 < _list857.size; ++_i859) { - _elem826 = new PartitionSpec(); - _elem826.read(iprot); - struct.new_parts.add(_elem826); + _elem858 = new PartitionSpec(); + _elem858.read(iprot); + struct.new_parts.add(_elem858); } } struct.setNew_partsIsSet(true); @@ -65679,13 +65834,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list828 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list828.size); - String _elem829; - for (int _i830 = 0; _i830 < _list828.size; ++_i830) + org.apache.thrift.protocol.TList _list860 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list860.size); + String _elem861; + for (int _i862 = 0; _i862 < _list860.size; ++_i862) { - _elem829 = iprot.readString(); - struct.part_vals.add(_elem829); + _elem861 = iprot.readString(); + struct.part_vals.add(_elem861); } iprot.readListEnd(); } @@ -65721,9 +65876,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_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 _iter831 : struct.part_vals) + for (String _iter863 : struct.part_vals) { - oprot.writeString(_iter831); + oprot.writeString(_iter863); } oprot.writeListEnd(); } @@ -65766,9 +65921,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter832 : struct.part_vals) + for (String _iter864 : struct.part_vals) { - oprot.writeString(_iter832); + oprot.writeString(_iter864); } } } @@ -65788,13 +65943,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list833.size); - String _elem834; - for (int _i835 = 0; _i835 < _list833.size; ++_i835) + org.apache.thrift.protocol.TList _list865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list865.size); + String _elem866; + for (int _i867 = 0; _i867 < _list865.size; ++_i867) { - _elem834 = iprot.readString(); - struct.part_vals.add(_elem834); + _elem866 = iprot.readString(); + struct.part_vals.add(_elem866); } } struct.setPart_valsIsSet(true); @@ -68103,13 +68258,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list836 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list836.size); - String _elem837; - for (int _i838 = 0; _i838 < _list836.size; ++_i838) + org.apache.thrift.protocol.TList _list868 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list868.size); + String _elem869; + for (int _i870 = 0; _i870 < _list868.size; ++_i870) { - _elem837 = iprot.readString(); - struct.part_vals.add(_elem837); + _elem869 = iprot.readString(); + struct.part_vals.add(_elem869); } iprot.readListEnd(); } @@ -68154,9 +68309,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w 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 _iter839 : struct.part_vals) + for (String _iter871 : struct.part_vals) { - oprot.writeString(_iter839); + oprot.writeString(_iter871); } oprot.writeListEnd(); } @@ -68207,9 +68362,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter840 : struct.part_vals) + for (String _iter872 : struct.part_vals) { - oprot.writeString(_iter840); + oprot.writeString(_iter872); } } } @@ -68232,13 +68387,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list841.size); - String _elem842; - for (int _i843 = 0; _i843 < _list841.size; ++_i843) + org.apache.thrift.protocol.TList _list873 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list873.size); + String _elem874; + for (int _i875 = 0; _i875 < _list873.size; ++_i875) { - _elem842 = iprot.readString(); - struct.part_vals.add(_elem842); + _elem874 = iprot.readString(); + struct.part_vals.add(_elem874); } } struct.setPart_valsIsSet(true); @@ -72108,13 +72263,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list844 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list844.size); - String _elem845; - for (int _i846 = 0; _i846 < _list844.size; ++_i846) + org.apache.thrift.protocol.TList _list876 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list876.size); + String _elem877; + for (int _i878 = 0; _i878 < _list876.size; ++_i878) { - _elem845 = iprot.readString(); - struct.part_vals.add(_elem845); + _elem877 = iprot.readString(); + struct.part_vals.add(_elem877); } iprot.readListEnd(); } @@ -72158,9 +72313,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_arg oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter847 : struct.part_vals) + for (String _iter879 : struct.part_vals) { - oprot.writeString(_iter847); + oprot.writeString(_iter879); } oprot.writeListEnd(); } @@ -72209,9 +72364,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter848 : struct.part_vals) + for (String _iter880 : struct.part_vals) { - oprot.writeString(_iter848); + oprot.writeString(_iter880); } } } @@ -72234,13 +72389,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list849.size); - String _elem850; - for (int _i851 = 0; _i851 < _list849.size; ++_i851) + org.apache.thrift.protocol.TList _list881 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list881.size); + String _elem882; + for (int _i883 = 0; _i883 < _list881.size; ++_i883) { - _elem850 = iprot.readString(); - struct.part_vals.add(_elem850); + _elem882 = iprot.readString(); + struct.part_vals.add(_elem882); } } struct.setPart_valsIsSet(true); @@ -73479,13 +73634,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list852 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list852.size); - String _elem853; - for (int _i854 = 0; _i854 < _list852.size; ++_i854) + org.apache.thrift.protocol.TList _list884 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list884.size); + String _elem885; + for (int _i886 = 0; _i886 < _list884.size; ++_i886) { - _elem853 = iprot.readString(); - struct.part_vals.add(_elem853); + _elem885 = iprot.readString(); + struct.part_vals.add(_elem885); } iprot.readListEnd(); } @@ -73538,9 +73693,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit 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 _iter855 : struct.part_vals) + for (String _iter887 : struct.part_vals) { - oprot.writeString(_iter855); + oprot.writeString(_iter887); } oprot.writeListEnd(); } @@ -73597,9 +73752,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter856 : struct.part_vals) + for (String _iter888 : struct.part_vals) { - oprot.writeString(_iter856); + oprot.writeString(_iter888); } } } @@ -73625,13 +73780,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list857 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list857.size); - String _elem858; - for (int _i859 = 0; _i859 < _list857.size; ++_i859) + org.apache.thrift.protocol.TList _list889 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list889.size); + String _elem890; + for (int _i891 = 0; _i891 < _list889.size; ++_i891) { - _elem858 = iprot.readString(); - struct.part_vals.add(_elem858); + _elem890 = iprot.readString(); + struct.part_vals.add(_elem890); } } struct.setPart_valsIsSet(true); @@ -78233,13 +78388,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list860 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list860.size); - String _elem861; - for (int _i862 = 0; _i862 < _list860.size; ++_i862) + org.apache.thrift.protocol.TList _list892 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list892.size); + String _elem893; + for (int _i894 = 0; _i894 < _list892.size; ++_i894) { - _elem861 = iprot.readString(); - struct.part_vals.add(_elem861); + _elem893 = iprot.readString(); + struct.part_vals.add(_elem893); } iprot.readListEnd(); } @@ -78275,9 +78430,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args 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 _iter863 : struct.part_vals) + for (String _iter895 : struct.part_vals) { - oprot.writeString(_iter863); + oprot.writeString(_iter895); } oprot.writeListEnd(); } @@ -78320,9 +78475,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter864 : struct.part_vals) + for (String _iter896 : struct.part_vals) { - oprot.writeString(_iter864); + oprot.writeString(_iter896); } } } @@ -78342,13 +78497,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list865.size); - String _elem866; - for (int _i867 = 0; _i867 < _list865.size; ++_i867) + org.apache.thrift.protocol.TList _list897 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list897.size); + String _elem898; + for (int _i899 = 0; _i899 < _list897.size; ++_i899) { - _elem866 = iprot.readString(); - struct.part_vals.add(_elem866); + _elem898 = iprot.readString(); + struct.part_vals.add(_elem898); } } struct.setPart_valsIsSet(true); @@ -79566,15 +79721,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 _map900 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map900.size); + String _key901; + String _val902; + for (int _i903 = 0; _i903 < _map900.size; ++_i903) { - _key869 = iprot.readString(); - _val870 = iprot.readString(); - struct.partitionSpecs.put(_key869, _val870); + _key901 = iprot.readString(); + _val902 = iprot.readString(); + struct.partitionSpecs.put(_key901, _val902); } iprot.readMapEnd(); } @@ -79632,10 +79787,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 _iter904 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter872.getKey()); - oprot.writeString(_iter872.getValue()); + oprot.writeString(_iter904.getKey()); + oprot.writeString(_iter904.getValue()); } oprot.writeMapEnd(); } @@ -79698,10 +79853,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 _iter905 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter873.getKey()); - oprot.writeString(_iter873.getValue()); + oprot.writeString(_iter905.getKey()); + oprot.writeString(_iter905.getValue()); } } } @@ -79725,15 +79880,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_a 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 _map906 = 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*_map906.size); + String _key907; + String _val908; + for (int _i909 = 0; _i909 < _map906.size; ++_i909) { - _key875 = iprot.readString(); - _val876 = iprot.readString(); - struct.partitionSpecs.put(_key875, _val876); + _key907 = iprot.readString(); + _val908 = iprot.readString(); + struct.partitionSpecs.put(_key907, _val908); } } struct.setPartitionSpecsIsSet(true); @@ -81179,15 +81334,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 _map910 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map910.size); + String _key911; + String _val912; + for (int _i913 = 0; _i913 < _map910.size; ++_i913) { - _key879 = iprot.readString(); - _val880 = iprot.readString(); - struct.partitionSpecs.put(_key879, _val880); + _key911 = iprot.readString(); + _val912 = iprot.readString(); + struct.partitionSpecs.put(_key911, _val912); } iprot.readMapEnd(); } @@ -81245,10 +81400,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 _iter914 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter882.getKey()); - oprot.writeString(_iter882.getValue()); + oprot.writeString(_iter914.getKey()); + oprot.writeString(_iter914.getValue()); } oprot.writeMapEnd(); } @@ -81311,10 +81466,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 _iter915 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter883.getKey()); - oprot.writeString(_iter883.getValue()); + oprot.writeString(_iter915.getKey()); + oprot.writeString(_iter915.getValue()); } } } @@ -81338,15 +81493,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ 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 _map916 = 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*_map916.size); + String _key917; + String _val918; + for (int _i919 = 0; _i919 < _map916.size; ++_i919) { - _key885 = iprot.readString(); - _val886 = iprot.readString(); - struct.partitionSpecs.put(_key885, _val886); + _key917 = iprot.readString(); + _val918 = iprot.readString(); + struct.partitionSpecs.put(_key917, _val918); } } struct.setPartitionSpecsIsSet(true); @@ -82011,14 +82166,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 _list920 = iprot.readListBegin(); + struct.success = new ArrayList(_list920.size); + Partition _elem921; + for (int _i922 = 0; _i922 < _list920.size; ++_i922) { - _elem889 = new Partition(); - _elem889.read(iprot); - struct.success.add(_elem889); + _elem921 = new Partition(); + _elem921.read(iprot); + struct.success.add(_elem921); } iprot.readListEnd(); } @@ -82080,9 +82235,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 _iter923 : struct.success) { - _iter891.write(oprot); + _iter923.write(oprot); } oprot.writeListEnd(); } @@ -82145,9 +82300,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 _iter924 : struct.success) { - _iter892.write(oprot); + _iter924.write(oprot); } } } @@ -82171,14 +82326,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ 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 _list925 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list925.size); + Partition _elem926; + for (int _i927 = 0; _i927 < _list925.size; ++_i927) { - _elem894 = new Partition(); - _elem894.read(iprot); - struct.success.add(_elem894); + _elem926 = new Partition(); + _elem926.read(iprot); + struct.success.add(_elem926); } } struct.setSuccessIsSet(true); @@ -82419,102 +82574,1443 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getPart_valsSize() { - return (this.part_vals == null) ? 0 : this.part_vals.size(); - } - - public java.util.Iterator getPart_valsIterator() { - return (this.part_vals == null) ? null : this.part_vals.iterator(); - } - - public void addToPart_vals(String elem) { - if (this.part_vals == null) { - this.part_vals = new ArrayList(); - } - this.part_vals.add(elem); - } - - public List getPart_vals() { - return this.part_vals; - } - - public void setPart_vals(List part_vals) { - this.part_vals = part_vals; - } - - public void unsetPart_vals() { - this.part_vals = null; - } - - /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_vals() { - return this.part_vals != null; - } - - public void setPart_valsIsSet(boolean value) { - if (!value) { - this.part_vals = null; - } - } - - public String getUser_name() { - return this.user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public void unsetUser_name() { - this.user_name = null; - } - - /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ - public boolean isSetUser_name() { - return this.user_name != null; - } - - public void setUser_nameIsSet(boolean value) { - if (!value) { - this.user_name = null; - } - } - - public int getGroup_namesSize() { - return (this.group_names == null) ? 0 : this.group_names.size(); - } - - public java.util.Iterator getGroup_namesIterator() { - return (this.group_names == null) ? null : this.group_names.iterator(); - } - - public void addToGroup_names(String elem) { - if (this.group_names == null) { - this.group_names = new ArrayList(); - } - this.group_names.add(elem); - } - - public List getGroup_names() { - return this.group_names; + public int getPart_valsSize() { + return (this.part_vals == null) ? 0 : this.part_vals.size(); + } + + public java.util.Iterator getPart_valsIterator() { + return (this.part_vals == null) ? null : this.part_vals.iterator(); + } + + public void addToPart_vals(String elem) { + if (this.part_vals == null) { + this.part_vals = new ArrayList(); + } + this.part_vals.add(elem); + } + + public List getPart_vals() { + return this.part_vals; + } + + public void setPart_vals(List part_vals) { + this.part_vals = part_vals; + } + + public void unsetPart_vals() { + this.part_vals = null; + } + + /** Returns true if field part_vals is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_vals() { + return this.part_vals != null; + } + + public void setPart_valsIsSet(boolean value) { + if (!value) { + this.part_vals = null; + } + } + + public String getUser_name() { + return this.user_name; + } + + public void setUser_name(String user_name) { + this.user_name = user_name; + } + + public void unsetUser_name() { + this.user_name = null; + } + + /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ + public boolean isSetUser_name() { + return this.user_name != null; + } + + public void setUser_nameIsSet(boolean value) { + if (!value) { + this.user_name = null; + } + } + + public int getGroup_namesSize() { + return (this.group_names == null) ? 0 : this.group_names.size(); + } + + public java.util.Iterator getGroup_namesIterator() { + return (this.group_names == null) ? null : this.group_names.iterator(); + } + + public void addToGroup_names(String elem) { + if (this.group_names == null) { + this.group_names = new ArrayList(); + } + this.group_names.add(elem); + } + + public List getGroup_names() { + return this.group_names; + } + + public void setGroup_names(List group_names) { + this.group_names = group_names; + } + + public void unsetGroup_names() { + this.group_names = null; + } + + /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ + public boolean isSetGroup_names() { + return this.group_names != null; + } + + public void setGroup_namesIsSet(boolean value) { + if (!value) { + this.group_names = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDb_name(); + } else { + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case PART_VALS: + if (value == null) { + unsetPart_vals(); + } else { + setPart_vals((List)value); + } + break; + + case USER_NAME: + if (value == null) { + unsetUser_name(); + } else { + setUser_name((String)value); + } + break; + + case GROUP_NAMES: + if (value == null) { + unsetGroup_names(); + } else { + setGroup_names((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case PART_VALS: + return getPart_vals(); + + case USER_NAME: + return getUser_name(); + + case GROUP_NAMES: + return getGroup_names(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case PART_VALS: + return isSetPart_vals(); + case USER_NAME: + return isSetUser_name(); + case GROUP_NAMES: + return isSetGroup_names(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_partition_with_auth_args) + return this.equals((get_partition_with_auth_args)that); + return false; + } + + public boolean equals(get_partition_with_auth_args that) { + if (that == null) + return false; + + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) + return false; + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_part_vals = true && this.isSetPart_vals(); + boolean that_present_part_vals = true && that.isSetPart_vals(); + if (this_present_part_vals || that_present_part_vals) { + if (!(this_present_part_vals && that_present_part_vals)) + return false; + if (!this.part_vals.equals(that.part_vals)) + return false; + } + + boolean this_present_user_name = true && this.isSetUser_name(); + boolean that_present_user_name = true && that.isSetUser_name(); + if (this_present_user_name || that_present_user_name) { + if (!(this_present_user_name && that_present_user_name)) + return false; + if (!this.user_name.equals(that.user_name)) + return false; + } + + boolean this_present_group_names = true && this.isSetGroup_names(); + boolean that_present_group_names = true && that.isSetGroup_names(); + if (this_present_group_names || that_present_group_names) { + if (!(this_present_group_names && that_present_group_names)) + return false; + if (!this.group_names.equals(that.group_names)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_part_vals = true && (isSetPart_vals()); + list.add(present_part_vals); + if (present_part_vals) + list.add(part_vals); + + boolean present_user_name = true && (isSetUser_name()); + list.add(present_user_name); + if (present_user_name) + list.add(user_name); + + boolean present_group_names = true && (isSetGroup_names()); + list.add(present_group_names); + if (present_group_names) + list.add(group_names); + + return list.hashCode(); + } + + @Override + public int compareTo(get_partition_with_auth_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPart_vals()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGroup_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + if (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_with_auth_args("); + boolean first = true; + + sb.append("db_name:"); + if (this.db_name == null) { + sb.append("null"); + } else { + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("part_vals:"); + if (this.part_vals == null) { + sb.append("null"); + } else { + sb.append(this.part_vals); + } + first = false; + if (!first) sb.append(", "); + sb.append("user_name:"); + if (this.user_name == null) { + sb.append("null"); + } else { + sb.append(this.user_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("group_names:"); + if (this.group_names == null) { + sb.append("null"); + } else { + sb.append(this.group_names); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_partition_with_auth_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_with_auth_argsStandardScheme getScheme() { + return new get_partition_with_auth_argsStandardScheme(); + } + } + + private static class get_partition_with_auth_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PART_VALS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list928 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list928.size); + String _elem929; + for (int _i930 = 0; _i930 < _list928.size; ++_i930) + { + _elem929 = iprot.readString(); + struct.part_vals.add(_elem929); + } + iprot.readListEnd(); + } + struct.setPart_valsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // GROUP_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list931 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list931.size); + String _elem932; + for (int _i933 = 0; _i933 < _list931.size; ++_i933) + { + _elem932 = iprot.readString(); + struct.group_names.add(_elem932); + } + iprot.readListEnd(); + } + struct.setGroup_namesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.part_vals != null) { + oprot.writeFieldBegin(PART_VALS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); + for (String _iter934 : struct.part_vals) + { + oprot.writeString(_iter934); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + if (struct.user_name != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.user_name); + oprot.writeFieldEnd(); + } + if (struct.group_names != null) { + oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); + for (String _iter935 : struct.group_names) + { + oprot.writeString(_iter935); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_partition_with_auth_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_with_auth_argsTupleScheme getScheme() { + return new get_partition_with_auth_argsTupleScheme(); + } + } + + private static class get_partition_with_auth_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetDb_name()) { + optionals.set(0); + } + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetPart_vals()) { + optionals.set(2); + } + if (struct.isSetUser_name()) { + optionals.set(3); + } + if (struct.isSetGroup_names()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetPart_vals()) { + { + oprot.writeI32(struct.part_vals.size()); + for (String _iter936 : struct.part_vals) + { + oprot.writeString(_iter936); + } + } + } + if (struct.isSetUser_name()) { + oprot.writeString(struct.user_name); + } + if (struct.isSetGroup_names()) { + { + oprot.writeI32(struct.group_names.size()); + for (String _iter937 : struct.group_names) + { + oprot.writeString(_iter937); + } + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + { + org.apache.thrift.protocol.TList _list938 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list938.size); + String _elem939; + for (int _i940 = 0; _i940 < _list938.size; ++_i940) + { + _elem939 = iprot.readString(); + struct.part_vals.add(_elem939); + } + } + struct.setPart_valsIsSet(true); + } + if (incoming.get(3)) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } + if (incoming.get(4)) { + { + org.apache.thrift.protocol.TList _list941 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list941.size); + String _elem942; + for (int _i943 = 0; _i943 < _list941.size; ++_i943) + { + _elem942 = iprot.readString(); + struct.group_names.add(_elem942); + } + } + struct.setGroup_namesIsSet(true); + } + } + } + + } + + public static class get_partition_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_with_auth_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_partition_with_auth_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_with_auth_resultTupleSchemeFactory()); + } + + private Partition success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + O1((short)1, "o1"), + O2((short)2, "o2"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // O1 + return O1; + case 2: // O2 + return O2; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_result.class, metaDataMap); + } + + public get_partition_with_auth_result() { + } + + public get_partition_with_auth_result( + Partition success, + MetaException o1, + NoSuchObjectException o2) + { + this(); + this.success = success; + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public get_partition_with_auth_result(get_partition_with_auth_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); + } + } + + public get_partition_with_auth_result deepCopy() { + return new get_partition_with_auth_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + this.o2 = 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 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; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case O1: + return getO1(); + + case O2: + return getO2(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case O1: + return isSetO1(); + case O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_partition_with_auth_result) + return this.equals((get_partition_with_auth_result)that); + return false; + } + + public boolean equals(get_partition_with_auth_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + 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_with_auth_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_with_auth_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + 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_with_auth_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_with_auth_resultStandardScheme getScheme() { + return new get_partition_with_auth_resultStandardScheme(); + } + } + + private static class get_partition_with_auth_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + 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_with_auth_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_with_auth_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_with_auth_resultTupleScheme getScheme() { + return new get_partition_with_auth_resultTupleScheme(); + } + } + + private static class get_partition_with_auth_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + 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_with_auth_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 get_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_args"); + + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_partition_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_by_name_argsTupleSchemeFactory()); + } + + private String db_name; // required + private String tbl_name; // required + private String part_name; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + PART_NAME((short)3, "part_name"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // PART_NAME + return PART_NAME; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_args.class, metaDataMap); + } + + public get_partition_by_name_args() { + } + + public get_partition_by_name_args( + String db_name, + String tbl_name, + String part_name) + { + this(); + this.db_name = db_name; + this.tbl_name = tbl_name; + this.part_name = part_name; + } + + /** + * Performs a deep copy on other. + */ + public get_partition_by_name_args(get_partition_by_name_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetPart_name()) { + this.part_name = other.part_name; + } + } + + public get_partition_by_name_args deepCopy() { + return new get_partition_by_name_args(this); + } + + @Override + public void clear() { + this.db_name = null; + this.tbl_name = null; + this.part_name = null; + } + + public String getDb_name() { + return this.db_name; + } + + public void setDb_name(String db_name) { + this.db_name = db_name; + } + + public void unsetDb_name() { + this.db_name = null; + } + + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; + } + + public void setDb_nameIsSet(boolean value) { + if (!value) { + this.db_name = null; + } + } + + public String getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } + } + + public String getPart_name() { + return this.part_name; } - public void setGroup_names(List group_names) { - this.group_names = group_names; + public void setPart_name(String part_name) { + this.part_name = part_name; } - public void unsetGroup_names() { - this.group_names = null; + public void unsetPart_name() { + this.part_name = null; } - /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ - public boolean isSetGroup_names() { - return this.group_names != null; + /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPart_name() { + return this.part_name != null; } - public void setGroup_namesIsSet(boolean value) { + public void setPart_nameIsSet(boolean value) { if (!value) { - this.group_names = null; + this.part_name = null; } } @@ -82536,27 +84032,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_VALS: - if (value == null) { - unsetPart_vals(); - } else { - setPart_vals((List)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUser_name(); - } else { - setUser_name((String)value); - } - break; - - case GROUP_NAMES: + case PART_NAME: if (value == null) { - unsetGroup_names(); + unsetPart_name(); } else { - setGroup_names((List)value); + setPart_name((String)value); } break; @@ -82571,14 +84051,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_VALS: - return getPart_vals(); - - case USER_NAME: - return getUser_name(); - - case GROUP_NAMES: - return getGroup_names(); + case PART_NAME: + return getPart_name(); } throw new IllegalStateException(); @@ -82595,12 +84069,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_VALS: - return isSetPart_vals(); - case USER_NAME: - return isSetUser_name(); - case GROUP_NAMES: - return isSetGroup_names(); + case PART_NAME: + return isSetPart_name(); } throw new IllegalStateException(); } @@ -82609,12 +84079,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_with_auth_args) - return this.equals((get_partition_with_auth_args)that); + if (that instanceof get_partition_by_name_args) + return this.equals((get_partition_by_name_args)that); return false; } - public boolean equals(get_partition_with_auth_args that) { + public boolean equals(get_partition_by_name_args that) { if (that == null) return false; @@ -82636,30 +84106,12 @@ public boolean equals(get_partition_with_auth_args that) { return false; } - boolean this_present_part_vals = true && this.isSetPart_vals(); - boolean that_present_part_vals = true && that.isSetPart_vals(); - if (this_present_part_vals || that_present_part_vals) { - if (!(this_present_part_vals && that_present_part_vals)) - return false; - if (!this.part_vals.equals(that.part_vals)) - return false; - } - - boolean this_present_user_name = true && this.isSetUser_name(); - boolean that_present_user_name = true && that.isSetUser_name(); - if (this_present_user_name || that_present_user_name) { - if (!(this_present_user_name && that_present_user_name)) - return false; - if (!this.user_name.equals(that.user_name)) - return false; - } - - boolean this_present_group_names = true && this.isSetGroup_names(); - boolean that_present_group_names = true && that.isSetGroup_names(); - if (this_present_group_names || that_present_group_names) { - if (!(this_present_group_names && that_present_group_names)) + boolean this_present_part_name = true && this.isSetPart_name(); + boolean that_present_part_name = true && that.isSetPart_name(); + if (this_present_part_name || that_present_part_name) { + if (!(this_present_part_name && that_present_part_name)) return false; - if (!this.group_names.equals(that.group_names)) + if (!this.part_name.equals(that.part_name)) return false; } @@ -82680,26 +84132,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_part_vals = true && (isSetPart_vals()); - list.add(present_part_vals); - if (present_part_vals) - list.add(part_vals); - - boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); - if (present_user_name) - list.add(user_name); - - boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); - if (present_group_names) - list.add(group_names); + boolean present_part_name = true && (isSetPart_name()); + list.add(present_part_name); + if (present_part_name) + list.add(part_name); return list.hashCode(); } @Override - public int compareTo(get_partition_with_auth_args other) { + public int compareTo(get_partition_by_name_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -82726,32 +84168,12 @@ public int compareTo(get_partition_with_auth_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_vals()).compareTo(other.isSetPart_vals()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPart_vals()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_vals, other.part_vals); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + if (isSetPart_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); if (lastComparison != 0) { return lastComparison; } @@ -82773,7 +84195,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_with_auth_args("); + StringBuilder sb = new StringBuilder("get_partition_by_name_args("); boolean first = true; sb.append("db_name:"); @@ -82792,27 +84214,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_vals:"); - if (this.part_vals == null) { - sb.append("null"); - } else { - sb.append(this.part_vals); - } - first = false; - if (!first) sb.append(", "); - sb.append("user_name:"); - if (this.user_name == null) { - sb.append("null"); - } else { - sb.append(this.user_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("group_names:"); - if (this.group_names == null) { + sb.append("part_name:"); + if (this.part_name == null) { sb.append("null"); } else { - sb.append(this.group_names); + sb.append(this.part_name); } first = false; sb.append(")"); @@ -82840,15 +84246,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_with_auth_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_with_auth_argsStandardScheme getScheme() { - return new get_partition_with_auth_argsStandardScheme(); + private static class get_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_by_name_argsStandardScheme getScheme() { + return new get_partition_by_name_argsStandardScheme(); } } - private static class get_partition_with_auth_argsStandardScheme extends StandardScheme { + private static class get_partition_by_name_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -82874,46 +84280,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_VALS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list896 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list896.size); - String _elem897; - for (int _i898 = 0; _i898 < _list896.size; ++_i898) - { - _elem897 = iprot.readString(); - struct.part_vals.add(_elem897); - } - iprot.readListEnd(); - } - struct.setPart_valsIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // USER_NAME + case 3: // PART_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // GROUP_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list899 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list899.size); - String _elem900; - for (int _i901 = 0; _i901 < _list899.size; ++_i901) - { - _elem900 = iprot.readString(); - struct.group_names.add(_elem900); - } - iprot.readListEnd(); - } - struct.setGroup_namesIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -82927,7 +84297,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -82941,33 +84311,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_vals != null) { - oprot.writeFieldBegin(PART_VALS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter902 : struct.part_vals) - { - oprot.writeString(_iter902); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } - if (struct.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.user_name); - oprot.writeFieldEnd(); - } - if (struct.group_names != null) { - oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter903 : struct.group_names) - { - oprot.writeString(_iter903); - } - oprot.writeListEnd(); - } + if (struct.part_name != null) { + oprot.writeFieldBegin(PART_NAME_FIELD_DESC); + oprot.writeString(struct.part_name); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -82976,16 +84322,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with } - private static class get_partition_with_auth_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_with_auth_argsTupleScheme getScheme() { - return new get_partition_with_auth_argsTupleScheme(); + private static class get_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_by_name_argsTupleScheme getScheme() { + return new get_partition_by_name_argsTupleScheme(); } } - private static class get_partition_with_auth_argsTupleScheme extends TupleScheme { + private static class get_partition_by_name_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -82994,49 +84340,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_vals()) { + if (struct.isSetPart_name()) { optionals.set(2); } - if (struct.isSetUser_name()) { - optionals.set(3); - } - if (struct.isSetGroup_names()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_vals()) { - { - oprot.writeI32(struct.part_vals.size()); - for (String _iter904 : struct.part_vals) - { - oprot.writeString(_iter904); - } - } - } - if (struct.isSetUser_name()) { - oprot.writeString(struct.user_name); - } - if (struct.isSetGroup_names()) { - { - oprot.writeI32(struct.group_names.size()); - for (String _iter905 : struct.group_names) - { - oprot.writeString(_iter905); - } - } + if (struct.isSetPart_name()) { + oprot.writeString(struct.part_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -83046,42 +84368,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - { - org.apache.thrift.protocol.TList _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) - { - _elem907 = iprot.readString(); - struct.part_vals.add(_elem907); - } - } - struct.setPart_valsIsSet(true); - } - if (incoming.get(3)) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _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) - { - _elem910 = iprot.readString(); - struct.group_names.add(_elem910); - } - } - struct.setGroup_namesIsSet(true); + struct.part_name = iprot.readString(); + struct.setPart_nameIsSet(true); } } } } - public static class get_partition_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_with_auth_result"); + public static class get_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -83089,8 +84385,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_with_auth_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_with_auth_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_by_name_resultTupleSchemeFactory()); } private Partition success; // required @@ -83172,13 +84468,13 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_result.class, metaDataMap); } - public get_partition_with_auth_result() { + public get_partition_by_name_result() { } - public get_partition_with_auth_result( + public get_partition_by_name_result( Partition success, MetaException o1, NoSuchObjectException o2) @@ -83192,7 +84488,7 @@ public get_partition_with_auth_result( /** * Performs a deep copy on other. */ - public get_partition_with_auth_result(get_partition_with_auth_result other) { + public get_partition_by_name_result(get_partition_by_name_result other) { if (other.isSetSuccess()) { this.success = new Partition(other.success); } @@ -83204,8 +84500,8 @@ public get_partition_with_auth_result(get_partition_with_auth_result other) { } } - public get_partition_with_auth_result deepCopy() { - return new get_partition_with_auth_result(this); + public get_partition_by_name_result deepCopy() { + return new get_partition_by_name_result(this); } @Override @@ -83349,12 +84645,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_with_auth_result) - return this.equals((get_partition_with_auth_result)that); + if (that instanceof get_partition_by_name_result) + return this.equals((get_partition_by_name_result)that); return false; } - public boolean equals(get_partition_with_auth_result that) { + public boolean equals(get_partition_by_name_result that) { if (that == null) return false; @@ -83411,7 +84707,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_with_auth_result other) { + public int compareTo(get_partition_by_name_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -83465,7 +84761,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_with_auth_result("); + StringBuilder sb = new StringBuilder("get_partition_by_name_result("); boolean first = true; sb.append("success:"); @@ -83519,15 +84815,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_with_auth_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_with_auth_resultStandardScheme getScheme() { - return new get_partition_with_auth_resultStandardScheme(); + private static class get_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_by_name_resultStandardScheme getScheme() { + return new get_partition_by_name_resultStandardScheme(); } } - private static class get_partition_with_auth_resultStandardScheme extends StandardScheme { + private static class get_partition_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -83573,7 +84869,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -83598,16 +84894,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with } - private static class get_partition_with_auth_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_with_auth_resultTupleScheme getScheme() { - return new get_partition_with_auth_resultTupleScheme(); + private static class get_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_by_name_resultTupleScheme getScheme() { + return new get_partition_by_name_resultTupleScheme(); } } - private static class get_partition_with_auth_resultTupleScheme extends TupleScheme { + private static class get_partition_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -83632,7 +84928,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -83655,28 +84951,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } - public static class get_partition_by_name_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_args"); + public static class get_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PART_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("part_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String part_name; // required + private short max_parts; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - PART_NAME((short)3, "part_name"); + MAX_PARTS((short)3, "max_parts"); private static final Map byName = new HashMap(); @@ -83695,8 +84991,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // PART_NAME - return PART_NAME; + case 3: // MAX_PARTS + return MAX_PARTS; default: return null; } @@ -83737,6 +85033,8 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_PARTS_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -83744,50 +85042,53 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PART_NAME, new org.apache.thrift.meta_data.FieldMetaData("part_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_args.class, metaDataMap); } - public get_partition_by_name_args() { + public get_partitions_args() { + this.max_parts = (short)-1; + } - public get_partition_by_name_args( + public get_partitions_args( String db_name, String tbl_name, - String part_name) + short max_parts) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.part_name = part_name; + this.max_parts = max_parts; + setMax_partsIsSet(true); } /** * Performs a deep copy on other. */ - public get_partition_by_name_args(get_partition_by_name_args other) { + public get_partitions_args(get_partitions_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetPart_name()) { - this.part_name = other.part_name; - } + this.max_parts = other.max_parts; } - public get_partition_by_name_args deepCopy() { - return new get_partition_by_name_args(this); + public get_partitions_args deepCopy() { + return new get_partitions_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.part_name = null; + this.max_parts = (short)-1; + } public String getDb_name() { @@ -83836,27 +85137,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getPart_name() { - return this.part_name; + public short getMax_parts() { + return this.max_parts; } - public void setPart_name(String part_name) { - this.part_name = part_name; + public void setMax_parts(short max_parts) { + this.max_parts = max_parts; + setMax_partsIsSet(true); } - public void unsetPart_name() { - this.part_name = null; + public void unsetMax_parts() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); } - /** Returns true if field part_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPart_name() { - return this.part_name != null; + /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_parts() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); } - public void setPart_nameIsSet(boolean value) { - if (!value) { - this.part_name = null; - } + public void setMax_partsIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -83877,11 +85177,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PART_NAME: + case MAX_PARTS: if (value == null) { - unsetPart_name(); + unsetMax_parts(); } else { - setPart_name((String)value); + setMax_parts((Short)value); } break; @@ -83896,8 +85196,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case PART_NAME: - return getPart_name(); + case MAX_PARTS: + return getMax_parts(); } throw new IllegalStateException(); @@ -83914,8 +85214,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case PART_NAME: - return isSetPart_name(); + case MAX_PARTS: + return isSetMax_parts(); } throw new IllegalStateException(); } @@ -83924,12 +85224,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_by_name_args) - return this.equals((get_partition_by_name_args)that); + if (that instanceof get_partitions_args) + return this.equals((get_partitions_args)that); return false; } - public boolean equals(get_partition_by_name_args that) { + public boolean equals(get_partitions_args that) { if (that == null) return false; @@ -83951,12 +85251,12 @@ public boolean equals(get_partition_by_name_args that) { return false; } - boolean this_present_part_name = true && this.isSetPart_name(); - boolean that_present_part_name = true && that.isSetPart_name(); - if (this_present_part_name || that_present_part_name) { - if (!(this_present_part_name && that_present_part_name)) + boolean this_present_max_parts = true; + boolean that_present_max_parts = true; + if (this_present_max_parts || that_present_max_parts) { + if (!(this_present_max_parts && that_present_max_parts)) return false; - if (!this.part_name.equals(that.part_name)) + if (this.max_parts != that.max_parts) return false; } @@ -83977,16 +85277,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_part_name = true && (isSetPart_name()); - list.add(present_part_name); - if (present_part_name) - list.add(part_name); + boolean present_max_parts = true; + list.add(present_max_parts); + if (present_max_parts) + list.add(max_parts); return list.hashCode(); } @Override - public int compareTo(get_partition_by_name_args other) { + public int compareTo(get_partitions_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -84013,12 +85313,12 @@ public int compareTo(get_partition_by_name_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPart_name()).compareTo(other.isSetPart_name()); + lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); if (lastComparison != 0) { return lastComparison; } - if (isSetPart_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.part_name, other.part_name); + if (isSetMax_parts()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); if (lastComparison != 0) { return lastComparison; } @@ -84040,7 +85340,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_by_name_args("); + StringBuilder sb = new StringBuilder("get_partitions_args("); boolean first = true; sb.append("db_name:"); @@ -84059,12 +85359,8 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("part_name:"); - if (this.part_name == null) { - sb.append("null"); - } else { - sb.append(this.part_name); - } + sb.append("max_parts:"); + sb.append(this.max_parts); first = false; sb.append(")"); return sb.toString(); @@ -84085,21 +85381,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_partition_by_name_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_by_name_argsStandardScheme getScheme() { - return new get_partition_by_name_argsStandardScheme(); + private static class get_partitions_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_argsStandardScheme getScheme() { + return new get_partitions_argsStandardScheme(); } } - private static class get_partition_by_name_argsStandardScheme extends StandardScheme { + private static class get_partitions_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -84125,10 +85423,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PART_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + case 3: // MAX_PARTS + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -84142,7 +85440,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -84156,27 +85454,25 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_n oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.part_name != null) { - oprot.writeFieldBegin(PART_NAME_FIELD_DESC); - oprot.writeString(struct.part_name); - oprot.writeFieldEnd(); - } + oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); + oprot.writeI16(struct.max_parts); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partition_by_name_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_by_name_argsTupleScheme getScheme() { - return new get_partition_by_name_argsTupleScheme(); + private static class get_partitions_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_argsTupleScheme getScheme() { + return new get_partitions_argsTupleScheme(); } } - private static class get_partition_by_name_argsTupleScheme extends TupleScheme { + private static class get_partitions_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -84185,7 +85481,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_na if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetPart_name()) { + if (struct.isSetMax_parts()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -84195,13 +85491,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_na if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetPart_name()) { - oprot.writeString(struct.part_name); + if (struct.isSetMax_parts()) { + oprot.writeI16(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -84213,30 +85509,30 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_nam struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.part_name = iprot.readString(); - struct.setPart_nameIsSet(true); + struct.max_parts = iprot.readI16(); + struct.setMax_partsIsSet(true); } } } } - public static class get_partition_by_name_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_by_name_result"); + public static class get_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_resultTupleSchemeFactory()); } - private Partition success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private List success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -84307,22 +85603,23 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_result.class, metaDataMap); } - public get_partition_by_name_result() { + public get_partitions_result() { } - public get_partition_by_name_result( - Partition success, - MetaException o1, - NoSuchObjectException o2) + public get_partitions_result( + List success, + NoSuchObjectException o1, + MetaException o2) { this(); this.success = success; @@ -84333,20 +85630,24 @@ public get_partition_by_name_result( /** * Performs a deep copy on other. */ - public get_partition_by_name_result(get_partition_by_name_result other) { + public get_partitions_result(get_partitions_result other) { if (other.isSetSuccess()) { - this.success = new Partition(other.success); + List __this__success = new ArrayList(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); + this.o1 = new NoSuchObjectException(other.o1); } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public get_partition_by_name_result deepCopy() { - return new get_partition_by_name_result(this); + public get_partitions_result deepCopy() { + return new get_partitions_result(this); } @Override @@ -84356,11 +85657,26 @@ public void clear() { this.o2 = null; } - public Partition getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Partition elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(Partition success) { + public void setSuccess(List success) { this.success = success; } @@ -84379,11 +85695,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { + public NoSuchObjectException getO1() { return this.o1; } - public void setO1(MetaException o1) { + public void setO1(NoSuchObjectException o1) { this.o1 = o1; } @@ -84402,11 +85718,11 @@ public void setO1IsSet(boolean value) { } } - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -84431,7 +85747,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Partition)value); + setSuccess((List)value); } break; @@ -84439,7 +85755,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((MetaException)value); + setO1((NoSuchObjectException)value); } break; @@ -84447,7 +85763,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -84490,12 +85806,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_by_name_result) - return this.equals((get_partition_by_name_result)that); + if (that instanceof get_partitions_result) + return this.equals((get_partitions_result)that); return false; } - public boolean equals(get_partition_by_name_result that) { + public boolean equals(get_partitions_result that) { if (that == null) return false; @@ -84552,7 +85868,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_by_name_result other) { + public int compareTo(get_partitions_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -84606,7 +85922,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_by_name_result("); + StringBuilder sb = new StringBuilder("get_partitions_result("); boolean first = true; sb.append("success:"); @@ -84639,9 +85955,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 { @@ -84660,15 +85973,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_by_name_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_by_name_resultStandardScheme getScheme() { - return new get_partition_by_name_resultStandardScheme(); + private static class get_partitions_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_resultStandardScheme getScheme() { + return new get_partitions_resultStandardScheme(); } } - private static class get_partition_by_name_resultStandardScheme extends StandardScheme { + private static class get_partitions_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -84679,9 +85992,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Partition(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list944 = iprot.readListBegin(); + struct.success = new ArrayList(_list944.size); + Partition _elem945; + for (int _i946 = 0; _i946 < _list944.size; ++_i946) + { + _elem945 = new Partition(); + _elem945.read(iprot); + struct.success.add(_elem945); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -84689,7 +86012,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -84698,7 +86021,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -84714,13 +86037,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_by_na struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Partition _iter947 : struct.success) + { + _iter947.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -84739,16 +86069,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_by_n } - private static class get_partition_by_name_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_by_name_resultTupleScheme getScheme() { - return new get_partition_by_name_resultTupleScheme(); + private static class get_partitions_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_resultTupleScheme getScheme() { + return new get_partitions_resultTupleScheme(); } } - private static class get_partition_by_name_resultTupleScheme extends TupleScheme { + private static class get_partitions_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -84762,7 +86092,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_na } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - struct.success.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (Partition _iter948 : struct.success) + { + _iter948.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -84773,21 +86109,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_by_na } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new Partition(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list949 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list949.size); + Partition _elem950; + for (int _i951 = 0; _i951 < _list949.size; ++_i951) + { + _elem950 = new Partition(); + _elem950.read(iprot); + struct.success.add(_elem950); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); + struct.o1 = new NoSuchObjectException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -84796,28 +86141,34 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_by_nam } - public static class get_partitions_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_args"); + public static class get_partitions_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_with_auth_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_with_auth_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required private short max_parts; // required + private String user_name; // required + private List group_names; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - MAX_PARTS((short)3, "max_parts"); + MAX_PARTS((short)3, "max_parts"), + USER_NAME((short)4, "user_name"), + GROUP_NAMES((short)5, "group_names"); private static final Map byName = new HashMap(); @@ -84838,6 +86189,10 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // MAX_PARTS return MAX_PARTS; + case 4: // USER_NAME + return USER_NAME; + case 5: // GROUP_NAMES + return GROUP_NAMES; default: return null; } @@ -84889,31 +86244,40 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_args.class, metaDataMap); } - public get_partitions_args() { + public get_partitions_with_auth_args() { this.max_parts = (short)-1; } - public get_partitions_args( + public get_partitions_with_auth_args( String db_name, String tbl_name, - short max_parts) + short max_parts, + String user_name, + List group_names) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.max_parts = max_parts; setMax_partsIsSet(true); + this.user_name = user_name; + this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partitions_args(get_partitions_args other) { + public get_partitions_with_auth_args(get_partitions_with_auth_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -84922,10 +86286,17 @@ public get_partitions_args(get_partitions_args other) { this.tbl_name = other.tbl_name; } this.max_parts = other.max_parts; + if (other.isSetUser_name()) { + this.user_name = other.user_name; + } + if (other.isSetGroup_names()) { + List __this__group_names = new ArrayList(other.group_names); + this.group_names = __this__group_names; + } } - public get_partitions_args deepCopy() { - return new get_partitions_args(this); + public get_partitions_with_auth_args deepCopy() { + return new get_partitions_with_auth_args(this); } @Override @@ -84934,6 +86305,8 @@ public void clear() { this.tbl_name = null; this.max_parts = (short)-1; + this.user_name = null; + this.group_names = null; } public String getDb_name() { @@ -85004,6 +86377,67 @@ public void setMax_partsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } + public String getUser_name() { + return this.user_name; + } + + public void setUser_name(String user_name) { + this.user_name = user_name; + } + + public void unsetUser_name() { + this.user_name = null; + } + + /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ + public boolean isSetUser_name() { + return this.user_name != null; + } + + public void setUser_nameIsSet(boolean value) { + if (!value) { + this.user_name = null; + } + } + + public int getGroup_namesSize() { + return (this.group_names == null) ? 0 : this.group_names.size(); + } + + public java.util.Iterator getGroup_namesIterator() { + return (this.group_names == null) ? null : this.group_names.iterator(); + } + + public void addToGroup_names(String elem) { + if (this.group_names == null) { + this.group_names = new ArrayList(); + } + this.group_names.add(elem); + } + + public List getGroup_names() { + return this.group_names; + } + + public void setGroup_names(List group_names) { + this.group_names = group_names; + } + + public void unsetGroup_names() { + this.group_names = null; + } + + /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ + public boolean isSetGroup_names() { + return this.group_names != null; + } + + public void setGroup_namesIsSet(boolean value) { + if (!value) { + this.group_names = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -85030,6 +86464,22 @@ public void setFieldValue(_Fields field, Object value) { } break; + case USER_NAME: + if (value == null) { + unsetUser_name(); + } else { + setUser_name((String)value); + } + break; + + case GROUP_NAMES: + if (value == null) { + unsetGroup_names(); + } else { + setGroup_names((List)value); + } + break; + } } @@ -85044,6 +86494,12 @@ public Object getFieldValue(_Fields field) { case MAX_PARTS: return getMax_parts(); + case USER_NAME: + return getUser_name(); + + case GROUP_NAMES: + return getGroup_names(); + } throw new IllegalStateException(); } @@ -85061,6 +86517,10 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case MAX_PARTS: return isSetMax_parts(); + case USER_NAME: + return isSetUser_name(); + case GROUP_NAMES: + return isSetGroup_names(); } throw new IllegalStateException(); } @@ -85069,12 +86529,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_args) - return this.equals((get_partitions_args)that); + if (that instanceof get_partitions_with_auth_args) + return this.equals((get_partitions_with_auth_args)that); return false; } - public boolean equals(get_partitions_args that) { + public boolean equals(get_partitions_with_auth_args that) { if (that == null) return false; @@ -85105,6 +86565,24 @@ public boolean equals(get_partitions_args that) { return false; } + boolean this_present_user_name = true && this.isSetUser_name(); + boolean that_present_user_name = true && that.isSetUser_name(); + if (this_present_user_name || that_present_user_name) { + if (!(this_present_user_name && that_present_user_name)) + return false; + if (!this.user_name.equals(that.user_name)) + return false; + } + + boolean this_present_group_names = true && this.isSetGroup_names(); + boolean that_present_group_names = true && that.isSetGroup_names(); + if (this_present_group_names || that_present_group_names) { + if (!(this_present_group_names && that_present_group_names)) + return false; + if (!this.group_names.equals(that.group_names)) + return false; + } + return true; } @@ -85127,11 +86605,21 @@ public int hashCode() { if (present_max_parts) list.add(max_parts); + boolean present_user_name = true && (isSetUser_name()); + list.add(present_user_name); + if (present_user_name) + list.add(user_name); + + boolean present_group_names = true && (isSetGroup_names()); + list.add(present_group_names); + if (present_group_names) + list.add(group_names); + return list.hashCode(); } @Override - public int compareTo(get_partitions_args other) { + public int compareTo(get_partitions_with_auth_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -85168,6 +86656,26 @@ public int compareTo(get_partitions_args other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUser_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGroup_names()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); + if (lastComparison != 0) { + return lastComparison; + } + } return 0; } @@ -85185,7 +86693,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_args("); + StringBuilder sb = new StringBuilder("get_partitions_with_auth_args("); boolean first = true; sb.append("db_name:"); @@ -85207,6 +86715,22 @@ public String toString() { sb.append("max_parts:"); sb.append(this.max_parts); first = false; + if (!first) sb.append(", "); + sb.append("user_name:"); + if (this.user_name == null) { + sb.append("null"); + } else { + sb.append(this.user_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("group_names:"); + if (this.group_names == null) { + sb.append("null"); + } else { + sb.append(this.group_names); + } + first = false; sb.append(")"); return sb.toString(); } @@ -85234,15 +86758,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_argsStandardScheme getScheme() { - return new get_partitions_argsStandardScheme(); + private static class get_partitions_with_auth_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_argsStandardScheme getScheme() { + return new get_partitions_with_auth_argsStandardScheme(); } } - private static class get_partitions_argsStandardScheme extends StandardScheme { + private static class get_partitions_with_auth_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -85276,6 +86800,32 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; + case 4: // USER_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // GROUP_NAMES + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list952 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list952.size); + String _elem953; + for (int _i954 = 0; _i954 < _list952.size; ++_i954) + { + _elem953 = iprot.readString(); + struct.group_names.add(_elem953); + } + iprot.readListEnd(); + } + struct.setGroup_namesIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -85285,7 +86835,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_args struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -85302,22 +86852,39 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_arg oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); + if (struct.user_name != null) { + oprot.writeFieldBegin(USER_NAME_FIELD_DESC); + oprot.writeString(struct.user_name); + oprot.writeFieldEnd(); + } + if (struct.group_names != null) { + oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); + for (String _iter955 : struct.group_names) + { + oprot.writeString(_iter955); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_argsTupleScheme getScheme() { - return new get_partitions_argsTupleScheme(); + private static class get_partitions_with_auth_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_argsTupleScheme getScheme() { + return new get_partitions_with_auth_argsTupleScheme(); } } - private static class get_partitions_argsTupleScheme extends TupleScheme { + private static class get_partitions_with_auth_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -85329,7 +86896,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args if (struct.isSetMax_parts()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); + if (struct.isSetUser_name()) { + optionals.set(3); + } + if (struct.isSetGroup_names()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -85339,12 +86912,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_args if (struct.isSetMax_parts()) { oprot.writeI16(struct.max_parts); } + if (struct.isSetUser_name()) { + oprot.writeString(struct.user_name); + } + if (struct.isSetGroup_names()) { + { + oprot.writeI32(struct.group_names.size()); + for (String _iter956 : struct.group_names) + { + oprot.writeString(_iter956); + } + } + } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -85357,13 +86942,30 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } + if (incoming.get(3)) { + struct.user_name = iprot.readString(); + struct.setUser_nameIsSet(true); + } + if (incoming.get(4)) { + { + org.apache.thrift.protocol.TList _list957 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list957.size); + String _elem958; + for (int _i959 = 0; _i959 < _list957.size; ++_i959) + { + _elem958 = iprot.readString(); + struct.group_names.add(_elem958); + } + } + struct.setGroup_namesIsSet(true); + } } } } - public static class get_partitions_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_result"); + public static class get_partitions_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -85371,8 +86973,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_args private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_with_auth_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_with_auth_resultTupleSchemeFactory()); } private List success; // required @@ -85455,13 +87057,13 @@ public String getFieldName() { tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_result.class, metaDataMap); } - public get_partitions_result() { + public get_partitions_with_auth_result() { } - public get_partitions_result( + public get_partitions_with_auth_result( List success, NoSuchObjectException o1, MetaException o2) @@ -85475,7 +87077,7 @@ public get_partitions_result( /** * Performs a deep copy on other. */ - public get_partitions_result(get_partitions_result other) { + public get_partitions_with_auth_result(get_partitions_with_auth_result other) { if (other.isSetSuccess()) { List __this__success = new ArrayList(other.success.size()); for (Partition other_element : other.success) { @@ -85491,8 +87093,8 @@ public get_partitions_result(get_partitions_result other) { } } - public get_partitions_result deepCopy() { - return new get_partitions_result(this); + public get_partitions_with_auth_result deepCopy() { + return new get_partitions_with_auth_result(this); } @Override @@ -85651,12 +87253,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_result) - return this.equals((get_partitions_result)that); + if (that instanceof get_partitions_with_auth_result) + return this.equals((get_partitions_with_auth_result)that); return false; } - public boolean equals(get_partitions_result that) { + public boolean equals(get_partitions_with_auth_result that) { if (that == null) return false; @@ -85713,7 +87315,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_result other) { + public int compareTo(get_partitions_with_auth_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -85767,7 +87369,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_result("); + StringBuilder sb = new StringBuilder("get_partitions_with_auth_result("); boolean first = true; sb.append("success:"); @@ -85818,15 +87420,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_resultStandardScheme getScheme() { - return new get_partitions_resultStandardScheme(); + private static class get_partitions_with_auth_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_resultStandardScheme getScheme() { + return new get_partitions_with_auth_resultStandardScheme(); } } - private static class get_partitions_resultStandardScheme extends StandardScheme { + private static class get_partitions_with_auth_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -85839,14 +87441,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 _list960 = iprot.readListBegin(); + struct.success = new ArrayList(_list960.size); + Partition _elem961; + for (int _i962 = 0; _i962 < _list960.size; ++_i962) { - _elem913 = new Partition(); - _elem913.read(iprot); - struct.success.add(_elem913); + _elem961 = new Partition(); + _elem961.read(iprot); + struct.success.add(_elem961); } iprot.readListEnd(); } @@ -85882,7 +87484,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -85890,9 +87492,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 _iter963 : struct.success) { - _iter915.write(oprot); + _iter963.write(oprot); } oprot.writeListEnd(); } @@ -85914,16 +87516,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_res } - private static class get_partitions_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_resultTupleScheme getScheme() { - return new get_partitions_resultTupleScheme(); + private static class get_partitions_with_auth_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_with_auth_resultTupleScheme getScheme() { + return new get_partitions_with_auth_resultTupleScheme(); } } - private static class get_partitions_resultTupleScheme extends TupleScheme { + private static class get_partitions_with_auth_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -85939,9 +87541,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 _iter964 : struct.success) { - _iter916.write(oprot); + _iter964.write(oprot); } } } @@ -85954,19 +87556,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _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 _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) { - _elem918 = new Partition(); - _elem918.read(iprot); - struct.success.add(_elem918); + _elem966 = new Partition(); + _elem966.read(iprot); + struct.success.add(_elem966); } } struct.setSuccessIsSet(true); @@ -85986,34 +87588,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_resul } - public static class get_partitions_with_auth_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_args"); + public static class get_partitions_pspec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_pspec_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); - private static final org.apache.thrift.protocol.TField USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("user_name", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField GROUP_NAMES_FIELD_DESC = new org.apache.thrift.protocol.TField("group_names", org.apache.thrift.protocol.TType.LIST, (short)5); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I32, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_with_auth_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_with_auth_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_pspec_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_pspec_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private short max_parts; // required - private String user_name; // required - private List group_names; // required + private int max_parts; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - MAX_PARTS((short)3, "max_parts"), - USER_NAME((short)4, "user_name"), - GROUP_NAMES((short)5, "group_names"); + MAX_PARTS((short)3, "max_parts"); private static final Map byName = new HashMap(); @@ -86034,10 +87630,6 @@ public static _Fields findByThriftId(int fieldId) { return TBL_NAME; case 3: // MAX_PARTS return MAX_PARTS; - case 4: // USER_NAME - return USER_NAME; - case 5: // GROUP_NAMES - return GROUP_NAMES; default: return null; } @@ -86088,41 +87680,32 @@ public String getFieldName() { tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); - tmpMap.put(_Fields.USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("user_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.GROUP_NAMES, new org.apache.thrift.meta_data.FieldMetaData("group_names", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_pspec_args.class, metaDataMap); } - public get_partitions_with_auth_args() { - this.max_parts = (short)-1; + public get_partitions_pspec_args() { + this.max_parts = -1; } - public get_partitions_with_auth_args( + public get_partitions_pspec_args( String db_name, String tbl_name, - short max_parts, - String user_name, - List group_names) + int max_parts) { this(); this.db_name = db_name; this.tbl_name = tbl_name; this.max_parts = max_parts; setMax_partsIsSet(true); - this.user_name = user_name; - this.group_names = group_names; } /** * Performs a deep copy on other. */ - public get_partitions_with_auth_args(get_partitions_with_auth_args other) { + public get_partitions_pspec_args(get_partitions_pspec_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -86131,27 +87714,18 @@ public get_partitions_with_auth_args(get_partitions_with_auth_args other) { this.tbl_name = other.tbl_name; } this.max_parts = other.max_parts; - if (other.isSetUser_name()) { - this.user_name = other.user_name; - } - if (other.isSetGroup_names()) { - List __this__group_names = new ArrayList(other.group_names); - this.group_names = __this__group_names; - } } - public get_partitions_with_auth_args deepCopy() { - return new get_partitions_with_auth_args(this); + public get_partitions_pspec_args deepCopy() { + return new get_partitions_pspec_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.max_parts = (short)-1; + this.max_parts = -1; - this.user_name = null; - this.group_names = null; } public String getDb_name() { @@ -86200,11 +87774,11 @@ public void setTbl_nameIsSet(boolean value) { } } - public short getMax_parts() { + public int getMax_parts() { return this.max_parts; } - public void setMax_parts(short max_parts) { + public void setMax_parts(int max_parts) { this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -86222,67 +87796,6 @@ public void setMax_partsIsSet(boolean value) { __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); } - public String getUser_name() { - return this.user_name; - } - - public void setUser_name(String user_name) { - this.user_name = user_name; - } - - public void unsetUser_name() { - this.user_name = null; - } - - /** Returns true if field user_name is set (has been assigned a value) and false otherwise */ - public boolean isSetUser_name() { - return this.user_name != null; - } - - public void setUser_nameIsSet(boolean value) { - if (!value) { - this.user_name = null; - } - } - - public int getGroup_namesSize() { - return (this.group_names == null) ? 0 : this.group_names.size(); - } - - public java.util.Iterator getGroup_namesIterator() { - return (this.group_names == null) ? null : this.group_names.iterator(); - } - - public void addToGroup_names(String elem) { - if (this.group_names == null) { - this.group_names = new ArrayList(); - } - this.group_names.add(elem); - } - - public List getGroup_names() { - return this.group_names; - } - - public void setGroup_names(List group_names) { - this.group_names = group_names; - } - - public void unsetGroup_names() { - this.group_names = null; - } - - /** Returns true if field group_names is set (has been assigned a value) and false otherwise */ - public boolean isSetGroup_names() { - return this.group_names != null; - } - - public void setGroup_namesIsSet(boolean value) { - if (!value) { - this.group_names = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -86305,23 +87818,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetMax_parts(); } else { - setMax_parts((Short)value); - } - break; - - case USER_NAME: - if (value == null) { - unsetUser_name(); - } else { - setUser_name((String)value); - } - break; - - case GROUP_NAMES: - if (value == null) { - unsetGroup_names(); - } else { - setGroup_names((List)value); + setMax_parts((Integer)value); } break; @@ -86339,12 +87836,6 @@ public Object getFieldValue(_Fields field) { case MAX_PARTS: return getMax_parts(); - case USER_NAME: - return getUser_name(); - - case GROUP_NAMES: - return getGroup_names(); - } throw new IllegalStateException(); } @@ -86362,10 +87853,6 @@ public boolean isSet(_Fields field) { return isSetTbl_name(); case MAX_PARTS: return isSetMax_parts(); - case USER_NAME: - return isSetUser_name(); - case GROUP_NAMES: - return isSetGroup_names(); } throw new IllegalStateException(); } @@ -86374,12 +87861,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_with_auth_args) - return this.equals((get_partitions_with_auth_args)that); + if (that instanceof get_partitions_pspec_args) + return this.equals((get_partitions_pspec_args)that); return false; } - public boolean equals(get_partitions_with_auth_args that) { + public boolean equals(get_partitions_pspec_args that) { if (that == null) return false; @@ -86410,24 +87897,6 @@ public boolean equals(get_partitions_with_auth_args that) { return false; } - boolean this_present_user_name = true && this.isSetUser_name(); - boolean that_present_user_name = true && that.isSetUser_name(); - if (this_present_user_name || that_present_user_name) { - if (!(this_present_user_name && that_present_user_name)) - return false; - if (!this.user_name.equals(that.user_name)) - return false; - } - - boolean this_present_group_names = true && this.isSetGroup_names(); - boolean that_present_group_names = true && that.isSetGroup_names(); - if (this_present_group_names || that_present_group_names) { - if (!(this_present_group_names && that_present_group_names)) - return false; - if (!this.group_names.equals(that.group_names)) - return false; - } - return true; } @@ -86450,21 +87919,11 @@ public int hashCode() { if (present_max_parts) list.add(max_parts); - boolean present_user_name = true && (isSetUser_name()); - list.add(present_user_name); - if (present_user_name) - list.add(user_name); - - boolean present_group_names = true && (isSetGroup_names()); - list.add(present_group_names); - if (present_group_names) - list.add(group_names); - return list.hashCode(); } @Override - public int compareTo(get_partitions_with_auth_args other) { + public int compareTo(get_partitions_pspec_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -86501,26 +87960,6 @@ public int compareTo(get_partitions_with_auth_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetUser_name()).compareTo(other.isSetUser_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetUser_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_name, other.user_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGroup_names()).compareTo(other.isSetGroup_names()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetGroup_names()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.group_names, other.group_names); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -86538,7 +87977,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_with_auth_args("); + StringBuilder sb = new StringBuilder("get_partitions_pspec_args("); boolean first = true; sb.append("db_name:"); @@ -86560,22 +87999,6 @@ public String toString() { sb.append("max_parts:"); sb.append(this.max_parts); first = false; - if (!first) sb.append(", "); - sb.append("user_name:"); - if (this.user_name == null) { - sb.append("null"); - } else { - sb.append(this.user_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("group_names:"); - if (this.group_names == null) { - sb.append("null"); - } else { - sb.append(this.group_names); - } - first = false; sb.append(")"); return sb.toString(); } @@ -86603,15 +88026,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_with_auth_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_argsStandardScheme getScheme() { - return new get_partitions_with_auth_argsStandardScheme(); + private static class get_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_pspec_argsStandardScheme getScheme() { + return new get_partitions_pspec_argsStandardScheme(); } } - private static class get_partitions_with_auth_argsStandardScheme extends StandardScheme { + private static class get_partitions_pspec_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -86638,39 +88061,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with } break; case 3: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_parts = iprot.readI16(); + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.max_parts = iprot.readI32(); struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // USER_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // GROUP_NAMES - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list920 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list920.size); - String _elem921; - for (int _i922 = 0; _i922 < _list920.size; ++_i922) - { - _elem921 = iprot.readString(); - struct.group_names.add(_elem921); - } - iprot.readListEnd(); - } - struct.setGroup_namesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -86680,7 +88077,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -86695,41 +88092,24 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI16(struct.max_parts); + oprot.writeI32(struct.max_parts); oprot.writeFieldEnd(); - if (struct.user_name != null) { - oprot.writeFieldBegin(USER_NAME_FIELD_DESC); - oprot.writeString(struct.user_name); - oprot.writeFieldEnd(); - } - if (struct.group_names != null) { - oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter923 : struct.group_names) - { - oprot.writeString(_iter923); - } - oprot.writeListEnd(); - } - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partitions_with_auth_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_argsTupleScheme getScheme() { - return new get_partitions_with_auth_argsTupleScheme(); + private static class get_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_pspec_argsTupleScheme getScheme() { + return new get_partitions_pspec_argsTupleScheme(); } } - private static class get_partitions_with_auth_argsTupleScheme extends TupleScheme { + private static class get_partitions_pspec_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -86741,13 +88121,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetMax_parts()) { optionals.set(2); } - if (struct.isSetUser_name()) { - optionals.set(3); - } - if (struct.isSetGroup_names()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } @@ -86755,26 +88129,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with oprot.writeString(struct.tbl_name); } if (struct.isSetMax_parts()) { - oprot.writeI16(struct.max_parts); - } - if (struct.isSetUser_name()) { - oprot.writeString(struct.user_name); - } - if (struct.isSetGroup_names()) { - { - oprot.writeI32(struct.group_names.size()); - for (String _iter924 : struct.group_names) - { - oprot.writeString(_iter924); - } - } + oprot.writeI32(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -86784,33 +88146,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.max_parts = iprot.readI16(); + struct.max_parts = iprot.readI32(); struct.setMax_partsIsSet(true); } - if (incoming.get(3)) { - struct.user_name = iprot.readString(); - struct.setUser_nameIsSet(true); - } - if (incoming.get(4)) { - { - org.apache.thrift.protocol.TList _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) - { - _elem926 = iprot.readString(); - struct.group_names.add(_elem926); - } - } - struct.setGroup_namesIsSet(true); - } } } } - public static class get_partitions_with_auth_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_with_auth_result"); + public static class get_partitions_pspec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_pspec_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -86818,11 +88163,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_with_auth_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_with_auth_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_pspec_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_pspec_resultTupleSchemeFactory()); } - private List success; // required + private List success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -86896,20 +88241,20 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Partition.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionSpec.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_with_auth_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_pspec_result.class, metaDataMap); } - public get_partitions_with_auth_result() { + public get_partitions_pspec_result() { } - public get_partitions_with_auth_result( - List success, + public get_partitions_pspec_result( + List success, NoSuchObjectException o1, MetaException o2) { @@ -86922,11 +88267,11 @@ public get_partitions_with_auth_result( /** * Performs a deep copy on other. */ - public get_partitions_with_auth_result(get_partitions_with_auth_result other) { + public get_partitions_pspec_result(get_partitions_pspec_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Partition other_element : other.success) { - __this__success.add(new Partition(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (PartitionSpec other_element : other.success) { + __this__success.add(new PartitionSpec(other_element)); } this.success = __this__success; } @@ -86938,8 +88283,8 @@ public get_partitions_with_auth_result(get_partitions_with_auth_result other) { } } - public get_partitions_with_auth_result deepCopy() { - return new get_partitions_with_auth_result(this); + public get_partitions_pspec_result deepCopy() { + return new get_partitions_pspec_result(this); } @Override @@ -86953,22 +88298,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Partition elem) { + public void addToSuccess(PartitionSpec elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -87039,7 +88384,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -87098,12 +88443,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_with_auth_result) - return this.equals((get_partitions_with_auth_result)that); + if (that instanceof get_partitions_pspec_result) + return this.equals((get_partitions_pspec_result)that); return false; } - public boolean equals(get_partitions_with_auth_result that) { + public boolean equals(get_partitions_pspec_result that) { if (that == null) return false; @@ -87160,7 +88505,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_with_auth_result other) { + public int compareTo(get_partitions_pspec_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -87214,7 +88559,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_with_auth_result("); + StringBuilder sb = new StringBuilder("get_partitions_pspec_result("); boolean first = true; sb.append("success:"); @@ -87265,15 +88610,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_with_auth_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_resultStandardScheme getScheme() { - return new get_partitions_with_auth_resultStandardScheme(); + private static class get_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_pspec_resultStandardScheme getScheme() { + return new get_partitions_pspec_resultStandardScheme(); } } - private static class get_partitions_with_auth_resultStandardScheme extends StandardScheme { + private static class get_partitions_pspec_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -87286,14 +88631,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 _list968 = iprot.readListBegin(); + struct.success = new ArrayList(_list968.size); + PartitionSpec _elem969; + for (int _i970 = 0; _i970 < _list968.size; ++_i970) { - _elem929 = new Partition(); - _elem929.read(iprot); - struct.success.add(_elem929); + _elem969 = new PartitionSpec(); + _elem969.read(iprot); + struct.success.add(_elem969); } iprot.readListEnd(); } @@ -87329,7 +88674,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -87337,9 +88682,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 (PartitionSpec _iter971 : struct.success) { - _iter931.write(oprot); + _iter971.write(oprot); } oprot.writeListEnd(); } @@ -87361,16 +88706,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit } - private static class get_partitions_with_auth_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_with_auth_resultTupleScheme getScheme() { - return new get_partitions_with_auth_resultTupleScheme(); + private static class get_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_pspec_resultTupleScheme getScheme() { + return new get_partitions_pspec_resultTupleScheme(); } } - private static class get_partitions_with_auth_resultTupleScheme extends TupleScheme { + private static class get_partitions_pspec_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -87386,9 +88731,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 (PartitionSpec _iter972 : struct.success) { - _iter932.write(oprot); + _iter972.write(oprot); } } } @@ -87401,19 +88746,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_auth_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _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 _list973 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list973.size); + PartitionSpec _elem974; + for (int _i975 = 0; _i975 < _list973.size; ++_i975) { - _elem934 = new Partition(); - _elem934.read(iprot); - struct.success.add(_elem934); + _elem974 = new PartitionSpec(); + _elem974.read(iprot); + struct.success.add(_elem974); } } struct.setSuccessIsSet(true); @@ -87433,22 +88778,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } - public static class get_partitions_pspec_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_pspec_args"); + public static class get_partition_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_pspec_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_pspec_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private int max_parts; // required + private short max_parts; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -87525,20 +88870,20 @@ public String getFieldName() { tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_pspec_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_args.class, metaDataMap); } - public get_partitions_pspec_args() { - this.max_parts = -1; + public get_partition_names_args() { + this.max_parts = (short)-1; } - public get_partitions_pspec_args( + public get_partition_names_args( String db_name, String tbl_name, - int max_parts) + short max_parts) { this(); this.db_name = db_name; @@ -87550,7 +88895,7 @@ public get_partitions_pspec_args( /** * Performs a deep copy on other. */ - public get_partitions_pspec_args(get_partitions_pspec_args other) { + public get_partition_names_args(get_partition_names_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -87561,15 +88906,15 @@ public get_partitions_pspec_args(get_partitions_pspec_args other) { this.max_parts = other.max_parts; } - public get_partitions_pspec_args deepCopy() { - return new get_partitions_pspec_args(this); + public get_partition_names_args deepCopy() { + return new get_partition_names_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.max_parts = -1; + this.max_parts = (short)-1; } @@ -87619,11 +88964,11 @@ public void setTbl_nameIsSet(boolean value) { } } - public int getMax_parts() { + public short getMax_parts() { return this.max_parts; } - public void setMax_parts(int max_parts) { + public void setMax_parts(short max_parts) { this.max_parts = max_parts; setMax_partsIsSet(true); } @@ -87663,7 +89008,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetMax_parts(); } else { - setMax_parts((Integer)value); + setMax_parts((Short)value); } break; @@ -87706,12 +89051,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_pspec_args) - return this.equals((get_partitions_pspec_args)that); + if (that instanceof get_partition_names_args) + return this.equals((get_partition_names_args)that); return false; } - public boolean equals(get_partitions_pspec_args that) { + public boolean equals(get_partition_names_args that) { if (that == null) return false; @@ -87768,7 +89113,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_pspec_args other) { + public int compareTo(get_partition_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -87822,7 +89167,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_pspec_args("); + StringBuilder sb = new StringBuilder("get_partition_names_args("); boolean first = true; sb.append("db_name:"); @@ -87871,15 +89216,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_pspec_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_pspec_argsStandardScheme getScheme() { - return new get_partitions_pspec_argsStandardScheme(); + private static class get_partition_names_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_names_argsStandardScheme getScheme() { + return new get_partition_names_argsStandardScheme(); } } - private static class get_partitions_pspec_argsStandardScheme extends StandardScheme { + private static class get_partition_names_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -87906,8 +89251,8 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe } break; case 3: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.max_parts = iprot.readI32(); + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -87922,7 +89267,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -87937,7 +89282,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp oprot.writeFieldEnd(); } oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI32(struct.max_parts); + oprot.writeI16(struct.max_parts); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); @@ -87945,16 +89290,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp } - private static class get_partitions_pspec_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_pspec_argsTupleScheme getScheme() { - return new get_partitions_pspec_argsTupleScheme(); + private static class get_partition_names_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_names_argsTupleScheme getScheme() { + return new get_partition_names_argsTupleScheme(); } } - private static class get_partitions_pspec_argsTupleScheme extends TupleScheme { + private static class get_partition_names_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -87974,12 +89319,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe oprot.writeString(struct.tbl_name); } if (struct.isSetMax_parts()) { - oprot.writeI32(struct.max_parts); + oprot.writeI16(struct.max_parts); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -87991,7 +89336,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.max_parts = iprot.readI32(); + struct.max_parts = iprot.readI16(); struct.setMax_partsIsSet(true); } } @@ -87999,28 +89344,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec } - public static class get_partitions_pspec_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partitions_pspec_result"); + public static class get_partition_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); - private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_pspec_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_pspec_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_names_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_names_resultTupleSchemeFactory()); } - private List success; // required - private NoSuchObjectException o1; // required + private List success; // required private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)1, "o2"); private static final Map byName = new HashMap(); @@ -88037,9 +89379,7 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // O1 - return O1; - case 2: // O2 + case 1: // O2 return O2; default: return null; @@ -88086,56 +89426,45 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionSpec.class)))); - tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_pspec_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_result.class, metaDataMap); } - public get_partitions_pspec_result() { + public get_partition_names_result() { } - public get_partitions_pspec_result( - List success, - NoSuchObjectException o1, + public get_partition_names_result( + List success, MetaException o2) { this(); this.success = success; - this.o1 = o1; this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_partitions_pspec_result(get_partitions_pspec_result other) { + public get_partition_names_result(get_partition_names_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (PartitionSpec other_element : other.success) { - __this__success.add(new PartitionSpec(other_element)); - } + List __this__success = new ArrayList(other.success); this.success = __this__success; } - if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); - } if (other.isSetO2()) { this.o2 = new MetaException(other.o2); } } - public get_partitions_pspec_result deepCopy() { - return new get_partitions_pspec_result(this); + public get_partition_names_result deepCopy() { + return new get_partition_names_result(this); } @Override public void clear() { this.success = null; - this.o1 = null; this.o2 = null; } @@ -88143,22 +89472,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(PartitionSpec elem) { + public void addToSuccess(String elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -88177,29 +89506,6 @@ public void setSuccessIsSet(boolean value) { } } - public NoSuchObjectException getO1() { - return this.o1; - } - - public void setO1(NoSuchObjectException o1) { - this.o1 = o1; - } - - public void unsetO1() { - this.o1 = null; - } - - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != null; - } - - public void setO1IsSet(boolean value) { - if (!value) { - this.o1 = null; - } - } - public MetaException getO2() { return this.o2; } @@ -88229,15 +89535,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); - } - break; - - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((NoSuchObjectException)value); + setSuccess((List)value); } break; @@ -88257,9 +89555,6 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); - case O1: - return getO1(); - case O2: return getO2(); @@ -88276,8 +89571,6 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); - case O1: - return isSetO1(); case O2: return isSetO2(); } @@ -88288,12 +89581,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_pspec_result) - return this.equals((get_partitions_pspec_result)that); + if (that instanceof get_partition_names_result) + return this.equals((get_partition_names_result)that); return false; } - public boolean equals(get_partitions_pspec_result that) { + public boolean equals(get_partition_names_result that) { if (that == null) return false; @@ -88306,15 +89599,6 @@ public boolean equals(get_partitions_pspec_result that) { return false; } - boolean this_present_o1 = true && this.isSetO1(); - boolean that_present_o1 = true && that.isSetO1(); - if (this_present_o1 || that_present_o1) { - if (!(this_present_o1 && that_present_o1)) - return false; - if (!this.o1.equals(that.o1)) - return false; - } - boolean this_present_o2 = true && this.isSetO2(); boolean that_present_o2 = true && that.isSetO2(); if (this_present_o2 || that_present_o2) { @@ -88336,11 +89620,6 @@ public int hashCode() { if (present_success) list.add(success); - boolean present_o1 = true && (isSetO1()); - list.add(present_o1); - if (present_o1) - list.add(o1); - boolean present_o2 = true && (isSetO2()); list.add(present_o2); if (present_o2) @@ -88350,7 +89629,7 @@ public int hashCode() { } @Override - public int compareTo(get_partitions_pspec_result other) { + public int compareTo(get_partition_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -88367,16 +89646,6 @@ public int compareTo(get_partitions_pspec_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO1()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); if (lastComparison != 0) { return lastComparison; @@ -88404,7 +89673,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_pspec_result("); + StringBuilder sb = new StringBuilder("get_partition_names_result("); boolean first = true; sb.append("success:"); @@ -88415,14 +89684,6 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("o1:"); - if (this.o1 == null) { - sb.append("null"); - } else { - sb.append(this.o1); - } - first = false; - if (!first) sb.append(", "); sb.append("o2:"); if (this.o2 == null) { sb.append("null"); @@ -88455,15 +89716,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_pspec_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_pspec_resultStandardScheme getScheme() { - return new get_partitions_pspec_resultStandardScheme(); + private static class get_partition_names_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_names_resultStandardScheme getScheme() { + return new get_partition_names_resultStandardScheme(); } } - private static class get_partitions_pspec_resultStandardScheme extends StandardScheme { + private static class get_partition_names_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -88476,14 +89737,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list936 = iprot.readListBegin(); - struct.success = new ArrayList(_list936.size); - PartitionSpec _elem937; - for (int _i938 = 0; _i938 < _list936.size; ++_i938) + org.apache.thrift.protocol.TList _list976 = iprot.readListBegin(); + struct.success = new ArrayList(_list976.size); + String _elem977; + for (int _i978 = 0; _i978 < _list976.size; ++_i978) { - _elem937 = new PartitionSpec(); - _elem937.read(iprot); - struct.success.add(_elem937); + _elem977 = iprot.readString(); + struct.success.add(_elem977); } iprot.readListEnd(); } @@ -88492,16 +89752,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // O2 + case 1: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.o2 = new MetaException(); struct.o2.read(iprot); @@ -88519,27 +89770,22 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter939 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter979 : struct.success) { - _iter939.write(oprot); + oprot.writeString(_iter979); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } - if (struct.o1 != null) { - oprot.writeFieldBegin(O1_FIELD_DESC); - struct.o1.write(oprot); - oprot.writeFieldEnd(); - } if (struct.o2 != null) { oprot.writeFieldBegin(O2_FIELD_DESC); struct.o2.write(oprot); @@ -88551,69 +89797,57 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp } - private static class get_partitions_pspec_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_pspec_resultTupleScheme getScheme() { - return new get_partitions_pspec_resultTupleScheme(); + private static class get_partition_names_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_names_resultTupleScheme getScheme() { + return new get_partition_names_resultTupleScheme(); } } - private static class get_partitions_pspec_resultTupleScheme extends TupleScheme { + private static class get_partition_names_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO1()) { - optionals.set(1); - } if (struct.isSetO2()) { - optionals.set(2); + optionals.set(1); } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter940 : struct.success) + for (String _iter980 : struct.success) { - _iter940.write(oprot); + oprot.writeString(_iter980); } } } - if (struct.isSetO1()) { - struct.o1.write(oprot); - } if (struct.isSetO2()) { struct.o2.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _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 _list981 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list981.size); + String _elem982; + for (int _i983 = 0; _i983 < _list981.size; ++_i983) { - _elem942 = new PartitionSpec(); - _elem942.read(iprot); - struct.success.add(_elem942); + _elem982 = iprot.readString(); + struct.success.add(_elem982); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } - if (incoming.get(2)) { struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); @@ -88623,28 +89857,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec } - public static class get_partition_names_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_args"); + public static class get_partition_values_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_values_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("max_parts", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_names_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_values_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_values_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private short max_parts; // required + private PartitionValuesRequest request; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - MAX_PARTS((short)3, "max_parts"); + REQUEST((short)1, "request"); private static final Map byName = new HashMap(); @@ -88659,12 +89887,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // MAX_PARTS - return MAX_PARTS; + case 1: // REQUEST + return REQUEST; default: return null; } @@ -88705,155 +89929,73 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_PARTS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAX_PARTS, new org.apache.thrift.meta_data.FieldMetaData("max_parts", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); + tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionValuesRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_values_args.class, metaDataMap); } - public get_partition_names_args() { - this.max_parts = (short)-1; - + public get_partition_values_args() { } - public get_partition_names_args( - String db_name, - String tbl_name, - short max_parts) + public get_partition_values_args( + PartitionValuesRequest request) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.max_parts = max_parts; - setMax_partsIsSet(true); + this.request = request; } /** * Performs a deep copy on other. */ - public get_partition_names_args(get_partition_names_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDb_name()) { - this.db_name = other.db_name; - } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + public get_partition_values_args(get_partition_values_args other) { + if (other.isSetRequest()) { + this.request = new PartitionValuesRequest(other.request); } - this.max_parts = other.max_parts; } - public get_partition_names_args deepCopy() { - return new get_partition_names_args(this); + public get_partition_values_args deepCopy() { + return new get_partition_values_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.max_parts = (short)-1; - - } - - public String getDb_name() { - return this.db_name; - } - - public void setDb_name(String db_name) { - this.db_name = db_name; - } - - public void unsetDb_name() { - this.db_name = null; - } - - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; - } - - public void setDb_nameIsSet(boolean value) { - if (!value) { - this.db_name = null; - } + this.request = null; } - public String getTbl_name() { - return this.tbl_name; + public PartitionValuesRequest getRequest() { + return this.request; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public void setRequest(PartitionValuesRequest request) { + this.request = request; } - public void unsetTbl_name() { - this.tbl_name = null; + public void unsetRequest() { + this.request = null; } - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; + /** Returns true if field request is set (has been assigned a value) and false otherwise */ + public boolean isSetRequest() { + return this.request != null; } - public void setTbl_nameIsSet(boolean value) { + public void setRequestIsSet(boolean value) { if (!value) { - this.tbl_name = null; + this.request = null; } } - public short getMax_parts() { - return this.max_parts; - } - - public void setMax_parts(short max_parts) { - this.max_parts = max_parts; - setMax_partsIsSet(true); - } - - public void unsetMax_parts() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); - } - - /** Returns true if field max_parts is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_parts() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_PARTS_ISSET_ID); - } - - public void setMax_partsIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_PARTS_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: - if (value == null) { - unsetDb_name(); - } else { - setDb_name((String)value); - } - break; - - case TBL_NAME: - if (value == null) { - unsetTbl_name(); - } else { - setTbl_name((String)value); - } - break; - - case MAX_PARTS: + case REQUEST: if (value == null) { - unsetMax_parts(); + unsetRequest(); } else { - setMax_parts((Short)value); + setRequest((PartitionValuesRequest)value); } break; @@ -88862,14 +90004,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); - - case TBL_NAME: - return getTbl_name(); - - case MAX_PARTS: - return getMax_parts(); + case REQUEST: + return getRequest(); } throw new IllegalStateException(); @@ -88882,12 +90018,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case MAX_PARTS: - return isSetMax_parts(); + case REQUEST: + return isSetRequest(); } throw new IllegalStateException(); } @@ -88896,39 +90028,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_args) - return this.equals((get_partition_names_args)that); + if (that instanceof get_partition_values_args) + return this.equals((get_partition_values_args)that); return false; } - public boolean equals(get_partition_names_args that) { + public boolean equals(get_partition_values_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) - return false; - if (!this.db_name.equals(that.db_name)) - return false; - } - - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) - return false; - if (!this.tbl_name.equals(that.tbl_name)) - return false; - } - - boolean this_present_max_parts = true; - boolean that_present_max_parts = true; - if (this_present_max_parts || that_present_max_parts) { - if (!(this_present_max_parts && that_present_max_parts)) + boolean this_present_request = true && this.isSetRequest(); + boolean that_present_request = true && that.isSetRequest(); + if (this_present_request || that_present_request) { + if (!(this_present_request && that_present_request)) return false; - if (this.max_parts != that.max_parts) + if (!this.request.equals(that.request)) return false; } @@ -88939,58 +90053,28 @@ public boolean equals(get_partition_names_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); - - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); - - boolean present_max_parts = true; - list.add(present_max_parts); - if (present_max_parts) - list.add(max_parts); + boolean present_request = true && (isSetRequest()); + list.add(present_request); + if (present_request) + list.add(request); return list.hashCode(); } @Override - public int compareTo(get_partition_names_args other) { + public int compareTo(get_partition_values_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetMax_parts()).compareTo(other.isSetMax_parts()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(other.isSetRequest()); if (lastComparison != 0) { return lastComparison; } - if (isSetMax_parts()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_parts, other.max_parts); + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, other.request); if (lastComparison != 0) { return lastComparison; } @@ -89012,28 +90096,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_args("); + StringBuilder sb = new StringBuilder("get_partition_values_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { - sb.append("null"); - } else { - sb.append(this.db_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("request:"); + if (this.request == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.request); } first = false; - if (!first) sb.append(", "); - sb.append("max_parts:"); - sb.append(this.max_parts); - first = false; sb.append(")"); return sb.toString(); } @@ -89041,6 +90113,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (request != null) { + request.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -89053,23 +90128,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_partition_names_argsStandardSchemeFactory implements SchemeFactory { - public get_partition_names_argsStandardScheme getScheme() { - return new get_partition_names_argsStandardScheme(); + private static class get_partition_values_argsStandardSchemeFactory implements SchemeFactory { + public get_partition_values_argsStandardScheme getScheme() { + return new get_partition_values_argsStandardScheme(); } } - private static class get_partition_names_argsStandardScheme extends StandardScheme { + private static class get_partition_values_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_values_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -89079,26 +90152,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names break; } switch (schemeField.id) { - case 1: // DB_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // TBL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 3: // MAX_PARTS - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_parts = iprot.readI16(); - struct.setMax_partsIsSet(true); + case 1: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new PartitionValuesRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -89112,102 +90170,78 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_values_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); - oprot.writeFieldEnd(); - } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_PARTS_FIELD_DESC); - oprot.writeI16(struct.max_parts); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partition_names_argsTupleSchemeFactory implements SchemeFactory { - public get_partition_names_argsTupleScheme getScheme() { - return new get_partition_names_argsTupleScheme(); + private static class get_partition_values_argsTupleSchemeFactory implements SchemeFactory { + public get_partition_values_argsTupleScheme getScheme() { + return new get_partition_values_argsTupleScheme(); } } - private static class get_partition_names_argsTupleScheme extends TupleScheme { + private static class get_partition_values_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_values_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetRequest()) { optionals.set(0); } - if (struct.isSetTbl_name()) { - optionals.set(1); - } - if (struct.isSetMax_parts()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); - } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); - } - if (struct.isSetMax_parts()) { - oprot.writeI16(struct.max_parts); + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_values_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); - } - if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); - } - if (incoming.get(2)) { - struct.max_parts = iprot.readI16(); - struct.setMax_partsIsSet(true); + struct.request = new PartitionValuesRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } } } } - public static class get_partition_names_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_names_result"); + public static class get_partition_values_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_partition_values_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partition_names_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partition_names_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partition_values_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partition_values_resultTupleSchemeFactory()); } - private List success; // required - private MetaException o2; // required + private PartitionValuesResponse success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - O2((short)1, "o2"); + O1((short)1, "o1"), + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -89224,7 +90258,9 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // O2 + case 1: // O1 + return O1; + case 2: // O2 return O2; default: return null; @@ -89270,69 +90306,60 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionValuesResponse.class))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_names_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partition_values_result.class, metaDataMap); } - public get_partition_names_result() { + public get_partition_values_result() { } - public get_partition_names_result( - List success, - MetaException o2) + public get_partition_values_result( + PartitionValuesResponse success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; + this.o1 = o1; this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_partition_names_result(get_partition_names_result other) { + public get_partition_values_result(get_partition_values_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); - this.success = __this__success; + this.success = new PartitionValuesResponse(other.success); + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public get_partition_names_result deepCopy() { - return new get_partition_names_result(this); + public get_partition_values_result deepCopy() { + return new get_partition_values_result(this); } @Override public void clear() { this.success = null; + this.o1 = null; this.o2 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(String elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public PartitionValuesResponse getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(PartitionValuesResponse success) { this.success = success; } @@ -89351,11 +90378,34 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO2() { + public MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -89380,7 +90430,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((PartitionValuesResponse)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); } break; @@ -89388,7 +90446,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -89400,6 +90458,9 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); + case O1: + return getO1(); + case O2: return getO2(); @@ -89416,6 +90477,8 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); + case O1: + return isSetO1(); case O2: return isSetO2(); } @@ -89426,12 +90489,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_names_result) - return this.equals((get_partition_names_result)that); + if (that instanceof get_partition_values_result) + return this.equals((get_partition_values_result)that); return false; } - public boolean equals(get_partition_names_result that) { + public boolean equals(get_partition_values_result that) { if (that == null) return false; @@ -89444,6 +90507,15 @@ public boolean equals(get_partition_names_result that) { return false; } + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + boolean this_present_o2 = true && this.isSetO2(); boolean that_present_o2 = true && that.isSetO2(); if (this_present_o2 || that_present_o2) { @@ -89465,6 +90537,11 @@ public int hashCode() { if (present_success) list.add(success); + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + boolean present_o2 = true && (isSetO2()); list.add(present_o2); if (present_o2) @@ -89474,7 +90551,7 @@ public int hashCode() { } @Override - public int compareTo(get_partition_names_result other) { + public int compareTo(get_partition_values_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -89491,6 +90568,16 @@ public int compareTo(get_partition_names_result other) { return lastComparison; } } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); if (lastComparison != 0) { return lastComparison; @@ -89518,7 +90605,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_names_result("); + StringBuilder sb = new StringBuilder("get_partition_values_result("); boolean first = true; sb.append("success:"); @@ -89529,6 +90616,14 @@ public String toString() { } first = false; if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); sb.append("o2:"); if (this.o2 == null) { sb.append("null"); @@ -89543,6 +90638,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -89561,15 +90659,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_names_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_names_resultStandardScheme getScheme() { - return new get_partition_names_resultStandardScheme(); + private static class get_partition_values_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_values_resultStandardScheme getScheme() { + return new get_partition_values_resultStandardScheme(); } } - private static class get_partition_names_resultStandardScheme extends StandardScheme { + private static class get_partition_values_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_values_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -89580,26 +90678,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names } switch (schemeField.id) { 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) - { - _elem945 = iprot.readString(); - struct.success.add(_elem945); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new PartitionValuesResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O2 + case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -89615,20 +90713,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_values_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter947 : struct.success) - { - oprot.writeString(_iter947); - } - oprot.writeListEnd(); - } + 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) { @@ -89642,33 +90738,33 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name } - private static class get_partition_names_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_names_resultTupleScheme getScheme() { - return new get_partition_names_resultTupleScheme(); + private static class get_partition_values_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_values_resultTupleScheme getScheme() { + return new get_partition_values_resultTupleScheme(); } } - private static class get_partition_names_resultTupleScheme extends TupleScheme { + private static class get_partition_values_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_values_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (String _iter948 : struct.success) - { - oprot.writeString(_iter948); - } - } + struct.success.write(oprot); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); } if (struct.isSetO2()) { struct.o2.write(oprot); @@ -89676,24 +90772,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_values_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _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) - { - _elem950 = iprot.readString(); - struct.success.add(_elem950); - } - } + struct.success = new PartitionValuesResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o2 = new MetaException(); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(2)) { + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -90275,13 +91368,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 _list984 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list984.size); + String _elem985; + for (int _i986 = 0; _i986 < _list984.size; ++_i986) { - _elem953 = iprot.readString(); - struct.part_vals.add(_elem953); + _elem985 = iprot.readString(); + struct.part_vals.add(_elem985); } iprot.readListEnd(); } @@ -90325,9 +91418,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 _iter987 : struct.part_vals) { - oprot.writeString(_iter955); + oprot.writeString(_iter987); } oprot.writeListEnd(); } @@ -90376,9 +91469,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 _iter988 : struct.part_vals) { - oprot.writeString(_iter956); + oprot.writeString(_iter988); } } } @@ -90401,13 +91494,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 _list989 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list989.size); + String _elem990; + for (int _i991 = 0; _i991 < _list989.size; ++_i991) { - _elem958 = iprot.readString(); - struct.part_vals.add(_elem958); + _elem990 = iprot.readString(); + struct.part_vals.add(_elem990); } } struct.setPart_valsIsSet(true); @@ -90898,14 +91991,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 _list992 = iprot.readListBegin(); + struct.success = new ArrayList(_list992.size); + Partition _elem993; + for (int _i994 = 0; _i994 < _list992.size; ++_i994) { - _elem961 = new Partition(); - _elem961.read(iprot); - struct.success.add(_elem961); + _elem993 = new Partition(); + _elem993.read(iprot); + struct.success.add(_elem993); } iprot.readListEnd(); } @@ -90949,9 +92042,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 _iter995 : struct.success) { - _iter963.write(oprot); + _iter995.write(oprot); } oprot.writeListEnd(); } @@ -90998,9 +92091,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 _iter996 : struct.success) { - _iter964.write(oprot); + _iter996.write(oprot); } } } @@ -91018,14 +92111,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 _list997 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list997.size); + Partition _elem998; + for (int _i999 = 0; _i999 < _list997.size; ++_i999) { - _elem966 = new Partition(); - _elem966.read(iprot); - struct.success.add(_elem966); + _elem998 = new Partition(); + _elem998.read(iprot); + struct.success.add(_elem998); } } struct.setSuccessIsSet(true); @@ -91797,13 +92890,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 _list1000 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1000.size); + String _elem1001; + for (int _i1002 = 0; _i1002 < _list1000.size; ++_i1002) { - _elem969 = iprot.readString(); - struct.part_vals.add(_elem969); + _elem1001 = iprot.readString(); + struct.part_vals.add(_elem1001); } iprot.readListEnd(); } @@ -91831,13 +92924,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 _list1003 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1003.size); + String _elem1004; + for (int _i1005 = 0; _i1005 < _list1003.size; ++_i1005) { - _elem972 = iprot.readString(); - struct.group_names.add(_elem972); + _elem1004 = iprot.readString(); + struct.group_names.add(_elem1004); } iprot.readListEnd(); } @@ -91873,9 +92966,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 _iter1006 : struct.part_vals) { - oprot.writeString(_iter974); + oprot.writeString(_iter1006); } oprot.writeListEnd(); } @@ -91893,9 +92986,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 _iter1007 : struct.group_names) { - oprot.writeString(_iter975); + oprot.writeString(_iter1007); } oprot.writeListEnd(); } @@ -91947,9 +93040,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 _iter1008 : struct.part_vals) { - oprot.writeString(_iter976); + oprot.writeString(_iter1008); } } } @@ -91962,9 +93055,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 _iter1009 : struct.group_names) { - oprot.writeString(_iter977); + oprot.writeString(_iter1009); } } } @@ -91984,13 +93077,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 _list1010 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1010.size); + String _elem1011; + for (int _i1012 = 0; _i1012 < _list1010.size; ++_i1012) { - _elem979 = iprot.readString(); - struct.part_vals.add(_elem979); + _elem1011 = iprot.readString(); + struct.part_vals.add(_elem1011); } } struct.setPart_valsIsSet(true); @@ -92005,13 +93098,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 _list1013 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1013.size); + String _elem1014; + for (int _i1015 = 0; _i1015 < _list1013.size; ++_i1015) { - _elem982 = iprot.readString(); - struct.group_names.add(_elem982); + _elem1014 = iprot.readString(); + struct.group_names.add(_elem1014); } } struct.setGroup_namesIsSet(true); @@ -92498,14 +93591,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 _list1016 = iprot.readListBegin(); + struct.success = new ArrayList(_list1016.size); + Partition _elem1017; + for (int _i1018 = 0; _i1018 < _list1016.size; ++_i1018) { - _elem985 = new Partition(); - _elem985.read(iprot); - struct.success.add(_elem985); + _elem1017 = new Partition(); + _elem1017.read(iprot); + struct.success.add(_elem1017); } iprot.readListEnd(); } @@ -92549,9 +93642,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 _iter1019 : struct.success) { - _iter987.write(oprot); + _iter1019.write(oprot); } oprot.writeListEnd(); } @@ -92598,9 +93691,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 _iter1020 : struct.success) { - _iter988.write(oprot); + _iter1020.write(oprot); } } } @@ -92618,14 +93711,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 _list1021 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1021.size); + Partition _elem1022; + for (int _i1023 = 0; _i1023 < _list1021.size; ++_i1023) { - _elem990 = new Partition(); - _elem990.read(iprot); - struct.success.add(_elem990); + _elem1022 = new Partition(); + _elem1022.read(iprot); + struct.success.add(_elem1022); } } struct.setSuccessIsSet(true); @@ -93218,13 +94311,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 _list1024 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1024.size); + String _elem1025; + for (int _i1026 = 0; _i1026 < _list1024.size; ++_i1026) { - _elem993 = iprot.readString(); - struct.part_vals.add(_elem993); + _elem1025 = iprot.readString(); + struct.part_vals.add(_elem1025); } iprot.readListEnd(); } @@ -93268,9 +94361,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 _iter1027 : struct.part_vals) { - oprot.writeString(_iter995); + oprot.writeString(_iter1027); } oprot.writeListEnd(); } @@ -93319,9 +94412,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 _iter1028 : struct.part_vals) { - oprot.writeString(_iter996); + oprot.writeString(_iter1028); } } } @@ -93344,13 +94437,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 _list1029 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1029.size); + String _elem1030; + for (int _i1031 = 0; _i1031 < _list1029.size; ++_i1031) { - _elem998 = iprot.readString(); - struct.part_vals.add(_elem998); + _elem1030 = iprot.readString(); + struct.part_vals.add(_elem1030); } } struct.setPart_valsIsSet(true); @@ -93838,13 +94931,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 _list1032 = iprot.readListBegin(); + struct.success = new ArrayList(_list1032.size); + String _elem1033; + for (int _i1034 = 0; _i1034 < _list1032.size; ++_i1034) { - _elem1001 = iprot.readString(); - struct.success.add(_elem1001); + _elem1033 = iprot.readString(); + struct.success.add(_elem1033); } iprot.readListEnd(); } @@ -93888,9 +94981,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 _iter1035 : struct.success) { - oprot.writeString(_iter1003); + oprot.writeString(_iter1035); } oprot.writeListEnd(); } @@ -93937,9 +95030,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 _iter1036 : struct.success) { - oprot.writeString(_iter1004); + oprot.writeString(_iter1036); } } } @@ -93957,13 +95050,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 _list1037 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1037.size); + String _elem1038; + for (int _i1039 = 0; _i1039 < _list1037.size; ++_i1039) { - _elem1006 = iprot.readString(); - struct.success.add(_elem1006); + _elem1038 = iprot.readString(); + struct.success.add(_elem1038); } } struct.setSuccessIsSet(true); @@ -95130,14 +96223,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 _list1040 = iprot.readListBegin(); + struct.success = new ArrayList(_list1040.size); + Partition _elem1041; + for (int _i1042 = 0; _i1042 < _list1040.size; ++_i1042) { - _elem1009 = new Partition(); - _elem1009.read(iprot); - struct.success.add(_elem1009); + _elem1041 = new Partition(); + _elem1041.read(iprot); + struct.success.add(_elem1041); } iprot.readListEnd(); } @@ -95181,9 +96274,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 _iter1043 : struct.success) { - _iter1011.write(oprot); + _iter1043.write(oprot); } oprot.writeListEnd(); } @@ -95230,9 +96323,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 _iter1044 : struct.success) { - _iter1012.write(oprot); + _iter1044.write(oprot); } } } @@ -95250,14 +96343,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 _list1045 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1045.size); + Partition _elem1046; + for (int _i1047 = 0; _i1047 < _list1045.size; ++_i1047) { - _elem1014 = new Partition(); - _elem1014.read(iprot); - struct.success.add(_elem1014); + _elem1046 = new Partition(); + _elem1046.read(iprot); + struct.success.add(_elem1046); } } struct.setSuccessIsSet(true); @@ -96424,14 +97517,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 _list1048 = iprot.readListBegin(); + struct.success = new ArrayList(_list1048.size); + PartitionSpec _elem1049; + for (int _i1050 = 0; _i1050 < _list1048.size; ++_i1050) { - _elem1017 = new PartitionSpec(); - _elem1017.read(iprot); - struct.success.add(_elem1017); + _elem1049 = new PartitionSpec(); + _elem1049.read(iprot); + struct.success.add(_elem1049); } iprot.readListEnd(); } @@ -96475,9 +97568,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 _iter1051 : struct.success) { - _iter1019.write(oprot); + _iter1051.write(oprot); } oprot.writeListEnd(); } @@ -96524,9 +97617,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 _iter1052 : struct.success) { - _iter1020.write(oprot); + _iter1052.write(oprot); } } } @@ -96544,14 +97637,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 _list1053 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1053.size); + PartitionSpec _elem1054; + for (int _i1055 = 0; _i1055 < _list1053.size; ++_i1055) { - _elem1022 = new PartitionSpec(); - _elem1022.read(iprot); - struct.success.add(_elem1022); + _elem1054 = new PartitionSpec(); + _elem1054.read(iprot); + struct.success.add(_elem1054); } } struct.setSuccessIsSet(true); @@ -99135,13 +100228,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 _list1056 = iprot.readListBegin(); + struct.names = new ArrayList(_list1056.size); + String _elem1057; + for (int _i1058 = 0; _i1058 < _list1056.size; ++_i1058) { - _elem1025 = iprot.readString(); - struct.names.add(_elem1025); + _elem1057 = iprot.readString(); + struct.names.add(_elem1057); } iprot.readListEnd(); } @@ -99177,9 +100270,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 _iter1059 : struct.names) { - oprot.writeString(_iter1027); + oprot.writeString(_iter1059); } oprot.writeListEnd(); } @@ -99222,9 +100315,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 _iter1060 : struct.names) { - oprot.writeString(_iter1028); + oprot.writeString(_iter1060); } } } @@ -99244,13 +100337,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 _list1061 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list1061.size); + String _elem1062; + for (int _i1063 = 0; _i1063 < _list1061.size; ++_i1063) { - _elem1030 = iprot.readString(); - struct.names.add(_elem1030); + _elem1062 = iprot.readString(); + struct.names.add(_elem1062); } } struct.setNamesIsSet(true); @@ -99737,14 +100830,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 _list1064 = iprot.readListBegin(); + struct.success = new ArrayList(_list1064.size); + Partition _elem1065; + for (int _i1066 = 0; _i1066 < _list1064.size; ++_i1066) { - _elem1033 = new Partition(); - _elem1033.read(iprot); - struct.success.add(_elem1033); + _elem1065 = new Partition(); + _elem1065.read(iprot); + struct.success.add(_elem1065); } iprot.readListEnd(); } @@ -99788,9 +100881,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 _iter1067 : struct.success) { - _iter1035.write(oprot); + _iter1067.write(oprot); } oprot.writeListEnd(); } @@ -99837,9 +100930,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 _iter1068 : struct.success) { - _iter1036.write(oprot); + _iter1068.write(oprot); } } } @@ -99857,14 +100950,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 _list1069 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1069.size); + Partition _elem1070; + for (int _i1071 = 0; _i1071 < _list1069.size; ++_i1071) { - _elem1038 = new Partition(); - _elem1038.read(iprot); - struct.success.add(_elem1038); + _elem1070 = new Partition(); + _elem1070.read(iprot); + struct.success.add(_elem1070); } } struct.setSuccessIsSet(true); @@ -101414,14 +102507,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 _list1072 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1072.size); + Partition _elem1073; + for (int _i1074 = 0; _i1074 < _list1072.size; ++_i1074) { - _elem1041 = new Partition(); - _elem1041.read(iprot); - struct.new_parts.add(_elem1041); + _elem1073 = new Partition(); + _elem1073.read(iprot); + struct.new_parts.add(_elem1073); } iprot.readListEnd(); } @@ -101457,9 +102550,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 _iter1075 : struct.new_parts) { - _iter1043.write(oprot); + _iter1075.write(oprot); } oprot.writeListEnd(); } @@ -101502,9 +102595,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 _iter1076 : struct.new_parts) { - _iter1044.write(oprot); + _iter1076.write(oprot); } } } @@ -101524,14 +102617,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 _list1077 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1077.size); + Partition _elem1078; + for (int _i1079 = 0; _i1079 < _list1077.size; ++_i1079) { - _elem1046 = new Partition(); - _elem1046.read(iprot); - struct.new_parts.add(_elem1046); + _elem1078 = new Partition(); + _elem1078.read(iprot); + struct.new_parts.add(_elem1078); } } struct.setNew_partsIsSet(true); @@ -102584,14 +103677,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 _list1080 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list1080.size); + Partition _elem1081; + for (int _i1082 = 0; _i1082 < _list1080.size; ++_i1082) { - _elem1049 = new Partition(); - _elem1049.read(iprot); - struct.new_parts.add(_elem1049); + _elem1081 = new Partition(); + _elem1081.read(iprot); + struct.new_parts.add(_elem1081); } iprot.readListEnd(); } @@ -102636,9 +103729,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 _iter1083 : struct.new_parts) { - _iter1051.write(oprot); + _iter1083.write(oprot); } oprot.writeListEnd(); } @@ -102689,9 +103782,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 _iter1084 : struct.new_parts) { - _iter1052.write(oprot); + _iter1084.write(oprot); } } } @@ -102714,14 +103807,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 _list1085 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1085.size); + Partition _elem1086; + for (int _i1087 = 0; _i1087 < _list1085.size; ++_i1087) { - _elem1054 = new Partition(); - _elem1054.read(iprot); - struct.new_parts.add(_elem1054); + _elem1086 = new Partition(); + _elem1086.read(iprot); + struct.new_parts.add(_elem1086); } } struct.setNew_partsIsSet(true); @@ -104922,13 +106015,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 _list1088 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1088.size); + String _elem1089; + for (int _i1090 = 0; _i1090 < _list1088.size; ++_i1090) { - _elem1057 = iprot.readString(); - struct.part_vals.add(_elem1057); + _elem1089 = iprot.readString(); + struct.part_vals.add(_elem1089); } iprot.readListEnd(); } @@ -104973,9 +106066,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 _iter1091 : struct.part_vals) { - oprot.writeString(_iter1059); + oprot.writeString(_iter1091); } oprot.writeListEnd(); } @@ -105026,9 +106119,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 _iter1092 : struct.part_vals) { - oprot.writeString(_iter1060); + oprot.writeString(_iter1092); } } } @@ -105051,13 +106144,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 _list1093 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1093.size); + String _elem1094; + for (int _i1095 = 0; _i1095 < _list1093.size; ++_i1095) { - _elem1062 = iprot.readString(); - struct.part_vals.add(_elem1062); + _elem1094 = iprot.readString(); + struct.part_vals.add(_elem1094); } } struct.setPart_valsIsSet(true); @@ -105931,13 +107024,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 _list1096 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1096.size); + String _elem1097; + for (int _i1098 = 0; _i1098 < _list1096.size; ++_i1098) { - _elem1065 = iprot.readString(); - struct.part_vals.add(_elem1065); + _elem1097 = iprot.readString(); + struct.part_vals.add(_elem1097); } iprot.readListEnd(); } @@ -105971,9 +107064,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 _iter1099 : struct.part_vals) { - oprot.writeString(_iter1067); + oprot.writeString(_iter1099); } oprot.writeListEnd(); } @@ -106010,9 +107103,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 _iter1100 : struct.part_vals) { - oprot.writeString(_iter1068); + oprot.writeString(_iter1100); } } } @@ -106027,13 +107120,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 _list1101 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1101.size); + String _elem1102; + for (int _i1103 = 0; _i1103 < _list1101.size; ++_i1103) { - _elem1070 = iprot.readString(); - struct.part_vals.add(_elem1070); + _elem1102 = iprot.readString(); + struct.part_vals.add(_elem1102); } } struct.setPart_valsIsSet(true); @@ -108188,13 +109281,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 _list1104 = iprot.readListBegin(); + struct.success = new ArrayList(_list1104.size); + String _elem1105; + for (int _i1106 = 0; _i1106 < _list1104.size; ++_i1106) { - _elem1073 = iprot.readString(); - struct.success.add(_elem1073); + _elem1105 = iprot.readString(); + struct.success.add(_elem1105); } iprot.readListEnd(); } @@ -108229,9 +109322,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 _iter1107 : struct.success) { - oprot.writeString(_iter1075); + oprot.writeString(_iter1107); } oprot.writeListEnd(); } @@ -108270,9 +109363,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 _iter1108 : struct.success) { - oprot.writeString(_iter1076); + oprot.writeString(_iter1108); } } } @@ -108287,13 +109380,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 _list1109 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1109.size); + String _elem1110; + for (int _i1111 = 0; _i1111 < _list1109.size; ++_i1111) { - _elem1078 = iprot.readString(); - struct.success.add(_elem1078); + _elem1110 = iprot.readString(); + struct.success.add(_elem1110); } } struct.setSuccessIsSet(true); @@ -109056,15 +110149,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 _map1112 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1112.size); + String _key1113; + String _val1114; + for (int _i1115 = 0; _i1115 < _map1112.size; ++_i1115) { - _key1081 = iprot.readString(); - _val1082 = iprot.readString(); - struct.success.put(_key1081, _val1082); + _key1113 = iprot.readString(); + _val1114 = iprot.readString(); + struct.success.put(_key1113, _val1114); } iprot.readMapEnd(); } @@ -109099,10 +110192,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 _iter1116 : struct.success.entrySet()) { - oprot.writeString(_iter1084.getKey()); - oprot.writeString(_iter1084.getValue()); + oprot.writeString(_iter1116.getKey()); + oprot.writeString(_iter1116.getValue()); } oprot.writeMapEnd(); } @@ -109141,10 +110234,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 _iter1117 : struct.success.entrySet()) { - oprot.writeString(_iter1085.getKey()); - oprot.writeString(_iter1085.getValue()); + oprot.writeString(_iter1117.getKey()); + oprot.writeString(_iter1117.getValue()); } } } @@ -109159,15 +110252,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 _map1118 = 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*_map1118.size); + String _key1119; + String _val1120; + for (int _i1121 = 0; _i1121 < _map1118.size; ++_i1121) { - _key1087 = iprot.readString(); - _val1088 = iprot.readString(); - struct.success.put(_key1087, _val1088); + _key1119 = iprot.readString(); + _val1120 = iprot.readString(); + struct.success.put(_key1119, _val1120); } } struct.setSuccessIsSet(true); @@ -109762,15 +110855,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 _map1122 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1122.size); + String _key1123; + String _val1124; + for (int _i1125 = 0; _i1125 < _map1122.size; ++_i1125) { - _key1091 = iprot.readString(); - _val1092 = iprot.readString(); - struct.part_vals.put(_key1091, _val1092); + _key1123 = iprot.readString(); + _val1124 = iprot.readString(); + struct.part_vals.put(_key1123, _val1124); } iprot.readMapEnd(); } @@ -109814,10 +110907,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 _iter1126 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1094.getKey()); - oprot.writeString(_iter1094.getValue()); + oprot.writeString(_iter1126.getKey()); + oprot.writeString(_iter1126.getValue()); } oprot.writeMapEnd(); } @@ -109868,10 +110961,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 _iter1127 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1095.getKey()); - oprot.writeString(_iter1095.getValue()); + oprot.writeString(_iter1127.getKey()); + oprot.writeString(_iter1127.getValue()); } } } @@ -109894,15 +110987,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 _map1128 = 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*_map1128.size); + String _key1129; + String _val1130; + for (int _i1131 = 0; _i1131 < _map1128.size; ++_i1131) { - _key1097 = iprot.readString(); - _val1098 = iprot.readString(); - struct.part_vals.put(_key1097, _val1098); + _key1129 = iprot.readString(); + _val1130 = iprot.readString(); + struct.part_vals.put(_key1129, _val1130); } } struct.setPart_valsIsSet(true); @@ -111386,15 +112479,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 _map1132 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1132.size); + String _key1133; + String _val1134; + for (int _i1135 = 0; _i1135 < _map1132.size; ++_i1135) { - _key1101 = iprot.readString(); - _val1102 = iprot.readString(); - struct.part_vals.put(_key1101, _val1102); + _key1133 = iprot.readString(); + _val1134 = iprot.readString(); + struct.part_vals.put(_key1133, _val1134); } iprot.readMapEnd(); } @@ -111438,10 +112531,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 _iter1136 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1104.getKey()); - oprot.writeString(_iter1104.getValue()); + oprot.writeString(_iter1136.getKey()); + oprot.writeString(_iter1136.getValue()); } oprot.writeMapEnd(); } @@ -111492,10 +112585,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 _iter1137 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1105.getKey()); - oprot.writeString(_iter1105.getValue()); + oprot.writeString(_iter1137.getKey()); + oprot.writeString(_iter1137.getValue()); } } } @@ -111518,15 +112611,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 _map1138 = 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*_map1138.size); + String _key1139; + String _val1140; + for (int _i1141 = 0; _i1141 < _map1138.size; ++_i1141) { - _key1107 = iprot.readString(); - _val1108 = iprot.readString(); - struct.part_vals.put(_key1107, _val1108); + _key1139 = iprot.readString(); + _val1140 = iprot.readString(); + struct.part_vals.put(_key1139, _val1140); } } struct.setPart_valsIsSet(true); @@ -118250,14 +119343,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 _list1142 = iprot.readListBegin(); + struct.success = new ArrayList(_list1142.size); + Index _elem1143; + for (int _i1144 = 0; _i1144 < _list1142.size; ++_i1144) { - _elem1111 = new Index(); - _elem1111.read(iprot); - struct.success.add(_elem1111); + _elem1143 = new Index(); + _elem1143.read(iprot); + struct.success.add(_elem1143); } iprot.readListEnd(); } @@ -118301,9 +119394,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 _iter1145 : struct.success) { - _iter1113.write(oprot); + _iter1145.write(oprot); } oprot.writeListEnd(); } @@ -118350,9 +119443,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 _iter1146 : struct.success) { - _iter1114.write(oprot); + _iter1146.write(oprot); } } } @@ -118370,14 +119463,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 _list1147 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1147.size); + Index _elem1148; + for (int _i1149 = 0; _i1149 < _list1147.size; ++_i1149) { - _elem1116 = new Index(); - _elem1116.read(iprot); - struct.success.add(_elem1116); + _elem1148 = new Index(); + _elem1148.read(iprot); + struct.success.add(_elem1148); } } struct.setSuccessIsSet(true); @@ -119356,13 +120449,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 _list1150 = iprot.readListBegin(); + struct.success = new ArrayList(_list1150.size); + String _elem1151; + for (int _i1152 = 0; _i1152 < _list1150.size; ++_i1152) { - _elem1119 = iprot.readString(); - struct.success.add(_elem1119); + _elem1151 = iprot.readString(); + struct.success.add(_elem1151); } iprot.readListEnd(); } @@ -119397,9 +120490,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 _iter1153 : struct.success) { - oprot.writeString(_iter1121); + oprot.writeString(_iter1153); } oprot.writeListEnd(); } @@ -119438,9 +120531,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 _iter1154 : struct.success) { - oprot.writeString(_iter1122); + oprot.writeString(_iter1154); } } } @@ -119455,13 +120548,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 _list1155 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1155.size); + String _elem1156; + for (int _i1157 = 0; _i1157 < _list1155.size; ++_i1157) { - _elem1124 = iprot.readString(); - struct.success.add(_elem1124); + _elem1156 = iprot.readString(); + struct.success.add(_elem1156); } } struct.setSuccessIsSet(true); @@ -137072,13 +138165,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 _list1158 = iprot.readListBegin(); + struct.success = new ArrayList(_list1158.size); + String _elem1159; + for (int _i1160 = 0; _i1160 < _list1158.size; ++_i1160) { - _elem1127 = iprot.readString(); - struct.success.add(_elem1127); + _elem1159 = iprot.readString(); + struct.success.add(_elem1159); } iprot.readListEnd(); } @@ -137113,9 +138206,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 _iter1161 : struct.success) { - oprot.writeString(_iter1129); + oprot.writeString(_iter1161); } oprot.writeListEnd(); } @@ -137154,9 +138247,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 _iter1162 : struct.success) { - oprot.writeString(_iter1130); + oprot.writeString(_iter1162); } } } @@ -137171,13 +138264,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 _list1163 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1163.size); + String _elem1164; + for (int _i1165 = 0; _i1165 < _list1163.size; ++_i1165) { - _elem1132 = iprot.readString(); - struct.success.add(_elem1132); + _elem1164 = iprot.readString(); + struct.success.add(_elem1164); } } struct.setSuccessIsSet(true); @@ -141232,13 +142325,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 _list1166 = iprot.readListBegin(); + struct.success = new ArrayList(_list1166.size); + String _elem1167; + for (int _i1168 = 0; _i1168 < _list1166.size; ++_i1168) { - _elem1135 = iprot.readString(); - struct.success.add(_elem1135); + _elem1167 = iprot.readString(); + struct.success.add(_elem1167); } iprot.readListEnd(); } @@ -141273,9 +142366,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 _iter1169 : struct.success) { - oprot.writeString(_iter1137); + oprot.writeString(_iter1169); } oprot.writeListEnd(); } @@ -141314,9 +142407,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 _iter1170 : struct.success) { - oprot.writeString(_iter1138); + oprot.writeString(_iter1170); } } } @@ -141331,13 +142424,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 _list1171 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1171.size); + String _elem1172; + for (int _i1173 = 0; _i1173 < _list1171.size; ++_i1173) { - _elem1140 = iprot.readString(); - struct.success.add(_elem1140); + _elem1172 = iprot.readString(); + struct.success.add(_elem1172); } } struct.setSuccessIsSet(true); @@ -144628,14 +145721,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 _list1174 = iprot.readListBegin(); + struct.success = new ArrayList(_list1174.size); + Role _elem1175; + for (int _i1176 = 0; _i1176 < _list1174.size; ++_i1176) { - _elem1143 = new Role(); - _elem1143.read(iprot); - struct.success.add(_elem1143); + _elem1175 = new Role(); + _elem1175.read(iprot); + struct.success.add(_elem1175); } iprot.readListEnd(); } @@ -144670,9 +145763,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 _iter1177 : struct.success) { - _iter1145.write(oprot); + _iter1177.write(oprot); } oprot.writeListEnd(); } @@ -144711,9 +145804,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 _iter1178 : struct.success) { - _iter1146.write(oprot); + _iter1178.write(oprot); } } } @@ -144728,14 +145821,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 _list1179 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1179.size); + Role _elem1180; + for (int _i1181 = 0; _i1181 < _list1179.size; ++_i1181) { - _elem1148 = new Role(); - _elem1148.read(iprot); - struct.success.add(_elem1148); + _elem1180 = new Role(); + _elem1180.read(iprot); + struct.success.add(_elem1180); } } struct.setSuccessIsSet(true); @@ -147740,13 +148833,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 _list1182 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1182.size); + String _elem1183; + for (int _i1184 = 0; _i1184 < _list1182.size; ++_i1184) { - _elem1151 = iprot.readString(); - struct.group_names.add(_elem1151); + _elem1183 = iprot.readString(); + struct.group_names.add(_elem1183); } iprot.readListEnd(); } @@ -147782,9 +148875,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 _iter1185 : struct.group_names) { - oprot.writeString(_iter1153); + oprot.writeString(_iter1185); } oprot.writeListEnd(); } @@ -147827,9 +148920,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 _iter1186 : struct.group_names) { - oprot.writeString(_iter1154); + oprot.writeString(_iter1186); } } } @@ -147850,13 +148943,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 _list1187 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1187.size); + String _elem1188; + for (int _i1189 = 0; _i1189 < _list1187.size; ++_i1189) { - _elem1156 = iprot.readString(); - struct.group_names.add(_elem1156); + _elem1188 = iprot.readString(); + struct.group_names.add(_elem1188); } } struct.setGroup_namesIsSet(true); @@ -149314,14 +150407,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 _list1190 = iprot.readListBegin(); + struct.success = new ArrayList(_list1190.size); + HiveObjectPrivilege _elem1191; + for (int _i1192 = 0; _i1192 < _list1190.size; ++_i1192) { - _elem1159 = new HiveObjectPrivilege(); - _elem1159.read(iprot); - struct.success.add(_elem1159); + _elem1191 = new HiveObjectPrivilege(); + _elem1191.read(iprot); + struct.success.add(_elem1191); } iprot.readListEnd(); } @@ -149356,9 +150449,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 _iter1193 : struct.success) { - _iter1161.write(oprot); + _iter1193.write(oprot); } oprot.writeListEnd(); } @@ -149397,9 +150490,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 _iter1194 : struct.success) { - _iter1162.write(oprot); + _iter1194.write(oprot); } } } @@ -149414,14 +150507,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 _list1195 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1195.size); + HiveObjectPrivilege _elem1196; + for (int _i1197 = 0; _i1197 < _list1195.size; ++_i1197) { - _elem1164 = new HiveObjectPrivilege(); - _elem1164.read(iprot); - struct.success.add(_elem1164); + _elem1196 = new HiveObjectPrivilege(); + _elem1196.read(iprot); + struct.success.add(_elem1196); } } struct.setSuccessIsSet(true); @@ -152323,13 +153416,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 _list1198 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1198.size); + String _elem1199; + for (int _i1200 = 0; _i1200 < _list1198.size; ++_i1200) { - _elem1167 = iprot.readString(); - struct.group_names.add(_elem1167); + _elem1199 = iprot.readString(); + struct.group_names.add(_elem1199); } iprot.readListEnd(); } @@ -152360,9 +153453,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 _iter1201 : struct.group_names) { - oprot.writeString(_iter1169); + oprot.writeString(_iter1201); } oprot.writeListEnd(); } @@ -152399,9 +153492,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 _iter1202 : struct.group_names) { - oprot.writeString(_iter1170); + oprot.writeString(_iter1202); } } } @@ -152417,13 +153510,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 _list1203 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1203.size); + String _elem1204; + for (int _i1205 = 0; _i1205 < _list1203.size; ++_i1205) { - _elem1172 = iprot.readString(); - struct.group_names.add(_elem1172); + _elem1204 = iprot.readString(); + struct.group_names.add(_elem1204); } } struct.setGroup_namesIsSet(true); @@ -152826,13 +153919,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 _list1206 = iprot.readListBegin(); + struct.success = new ArrayList(_list1206.size); + String _elem1207; + for (int _i1208 = 0; _i1208 < _list1206.size; ++_i1208) { - _elem1175 = iprot.readString(); - struct.success.add(_elem1175); + _elem1207 = iprot.readString(); + struct.success.add(_elem1207); } iprot.readListEnd(); } @@ -152867,9 +153960,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 _iter1209 : struct.success) { - oprot.writeString(_iter1177); + oprot.writeString(_iter1209); } oprot.writeListEnd(); } @@ -152908,9 +154001,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 _iter1210 : struct.success) { - oprot.writeString(_iter1178); + oprot.writeString(_iter1210); } } } @@ -152925,13 +154018,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 _list1211 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1211.size); + String _elem1212; + for (int _i1213 = 0; _i1213 < _list1211.size; ++_i1213) { - _elem1180 = iprot.readString(); - struct.success.add(_elem1180); + _elem1212 = iprot.readString(); + struct.success.add(_elem1212); } } struct.setSuccessIsSet(true); @@ -158222,13 +159315,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 _list1214 = iprot.readListBegin(); + struct.success = new ArrayList(_list1214.size); + String _elem1215; + for (int _i1216 = 0; _i1216 < _list1214.size; ++_i1216) { - _elem1183 = iprot.readString(); - struct.success.add(_elem1183); + _elem1215 = iprot.readString(); + struct.success.add(_elem1215); } iprot.readListEnd(); } @@ -158254,9 +159347,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 _iter1217 : struct.success) { - oprot.writeString(_iter1185); + oprot.writeString(_iter1217); } oprot.writeListEnd(); } @@ -158287,9 +159380,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 _iter1218 : struct.success) { - oprot.writeString(_iter1186); + oprot.writeString(_iter1218); } } } @@ -158301,13 +159394,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 _list1219 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1219.size); + String _elem1220; + for (int _i1221 = 0; _i1221 < _list1219.size; ++_i1221) { - _elem1188 = iprot.readString(); - struct.success.add(_elem1188); + _elem1220 = iprot.readString(); + struct.success.add(_elem1220); } } struct.setSuccessIsSet(true); @@ -161337,13 +162430,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 _list1222 = iprot.readListBegin(); + struct.success = new ArrayList(_list1222.size); + String _elem1223; + for (int _i1224 = 0; _i1224 < _list1222.size; ++_i1224) { - _elem1191 = iprot.readString(); - struct.success.add(_elem1191); + _elem1223 = iprot.readString(); + struct.success.add(_elem1223); } iprot.readListEnd(); } @@ -161369,9 +162462,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 _iter1225 : struct.success) { - oprot.writeString(_iter1193); + oprot.writeString(_iter1225); } oprot.writeListEnd(); } @@ -161402,9 +162495,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 _iter1226 : struct.success) { - oprot.writeString(_iter1194); + oprot.writeString(_iter1226); } } } @@ -161416,13 +162509,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 _list1227 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1227.size); + String _elem1228; + for (int _i1229 = 0; _i1229 < _list1227.size; ++_i1229) { - _elem1196 = iprot.readString(); - struct.success.add(_elem1196); + _elem1228 = iprot.readString(); + struct.success.add(_elem1228); } } 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..17d3d76 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -520,6 +520,13 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { */ public function get_partition_names($db_name, $tbl_name, $max_parts); /** + * @param \metastore\PartitionValuesRequest $request + * @return \metastore\PartitionValuesResponse + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_partition_values(\metastore\PartitionValuesRequest $request); + /** * @param string $db_name * @param string $tbl_name * @param string[] $part_vals @@ -4646,6 +4653,63 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partition_names failed: unknown result"); } + public function get_partition_values(\metastore\PartitionValuesRequest $request) + { + $this->send_get_partition_values($request); + return $this->recv_get_partition_values(); + } + + public function send_get_partition_values(\metastore\PartitionValuesRequest $request) + { + $args = new \metastore\ThriftHiveMetastore_get_partition_values_args(); + $args->request = $request; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_partition_values', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_partition_values', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_partition_values() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partition_values_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_get_partition_values_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + throw new \Exception("get_partition_values failed: unknown result"); + } + public function get_partitions_ps($db_name, $tbl_name, array $part_vals, $max_parts) { $this->send_get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts); @@ -11032,14 +11096,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size597 = 0; - $_etype600 = 0; - $xfer += $input->readListBegin($_etype600, $_size597); - for ($_i601 = 0; $_i601 < $_size597; ++$_i601) + $_size625 = 0; + $_etype628 = 0; + $xfer += $input->readListBegin($_etype628, $_size625); + for ($_i629 = 0; $_i629 < $_size625; ++$_i629) { - $elem602 = null; - $xfer += $input->readString($elem602); - $this->success []= $elem602; + $elem630 = null; + $xfer += $input->readString($elem630); + $this->success []= $elem630; } $xfer += $input->readListEnd(); } else { @@ -11075,9 +11139,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter603) + foreach ($this->success as $iter631) { - $xfer += $output->writeString($iter603); + $xfer += $output->writeString($iter631); } } $output->writeListEnd(); @@ -11208,14 +11272,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size604 = 0; - $_etype607 = 0; - $xfer += $input->readListBegin($_etype607, $_size604); - for ($_i608 = 0; $_i608 < $_size604; ++$_i608) + $_size632 = 0; + $_etype635 = 0; + $xfer += $input->readListBegin($_etype635, $_size632); + for ($_i636 = 0; $_i636 < $_size632; ++$_i636) { - $elem609 = null; - $xfer += $input->readString($elem609); - $this->success []= $elem609; + $elem637 = null; + $xfer += $input->readString($elem637); + $this->success []= $elem637; } $xfer += $input->readListEnd(); } else { @@ -11251,9 +11315,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter610) + foreach ($this->success as $iter638) { - $xfer += $output->writeString($iter610); + $xfer += $output->writeString($iter638); } } $output->writeListEnd(); @@ -12254,18 +12318,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size611 = 0; - $_ktype612 = 0; - $_vtype613 = 0; - $xfer += $input->readMapBegin($_ktype612, $_vtype613, $_size611); - for ($_i615 = 0; $_i615 < $_size611; ++$_i615) + $_size639 = 0; + $_ktype640 = 0; + $_vtype641 = 0; + $xfer += $input->readMapBegin($_ktype640, $_vtype641, $_size639); + for ($_i643 = 0; $_i643 < $_size639; ++$_i643) { - $key616 = ''; - $val617 = new \metastore\Type(); - $xfer += $input->readString($key616); - $val617 = new \metastore\Type(); - $xfer += $val617->read($input); - $this->success[$key616] = $val617; + $key644 = ''; + $val645 = new \metastore\Type(); + $xfer += $input->readString($key644); + $val645 = new \metastore\Type(); + $xfer += $val645->read($input); + $this->success[$key644] = $val645; } $xfer += $input->readMapEnd(); } else { @@ -12301,10 +12365,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter618 => $viter619) + foreach ($this->success as $kiter646 => $viter647) { - $xfer += $output->writeString($kiter618); - $xfer += $viter619->write($output); + $xfer += $output->writeString($kiter646); + $xfer += $viter647->write($output); } } $output->writeMapEnd(); @@ -12508,15 +12572,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size620 = 0; - $_etype623 = 0; - $xfer += $input->readListBegin($_etype623, $_size620); - for ($_i624 = 0; $_i624 < $_size620; ++$_i624) + $_size648 = 0; + $_etype651 = 0; + $xfer += $input->readListBegin($_etype651, $_size648); + for ($_i652 = 0; $_i652 < $_size648; ++$_i652) { - $elem625 = null; - $elem625 = new \metastore\FieldSchema(); - $xfer += $elem625->read($input); - $this->success []= $elem625; + $elem653 = null; + $elem653 = new \metastore\FieldSchema(); + $xfer += $elem653->read($input); + $this->success []= $elem653; } $xfer += $input->readListEnd(); } else { @@ -12568,9 +12632,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter626) + foreach ($this->success as $iter654) { - $xfer += $iter626->write($output); + $xfer += $iter654->write($output); } } $output->writeListEnd(); @@ -12812,15 +12876,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size627 = 0; - $_etype630 = 0; - $xfer += $input->readListBegin($_etype630, $_size627); - for ($_i631 = 0; $_i631 < $_size627; ++$_i631) + $_size655 = 0; + $_etype658 = 0; + $xfer += $input->readListBegin($_etype658, $_size655); + for ($_i659 = 0; $_i659 < $_size655; ++$_i659) { - $elem632 = null; - $elem632 = new \metastore\FieldSchema(); - $xfer += $elem632->read($input); - $this->success []= $elem632; + $elem660 = null; + $elem660 = new \metastore\FieldSchema(); + $xfer += $elem660->read($input); + $this->success []= $elem660; } $xfer += $input->readListEnd(); } else { @@ -12872,9 +12936,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter633) + foreach ($this->success as $iter661) { - $xfer += $iter633->write($output); + $xfer += $iter661->write($output); } } $output->writeListEnd(); @@ -13088,15 +13152,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size634 = 0; - $_etype637 = 0; - $xfer += $input->readListBegin($_etype637, $_size634); - for ($_i638 = 0; $_i638 < $_size634; ++$_i638) + $_size662 = 0; + $_etype665 = 0; + $xfer += $input->readListBegin($_etype665, $_size662); + for ($_i666 = 0; $_i666 < $_size662; ++$_i666) { - $elem639 = null; - $elem639 = new \metastore\FieldSchema(); - $xfer += $elem639->read($input); - $this->success []= $elem639; + $elem667 = null; + $elem667 = new \metastore\FieldSchema(); + $xfer += $elem667->read($input); + $this->success []= $elem667; } $xfer += $input->readListEnd(); } else { @@ -13148,9 +13212,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter640) + foreach ($this->success as $iter668) { - $xfer += $iter640->write($output); + $xfer += $iter668->write($output); } } $output->writeListEnd(); @@ -13392,15 +13456,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size641 = 0; - $_etype644 = 0; - $xfer += $input->readListBegin($_etype644, $_size641); - for ($_i645 = 0; $_i645 < $_size641; ++$_i645) + $_size669 = 0; + $_etype672 = 0; + $xfer += $input->readListBegin($_etype672, $_size669); + for ($_i673 = 0; $_i673 < $_size669; ++$_i673) { - $elem646 = null; - $elem646 = new \metastore\FieldSchema(); - $xfer += $elem646->read($input); - $this->success []= $elem646; + $elem674 = null; + $elem674 = new \metastore\FieldSchema(); + $xfer += $elem674->read($input); + $this->success []= $elem674; } $xfer += $input->readListEnd(); } else { @@ -13452,9 +13516,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter647) + foreach ($this->success as $iter675) { - $xfer += $iter647->write($output); + $xfer += $iter675->write($output); } } $output->writeListEnd(); @@ -14062,15 +14126,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size648 = 0; - $_etype651 = 0; - $xfer += $input->readListBegin($_etype651, $_size648); - for ($_i652 = 0; $_i652 < $_size648; ++$_i652) + $_size676 = 0; + $_etype679 = 0; + $xfer += $input->readListBegin($_etype679, $_size676); + for ($_i680 = 0; $_i680 < $_size676; ++$_i680) { - $elem653 = null; - $elem653 = new \metastore\SQLPrimaryKey(); - $xfer += $elem653->read($input); - $this->primaryKeys []= $elem653; + $elem681 = null; + $elem681 = new \metastore\SQLPrimaryKey(); + $xfer += $elem681->read($input); + $this->primaryKeys []= $elem681; } $xfer += $input->readListEnd(); } else { @@ -14080,15 +14144,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size654 = 0; - $_etype657 = 0; - $xfer += $input->readListBegin($_etype657, $_size654); - for ($_i658 = 0; $_i658 < $_size654; ++$_i658) + $_size682 = 0; + $_etype685 = 0; + $xfer += $input->readListBegin($_etype685, $_size682); + for ($_i686 = 0; $_i686 < $_size682; ++$_i686) { - $elem659 = null; - $elem659 = new \metastore\SQLForeignKey(); - $xfer += $elem659->read($input); - $this->foreignKeys []= $elem659; + $elem687 = null; + $elem687 = new \metastore\SQLForeignKey(); + $xfer += $elem687->read($input); + $this->foreignKeys []= $elem687; } $xfer += $input->readListEnd(); } else { @@ -14124,9 +14188,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter660) + foreach ($this->primaryKeys as $iter688) { - $xfer += $iter660->write($output); + $xfer += $iter688->write($output); } } $output->writeListEnd(); @@ -14141,9 +14205,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter661) + foreach ($this->foreignKeys as $iter689) { - $xfer += $iter661->write($output); + $xfer += $iter689->write($output); } } $output->writeListEnd(); @@ -15489,14 +15553,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size662 = 0; - $_etype665 = 0; - $xfer += $input->readListBegin($_etype665, $_size662); - for ($_i666 = 0; $_i666 < $_size662; ++$_i666) + $_size690 = 0; + $_etype693 = 0; + $xfer += $input->readListBegin($_etype693, $_size690); + for ($_i694 = 0; $_i694 < $_size690; ++$_i694) { - $elem667 = null; - $xfer += $input->readString($elem667); - $this->success []= $elem667; + $elem695 = null; + $xfer += $input->readString($elem695); + $this->success []= $elem695; } $xfer += $input->readListEnd(); } else { @@ -15532,9 +15596,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter668) + foreach ($this->success as $iter696) { - $xfer += $output->writeString($iter668); + $xfer += $output->writeString($iter696); } } $output->writeListEnd(); @@ -15736,14 +15800,14 @@ class ThriftHiveMetastore_get_tables_by_type_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size669 = 0; - $_etype672 = 0; - $xfer += $input->readListBegin($_etype672, $_size669); - for ($_i673 = 0; $_i673 < $_size669; ++$_i673) + $_size697 = 0; + $_etype700 = 0; + $xfer += $input->readListBegin($_etype700, $_size697); + for ($_i701 = 0; $_i701 < $_size697; ++$_i701) { - $elem674 = null; - $xfer += $input->readString($elem674); - $this->success []= $elem674; + $elem702 = null; + $xfer += $input->readString($elem702); + $this->success []= $elem702; } $xfer += $input->readListEnd(); } else { @@ -15779,9 +15843,9 @@ class ThriftHiveMetastore_get_tables_by_type_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter675) + foreach ($this->success as $iter703) { - $xfer += $output->writeString($iter675); + $xfer += $output->writeString($iter703); } } $output->writeListEnd(); @@ -15886,14 +15950,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size676 = 0; - $_etype679 = 0; - $xfer += $input->readListBegin($_etype679, $_size676); - for ($_i680 = 0; $_i680 < $_size676; ++$_i680) + $_size704 = 0; + $_etype707 = 0; + $xfer += $input->readListBegin($_etype707, $_size704); + for ($_i708 = 0; $_i708 < $_size704; ++$_i708) { - $elem681 = null; - $xfer += $input->readString($elem681); - $this->tbl_types []= $elem681; + $elem709 = null; + $xfer += $input->readString($elem709); + $this->tbl_types []= $elem709; } $xfer += $input->readListEnd(); } else { @@ -15931,9 +15995,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter682) + foreach ($this->tbl_types as $iter710) { - $xfer += $output->writeString($iter682); + $xfer += $output->writeString($iter710); } } $output->writeListEnd(); @@ -16010,15 +16074,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size683 = 0; - $_etype686 = 0; - $xfer += $input->readListBegin($_etype686, $_size683); - for ($_i687 = 0; $_i687 < $_size683; ++$_i687) + $_size711 = 0; + $_etype714 = 0; + $xfer += $input->readListBegin($_etype714, $_size711); + for ($_i715 = 0; $_i715 < $_size711; ++$_i715) { - $elem688 = null; - $elem688 = new \metastore\TableMeta(); - $xfer += $elem688->read($input); - $this->success []= $elem688; + $elem716 = null; + $elem716 = new \metastore\TableMeta(); + $xfer += $elem716->read($input); + $this->success []= $elem716; } $xfer += $input->readListEnd(); } else { @@ -16054,9 +16118,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter689) + foreach ($this->success as $iter717) { - $xfer += $iter689->write($output); + $xfer += $iter717->write($output); } } $output->writeListEnd(); @@ -16212,14 +16276,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size690 = 0; - $_etype693 = 0; - $xfer += $input->readListBegin($_etype693, $_size690); - for ($_i694 = 0; $_i694 < $_size690; ++$_i694) + $_size718 = 0; + $_etype721 = 0; + $xfer += $input->readListBegin($_etype721, $_size718); + for ($_i722 = 0; $_i722 < $_size718; ++$_i722) { - $elem695 = null; - $xfer += $input->readString($elem695); - $this->success []= $elem695; + $elem723 = null; + $xfer += $input->readString($elem723); + $this->success []= $elem723; } $xfer += $input->readListEnd(); } else { @@ -16255,9 +16319,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter696) + foreach ($this->success as $iter724) { - $xfer += $output->writeString($iter696); + $xfer += $output->writeString($iter724); } } $output->writeListEnd(); @@ -16572,14 +16636,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size697 = 0; - $_etype700 = 0; - $xfer += $input->readListBegin($_etype700, $_size697); - for ($_i701 = 0; $_i701 < $_size697; ++$_i701) + $_size725 = 0; + $_etype728 = 0; + $xfer += $input->readListBegin($_etype728, $_size725); + for ($_i729 = 0; $_i729 < $_size725; ++$_i729) { - $elem702 = null; - $xfer += $input->readString($elem702); - $this->tbl_names []= $elem702; + $elem730 = null; + $xfer += $input->readString($elem730); + $this->tbl_names []= $elem730; } $xfer += $input->readListEnd(); } else { @@ -16612,9 +16676,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter703) + foreach ($this->tbl_names as $iter731) { - $xfer += $output->writeString($iter703); + $xfer += $output->writeString($iter731); } } $output->writeListEnd(); @@ -16679,15 +16743,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size704 = 0; - $_etype707 = 0; - $xfer += $input->readListBegin($_etype707, $_size704); - for ($_i708 = 0; $_i708 < $_size704; ++$_i708) + $_size732 = 0; + $_etype735 = 0; + $xfer += $input->readListBegin($_etype735, $_size732); + for ($_i736 = 0; $_i736 < $_size732; ++$_i736) { - $elem709 = null; - $elem709 = new \metastore\Table(); - $xfer += $elem709->read($input); - $this->success []= $elem709; + $elem737 = null; + $elem737 = new \metastore\Table(); + $xfer += $elem737->read($input); + $this->success []= $elem737; } $xfer += $input->readListEnd(); } else { @@ -16715,9 +16779,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter710) + foreach ($this->success as $iter738) { - $xfer += $iter710->write($output); + $xfer += $iter738->write($output); } } $output->writeListEnd(); @@ -17383,14 +17447,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size711 = 0; - $_etype714 = 0; - $xfer += $input->readListBegin($_etype714, $_size711); - for ($_i715 = 0; $_i715 < $_size711; ++$_i715) + $_size739 = 0; + $_etype742 = 0; + $xfer += $input->readListBegin($_etype742, $_size739); + for ($_i743 = 0; $_i743 < $_size739; ++$_i743) { - $elem716 = null; - $xfer += $input->readString($elem716); - $this->success []= $elem716; + $elem744 = null; + $xfer += $input->readString($elem744); + $this->success []= $elem744; } $xfer += $input->readListEnd(); } else { @@ -17442,9 +17506,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter717) + foreach ($this->success as $iter745) { - $xfer += $output->writeString($iter717); + $xfer += $output->writeString($iter745); } } $output->writeListEnd(); @@ -18757,15 +18821,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size718 = 0; - $_etype721 = 0; - $xfer += $input->readListBegin($_etype721, $_size718); - for ($_i722 = 0; $_i722 < $_size718; ++$_i722) + $_size746 = 0; + $_etype749 = 0; + $xfer += $input->readListBegin($_etype749, $_size746); + for ($_i750 = 0; $_i750 < $_size746; ++$_i750) { - $elem723 = null; - $elem723 = new \metastore\Partition(); - $xfer += $elem723->read($input); - $this->new_parts []= $elem723; + $elem751 = null; + $elem751 = new \metastore\Partition(); + $xfer += $elem751->read($input); + $this->new_parts []= $elem751; } $xfer += $input->readListEnd(); } else { @@ -18793,9 +18857,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter724) + foreach ($this->new_parts as $iter752) { - $xfer += $iter724->write($output); + $xfer += $iter752->write($output); } } $output->writeListEnd(); @@ -19010,15 +19074,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size725 = 0; - $_etype728 = 0; - $xfer += $input->readListBegin($_etype728, $_size725); - for ($_i729 = 0; $_i729 < $_size725; ++$_i729) + $_size753 = 0; + $_etype756 = 0; + $xfer += $input->readListBegin($_etype756, $_size753); + for ($_i757 = 0; $_i757 < $_size753; ++$_i757) { - $elem730 = null; - $elem730 = new \metastore\PartitionSpec(); - $xfer += $elem730->read($input); - $this->new_parts []= $elem730; + $elem758 = null; + $elem758 = new \metastore\PartitionSpec(); + $xfer += $elem758->read($input); + $this->new_parts []= $elem758; } $xfer += $input->readListEnd(); } else { @@ -19046,9 +19110,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter731) + foreach ($this->new_parts as $iter759) { - $xfer += $iter731->write($output); + $xfer += $iter759->write($output); } } $output->writeListEnd(); @@ -19298,14 +19362,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size732 = 0; - $_etype735 = 0; - $xfer += $input->readListBegin($_etype735, $_size732); - for ($_i736 = 0; $_i736 < $_size732; ++$_i736) + $_size760 = 0; + $_etype763 = 0; + $xfer += $input->readListBegin($_etype763, $_size760); + for ($_i764 = 0; $_i764 < $_size760; ++$_i764) { - $elem737 = null; - $xfer += $input->readString($elem737); - $this->part_vals []= $elem737; + $elem765 = null; + $xfer += $input->readString($elem765); + $this->part_vals []= $elem765; } $xfer += $input->readListEnd(); } else { @@ -19343,9 +19407,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter738) + foreach ($this->part_vals as $iter766) { - $xfer += $output->writeString($iter738); + $xfer += $output->writeString($iter766); } } $output->writeListEnd(); @@ -19847,14 +19911,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size739 = 0; - $_etype742 = 0; - $xfer += $input->readListBegin($_etype742, $_size739); - for ($_i743 = 0; $_i743 < $_size739; ++$_i743) + $_size767 = 0; + $_etype770 = 0; + $xfer += $input->readListBegin($_etype770, $_size767); + for ($_i771 = 0; $_i771 < $_size767; ++$_i771) { - $elem744 = null; - $xfer += $input->readString($elem744); - $this->part_vals []= $elem744; + $elem772 = null; + $xfer += $input->readString($elem772); + $this->part_vals []= $elem772; } $xfer += $input->readListEnd(); } else { @@ -19900,9 +19964,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter745) + foreach ($this->part_vals as $iter773) { - $xfer += $output->writeString($iter745); + $xfer += $output->writeString($iter773); } } $output->writeListEnd(); @@ -20756,14 +20820,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size746 = 0; - $_etype749 = 0; - $xfer += $input->readListBegin($_etype749, $_size746); - for ($_i750 = 0; $_i750 < $_size746; ++$_i750) + $_size774 = 0; + $_etype777 = 0; + $xfer += $input->readListBegin($_etype777, $_size774); + for ($_i778 = 0; $_i778 < $_size774; ++$_i778) { - $elem751 = null; - $xfer += $input->readString($elem751); - $this->part_vals []= $elem751; + $elem779 = null; + $xfer += $input->readString($elem779); + $this->part_vals []= $elem779; } $xfer += $input->readListEnd(); } else { @@ -20808,9 +20872,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter752) + foreach ($this->part_vals as $iter780) { - $xfer += $output->writeString($iter752); + $xfer += $output->writeString($iter780); } } $output->writeListEnd(); @@ -21063,14 +21127,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size753 = 0; - $_etype756 = 0; - $xfer += $input->readListBegin($_etype756, $_size753); - for ($_i757 = 0; $_i757 < $_size753; ++$_i757) + $_size781 = 0; + $_etype784 = 0; + $xfer += $input->readListBegin($_etype784, $_size781); + for ($_i785 = 0; $_i785 < $_size781; ++$_i785) { - $elem758 = null; - $xfer += $input->readString($elem758); - $this->part_vals []= $elem758; + $elem786 = null; + $xfer += $input->readString($elem786); + $this->part_vals []= $elem786; } $xfer += $input->readListEnd(); } else { @@ -21123,9 +21187,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter759) + foreach ($this->part_vals as $iter787) { - $xfer += $output->writeString($iter759); + $xfer += $output->writeString($iter787); } } $output->writeListEnd(); @@ -22139,14 +22203,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size760 = 0; - $_etype763 = 0; - $xfer += $input->readListBegin($_etype763, $_size760); - for ($_i764 = 0; $_i764 < $_size760; ++$_i764) + $_size788 = 0; + $_etype791 = 0; + $xfer += $input->readListBegin($_etype791, $_size788); + for ($_i792 = 0; $_i792 < $_size788; ++$_i792) { - $elem765 = null; - $xfer += $input->readString($elem765); - $this->part_vals []= $elem765; + $elem793 = null; + $xfer += $input->readString($elem793); + $this->part_vals []= $elem793; } $xfer += $input->readListEnd(); } else { @@ -22184,9 +22248,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter766) + foreach ($this->part_vals as $iter794) { - $xfer += $output->writeString($iter766); + $xfer += $output->writeString($iter794); } } $output->writeListEnd(); @@ -22428,17 +22492,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size767 = 0; - $_ktype768 = 0; - $_vtype769 = 0; - $xfer += $input->readMapBegin($_ktype768, $_vtype769, $_size767); - for ($_i771 = 0; $_i771 < $_size767; ++$_i771) + $_size795 = 0; + $_ktype796 = 0; + $_vtype797 = 0; + $xfer += $input->readMapBegin($_ktype796, $_vtype797, $_size795); + for ($_i799 = 0; $_i799 < $_size795; ++$_i799) { - $key772 = ''; - $val773 = ''; - $xfer += $input->readString($key772); - $xfer += $input->readString($val773); - $this->partitionSpecs[$key772] = $val773; + $key800 = ''; + $val801 = ''; + $xfer += $input->readString($key800); + $xfer += $input->readString($val801); + $this->partitionSpecs[$key800] = $val801; } $xfer += $input->readMapEnd(); } else { @@ -22494,10 +22558,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter774 => $viter775) + foreach ($this->partitionSpecs as $kiter802 => $viter803) { - $xfer += $output->writeString($kiter774); - $xfer += $output->writeString($viter775); + $xfer += $output->writeString($kiter802); + $xfer += $output->writeString($viter803); } } $output->writeMapEnd(); @@ -22809,17 +22873,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size776 = 0; - $_ktype777 = 0; - $_vtype778 = 0; - $xfer += $input->readMapBegin($_ktype777, $_vtype778, $_size776); - for ($_i780 = 0; $_i780 < $_size776; ++$_i780) + $_size804 = 0; + $_ktype805 = 0; + $_vtype806 = 0; + $xfer += $input->readMapBegin($_ktype805, $_vtype806, $_size804); + for ($_i808 = 0; $_i808 < $_size804; ++$_i808) { - $key781 = ''; - $val782 = ''; - $xfer += $input->readString($key781); - $xfer += $input->readString($val782); - $this->partitionSpecs[$key781] = $val782; + $key809 = ''; + $val810 = ''; + $xfer += $input->readString($key809); + $xfer += $input->readString($val810); + $this->partitionSpecs[$key809] = $val810; } $xfer += $input->readMapEnd(); } else { @@ -22875,10 +22939,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter783 => $viter784) + foreach ($this->partitionSpecs as $kiter811 => $viter812) { - $xfer += $output->writeString($kiter783); - $xfer += $output->writeString($viter784); + $xfer += $output->writeString($kiter811); + $xfer += $output->writeString($viter812); } } $output->writeMapEnd(); @@ -23011,15 +23075,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size785 = 0; - $_etype788 = 0; - $xfer += $input->readListBegin($_etype788, $_size785); - for ($_i789 = 0; $_i789 < $_size785; ++$_i789) + $_size813 = 0; + $_etype816 = 0; + $xfer += $input->readListBegin($_etype816, $_size813); + for ($_i817 = 0; $_i817 < $_size813; ++$_i817) { - $elem790 = null; - $elem790 = new \metastore\Partition(); - $xfer += $elem790->read($input); - $this->success []= $elem790; + $elem818 = null; + $elem818 = new \metastore\Partition(); + $xfer += $elem818->read($input); + $this->success []= $elem818; } $xfer += $input->readListEnd(); } else { @@ -23079,9 +23143,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter791) + foreach ($this->success as $iter819) { - $xfer += $iter791->write($output); + $xfer += $iter819->write($output); } } $output->writeListEnd(); @@ -23227,14 +23291,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) + $_size820 = 0; + $_etype823 = 0; + $xfer += $input->readListBegin($_etype823, $_size820); + for ($_i824 = 0; $_i824 < $_size820; ++$_i824) { - $elem797 = null; - $xfer += $input->readString($elem797); - $this->part_vals []= $elem797; + $elem825 = null; + $xfer += $input->readString($elem825); + $this->part_vals []= $elem825; } $xfer += $input->readListEnd(); } else { @@ -23251,14 +23315,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) + $_size826 = 0; + $_etype829 = 0; + $xfer += $input->readListBegin($_etype829, $_size826); + for ($_i830 = 0; $_i830 < $_size826; ++$_i830) { - $elem803 = null; - $xfer += $input->readString($elem803); - $this->group_names []= $elem803; + $elem831 = null; + $xfer += $input->readString($elem831); + $this->group_names []= $elem831; } $xfer += $input->readListEnd(); } else { @@ -23296,9 +23360,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 $iter832) { - $xfer += $output->writeString($iter804); + $xfer += $output->writeString($iter832); } } $output->writeListEnd(); @@ -23318,9 +23382,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 $iter833) { - $xfer += $output->writeString($iter805); + $xfer += $output->writeString($iter833); } } $output->writeListEnd(); @@ -23911,15 +23975,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) + $_size834 = 0; + $_etype837 = 0; + $xfer += $input->readListBegin($_etype837, $_size834); + for ($_i838 = 0; $_i838 < $_size834; ++$_i838) { - $elem811 = null; - $elem811 = new \metastore\Partition(); - $xfer += $elem811->read($input); - $this->success []= $elem811; + $elem839 = null; + $elem839 = new \metastore\Partition(); + $xfer += $elem839->read($input); + $this->success []= $elem839; } $xfer += $input->readListEnd(); } else { @@ -23963,9 +24027,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter812) + foreach ($this->success as $iter840) { - $xfer += $iter812->write($output); + $xfer += $iter840->write($output); } } $output->writeListEnd(); @@ -24111,14 +24175,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) + $_size841 = 0; + $_etype844 = 0; + $xfer += $input->readListBegin($_etype844, $_size841); + for ($_i845 = 0; $_i845 < $_size841; ++$_i845) { - $elem818 = null; - $xfer += $input->readString($elem818); - $this->group_names []= $elem818; + $elem846 = null; + $xfer += $input->readString($elem846); + $this->group_names []= $elem846; } $xfer += $input->readListEnd(); } else { @@ -24166,9 +24230,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 $iter847) { - $xfer += $output->writeString($iter819); + $xfer += $output->writeString($iter847); } } $output->writeListEnd(); @@ -24257,15 +24321,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) + $_size848 = 0; + $_etype851 = 0; + $xfer += $input->readListBegin($_etype851, $_size848); + for ($_i852 = 0; $_i852 < $_size848; ++$_i852) { - $elem825 = null; - $elem825 = new \metastore\Partition(); - $xfer += $elem825->read($input); - $this->success []= $elem825; + $elem853 = null; + $elem853 = new \metastore\Partition(); + $xfer += $elem853->read($input); + $this->success []= $elem853; } $xfer += $input->readListEnd(); } else { @@ -24309,9 +24373,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter826) + foreach ($this->success as $iter854) { - $xfer += $iter826->write($output); + $xfer += $iter854->write($output); } } $output->writeListEnd(); @@ -24531,15 +24595,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) + $_size855 = 0; + $_etype858 = 0; + $xfer += $input->readListBegin($_etype858, $_size855); + for ($_i859 = 0; $_i859 < $_size855; ++$_i859) { - $elem832 = null; - $elem832 = new \metastore\PartitionSpec(); - $xfer += $elem832->read($input); - $this->success []= $elem832; + $elem860 = null; + $elem860 = new \metastore\PartitionSpec(); + $xfer += $elem860->read($input); + $this->success []= $elem860; } $xfer += $input->readListEnd(); } else { @@ -24583,9 +24647,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter833) + foreach ($this->success as $iter861) { - $xfer += $iter833->write($output); + $xfer += $iter861->write($output); } } $output->writeListEnd(); @@ -24792,14 +24856,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) + $_size862 = 0; + $_etype865 = 0; + $xfer += $input->readListBegin($_etype865, $_size862); + for ($_i866 = 0; $_i866 < $_size862; ++$_i866) { - $elem839 = null; - $xfer += $input->readString($elem839); - $this->success []= $elem839; + $elem867 = null; + $xfer += $input->readString($elem867); + $this->success []= $elem867; } $xfer += $input->readListEnd(); } else { @@ -24835,9 +24899,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter840) + foreach ($this->success as $iter868) { - $xfer += $output->writeString($iter840); + $xfer += $output->writeString($iter868); } } $output->writeListEnd(); @@ -24856,6 +24920,216 @@ class ThriftHiveMetastore_get_partition_names_result { } +class ThriftHiveMetastore_get_partition_values_args { + static $_TSPEC; + + /** + * @var \metastore\PartitionValuesRequest + */ + public $request = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'request', + 'type' => TType::STRUCT, + 'class' => '\metastore\PartitionValuesRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['request'])) { + $this->request = $vals['request']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partition_values_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::STRUCT) { + $this->request = new \metastore\PartitionValuesRequest(); + $xfer += $this->request->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_values_args'); + if ($this->request !== null) { + if (!is_object($this->request)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('request', TType::STRUCT, 1); + $xfer += $this->request->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_partition_values_result { + static $_TSPEC; + + /** + * @var \metastore\PartitionValuesResponse + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + /** + * @var \metastore\NoSuchObjectException + */ + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\PartitionValuesResponse', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_partition_values_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::STRUCT) { + $this->success = new \metastore\PartitionValuesResponse(); + $xfer += $this->success->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\NoSuchObjectException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_partition_values_result'); + if ($this->success !== null) { + if (!is_object($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_get_partitions_ps_args { static $_TSPEC; @@ -24953,14 +25227,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) + $_size869 = 0; + $_etype872 = 0; + $xfer += $input->readListBegin($_etype872, $_size869); + for ($_i873 = 0; $_i873 < $_size869; ++$_i873) { - $elem846 = null; - $xfer += $input->readString($elem846); - $this->part_vals []= $elem846; + $elem874 = null; + $xfer += $input->readString($elem874); + $this->part_vals []= $elem874; } $xfer += $input->readListEnd(); } else { @@ -25005,9 +25279,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 $iter875) { - $xfer += $output->writeString($iter847); + $xfer += $output->writeString($iter875); } } $output->writeListEnd(); @@ -25101,15 +25375,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) + $_size876 = 0; + $_etype879 = 0; + $xfer += $input->readListBegin($_etype879, $_size876); + for ($_i880 = 0; $_i880 < $_size876; ++$_i880) { - $elem853 = null; - $elem853 = new \metastore\Partition(); - $xfer += $elem853->read($input); - $this->success []= $elem853; + $elem881 = null; + $elem881 = new \metastore\Partition(); + $xfer += $elem881->read($input); + $this->success []= $elem881; } $xfer += $input->readListEnd(); } else { @@ -25153,9 +25427,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter854) + foreach ($this->success as $iter882) { - $xfer += $iter854->write($output); + $xfer += $iter882->write($output); } } $output->writeListEnd(); @@ -25302,14 +25576,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) + $_size883 = 0; + $_etype886 = 0; + $xfer += $input->readListBegin($_etype886, $_size883); + for ($_i887 = 0; $_i887 < $_size883; ++$_i887) { - $elem860 = null; - $xfer += $input->readString($elem860); - $this->part_vals []= $elem860; + $elem888 = null; + $xfer += $input->readString($elem888); + $this->part_vals []= $elem888; } $xfer += $input->readListEnd(); } else { @@ -25333,14 +25607,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) + $_size889 = 0; + $_etype892 = 0; + $xfer += $input->readListBegin($_etype892, $_size889); + for ($_i893 = 0; $_i893 < $_size889; ++$_i893) { - $elem866 = null; - $xfer += $input->readString($elem866); - $this->group_names []= $elem866; + $elem894 = null; + $xfer += $input->readString($elem894); + $this->group_names []= $elem894; } $xfer += $input->readListEnd(); } else { @@ -25378,9 +25652,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 $iter895) { - $xfer += $output->writeString($iter867); + $xfer += $output->writeString($iter895); } } $output->writeListEnd(); @@ -25405,9 +25679,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 $iter896) { - $xfer += $output->writeString($iter868); + $xfer += $output->writeString($iter896); } } $output->writeListEnd(); @@ -25496,15 +25770,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) + $_size897 = 0; + $_etype900 = 0; + $xfer += $input->readListBegin($_etype900, $_size897); + for ($_i901 = 0; $_i901 < $_size897; ++$_i901) { - $elem874 = null; - $elem874 = new \metastore\Partition(); - $xfer += $elem874->read($input); - $this->success []= $elem874; + $elem902 = null; + $elem902 = new \metastore\Partition(); + $xfer += $elem902->read($input); + $this->success []= $elem902; } $xfer += $input->readListEnd(); } else { @@ -25548,9 +25822,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 $iter903) { - $xfer += $iter875->write($output); + $xfer += $iter903->write($output); } } $output->writeListEnd(); @@ -25671,14 +25945,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) + $_size904 = 0; + $_etype907 = 0; + $xfer += $input->readListBegin($_etype907, $_size904); + for ($_i908 = 0; $_i908 < $_size904; ++$_i908) { - $elem881 = null; - $xfer += $input->readString($elem881); - $this->part_vals []= $elem881; + $elem909 = null; + $xfer += $input->readString($elem909); + $this->part_vals []= $elem909; } $xfer += $input->readListEnd(); } else { @@ -25723,9 +25997,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 $iter910) { - $xfer += $output->writeString($iter882); + $xfer += $output->writeString($iter910); } } $output->writeListEnd(); @@ -25818,14 +26092,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) + $_size911 = 0; + $_etype914 = 0; + $xfer += $input->readListBegin($_etype914, $_size911); + for ($_i915 = 0; $_i915 < $_size911; ++$_i915) { - $elem888 = null; - $xfer += $input->readString($elem888); - $this->success []= $elem888; + $elem916 = null; + $xfer += $input->readString($elem916); + $this->success []= $elem916; } $xfer += $input->readListEnd(); } else { @@ -25869,9 +26143,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter889) + foreach ($this->success as $iter917) { - $xfer += $output->writeString($iter889); + $xfer += $output->writeString($iter917); } } $output->writeListEnd(); @@ -26114,15 +26388,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) + $_size918 = 0; + $_etype921 = 0; + $xfer += $input->readListBegin($_etype921, $_size918); + for ($_i922 = 0; $_i922 < $_size918; ++$_i922) { - $elem895 = null; - $elem895 = new \metastore\Partition(); - $xfer += $elem895->read($input); - $this->success []= $elem895; + $elem923 = null; + $elem923 = new \metastore\Partition(); + $xfer += $elem923->read($input); + $this->success []= $elem923; } $xfer += $input->readListEnd(); } else { @@ -26166,9 +26440,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter896) + foreach ($this->success as $iter924) { - $xfer += $iter896->write($output); + $xfer += $iter924->write($output); } } $output->writeListEnd(); @@ -26411,15 +26685,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) + $_size925 = 0; + $_etype928 = 0; + $xfer += $input->readListBegin($_etype928, $_size925); + for ($_i929 = 0; $_i929 < $_size925; ++$_i929) { - $elem902 = null; - $elem902 = new \metastore\PartitionSpec(); - $xfer += $elem902->read($input); - $this->success []= $elem902; + $elem930 = null; + $elem930 = new \metastore\PartitionSpec(); + $xfer += $elem930->read($input); + $this->success []= $elem930; } $xfer += $input->readListEnd(); } else { @@ -26463,9 +26737,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 $iter931) { - $xfer += $iter903->write($output); + $xfer += $iter931->write($output); } } $output->writeListEnd(); @@ -27031,14 +27305,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) + $_size932 = 0; + $_etype935 = 0; + $xfer += $input->readListBegin($_etype935, $_size932); + for ($_i936 = 0; $_i936 < $_size932; ++$_i936) { - $elem909 = null; - $xfer += $input->readString($elem909); - $this->names []= $elem909; + $elem937 = null; + $xfer += $input->readString($elem937); + $this->names []= $elem937; } $xfer += $input->readListEnd(); } else { @@ -27076,9 +27350,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter910) + foreach ($this->names as $iter938) { - $xfer += $output->writeString($iter910); + $xfer += $output->writeString($iter938); } } $output->writeListEnd(); @@ -27167,15 +27441,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) + $_size939 = 0; + $_etype942 = 0; + $xfer += $input->readListBegin($_etype942, $_size939); + for ($_i943 = 0; $_i943 < $_size939; ++$_i943) { - $elem916 = null; - $elem916 = new \metastore\Partition(); - $xfer += $elem916->read($input); - $this->success []= $elem916; + $elem944 = null; + $elem944 = new \metastore\Partition(); + $xfer += $elem944->read($input); + $this->success []= $elem944; } $xfer += $input->readListEnd(); } else { @@ -27219,9 +27493,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter917) + foreach ($this->success as $iter945) { - $xfer += $iter917->write($output); + $xfer += $iter945->write($output); } } $output->writeListEnd(); @@ -27560,15 +27834,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) + $_size946 = 0; + $_etype949 = 0; + $xfer += $input->readListBegin($_etype949, $_size946); + for ($_i950 = 0; $_i950 < $_size946; ++$_i950) { - $elem923 = null; - $elem923 = new \metastore\Partition(); - $xfer += $elem923->read($input); - $this->new_parts []= $elem923; + $elem951 = null; + $elem951 = new \metastore\Partition(); + $xfer += $elem951->read($input); + $this->new_parts []= $elem951; } $xfer += $input->readListEnd(); } else { @@ -27606,9 +27880,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 $iter952) { - $xfer += $iter924->write($output); + $xfer += $iter952->write($output); } } $output->writeListEnd(); @@ -27823,15 +28097,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) + $_size953 = 0; + $_etype956 = 0; + $xfer += $input->readListBegin($_etype956, $_size953); + for ($_i957 = 0; $_i957 < $_size953; ++$_i957) { - $elem930 = null; - $elem930 = new \metastore\Partition(); - $xfer += $elem930->read($input); - $this->new_parts []= $elem930; + $elem958 = null; + $elem958 = new \metastore\Partition(); + $xfer += $elem958->read($input); + $this->new_parts []= $elem958; } $xfer += $input->readListEnd(); } else { @@ -27877,9 +28151,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 $iter959) { - $xfer += $iter931->write($output); + $xfer += $iter959->write($output); } } $output->writeListEnd(); @@ -28357,14 +28631,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) + $_size960 = 0; + $_etype963 = 0; + $xfer += $input->readListBegin($_etype963, $_size960); + for ($_i964 = 0; $_i964 < $_size960; ++$_i964) { - $elem937 = null; - $xfer += $input->readString($elem937); - $this->part_vals []= $elem937; + $elem965 = null; + $xfer += $input->readString($elem965); + $this->part_vals []= $elem965; } $xfer += $input->readListEnd(); } else { @@ -28410,9 +28684,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 $iter966) { - $xfer += $output->writeString($iter938); + $xfer += $output->writeString($iter966); } } $output->writeListEnd(); @@ -28597,14 +28871,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) + $_size967 = 0; + $_etype970 = 0; + $xfer += $input->readListBegin($_etype970, $_size967); + for ($_i971 = 0; $_i971 < $_size967; ++$_i971) { - $elem944 = null; - $xfer += $input->readString($elem944); - $this->part_vals []= $elem944; + $elem972 = null; + $xfer += $input->readString($elem972); + $this->part_vals []= $elem972; } $xfer += $input->readListEnd(); } else { @@ -28639,9 +28913,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 $iter973) { - $xfer += $output->writeString($iter945); + $xfer += $output->writeString($iter973); } } $output->writeListEnd(); @@ -29095,14 +29369,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) + $_size974 = 0; + $_etype977 = 0; + $xfer += $input->readListBegin($_etype977, $_size974); + for ($_i978 = 0; $_i978 < $_size974; ++$_i978) { - $elem951 = null; - $xfer += $input->readString($elem951); - $this->success []= $elem951; + $elem979 = null; + $xfer += $input->readString($elem979); + $this->success []= $elem979; } $xfer += $input->readListEnd(); } else { @@ -29138,9 +29412,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter952) + foreach ($this->success as $iter980) { - $xfer += $output->writeString($iter952); + $xfer += $output->writeString($iter980); } } $output->writeListEnd(); @@ -29300,17 +29574,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) + $_size981 = 0; + $_ktype982 = 0; + $_vtype983 = 0; + $xfer += $input->readMapBegin($_ktype982, $_vtype983, $_size981); + for ($_i985 = 0; $_i985 < $_size981; ++$_i985) { - $key958 = ''; - $val959 = ''; - $xfer += $input->readString($key958); - $xfer += $input->readString($val959); - $this->success[$key958] = $val959; + $key986 = ''; + $val987 = ''; + $xfer += $input->readString($key986); + $xfer += $input->readString($val987); + $this->success[$key986] = $val987; } $xfer += $input->readMapEnd(); } else { @@ -29346,10 +29620,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 $kiter988 => $viter989) { - $xfer += $output->writeString($kiter960); - $xfer += $output->writeString($viter961); + $xfer += $output->writeString($kiter988); + $xfer += $output->writeString($viter989); } } $output->writeMapEnd(); @@ -29469,17 +29743,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) + $_size990 = 0; + $_ktype991 = 0; + $_vtype992 = 0; + $xfer += $input->readMapBegin($_ktype991, $_vtype992, $_size990); + for ($_i994 = 0; $_i994 < $_size990; ++$_i994) { - $key967 = ''; - $val968 = ''; - $xfer += $input->readString($key967); - $xfer += $input->readString($val968); - $this->part_vals[$key967] = $val968; + $key995 = ''; + $val996 = ''; + $xfer += $input->readString($key995); + $xfer += $input->readString($val996); + $this->part_vals[$key995] = $val996; } $xfer += $input->readMapEnd(); } else { @@ -29524,10 +29798,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 $kiter997 => $viter998) { - $xfer += $output->writeString($kiter969); - $xfer += $output->writeString($viter970); + $xfer += $output->writeString($kiter997); + $xfer += $output->writeString($viter998); } } $output->writeMapEnd(); @@ -29849,17 +30123,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) + $_size999 = 0; + $_ktype1000 = 0; + $_vtype1001 = 0; + $xfer += $input->readMapBegin($_ktype1000, $_vtype1001, $_size999); + for ($_i1003 = 0; $_i1003 < $_size999; ++$_i1003) { - $key976 = ''; - $val977 = ''; - $xfer += $input->readString($key976); - $xfer += $input->readString($val977); - $this->part_vals[$key976] = $val977; + $key1004 = ''; + $val1005 = ''; + $xfer += $input->readString($key1004); + $xfer += $input->readString($val1005); + $this->part_vals[$key1004] = $val1005; } $xfer += $input->readMapEnd(); } else { @@ -29904,10 +30178,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 $kiter1006 => $viter1007) { - $xfer += $output->writeString($kiter978); - $xfer += $output->writeString($viter979); + $xfer += $output->writeString($kiter1006); + $xfer += $output->writeString($viter1007); } } $output->writeMapEnd(); @@ -31381,15 +31655,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) + $_size1008 = 0; + $_etype1011 = 0; + $xfer += $input->readListBegin($_etype1011, $_size1008); + for ($_i1012 = 0; $_i1012 < $_size1008; ++$_i1012) { - $elem985 = null; - $elem985 = new \metastore\Index(); - $xfer += $elem985->read($input); - $this->success []= $elem985; + $elem1013 = null; + $elem1013 = new \metastore\Index(); + $xfer += $elem1013->read($input); + $this->success []= $elem1013; } $xfer += $input->readListEnd(); } else { @@ -31433,9 +31707,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter986) + foreach ($this->success as $iter1014) { - $xfer += $iter986->write($output); + $xfer += $iter1014->write($output); } } $output->writeListEnd(); @@ -31642,14 +31916,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) + $_size1015 = 0; + $_etype1018 = 0; + $xfer += $input->readListBegin($_etype1018, $_size1015); + for ($_i1019 = 0; $_i1019 < $_size1015; ++$_i1019) { - $elem992 = null; - $xfer += $input->readString($elem992); - $this->success []= $elem992; + $elem1020 = null; + $xfer += $input->readString($elem1020); + $this->success []= $elem1020; } $xfer += $input->readListEnd(); } else { @@ -31685,9 +31959,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter993) + foreach ($this->success as $iter1021) { - $xfer += $output->writeString($iter993); + $xfer += $output->writeString($iter1021); } } $output->writeListEnd(); @@ -35581,14 +35855,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) + $_size1022 = 0; + $_etype1025 = 0; + $xfer += $input->readListBegin($_etype1025, $_size1022); + for ($_i1026 = 0; $_i1026 < $_size1022; ++$_i1026) { - $elem999 = null; - $xfer += $input->readString($elem999); - $this->success []= $elem999; + $elem1027 = null; + $xfer += $input->readString($elem1027); + $this->success []= $elem1027; } $xfer += $input->readListEnd(); } else { @@ -35624,9 +35898,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1000) + foreach ($this->success as $iter1028) { - $xfer += $output->writeString($iter1000); + $xfer += $output->writeString($iter1028); } } $output->writeListEnd(); @@ -36495,14 +36769,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) + $_size1029 = 0; + $_etype1032 = 0; + $xfer += $input->readListBegin($_etype1032, $_size1029); + for ($_i1033 = 0; $_i1033 < $_size1029; ++$_i1033) { - $elem1006 = null; - $xfer += $input->readString($elem1006); - $this->success []= $elem1006; + $elem1034 = null; + $xfer += $input->readString($elem1034); + $this->success []= $elem1034; } $xfer += $input->readListEnd(); } else { @@ -36538,9 +36812,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1007) + foreach ($this->success as $iter1035) { - $xfer += $output->writeString($iter1007); + $xfer += $output->writeString($iter1035); } } $output->writeListEnd(); @@ -37231,15 +37505,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) + $_size1036 = 0; + $_etype1039 = 0; + $xfer += $input->readListBegin($_etype1039, $_size1036); + for ($_i1040 = 0; $_i1040 < $_size1036; ++$_i1040) { - $elem1013 = null; - $elem1013 = new \metastore\Role(); - $xfer += $elem1013->read($input); - $this->success []= $elem1013; + $elem1041 = null; + $elem1041 = new \metastore\Role(); + $xfer += $elem1041->read($input); + $this->success []= $elem1041; } $xfer += $input->readListEnd(); } else { @@ -37275,9 +37549,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1014) + foreach ($this->success as $iter1042) { - $xfer += $iter1014->write($output); + $xfer += $iter1042->write($output); } } $output->writeListEnd(); @@ -37939,14 +38213,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) + $_size1043 = 0; + $_etype1046 = 0; + $xfer += $input->readListBegin($_etype1046, $_size1043); + for ($_i1047 = 0; $_i1047 < $_size1043; ++$_i1047) { - $elem1020 = null; - $xfer += $input->readString($elem1020); - $this->group_names []= $elem1020; + $elem1048 = null; + $xfer += $input->readString($elem1048); + $this->group_names []= $elem1048; } $xfer += $input->readListEnd(); } else { @@ -37987,9 +38261,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 $iter1049) { - $xfer += $output->writeString($iter1021); + $xfer += $output->writeString($iter1049); } } $output->writeListEnd(); @@ -38297,15 +38571,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) + $_size1050 = 0; + $_etype1053 = 0; + $xfer += $input->readListBegin($_etype1053, $_size1050); + for ($_i1054 = 0; $_i1054 < $_size1050; ++$_i1054) { - $elem1027 = null; - $elem1027 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem1027->read($input); - $this->success []= $elem1027; + $elem1055 = null; + $elem1055 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem1055->read($input); + $this->success []= $elem1055; } $xfer += $input->readListEnd(); } else { @@ -38341,9 +38615,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter1028) + foreach ($this->success as $iter1056) { - $xfer += $iter1028->write($output); + $xfer += $iter1056->write($output); } } $output->writeListEnd(); @@ -38975,14 +39249,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) + $_size1057 = 0; + $_etype1060 = 0; + $xfer += $input->readListBegin($_etype1060, $_size1057); + for ($_i1061 = 0; $_i1061 < $_size1057; ++$_i1061) { - $elem1034 = null; - $xfer += $input->readString($elem1034); - $this->group_names []= $elem1034; + $elem1062 = null; + $xfer += $input->readString($elem1062); + $this->group_names []= $elem1062; } $xfer += $input->readListEnd(); } else { @@ -39015,9 +39289,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 $iter1063) { - $xfer += $output->writeString($iter1035); + $xfer += $output->writeString($iter1063); } } $output->writeListEnd(); @@ -39093,14 +39367,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) + $_size1064 = 0; + $_etype1067 = 0; + $xfer += $input->readListBegin($_etype1067, $_size1064); + for ($_i1068 = 0; $_i1068 < $_size1064; ++$_i1068) { - $elem1041 = null; - $xfer += $input->readString($elem1041); - $this->success []= $elem1041; + $elem1069 = null; + $xfer += $input->readString($elem1069); + $this->success []= $elem1069; } $xfer += $input->readListEnd(); } else { @@ -39136,9 +39410,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1042) + foreach ($this->success as $iter1070) { - $xfer += $output->writeString($iter1042); + $xfer += $output->writeString($iter1070); } } $output->writeListEnd(); @@ -40255,14 +40529,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) + $_size1071 = 0; + $_etype1074 = 0; + $xfer += $input->readListBegin($_etype1074, $_size1071); + for ($_i1075 = 0; $_i1075 < $_size1071; ++$_i1075) { - $elem1048 = null; - $xfer += $input->readString($elem1048); - $this->success []= $elem1048; + $elem1076 = null; + $xfer += $input->readString($elem1076); + $this->success []= $elem1076; } $xfer += $input->readListEnd(); } else { @@ -40290,9 +40564,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1049) + foreach ($this->success as $iter1077) { - $xfer += $output->writeString($iter1049); + $xfer += $output->writeString($iter1077); } } $output->writeListEnd(); @@ -40931,14 +41205,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) + $_size1078 = 0; + $_etype1081 = 0; + $xfer += $input->readListBegin($_etype1081, $_size1078); + for ($_i1082 = 0; $_i1082 < $_size1078; ++$_i1082) { - $elem1055 = null; - $xfer += $input->readString($elem1055); - $this->success []= $elem1055; + $elem1083 = null; + $xfer += $input->readString($elem1083); + $this->success []= $elem1083; } $xfer += $input->readListEnd(); } else { @@ -40966,9 +41240,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter1056) + foreach ($this->success as $iter1084) { - $xfer += $output->writeString($iter1056); + $xfer += $output->writeString($iter1084); } } $output->writeListEnd(); diff --git a/metastore/src/gen/thrift/gen-php/metastore/Types.php b/metastore/src/gen/thrift/gen-php/metastore/Types.php index 2dfa1a9..d81ff27 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -11320,6 +11320,502 @@ class DropPartitionsRequest { } +class PartitionValuesRequest { + static $_TSPEC; + + /** + * @var string + */ + public $dbName = null; + /** + * @var string + */ + public $tblName = null; + /** + * @var \metastore\FieldSchema[] + */ + public $partitionKeys = null; + /** + * @var bool + */ + public $applyDistinct = true; + /** + * @var string + */ + public $filter = null; + /** + * @var \metastore\FieldSchema[] + */ + public $partitionOrder = null; + /** + * @var bool + */ + public $ascending = true; + /** + * @var int + */ + public $maxParts = -1; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'dbName', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tblName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'partitionKeys', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\FieldSchema', + ), + ), + 4 => array( + 'var' => 'applyDistinct', + 'type' => TType::BOOL, + ), + 5 => array( + 'var' => 'filter', + 'type' => TType::STRING, + ), + 6 => array( + 'var' => 'partitionOrder', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\FieldSchema', + ), + ), + 7 => array( + 'var' => 'ascending', + 'type' => TType::BOOL, + ), + 8 => array( + 'var' => 'maxParts', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['dbName'])) { + $this->dbName = $vals['dbName']; + } + if (isset($vals['tblName'])) { + $this->tblName = $vals['tblName']; + } + if (isset($vals['partitionKeys'])) { + $this->partitionKeys = $vals['partitionKeys']; + } + if (isset($vals['applyDistinct'])) { + $this->applyDistinct = $vals['applyDistinct']; + } + if (isset($vals['filter'])) { + $this->filter = $vals['filter']; + } + if (isset($vals['partitionOrder'])) { + $this->partitionOrder = $vals['partitionOrder']; + } + if (isset($vals['ascending'])) { + $this->ascending = $vals['ascending']; + } + if (isset($vals['maxParts'])) { + $this->maxParts = $vals['maxParts']; + } + } + } + + public function getName() { + return 'PartitionValuesRequest'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->dbName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tblName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::LST) { + $this->partitionKeys = array(); + $_size399 = 0; + $_etype402 = 0; + $xfer += $input->readListBegin($_etype402, $_size399); + for ($_i403 = 0; $_i403 < $_size399; ++$_i403) + { + $elem404 = null; + $elem404 = new \metastore\FieldSchema(); + $xfer += $elem404->read($input); + $this->partitionKeys []= $elem404; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->applyDistinct); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->filter); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::LST) { + $this->partitionOrder = array(); + $_size405 = 0; + $_etype408 = 0; + $xfer += $input->readListBegin($_etype408, $_size405); + for ($_i409 = 0; $_i409 < $_size405; ++$_i409) + { + $elem410 = null; + $elem410 = new \metastore\FieldSchema(); + $xfer += $elem410->read($input); + $this->partitionOrder []= $elem410; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->ascending); + } else { + $xfer += $input->skip($ftype); + } + break; + case 8: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->maxParts); + } 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('PartitionValuesRequest'); + if ($this->dbName !== null) { + $xfer += $output->writeFieldBegin('dbName', TType::STRING, 1); + $xfer += $output->writeString($this->dbName); + $xfer += $output->writeFieldEnd(); + } + if ($this->tblName !== null) { + $xfer += $output->writeFieldBegin('tblName', TType::STRING, 2); + $xfer += $output->writeString($this->tblName); + $xfer += $output->writeFieldEnd(); + } + if ($this->partitionKeys !== null) { + if (!is_array($this->partitionKeys)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitionKeys', TType::LST, 3); + { + $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); + { + foreach ($this->partitionKeys as $iter411) + { + $xfer += $iter411->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->applyDistinct !== null) { + $xfer += $output->writeFieldBegin('applyDistinct', TType::BOOL, 4); + $xfer += $output->writeBool($this->applyDistinct); + $xfer += $output->writeFieldEnd(); + } + if ($this->filter !== null) { + $xfer += $output->writeFieldBegin('filter', TType::STRING, 5); + $xfer += $output->writeString($this->filter); + $xfer += $output->writeFieldEnd(); + } + if ($this->partitionOrder !== null) { + if (!is_array($this->partitionOrder)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitionOrder', TType::LST, 6); + { + $output->writeListBegin(TType::STRUCT, count($this->partitionOrder)); + { + foreach ($this->partitionOrder as $iter412) + { + $xfer += $iter412->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->ascending !== null) { + $xfer += $output->writeFieldBegin('ascending', TType::BOOL, 7); + $xfer += $output->writeBool($this->ascending); + $xfer += $output->writeFieldEnd(); + } + if ($this->maxParts !== null) { + $xfer += $output->writeFieldBegin('maxParts', TType::I64, 8); + $xfer += $output->writeI64($this->maxParts); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class PartitionValuesRow { + static $_TSPEC; + + /** + * @var string[] + */ + public $row = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'row', + 'type' => TType::LST, + 'etype' => TType::STRING, + 'elem' => array( + 'type' => TType::STRING, + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['row'])) { + $this->row = $vals['row']; + } + } + } + + public function getName() { + return 'PartitionValuesRow'; + } + + 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::LST) { + $this->row = array(); + $_size413 = 0; + $_etype416 = 0; + $xfer += $input->readListBegin($_etype416, $_size413); + for ($_i417 = 0; $_i417 < $_size413; ++$_i417) + { + $elem418 = null; + $xfer += $input->readString($elem418); + $this->row []= $elem418; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('PartitionValuesRow'); + if ($this->row !== null) { + if (!is_array($this->row)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('row', TType::LST, 1); + { + $output->writeListBegin(TType::STRING, count($this->row)); + { + foreach ($this->row as $iter419) + { + $xfer += $output->writeString($iter419); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class PartitionValuesResponse { + static $_TSPEC; + + /** + * @var \metastore\PartitionValuesRow[] + */ + public $partitionValues = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'partitionValues', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\PartitionValuesRow', + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['partitionValues'])) { + $this->partitionValues = $vals['partitionValues']; + } + } + } + + public function getName() { + return 'PartitionValuesResponse'; + } + + 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::LST) { + $this->partitionValues = array(); + $_size420 = 0; + $_etype423 = 0; + $xfer += $input->readListBegin($_etype423, $_size420); + for ($_i424 = 0; $_i424 < $_size420; ++$_i424) + { + $elem425 = null; + $elem425 = new \metastore\PartitionValuesRow(); + $xfer += $elem425->read($input); + $this->partitionValues []= $elem425; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('PartitionValuesResponse'); + if ($this->partitionValues !== null) { + if (!is_array($this->partitionValues)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('partitionValues', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->partitionValues)); + { + foreach ($this->partitionValues as $iter426) + { + $xfer += $iter426->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ResourceUri { static $_TSPEC; @@ -11595,15 +12091,15 @@ class Function { case 8: if ($ftype == TType::LST) { $this->resourceUris = array(); - $_size399 = 0; - $_etype402 = 0; - $xfer += $input->readListBegin($_etype402, $_size399); - for ($_i403 = 0; $_i403 < $_size399; ++$_i403) + $_size427 = 0; + $_etype430 = 0; + $xfer += $input->readListBegin($_etype430, $_size427); + for ($_i431 = 0; $_i431 < $_size427; ++$_i431) { - $elem404 = null; - $elem404 = new \metastore\ResourceUri(); - $xfer += $elem404->read($input); - $this->resourceUris []= $elem404; + $elem432 = null; + $elem432 = new \metastore\ResourceUri(); + $xfer += $elem432->read($input); + $this->resourceUris []= $elem432; } $xfer += $input->readListEnd(); } else { @@ -11666,9 +12162,9 @@ class Function { { $output->writeListBegin(TType::STRUCT, count($this->resourceUris)); { - foreach ($this->resourceUris as $iter405) + foreach ($this->resourceUris as $iter433) { - $xfer += $iter405->write($output); + $xfer += $iter433->write($output); } } $output->writeListEnd(); @@ -12010,15 +12506,15 @@ class GetOpenTxnsInfoResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size406 = 0; - $_etype409 = 0; - $xfer += $input->readListBegin($_etype409, $_size406); - for ($_i410 = 0; $_i410 < $_size406; ++$_i410) + $_size434 = 0; + $_etype437 = 0; + $xfer += $input->readListBegin($_etype437, $_size434); + for ($_i438 = 0; $_i438 < $_size434; ++$_i438) { - $elem411 = null; - $elem411 = new \metastore\TxnInfo(); - $xfer += $elem411->read($input); - $this->open_txns []= $elem411; + $elem439 = null; + $elem439 = new \metastore\TxnInfo(); + $xfer += $elem439->read($input); + $this->open_txns []= $elem439; } $xfer += $input->readListEnd(); } else { @@ -12051,9 +12547,9 @@ class GetOpenTxnsInfoResponse { { $output->writeListBegin(TType::STRUCT, count($this->open_txns)); { - foreach ($this->open_txns as $iter412) + foreach ($this->open_txns as $iter440) { - $xfer += $iter412->write($output); + $xfer += $iter440->write($output); } } $output->writeListEnd(); @@ -12146,17 +12642,17 @@ class GetOpenTxnsResponse { case 2: if ($ftype == TType::SET) { $this->open_txns = array(); - $_size413 = 0; - $_etype416 = 0; - $xfer += $input->readSetBegin($_etype416, $_size413); - for ($_i417 = 0; $_i417 < $_size413; ++$_i417) + $_size441 = 0; + $_etype444 = 0; + $xfer += $input->readSetBegin($_etype444, $_size441); + for ($_i445 = 0; $_i445 < $_size441; ++$_i445) { - $elem418 = null; - $xfer += $input->readI64($elem418); - if (is_scalar($elem418)) { - $this->open_txns[$elem418] = true; + $elem446 = null; + $xfer += $input->readI64($elem446); + if (is_scalar($elem446)) { + $this->open_txns[$elem446] = true; } else { - $this->open_txns []= $elem418; + $this->open_txns []= $elem446; } } $xfer += $input->readSetEnd(); @@ -12197,12 +12693,12 @@ class GetOpenTxnsResponse { { $output->writeSetBegin(TType::I64, count($this->open_txns)); { - foreach ($this->open_txns as $iter419 => $iter420) + foreach ($this->open_txns as $iter447 => $iter448) { - if (is_scalar($iter420)) { - $xfer += $output->writeI64($iter419); + if (is_scalar($iter448)) { + $xfer += $output->writeI64($iter447); } else { - $xfer += $output->writeI64($iter420); + $xfer += $output->writeI64($iter448); } } } @@ -12416,14 +12912,14 @@ class OpenTxnsResponse { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size421 = 0; - $_etype424 = 0; - $xfer += $input->readListBegin($_etype424, $_size421); - for ($_i425 = 0; $_i425 < $_size421; ++$_i425) + $_size449 = 0; + $_etype452 = 0; + $xfer += $input->readListBegin($_etype452, $_size449); + for ($_i453 = 0; $_i453 < $_size449; ++$_i453) { - $elem426 = null; - $xfer += $input->readI64($elem426); - $this->txn_ids []= $elem426; + $elem454 = null; + $xfer += $input->readI64($elem454); + $this->txn_ids []= $elem454; } $xfer += $input->readListEnd(); } else { @@ -12451,9 +12947,9 @@ class OpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter427) + foreach ($this->txn_ids as $iter455) { - $xfer += $output->writeI64($iter427); + $xfer += $output->writeI64($iter455); } } $output->writeListEnd(); @@ -12592,14 +13088,14 @@ class AbortTxnsRequest { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size428 = 0; - $_etype431 = 0; - $xfer += $input->readListBegin($_etype431, $_size428); - for ($_i432 = 0; $_i432 < $_size428; ++$_i432) + $_size456 = 0; + $_etype459 = 0; + $xfer += $input->readListBegin($_etype459, $_size456); + for ($_i460 = 0; $_i460 < $_size456; ++$_i460) { - $elem433 = null; - $xfer += $input->readI64($elem433); - $this->txn_ids []= $elem433; + $elem461 = null; + $xfer += $input->readI64($elem461); + $this->txn_ids []= $elem461; } $xfer += $input->readListEnd(); } else { @@ -12627,9 +13123,9 @@ class AbortTxnsRequest { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter434) + foreach ($this->txn_ids as $iter462) { - $xfer += $output->writeI64($iter434); + $xfer += $output->writeI64($iter462); } } $output->writeListEnd(); @@ -13049,15 +13545,15 @@ class LockRequest { case 1: if ($ftype == TType::LST) { $this->component = array(); - $_size435 = 0; - $_etype438 = 0; - $xfer += $input->readListBegin($_etype438, $_size435); - for ($_i439 = 0; $_i439 < $_size435; ++$_i439) + $_size463 = 0; + $_etype466 = 0; + $xfer += $input->readListBegin($_etype466, $_size463); + for ($_i467 = 0; $_i467 < $_size463; ++$_i467) { - $elem440 = null; - $elem440 = new \metastore\LockComponent(); - $xfer += $elem440->read($input); - $this->component []= $elem440; + $elem468 = null; + $elem468 = new \metastore\LockComponent(); + $xfer += $elem468->read($input); + $this->component []= $elem468; } $xfer += $input->readListEnd(); } else { @@ -13113,9 +13609,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter441) + foreach ($this->component as $iter469) { - $xfer += $iter441->write($output); + $xfer += $iter469->write($output); } } $output->writeListEnd(); @@ -14058,15 +14554,15 @@ class ShowLocksResponse { case 1: if ($ftype == TType::LST) { $this->locks = array(); - $_size442 = 0; - $_etype445 = 0; - $xfer += $input->readListBegin($_etype445, $_size442); - for ($_i446 = 0; $_i446 < $_size442; ++$_i446) + $_size470 = 0; + $_etype473 = 0; + $xfer += $input->readListBegin($_etype473, $_size470); + for ($_i474 = 0; $_i474 < $_size470; ++$_i474) { - $elem447 = null; - $elem447 = new \metastore\ShowLocksResponseElement(); - $xfer += $elem447->read($input); - $this->locks []= $elem447; + $elem475 = null; + $elem475 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem475->read($input); + $this->locks []= $elem475; } $xfer += $input->readListEnd(); } else { @@ -14094,9 +14590,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter448) + foreach ($this->locks as $iter476) { - $xfer += $iter448->write($output); + $xfer += $iter476->write($output); } } $output->writeListEnd(); @@ -14371,17 +14867,17 @@ class HeartbeatTxnRangeResponse { case 1: if ($ftype == TType::SET) { $this->aborted = array(); - $_size449 = 0; - $_etype452 = 0; - $xfer += $input->readSetBegin($_etype452, $_size449); - for ($_i453 = 0; $_i453 < $_size449; ++$_i453) + $_size477 = 0; + $_etype480 = 0; + $xfer += $input->readSetBegin($_etype480, $_size477); + for ($_i481 = 0; $_i481 < $_size477; ++$_i481) { - $elem454 = null; - $xfer += $input->readI64($elem454); - if (is_scalar($elem454)) { - $this->aborted[$elem454] = true; + $elem482 = null; + $xfer += $input->readI64($elem482); + if (is_scalar($elem482)) { + $this->aborted[$elem482] = true; } else { - $this->aborted []= $elem454; + $this->aborted []= $elem482; } } $xfer += $input->readSetEnd(); @@ -14392,17 +14888,17 @@ class HeartbeatTxnRangeResponse { case 2: if ($ftype == TType::SET) { $this->nosuch = array(); - $_size455 = 0; - $_etype458 = 0; - $xfer += $input->readSetBegin($_etype458, $_size455); - for ($_i459 = 0; $_i459 < $_size455; ++$_i459) + $_size483 = 0; + $_etype486 = 0; + $xfer += $input->readSetBegin($_etype486, $_size483); + for ($_i487 = 0; $_i487 < $_size483; ++$_i487) { - $elem460 = null; - $xfer += $input->readI64($elem460); - if (is_scalar($elem460)) { - $this->nosuch[$elem460] = true; + $elem488 = null; + $xfer += $input->readI64($elem488); + if (is_scalar($elem488)) { + $this->nosuch[$elem488] = true; } else { - $this->nosuch []= $elem460; + $this->nosuch []= $elem488; } } $xfer += $input->readSetEnd(); @@ -14431,12 +14927,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->aborted)); { - foreach ($this->aborted as $iter461 => $iter462) + foreach ($this->aborted as $iter489 => $iter490) { - if (is_scalar($iter462)) { - $xfer += $output->writeI64($iter461); + if (is_scalar($iter490)) { + $xfer += $output->writeI64($iter489); } else { - $xfer += $output->writeI64($iter462); + $xfer += $output->writeI64($iter490); } } } @@ -14452,12 +14948,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->nosuch)); { - foreach ($this->nosuch as $iter463 => $iter464) + foreach ($this->nosuch as $iter491 => $iter492) { - if (is_scalar($iter464)) { - $xfer += $output->writeI64($iter463); + if (is_scalar($iter492)) { + $xfer += $output->writeI64($iter491); } else { - $xfer += $output->writeI64($iter464); + $xfer += $output->writeI64($iter492); } } } @@ -14616,17 +15112,17 @@ class CompactionRequest { case 6: if ($ftype == TType::MAP) { $this->properties = array(); - $_size465 = 0; - $_ktype466 = 0; - $_vtype467 = 0; - $xfer += $input->readMapBegin($_ktype466, $_vtype467, $_size465); - for ($_i469 = 0; $_i469 < $_size465; ++$_i469) + $_size493 = 0; + $_ktype494 = 0; + $_vtype495 = 0; + $xfer += $input->readMapBegin($_ktype494, $_vtype495, $_size493); + for ($_i497 = 0; $_i497 < $_size493; ++$_i497) { - $key470 = ''; - $val471 = ''; - $xfer += $input->readString($key470); - $xfer += $input->readString($val471); - $this->properties[$key470] = $val471; + $key498 = ''; + $val499 = ''; + $xfer += $input->readString($key498); + $xfer += $input->readString($val499); + $this->properties[$key498] = $val499; } $xfer += $input->readMapEnd(); } else { @@ -14679,10 +15175,10 @@ class CompactionRequest { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter472 => $viter473) + foreach ($this->properties as $kiter500 => $viter501) { - $xfer += $output->writeString($kiter472); - $xfer += $output->writeString($viter473); + $xfer += $output->writeString($kiter500); + $xfer += $output->writeString($viter501); } } $output->writeMapEnd(); @@ -15269,15 +15765,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = array(); - $_size474 = 0; - $_etype477 = 0; - $xfer += $input->readListBegin($_etype477, $_size474); - for ($_i478 = 0; $_i478 < $_size474; ++$_i478) + $_size502 = 0; + $_etype505 = 0; + $xfer += $input->readListBegin($_etype505, $_size502); + for ($_i506 = 0; $_i506 < $_size502; ++$_i506) { - $elem479 = null; - $elem479 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem479->read($input); - $this->compacts []= $elem479; + $elem507 = null; + $elem507 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem507->read($input); + $this->compacts []= $elem507; } $xfer += $input->readListEnd(); } else { @@ -15305,9 +15801,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter480) + foreach ($this->compacts as $iter508) { - $xfer += $iter480->write($output); + $xfer += $iter508->write($output); } } $output->writeListEnd(); @@ -15436,14 +15932,14 @@ class AddDynamicPartitions { case 4: if ($ftype == TType::LST) { $this->partitionnames = array(); - $_size481 = 0; - $_etype484 = 0; - $xfer += $input->readListBegin($_etype484, $_size481); - for ($_i485 = 0; $_i485 < $_size481; ++$_i485) + $_size509 = 0; + $_etype512 = 0; + $xfer += $input->readListBegin($_etype512, $_size509); + for ($_i513 = 0; $_i513 < $_size509; ++$_i513) { - $elem486 = null; - $xfer += $input->readString($elem486); - $this->partitionnames []= $elem486; + $elem514 = null; + $xfer += $input->readString($elem514); + $this->partitionnames []= $elem514; } $xfer += $input->readListEnd(); } else { @@ -15493,9 +15989,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter487) + foreach ($this->partitionnames as $iter515) { - $xfer += $output->writeString($iter487); + $xfer += $output->writeString($iter515); } } $output->writeListEnd(); @@ -15876,15 +16372,15 @@ class NotificationEventResponse { case 1: if ($ftype == TType::LST) { $this->events = array(); - $_size488 = 0; - $_etype491 = 0; - $xfer += $input->readListBegin($_etype491, $_size488); - for ($_i492 = 0; $_i492 < $_size488; ++$_i492) + $_size516 = 0; + $_etype519 = 0; + $xfer += $input->readListBegin($_etype519, $_size516); + for ($_i520 = 0; $_i520 < $_size516; ++$_i520) { - $elem493 = null; - $elem493 = new \metastore\NotificationEvent(); - $xfer += $elem493->read($input); - $this->events []= $elem493; + $elem521 = null; + $elem521 = new \metastore\NotificationEvent(); + $xfer += $elem521->read($input); + $this->events []= $elem521; } $xfer += $input->readListEnd(); } else { @@ -15912,9 +16408,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter494) + foreach ($this->events as $iter522) { - $xfer += $iter494->write($output); + $xfer += $iter522->write($output); } } $output->writeListEnd(); @@ -16068,14 +16564,14 @@ class InsertEventRequestData { case 1: if ($ftype == TType::LST) { $this->filesAdded = array(); - $_size495 = 0; - $_etype498 = 0; - $xfer += $input->readListBegin($_etype498, $_size495); - for ($_i499 = 0; $_i499 < $_size495; ++$_i499) + $_size523 = 0; + $_etype526 = 0; + $xfer += $input->readListBegin($_etype526, $_size523); + for ($_i527 = 0; $_i527 < $_size523; ++$_i527) { - $elem500 = null; - $xfer += $input->readString($elem500); - $this->filesAdded []= $elem500; + $elem528 = null; + $xfer += $input->readString($elem528); + $this->filesAdded []= $elem528; } $xfer += $input->readListEnd(); } else { @@ -16085,14 +16581,14 @@ class InsertEventRequestData { case 2: if ($ftype == TType::LST) { $this->filesAddedChecksum = array(); - $_size501 = 0; - $_etype504 = 0; - $xfer += $input->readListBegin($_etype504, $_size501); - for ($_i505 = 0; $_i505 < $_size501; ++$_i505) + $_size529 = 0; + $_etype532 = 0; + $xfer += $input->readListBegin($_etype532, $_size529); + for ($_i533 = 0; $_i533 < $_size529; ++$_i533) { - $elem506 = null; - $xfer += $input->readString($elem506); - $this->filesAddedChecksum []= $elem506; + $elem534 = null; + $xfer += $input->readString($elem534); + $this->filesAddedChecksum []= $elem534; } $xfer += $input->readListEnd(); } else { @@ -16120,9 +16616,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAdded)); { - foreach ($this->filesAdded as $iter507) + foreach ($this->filesAdded as $iter535) { - $xfer += $output->writeString($iter507); + $xfer += $output->writeString($iter535); } } $output->writeListEnd(); @@ -16137,9 +16633,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAddedChecksum)); { - foreach ($this->filesAddedChecksum as $iter508) + foreach ($this->filesAddedChecksum as $iter536) { - $xfer += $output->writeString($iter508); + $xfer += $output->writeString($iter536); } } $output->writeListEnd(); @@ -16357,14 +16853,14 @@ class FireEventRequest { case 5: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size509 = 0; - $_etype512 = 0; - $xfer += $input->readListBegin($_etype512, $_size509); - for ($_i513 = 0; $_i513 < $_size509; ++$_i513) + $_size537 = 0; + $_etype540 = 0; + $xfer += $input->readListBegin($_etype540, $_size537); + for ($_i541 = 0; $_i541 < $_size537; ++$_i541) { - $elem514 = null; - $xfer += $input->readString($elem514); - $this->partitionVals []= $elem514; + $elem542 = null; + $xfer += $input->readString($elem542); + $this->partitionVals []= $elem542; } $xfer += $input->readListEnd(); } else { @@ -16415,9 +16911,9 @@ class FireEventRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter515) + foreach ($this->partitionVals as $iter543) { - $xfer += $output->writeString($iter515); + $xfer += $output->writeString($iter543); } } $output->writeListEnd(); @@ -16645,18 +17141,18 @@ class GetFileMetadataByExprResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size516 = 0; - $_ktype517 = 0; - $_vtype518 = 0; - $xfer += $input->readMapBegin($_ktype517, $_vtype518, $_size516); - for ($_i520 = 0; $_i520 < $_size516; ++$_i520) + $_size544 = 0; + $_ktype545 = 0; + $_vtype546 = 0; + $xfer += $input->readMapBegin($_ktype545, $_vtype546, $_size544); + for ($_i548 = 0; $_i548 < $_size544; ++$_i548) { - $key521 = 0; - $val522 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key521); - $val522 = new \metastore\MetadataPpdResult(); - $xfer += $val522->read($input); - $this->metadata[$key521] = $val522; + $key549 = 0; + $val550 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key549); + $val550 = new \metastore\MetadataPpdResult(); + $xfer += $val550->read($input); + $this->metadata[$key549] = $val550; } $xfer += $input->readMapEnd(); } else { @@ -16691,10 +17187,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter523 => $viter524) + foreach ($this->metadata as $kiter551 => $viter552) { - $xfer += $output->writeI64($kiter523); - $xfer += $viter524->write($output); + $xfer += $output->writeI64($kiter551); + $xfer += $viter552->write($output); } } $output->writeMapEnd(); @@ -16796,14 +17292,14 @@ class GetFileMetadataByExprRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size525 = 0; - $_etype528 = 0; - $xfer += $input->readListBegin($_etype528, $_size525); - for ($_i529 = 0; $_i529 < $_size525; ++$_i529) + $_size553 = 0; + $_etype556 = 0; + $xfer += $input->readListBegin($_etype556, $_size553); + for ($_i557 = 0; $_i557 < $_size553; ++$_i557) { - $elem530 = null; - $xfer += $input->readI64($elem530); - $this->fileIds []= $elem530; + $elem558 = null; + $xfer += $input->readI64($elem558); + $this->fileIds []= $elem558; } $xfer += $input->readListEnd(); } else { @@ -16852,9 +17348,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter531) + foreach ($this->fileIds as $iter559) { - $xfer += $output->writeI64($iter531); + $xfer += $output->writeI64($iter559); } } $output->writeListEnd(); @@ -16948,17 +17444,17 @@ class GetFileMetadataResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size532 = 0; - $_ktype533 = 0; - $_vtype534 = 0; - $xfer += $input->readMapBegin($_ktype533, $_vtype534, $_size532); - for ($_i536 = 0; $_i536 < $_size532; ++$_i536) + $_size560 = 0; + $_ktype561 = 0; + $_vtype562 = 0; + $xfer += $input->readMapBegin($_ktype561, $_vtype562, $_size560); + for ($_i564 = 0; $_i564 < $_size560; ++$_i564) { - $key537 = 0; - $val538 = ''; - $xfer += $input->readI64($key537); - $xfer += $input->readString($val538); - $this->metadata[$key537] = $val538; + $key565 = 0; + $val566 = ''; + $xfer += $input->readI64($key565); + $xfer += $input->readString($val566); + $this->metadata[$key565] = $val566; } $xfer += $input->readMapEnd(); } else { @@ -16993,10 +17489,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter539 => $viter540) + foreach ($this->metadata as $kiter567 => $viter568) { - $xfer += $output->writeI64($kiter539); - $xfer += $output->writeString($viter540); + $xfer += $output->writeI64($kiter567); + $xfer += $output->writeString($viter568); } } $output->writeMapEnd(); @@ -17065,14 +17561,14 @@ class GetFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size541 = 0; - $_etype544 = 0; - $xfer += $input->readListBegin($_etype544, $_size541); - for ($_i545 = 0; $_i545 < $_size541; ++$_i545) + $_size569 = 0; + $_etype572 = 0; + $xfer += $input->readListBegin($_etype572, $_size569); + for ($_i573 = 0; $_i573 < $_size569; ++$_i573) { - $elem546 = null; - $xfer += $input->readI64($elem546); - $this->fileIds []= $elem546; + $elem574 = null; + $xfer += $input->readI64($elem574); + $this->fileIds []= $elem574; } $xfer += $input->readListEnd(); } else { @@ -17100,9 +17596,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter547) + foreach ($this->fileIds as $iter575) { - $xfer += $output->writeI64($iter547); + $xfer += $output->writeI64($iter575); } } $output->writeListEnd(); @@ -17242,14 +17738,14 @@ class PutFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size548 = 0; - $_etype551 = 0; - $xfer += $input->readListBegin($_etype551, $_size548); - for ($_i552 = 0; $_i552 < $_size548; ++$_i552) + $_size576 = 0; + $_etype579 = 0; + $xfer += $input->readListBegin($_etype579, $_size576); + for ($_i580 = 0; $_i580 < $_size576; ++$_i580) { - $elem553 = null; - $xfer += $input->readI64($elem553); - $this->fileIds []= $elem553; + $elem581 = null; + $xfer += $input->readI64($elem581); + $this->fileIds []= $elem581; } $xfer += $input->readListEnd(); } else { @@ -17259,14 +17755,14 @@ class PutFileMetadataRequest { case 2: if ($ftype == TType::LST) { $this->metadata = array(); - $_size554 = 0; - $_etype557 = 0; - $xfer += $input->readListBegin($_etype557, $_size554); - for ($_i558 = 0; $_i558 < $_size554; ++$_i558) + $_size582 = 0; + $_etype585 = 0; + $xfer += $input->readListBegin($_etype585, $_size582); + for ($_i586 = 0; $_i586 < $_size582; ++$_i586) { - $elem559 = null; - $xfer += $input->readString($elem559); - $this->metadata []= $elem559; + $elem587 = null; + $xfer += $input->readString($elem587); + $this->metadata []= $elem587; } $xfer += $input->readListEnd(); } else { @@ -17301,9 +17797,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter560) + foreach ($this->fileIds as $iter588) { - $xfer += $output->writeI64($iter560); + $xfer += $output->writeI64($iter588); } } $output->writeListEnd(); @@ -17318,9 +17814,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter561) + foreach ($this->metadata as $iter589) { - $xfer += $output->writeString($iter561); + $xfer += $output->writeString($iter589); } } $output->writeListEnd(); @@ -17439,14 +17935,14 @@ class ClearFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size562 = 0; - $_etype565 = 0; - $xfer += $input->readListBegin($_etype565, $_size562); - for ($_i566 = 0; $_i566 < $_size562; ++$_i566) + $_size590 = 0; + $_etype593 = 0; + $xfer += $input->readListBegin($_etype593, $_size590); + for ($_i594 = 0; $_i594 < $_size590; ++$_i594) { - $elem567 = null; - $xfer += $input->readI64($elem567); - $this->fileIds []= $elem567; + $elem595 = null; + $xfer += $input->readI64($elem595); + $this->fileIds []= $elem595; } $xfer += $input->readListEnd(); } else { @@ -17474,9 +17970,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter568) + foreach ($this->fileIds as $iter596) { - $xfer += $output->writeI64($iter568); + $xfer += $output->writeI64($iter596); } } $output->writeListEnd(); @@ -17760,15 +18256,15 @@ class GetAllFunctionsResponse { case 1: if ($ftype == TType::LST) { $this->functions = array(); - $_size569 = 0; - $_etype572 = 0; - $xfer += $input->readListBegin($_etype572, $_size569); - for ($_i573 = 0; $_i573 < $_size569; ++$_i573) + $_size597 = 0; + $_etype600 = 0; + $xfer += $input->readListBegin($_etype600, $_size597); + for ($_i601 = 0; $_i601 < $_size597; ++$_i601) { - $elem574 = null; - $elem574 = new \metastore\Function(); - $xfer += $elem574->read($input); - $this->functions []= $elem574; + $elem602 = null; + $elem602 = new \metastore\Function(); + $xfer += $elem602->read($input); + $this->functions []= $elem602; } $xfer += $input->readListEnd(); } else { @@ -17796,9 +18292,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter575) + foreach ($this->functions as $iter603) { - $xfer += $iter575->write($output); + $xfer += $iter603->write($output); } } $output->writeListEnd(); @@ -17862,14 +18358,14 @@ class ClientCapabilities { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size576 = 0; - $_etype579 = 0; - $xfer += $input->readListBegin($_etype579, $_size576); - for ($_i580 = 0; $_i580 < $_size576; ++$_i580) + $_size604 = 0; + $_etype607 = 0; + $xfer += $input->readListBegin($_etype607, $_size604); + for ($_i608 = 0; $_i608 < $_size604; ++$_i608) { - $elem581 = null; - $xfer += $input->readI32($elem581); - $this->values []= $elem581; + $elem609 = null; + $xfer += $input->readI32($elem609); + $this->values []= $elem609; } $xfer += $input->readListEnd(); } else { @@ -17897,9 +18393,9 @@ class ClientCapabilities { { $output->writeListBegin(TType::I32, count($this->values)); { - foreach ($this->values as $iter582) + foreach ($this->values as $iter610) { - $xfer += $output->writeI32($iter582); + $xfer += $output->writeI32($iter610); } } $output->writeListEnd(); @@ -18199,14 +18695,14 @@ class GetTablesRequest { case 2: if ($ftype == TType::LST) { $this->tblNames = array(); - $_size583 = 0; - $_etype586 = 0; - $xfer += $input->readListBegin($_etype586, $_size583); - for ($_i587 = 0; $_i587 < $_size583; ++$_i587) + $_size611 = 0; + $_etype614 = 0; + $xfer += $input->readListBegin($_etype614, $_size611); + for ($_i615 = 0; $_i615 < $_size611; ++$_i615) { - $elem588 = null; - $xfer += $input->readString($elem588); - $this->tblNames []= $elem588; + $elem616 = null; + $xfer += $input->readString($elem616); + $this->tblNames []= $elem616; } $xfer += $input->readListEnd(); } else { @@ -18247,9 +18743,9 @@ class GetTablesRequest { { $output->writeListBegin(TType::STRING, count($this->tblNames)); { - foreach ($this->tblNames as $iter589) + foreach ($this->tblNames as $iter617) { - $xfer += $output->writeString($iter589); + $xfer += $output->writeString($iter617); } } $output->writeListEnd(); @@ -18322,15 +18818,15 @@ class GetTablesResult { case 1: if ($ftype == TType::LST) { $this->tables = array(); - $_size590 = 0; - $_etype593 = 0; - $xfer += $input->readListBegin($_etype593, $_size590); - for ($_i594 = 0; $_i594 < $_size590; ++$_i594) + $_size618 = 0; + $_etype621 = 0; + $xfer += $input->readListBegin($_etype621, $_size618); + for ($_i622 = 0; $_i622 < $_size618; ++$_i622) { - $elem595 = null; - $elem595 = new \metastore\Table(); - $xfer += $elem595->read($input); - $this->tables []= $elem595; + $elem623 = null; + $elem623 = new \metastore\Table(); + $xfer += $elem623->read($input); + $this->tables []= $elem623; } $xfer += $input->readListEnd(); } else { @@ -18358,9 +18854,9 @@ class GetTablesResult { { $output->writeListBegin(TType::STRUCT, count($this->tables)); { - foreach ($this->tables as $iter596) + foreach ($this->tables as $iter624) { - $xfer += $iter596->write($output); + $xfer += $iter624->write($output); } } $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..f0dabf3 100755 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -83,6 +83,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' get_partitions_with_auth(string db_name, string tbl_name, i16 max_parts, string user_name, group_names)') print(' get_partitions_pspec(string db_name, string tbl_name, i32 max_parts)') print(' get_partition_names(string db_name, string tbl_name, i16 max_parts)') + print(' PartitionValuesResponse get_partition_values(PartitionValuesRequest request)') print(' get_partitions_ps(string db_name, string tbl_name, part_vals, i16 max_parts)') print(' get_partitions_ps_with_auth(string db_name, string tbl_name, part_vals, i16 max_parts, string user_name, group_names)') print(' get_partition_names_ps(string db_name, string tbl_name, part_vals, i16 max_parts)') @@ -600,6 +601,12 @@ elif cmd == 'get_partition_names': sys.exit(1) pp.pprint(client.get_partition_names(args[0],args[1],eval(args[2]),)) +elif cmd == 'get_partition_values': + if len(args) != 1: + print('get_partition_values requires 1 args') + sys.exit(1) + pp.pprint(client.get_partition_values(eval(args[0]),)) + elif cmd == 'get_partitions_ps': if len(args) != 4: print('get_partitions_ps requires 4 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..f345165 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -518,6 +518,13 @@ def get_partition_names(self, db_name, tbl_name, max_parts): """ pass + def get_partition_values(self, request): + """ + Parameters: + - request + """ + pass + def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts): """ Parameters: @@ -3472,6 +3479,41 @@ def recv_get_partition_names(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_names failed: unknown result") + def get_partition_values(self, request): + """ + Parameters: + - request + """ + self.send_get_partition_values(request) + return self.recv_get_partition_values() + + def send_get_partition_values(self, request): + self._oprot.writeMessageBegin('get_partition_values', TMessageType.CALL, self._seqid) + args = get_partition_values_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_partition_values(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_partition_values_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partition_values failed: unknown result") + def get_partitions_ps(self, db_name, tbl_name, part_vals, max_parts): """ Parameters: @@ -6823,6 +6865,7 @@ def __init__(self, handler): self._processMap["get_partitions_with_auth"] = Processor.process_get_partitions_with_auth self._processMap["get_partitions_pspec"] = Processor.process_get_partitions_pspec self._processMap["get_partition_names"] = Processor.process_get_partition_names + self._processMap["get_partition_values"] = Processor.process_get_partition_values self._processMap["get_partitions_ps"] = Processor.process_get_partitions_ps self._processMap["get_partitions_ps_with_auth"] = Processor.process_get_partitions_ps_with_auth self._processMap["get_partition_names_ps"] = Processor.process_get_partition_names_ps @@ -8456,6 +8499,31 @@ def process_get_partition_names(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_partition_values(self, seqid, iprot, oprot): + args = get_partition_values_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_partition_values_result() + try: + result.success = self._handler.get_partition_values(args.request) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except NoSuchObjectException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("get_partition_values", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_partitions_ps(self, seqid, iprot, oprot): args = get_partitions_ps_args() args.read(iprot) @@ -11551,10 +11619,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype597, _size594) = iprot.readListBegin() - for _i598 in xrange(_size594): - _elem599 = iprot.readString() - self.success.append(_elem599) + (_etype625, _size622) = iprot.readListBegin() + for _i626 in xrange(_size622): + _elem627 = iprot.readString() + self.success.append(_elem627) iprot.readListEnd() else: iprot.skip(ftype) @@ -11577,8 +11645,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 iter600 in self.success: - oprot.writeString(iter600) + for iter628 in self.success: + oprot.writeString(iter628) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -11683,10 +11751,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype604, _size601) = iprot.readListBegin() - for _i605 in xrange(_size601): - _elem606 = iprot.readString() - self.success.append(_elem606) + (_etype632, _size629) = iprot.readListBegin() + for _i633 in xrange(_size629): + _elem634 = iprot.readString() + self.success.append(_elem634) iprot.readListEnd() else: iprot.skip(ftype) @@ -11709,8 +11777,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 iter607 in self.success: - oprot.writeString(iter607) + for iter635 in self.success: + oprot.writeString(iter635) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -12480,12 +12548,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype609, _vtype610, _size608 ) = iprot.readMapBegin() - for _i612 in xrange(_size608): - _key613 = iprot.readString() - _val614 = Type() - _val614.read(iprot) - self.success[_key613] = _val614 + (_ktype637, _vtype638, _size636 ) = iprot.readMapBegin() + for _i640 in xrange(_size636): + _key641 = iprot.readString() + _val642 = Type() + _val642.read(iprot) + self.success[_key641] = _val642 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12508,9 +12576,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) - for kiter615,viter616 in self.success.items(): - oprot.writeString(kiter615) - viter616.write(oprot) + for kiter643,viter644 in self.success.items(): + oprot.writeString(kiter643) + viter644.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -12653,11 +12721,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype620, _size617) = iprot.readListBegin() - for _i621 in xrange(_size617): - _elem622 = FieldSchema() - _elem622.read(iprot) - self.success.append(_elem622) + (_etype648, _size645) = iprot.readListBegin() + for _i649 in xrange(_size645): + _elem650 = FieldSchema() + _elem650.read(iprot) + self.success.append(_elem650) iprot.readListEnd() else: iprot.skip(ftype) @@ -12692,8 +12760,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 iter623 in self.success: - iter623.write(oprot) + for iter651 in self.success: + iter651.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -12860,11 +12928,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype627, _size624) = iprot.readListBegin() - for _i628 in xrange(_size624): - _elem629 = FieldSchema() - _elem629.read(iprot) - self.success.append(_elem629) + (_etype655, _size652) = iprot.readListBegin() + for _i656 in xrange(_size652): + _elem657 = FieldSchema() + _elem657.read(iprot) + self.success.append(_elem657) iprot.readListEnd() else: iprot.skip(ftype) @@ -12899,8 +12967,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 iter630 in self.success: - iter630.write(oprot) + for iter658 in self.success: + iter658.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13053,11 +13121,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype634, _size631) = iprot.readListBegin() - for _i635 in xrange(_size631): - _elem636 = FieldSchema() - _elem636.read(iprot) - self.success.append(_elem636) + (_etype662, _size659) = iprot.readListBegin() + for _i663 in xrange(_size659): + _elem664 = FieldSchema() + _elem664.read(iprot) + self.success.append(_elem664) iprot.readListEnd() else: iprot.skip(ftype) @@ -13092,8 +13160,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 iter637 in self.success: - iter637.write(oprot) + for iter665 in self.success: + iter665.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13260,11 +13328,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype641, _size638) = iprot.readListBegin() - for _i642 in xrange(_size638): - _elem643 = FieldSchema() - _elem643.read(iprot) - self.success.append(_elem643) + (_etype669, _size666) = iprot.readListBegin() + for _i670 in xrange(_size666): + _elem671 = FieldSchema() + _elem671.read(iprot) + self.success.append(_elem671) iprot.readListEnd() else: iprot.skip(ftype) @@ -13299,8 +13367,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 iter644 in self.success: - iter644.write(oprot) + for iter672 in self.success: + iter672.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13741,22 +13809,22 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype648, _size645) = iprot.readListBegin() - for _i649 in xrange(_size645): - _elem650 = SQLPrimaryKey() - _elem650.read(iprot) - self.primaryKeys.append(_elem650) + (_etype676, _size673) = iprot.readListBegin() + for _i677 in xrange(_size673): + _elem678 = SQLPrimaryKey() + _elem678.read(iprot) + self.primaryKeys.append(_elem678) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype654, _size651) = iprot.readListBegin() - for _i655 in xrange(_size651): - _elem656 = SQLForeignKey() - _elem656.read(iprot) - self.foreignKeys.append(_elem656) + (_etype682, _size679) = iprot.readListBegin() + for _i683 in xrange(_size679): + _elem684 = SQLForeignKey() + _elem684.read(iprot) + self.foreignKeys.append(_elem684) iprot.readListEnd() else: iprot.skip(ftype) @@ -13777,15 +13845,15 @@ def write(self, oprot): if self.primaryKeys is not None: oprot.writeFieldBegin('primaryKeys', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter657 in self.primaryKeys: - iter657.write(oprot) + for iter685 in self.primaryKeys: + iter685.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.foreignKeys is not None: oprot.writeFieldBegin('foreignKeys', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) - for iter658 in self.foreignKeys: - iter658.write(oprot) + for iter686 in self.foreignKeys: + iter686.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14821,10 +14889,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype662, _size659) = iprot.readListBegin() - for _i663 in xrange(_size659): - _elem664 = iprot.readString() - self.success.append(_elem664) + (_etype690, _size687) = iprot.readListBegin() + for _i691 in xrange(_size687): + _elem692 = iprot.readString() + self.success.append(_elem692) iprot.readListEnd() else: iprot.skip(ftype) @@ -14847,8 +14915,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 iter665 in self.success: - oprot.writeString(iter665) + for iter693 in self.success: + oprot.writeString(iter693) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14998,10 +15066,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype669, _size666) = iprot.readListBegin() - for _i670 in xrange(_size666): - _elem671 = iprot.readString() - self.success.append(_elem671) + (_etype697, _size694) = iprot.readListBegin() + for _i698 in xrange(_size694): + _elem699 = iprot.readString() + self.success.append(_elem699) iprot.readListEnd() else: iprot.skip(ftype) @@ -15024,8 +15092,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 iter672 in self.success: - oprot.writeString(iter672) + for iter700 in self.success: + oprot.writeString(iter700) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15098,10 +15166,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype676, _size673) = iprot.readListBegin() - for _i677 in xrange(_size673): - _elem678 = iprot.readString() - self.tbl_types.append(_elem678) + (_etype704, _size701) = iprot.readListBegin() + for _i705 in xrange(_size701): + _elem706 = iprot.readString() + self.tbl_types.append(_elem706) iprot.readListEnd() else: iprot.skip(ftype) @@ -15126,8 +15194,8 @@ def write(self, oprot): if self.tbl_types is not None: oprot.writeFieldBegin('tbl_types', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.tbl_types)) - for iter679 in self.tbl_types: - oprot.writeString(iter679) + for iter707 in self.tbl_types: + oprot.writeString(iter707) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15183,11 +15251,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype683, _size680) = iprot.readListBegin() - for _i684 in xrange(_size680): - _elem685 = TableMeta() - _elem685.read(iprot) - self.success.append(_elem685) + (_etype711, _size708) = iprot.readListBegin() + for _i712 in xrange(_size708): + _elem713 = TableMeta() + _elem713.read(iprot) + self.success.append(_elem713) iprot.readListEnd() else: iprot.skip(ftype) @@ -15210,8 +15278,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter686 in self.success: - iter686.write(oprot) + for iter714 in self.success: + iter714.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15335,10 +15403,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype690, _size687) = iprot.readListBegin() - for _i691 in xrange(_size687): - _elem692 = iprot.readString() - self.success.append(_elem692) + (_etype718, _size715) = iprot.readListBegin() + for _i719 in xrange(_size715): + _elem720 = iprot.readString() + self.success.append(_elem720) iprot.readListEnd() else: iprot.skip(ftype) @@ -15361,8 +15429,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter693 in self.success: - oprot.writeString(iter693) + for iter721 in self.success: + oprot.writeString(iter721) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15598,10 +15666,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype697, _size694) = iprot.readListBegin() - for _i698 in xrange(_size694): - _elem699 = iprot.readString() - self.tbl_names.append(_elem699) + (_etype725, _size722) = iprot.readListBegin() + for _i726 in xrange(_size722): + _elem727 = iprot.readString() + self.tbl_names.append(_elem727) iprot.readListEnd() else: iprot.skip(ftype) @@ -15622,8 +15690,8 @@ def write(self, oprot): if self.tbl_names is not None: oprot.writeFieldBegin('tbl_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.tbl_names)) - for iter700 in self.tbl_names: - oprot.writeString(iter700) + for iter728 in self.tbl_names: + oprot.writeString(iter728) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15675,11 +15743,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype704, _size701) = iprot.readListBegin() - for _i705 in xrange(_size701): - _elem706 = Table() - _elem706.read(iprot) - self.success.append(_elem706) + (_etype732, _size729) = iprot.readListBegin() + for _i733 in xrange(_size729): + _elem734 = Table() + _elem734.read(iprot) + self.success.append(_elem734) iprot.readListEnd() else: iprot.skip(ftype) @@ -15696,8 +15764,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 iter707 in self.success: - iter707.write(oprot) + for iter735 in self.success: + iter735.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16180,10 +16248,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype711, _size708) = iprot.readListBegin() - for _i712 in xrange(_size708): - _elem713 = iprot.readString() - self.success.append(_elem713) + (_etype739, _size736) = iprot.readListBegin() + for _i740 in xrange(_size736): + _elem741 = iprot.readString() + self.success.append(_elem741) iprot.readListEnd() else: iprot.skip(ftype) @@ -16218,8 +16286,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 iter714 in self.success: - oprot.writeString(iter714) + for iter742 in self.success: + oprot.writeString(iter742) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17189,11 +17257,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype718, _size715) = iprot.readListBegin() - for _i719 in xrange(_size715): - _elem720 = Partition() - _elem720.read(iprot) - self.new_parts.append(_elem720) + (_etype746, _size743) = iprot.readListBegin() + for _i747 in xrange(_size743): + _elem748 = Partition() + _elem748.read(iprot) + self.new_parts.append(_elem748) iprot.readListEnd() else: iprot.skip(ftype) @@ -17210,8 +17278,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter721 in self.new_parts: - iter721.write(oprot) + for iter749 in self.new_parts: + iter749.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17369,11 +17437,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype725, _size722) = iprot.readListBegin() - for _i726 in xrange(_size722): - _elem727 = PartitionSpec() - _elem727.read(iprot) - self.new_parts.append(_elem727) + (_etype753, _size750) = iprot.readListBegin() + for _i754 in xrange(_size750): + _elem755 = PartitionSpec() + _elem755.read(iprot) + self.new_parts.append(_elem755) iprot.readListEnd() else: iprot.skip(ftype) @@ -17390,8 +17458,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter728 in self.new_parts: - iter728.write(oprot) + for iter756 in self.new_parts: + iter756.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17565,10 +17633,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype732, _size729) = iprot.readListBegin() - for _i733 in xrange(_size729): - _elem734 = iprot.readString() - self.part_vals.append(_elem734) + (_etype760, _size757) = iprot.readListBegin() + for _i761 in xrange(_size757): + _elem762 = iprot.readString() + self.part_vals.append(_elem762) iprot.readListEnd() else: iprot.skip(ftype) @@ -17593,8 +17661,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 iter735 in self.part_vals: - oprot.writeString(iter735) + for iter763 in self.part_vals: + oprot.writeString(iter763) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -17947,10 +18015,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype739, _size736) = iprot.readListBegin() - for _i740 in xrange(_size736): - _elem741 = iprot.readString() - self.part_vals.append(_elem741) + (_etype767, _size764) = iprot.readListBegin() + for _i768 in xrange(_size764): + _elem769 = iprot.readString() + self.part_vals.append(_elem769) iprot.readListEnd() else: iprot.skip(ftype) @@ -17981,8 +18049,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 iter742 in self.part_vals: - oprot.writeString(iter742) + for iter770 in self.part_vals: + oprot.writeString(iter770) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -18577,10 +18645,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype746, _size743) = iprot.readListBegin() - for _i747 in xrange(_size743): - _elem748 = iprot.readString() - self.part_vals.append(_elem748) + (_etype774, _size771) = iprot.readListBegin() + for _i775 in xrange(_size771): + _elem776 = iprot.readString() + self.part_vals.append(_elem776) iprot.readListEnd() else: iprot.skip(ftype) @@ -18610,8 +18678,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 iter749 in self.part_vals: - oprot.writeString(iter749) + for iter777 in self.part_vals: + oprot.writeString(iter777) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -18784,10 +18852,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype753, _size750) = iprot.readListBegin() - for _i754 in xrange(_size750): - _elem755 = iprot.readString() - self.part_vals.append(_elem755) + (_etype781, _size778) = iprot.readListBegin() + for _i782 in xrange(_size778): + _elem783 = iprot.readString() + self.part_vals.append(_elem783) iprot.readListEnd() else: iprot.skip(ftype) @@ -18823,8 +18891,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 iter756 in self.part_vals: - oprot.writeString(iter756) + for iter784 in self.part_vals: + oprot.writeString(iter784) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -19561,10 +19629,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype760, _size757) = iprot.readListBegin() - for _i761 in xrange(_size757): - _elem762 = iprot.readString() - self.part_vals.append(_elem762) + (_etype788, _size785) = iprot.readListBegin() + for _i789 in xrange(_size785): + _elem790 = iprot.readString() + self.part_vals.append(_elem790) iprot.readListEnd() else: iprot.skip(ftype) @@ -19589,8 +19657,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 iter763 in self.part_vals: - oprot.writeString(iter763) + for iter791 in self.part_vals: + oprot.writeString(iter791) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19749,11 +19817,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype765, _vtype766, _size764 ) = iprot.readMapBegin() - for _i768 in xrange(_size764): - _key769 = iprot.readString() - _val770 = iprot.readString() - self.partitionSpecs[_key769] = _val770 + (_ktype793, _vtype794, _size792 ) = iprot.readMapBegin() + for _i796 in xrange(_size792): + _key797 = iprot.readString() + _val798 = iprot.readString() + self.partitionSpecs[_key797] = _val798 iprot.readMapEnd() else: iprot.skip(ftype) @@ -19790,9 +19858,9 @@ def write(self, oprot): if self.partitionSpecs is not None: oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) - for kiter771,viter772 in self.partitionSpecs.items(): - oprot.writeString(kiter771) - oprot.writeString(viter772) + for kiter799,viter800 in self.partitionSpecs.items(): + oprot.writeString(kiter799) + oprot.writeString(viter800) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -19997,11 +20065,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype774, _vtype775, _size773 ) = iprot.readMapBegin() - for _i777 in xrange(_size773): - _key778 = iprot.readString() - _val779 = iprot.readString() - self.partitionSpecs[_key778] = _val779 + (_ktype802, _vtype803, _size801 ) = iprot.readMapBegin() + for _i805 in xrange(_size801): + _key806 = iprot.readString() + _val807 = iprot.readString() + self.partitionSpecs[_key806] = _val807 iprot.readMapEnd() else: iprot.skip(ftype) @@ -20038,9 +20106,9 @@ def write(self, oprot): if self.partitionSpecs is not None: oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) - for kiter780,viter781 in self.partitionSpecs.items(): - oprot.writeString(kiter780) - oprot.writeString(viter781) + for kiter808,viter809 in self.partitionSpecs.items(): + oprot.writeString(kiter808) + oprot.writeString(viter809) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -20123,11 +20191,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype785, _size782) = iprot.readListBegin() - for _i786 in xrange(_size782): - _elem787 = Partition() - _elem787.read(iprot) - self.success.append(_elem787) + (_etype813, _size810) = iprot.readListBegin() + for _i814 in xrange(_size810): + _elem815 = Partition() + _elem815.read(iprot) + self.success.append(_elem815) iprot.readListEnd() else: iprot.skip(ftype) @@ -20168,8 +20236,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 iter788 in self.success: - iter788.write(oprot) + for iter816 in self.success: + iter816.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20263,10 +20331,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) + (_etype820, _size817) = iprot.readListBegin() + for _i821 in xrange(_size817): + _elem822 = iprot.readString() + self.part_vals.append(_elem822) iprot.readListEnd() else: iprot.skip(ftype) @@ -20278,10 +20346,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) + (_etype826, _size823) = iprot.readListBegin() + for _i827 in xrange(_size823): + _elem828 = iprot.readString() + self.group_names.append(_elem828) iprot.readListEnd() else: iprot.skip(ftype) @@ -20306,8 +20374,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 iter829 in self.part_vals: + oprot.writeString(iter829) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -20317,8 +20385,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 iter830 in self.group_names: + oprot.writeString(iter830) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20747,11 +20815,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) + (_etype834, _size831) = iprot.readListBegin() + for _i835 in xrange(_size831): + _elem836 = Partition() + _elem836.read(iprot) + self.success.append(_elem836) iprot.readListEnd() else: iprot.skip(ftype) @@ -20780,8 +20848,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 iter837 in self.success: + iter837.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20875,10 +20943,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) + (_etype841, _size838) = iprot.readListBegin() + for _i842 in xrange(_size838): + _elem843 = iprot.readString() + self.group_names.append(_elem843) iprot.readListEnd() else: iprot.skip(ftype) @@ -20911,8 +20979,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 iter844 in self.group_names: + oprot.writeString(iter844) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20973,11 +21041,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) + (_etype848, _size845) = iprot.readListBegin() + for _i849 in xrange(_size845): + _elem850 = Partition() + _elem850.read(iprot) + self.success.append(_elem850) iprot.readListEnd() else: iprot.skip(ftype) @@ -21006,8 +21074,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 iter851 in self.success: + iter851.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21165,11 +21233,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) + (_etype855, _size852) = iprot.readListBegin() + for _i856 in xrange(_size852): + _elem857 = PartitionSpec() + _elem857.read(iprot) + self.success.append(_elem857) iprot.readListEnd() else: iprot.skip(ftype) @@ -21198,8 +21266,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 iter858 in self.success: + iter858.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21354,10 +21422,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) + (_etype862, _size859) = iprot.readListBegin() + for _i863 in xrange(_size859): + _elem864 = iprot.readString() + self.success.append(_elem864) iprot.readListEnd() else: iprot.skip(ftype) @@ -21380,8 +21448,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 iter865 in self.success: + oprot.writeString(iter865) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -21412,6 +21480,165 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_partition_values_args: + """ + Attributes: + - request + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', (PartitionValuesRequest, PartitionValuesRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, request=None,): + self.request = request + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.request = PartitionValuesRequest() + self.request.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_partition_values_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.request) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + 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_values_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (PartitionValuesResponse, PartitionValuesResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + ) + + def __init__(self, success=None, o1=None, o2=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = PartitionValuesResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = NoSuchObjectException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_partition_values_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + return value + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + class get_partitions_ps_args: """ Attributes: @@ -21457,10 +21684,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) + (_etype869, _size866) = iprot.readListBegin() + for _i870 in xrange(_size866): + _elem871 = iprot.readString() + self.part_vals.append(_elem871) iprot.readListEnd() else: iprot.skip(ftype) @@ -21490,8 +21717,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 iter872 in self.part_vals: + oprot.writeString(iter872) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -21555,11 +21782,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) + (_etype876, _size873) = iprot.readListBegin() + for _i877 in xrange(_size873): + _elem878 = Partition() + _elem878.read(iprot) + self.success.append(_elem878) iprot.readListEnd() else: iprot.skip(ftype) @@ -21588,8 +21815,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 iter879 in self.success: + iter879.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21676,10 +21903,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) + (_etype883, _size880) = iprot.readListBegin() + for _i884 in xrange(_size880): + _elem885 = iprot.readString() + self.part_vals.append(_elem885) iprot.readListEnd() else: iprot.skip(ftype) @@ -21696,10 +21923,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) + (_etype889, _size886) = iprot.readListBegin() + for _i890 in xrange(_size886): + _elem891 = iprot.readString() + self.group_names.append(_elem891) iprot.readListEnd() else: iprot.skip(ftype) @@ -21724,8 +21951,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 iter892 in self.part_vals: + oprot.writeString(iter892) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -21739,8 +21966,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 iter893 in self.group_names: + oprot.writeString(iter893) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21802,11 +22029,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) + (_etype897, _size894) = iprot.readListBegin() + for _i898 in xrange(_size894): + _elem899 = Partition() + _elem899.read(iprot) + self.success.append(_elem899) iprot.readListEnd() else: iprot.skip(ftype) @@ -21835,8 +22062,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 iter900 in self.success: + iter900.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21917,10 +22144,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) + (_etype904, _size901) = iprot.readListBegin() + for _i905 in xrange(_size901): + _elem906 = iprot.readString() + self.part_vals.append(_elem906) iprot.readListEnd() else: iprot.skip(ftype) @@ -21950,8 +22177,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 iter907 in self.part_vals: + oprot.writeString(iter907) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -22015,10 +22242,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) + (_etype911, _size908) = iprot.readListBegin() + for _i912 in xrange(_size908): + _elem913 = iprot.readString() + self.success.append(_elem913) iprot.readListEnd() else: iprot.skip(ftype) @@ -22047,8 +22274,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 iter914 in self.success: + oprot.writeString(iter914) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22219,11 +22446,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) + (_etype918, _size915) = iprot.readListBegin() + for _i919 in xrange(_size915): + _elem920 = Partition() + _elem920.read(iprot) + self.success.append(_elem920) iprot.readListEnd() else: iprot.skip(ftype) @@ -22252,8 +22479,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 iter921 in self.success: + iter921.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22424,11 +22651,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) + (_etype925, _size922) = iprot.readListBegin() + for _i926 in xrange(_size922): + _elem927 = PartitionSpec() + _elem927.read(iprot) + self.success.append(_elem927) iprot.readListEnd() else: iprot.skip(ftype) @@ -22457,8 +22684,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 iter928 in self.success: + iter928.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22878,10 +23105,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) + (_etype932, _size929) = iprot.readListBegin() + for _i933 in xrange(_size929): + _elem934 = iprot.readString() + self.names.append(_elem934) iprot.readListEnd() else: iprot.skip(ftype) @@ -22906,8 +23133,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 iter935 in self.names: + oprot.writeString(iter935) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22966,11 +23193,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) + (_etype939, _size936) = iprot.readListBegin() + for _i940 in xrange(_size936): + _elem941 = Partition() + _elem941.read(iprot) + self.success.append(_elem941) iprot.readListEnd() else: iprot.skip(ftype) @@ -22999,8 +23226,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 iter942 in self.success: + iter942.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23250,11 +23477,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) + (_etype946, _size943) = iprot.readListBegin() + for _i947 in xrange(_size943): + _elem948 = Partition() + _elem948.read(iprot) + self.new_parts.append(_elem948) iprot.readListEnd() else: iprot.skip(ftype) @@ -23279,8 +23506,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 iter949 in self.new_parts: + iter949.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -23433,11 +23660,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) + (_etype953, _size950) = iprot.readListBegin() + for _i954 in xrange(_size950): + _elem955 = Partition() + _elem955.read(iprot) + self.new_parts.append(_elem955) iprot.readListEnd() else: iprot.skip(ftype) @@ -23468,8 +23695,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 iter956 in self.new_parts: + iter956.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -23813,10 +24040,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) + (_etype960, _size957) = iprot.readListBegin() + for _i961 in xrange(_size957): + _elem962 = iprot.readString() + self.part_vals.append(_elem962) iprot.readListEnd() else: iprot.skip(ftype) @@ -23847,8 +24074,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 iter963 in self.part_vals: + oprot.writeString(iter963) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -23990,10 +24217,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) + (_etype967, _size964) = iprot.readListBegin() + for _i968 in xrange(_size964): + _elem969 = iprot.readString() + self.part_vals.append(_elem969) iprot.readListEnd() else: iprot.skip(ftype) @@ -24015,8 +24242,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 iter970 in self.part_vals: + oprot.writeString(iter970) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -24374,10 +24601,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) + (_etype974, _size971) = iprot.readListBegin() + for _i975 in xrange(_size971): + _elem976 = iprot.readString() + self.success.append(_elem976) iprot.readListEnd() else: iprot.skip(ftype) @@ -24400,8 +24627,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 iter977 in self.success: + oprot.writeString(iter977) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24525,11 +24752,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 + (_ktype979, _vtype980, _size978 ) = iprot.readMapBegin() + for _i982 in xrange(_size978): + _key983 = iprot.readString() + _val984 = iprot.readString() + self.success[_key983] = _val984 iprot.readMapEnd() else: iprot.skip(ftype) @@ -24552,9 +24779,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 kiter985,viter986 in self.success.items(): + oprot.writeString(kiter985) + oprot.writeString(viter986) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -24630,11 +24857,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 + (_ktype988, _vtype989, _size987 ) = iprot.readMapBegin() + for _i991 in xrange(_size987): + _key992 = iprot.readString() + _val993 = iprot.readString() + self.part_vals[_key992] = _val993 iprot.readMapEnd() else: iprot.skip(ftype) @@ -24664,9 +24891,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 kiter994,viter995 in self.part_vals.items(): + oprot.writeString(kiter994) + oprot.writeString(viter995) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -24880,11 +25107,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 + (_ktype997, _vtype998, _size996 ) = iprot.readMapBegin() + for _i1000 in xrange(_size996): + _key1001 = iprot.readString() + _val1002 = iprot.readString() + self.part_vals[_key1001] = _val1002 iprot.readMapEnd() else: iprot.skip(ftype) @@ -24914,9 +25141,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 kiter1003,viter1004 in self.part_vals.items(): + oprot.writeString(kiter1003) + oprot.writeString(viter1004) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -25971,11 +26198,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) + (_etype1008, _size1005) = iprot.readListBegin() + for _i1009 in xrange(_size1005): + _elem1010 = Index() + _elem1010.read(iprot) + self.success.append(_elem1010) iprot.readListEnd() else: iprot.skip(ftype) @@ -26004,8 +26231,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 iter1011 in self.success: + iter1011.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -26160,10 +26387,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) + (_etype1015, _size1012) = iprot.readListBegin() + for _i1016 in xrange(_size1012): + _elem1017 = iprot.readString() + self.success.append(_elem1017) iprot.readListEnd() else: iprot.skip(ftype) @@ -26186,8 +26413,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 iter1018 in self.success: + oprot.writeString(iter1018) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -29053,10 +29280,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) + (_etype1022, _size1019) = iprot.readListBegin() + for _i1023 in xrange(_size1019): + _elem1024 = iprot.readString() + self.success.append(_elem1024) iprot.readListEnd() else: iprot.skip(ftype) @@ -29079,8 +29306,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 iter1025 in self.success: + oprot.writeString(iter1025) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29768,10 +29995,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) + (_etype1029, _size1026) = iprot.readListBegin() + for _i1030 in xrange(_size1026): + _elem1031 = iprot.readString() + self.success.append(_elem1031) iprot.readListEnd() else: iprot.skip(ftype) @@ -29794,8 +30021,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 iter1032 in self.success: + oprot.writeString(iter1032) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30309,11 +30536,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) + (_etype1036, _size1033) = iprot.readListBegin() + for _i1037 in xrange(_size1033): + _elem1038 = Role() + _elem1038.read(iprot) + self.success.append(_elem1038) iprot.readListEnd() else: iprot.skip(ftype) @@ -30336,8 +30563,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 iter1039 in self.success: + iter1039.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30846,10 +31073,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) + (_etype1043, _size1040) = iprot.readListBegin() + for _i1044 in xrange(_size1040): + _elem1045 = iprot.readString() + self.group_names.append(_elem1045) iprot.readListEnd() else: iprot.skip(ftype) @@ -30874,8 +31101,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 iter1046 in self.group_names: + oprot.writeString(iter1046) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31102,11 +31329,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) + (_etype1050, _size1047) = iprot.readListBegin() + for _i1051 in xrange(_size1047): + _elem1052 = HiveObjectPrivilege() + _elem1052.read(iprot) + self.success.append(_elem1052) iprot.readListEnd() else: iprot.skip(ftype) @@ -31129,8 +31356,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 iter1053 in self.success: + iter1053.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31628,10 +31855,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) + (_etype1057, _size1054) = iprot.readListBegin() + for _i1058 in xrange(_size1054): + _elem1059 = iprot.readString() + self.group_names.append(_elem1059) iprot.readListEnd() else: iprot.skip(ftype) @@ -31652,8 +31879,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 iter1060 in self.group_names: + oprot.writeString(iter1060) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -31708,10 +31935,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) + (_etype1064, _size1061) = iprot.readListBegin() + for _i1065 in xrange(_size1061): + _elem1066 = iprot.readString() + self.success.append(_elem1066) iprot.readListEnd() else: iprot.skip(ftype) @@ -31734,8 +31961,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 iter1067 in self.success: + oprot.writeString(iter1067) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -32667,10 +32894,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) + (_etype1071, _size1068) = iprot.readListBegin() + for _i1072 in xrange(_size1068): + _elem1073 = iprot.readString() + self.success.append(_elem1073) iprot.readListEnd() else: iprot.skip(ftype) @@ -32687,8 +32914,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 iter1074 in self.success: + oprot.writeString(iter1074) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -33215,10 +33442,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) + (_etype1078, _size1075) = iprot.readListBegin() + for _i1079 in xrange(_size1075): + _elem1080 = iprot.readString() + self.success.append(_elem1080) iprot.readListEnd() else: iprot.skip(ftype) @@ -33235,8 +33462,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 iter1081 in self.success: + oprot.writeString(iter1081) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py b/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 3faf1bb..4c305cb 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -7798,6 +7798,337 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class PartitionValuesRequest: + """ + Attributes: + - dbName + - tblName + - partitionKeys + - applyDistinct + - filter + - partitionOrder + - ascending + - maxParts + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'dbName', None, None, ), # 1 + (2, TType.STRING, 'tblName', None, None, ), # 2 + (3, TType.LIST, 'partitionKeys', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 3 + (4, TType.BOOL, 'applyDistinct', None, True, ), # 4 + (5, TType.STRING, 'filter', None, None, ), # 5 + (6, TType.LIST, 'partitionOrder', (TType.STRUCT,(FieldSchema, FieldSchema.thrift_spec)), None, ), # 6 + (7, TType.BOOL, 'ascending', None, True, ), # 7 + (8, TType.I64, 'maxParts', None, -1, ), # 8 + ) + + def __init__(self, dbName=None, tblName=None, partitionKeys=None, applyDistinct=thrift_spec[4][4], filter=None, partitionOrder=None, ascending=thrift_spec[7][4], maxParts=thrift_spec[8][4],): + self.dbName = dbName + self.tblName = tblName + self.partitionKeys = partitionKeys + self.applyDistinct = applyDistinct + self.filter = filter + self.partitionOrder = partitionOrder + self.ascending = ascending + self.maxParts = maxParts + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.dbName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tblName = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.LIST: + self.partitionKeys = [] + (_etype402, _size399) = iprot.readListBegin() + for _i403 in xrange(_size399): + _elem404 = FieldSchema() + _elem404.read(iprot) + self.partitionKeys.append(_elem404) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BOOL: + self.applyDistinct = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.filter = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.LIST: + self.partitionOrder = [] + (_etype408, _size405) = iprot.readListBegin() + for _i409 in xrange(_size405): + _elem410 = FieldSchema() + _elem410.read(iprot) + self.partitionOrder.append(_elem410) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.BOOL: + self.ascending = iprot.readBool() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I64: + self.maxParts = iprot.readI64() + 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('PartitionValuesRequest') + if self.dbName is not None: + oprot.writeFieldBegin('dbName', TType.STRING, 1) + oprot.writeString(self.dbName) + oprot.writeFieldEnd() + if self.tblName is not None: + oprot.writeFieldBegin('tblName', TType.STRING, 2) + oprot.writeString(self.tblName) + oprot.writeFieldEnd() + if self.partitionKeys is not None: + oprot.writeFieldBegin('partitionKeys', TType.LIST, 3) + oprot.writeListBegin(TType.STRUCT, len(self.partitionKeys)) + for iter411 in self.partitionKeys: + iter411.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.applyDistinct is not None: + oprot.writeFieldBegin('applyDistinct', TType.BOOL, 4) + oprot.writeBool(self.applyDistinct) + oprot.writeFieldEnd() + if self.filter is not None: + oprot.writeFieldBegin('filter', TType.STRING, 5) + oprot.writeString(self.filter) + oprot.writeFieldEnd() + if self.partitionOrder is not None: + oprot.writeFieldBegin('partitionOrder', TType.LIST, 6) + oprot.writeListBegin(TType.STRUCT, len(self.partitionOrder)) + for iter412 in self.partitionOrder: + iter412.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.ascending is not None: + oprot.writeFieldBegin('ascending', TType.BOOL, 7) + oprot.writeBool(self.ascending) + oprot.writeFieldEnd() + if self.maxParts is not None: + oprot.writeFieldBegin('maxParts', TType.I64, 8) + oprot.writeI64(self.maxParts) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.dbName is None: + raise TProtocol.TProtocolException(message='Required field dbName is unset!') + if self.tblName is None: + raise TProtocol.TProtocolException(message='Required field tblName is unset!') + if self.partitionKeys is None: + raise TProtocol.TProtocolException(message='Required field partitionKeys is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.dbName) + value = (value * 31) ^ hash(self.tblName) + value = (value * 31) ^ hash(self.partitionKeys) + value = (value * 31) ^ hash(self.applyDistinct) + value = (value * 31) ^ hash(self.filter) + value = (value * 31) ^ hash(self.partitionOrder) + value = (value * 31) ^ hash(self.ascending) + value = (value * 31) ^ hash(self.maxParts) + 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 PartitionValuesRow: + """ + Attributes: + - row + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'row', (TType.STRING,None), None, ), # 1 + ) + + def __init__(self, row=None,): + self.row = row + + 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.LIST: + self.row = [] + (_etype416, _size413) = iprot.readListBegin() + for _i417 in xrange(_size413): + _elem418 = iprot.readString() + self.row.append(_elem418) + iprot.readListEnd() + 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('PartitionValuesRow') + if self.row is not None: + oprot.writeFieldBegin('row', TType.LIST, 1) + oprot.writeListBegin(TType.STRING, len(self.row)) + for iter419 in self.row: + oprot.writeString(iter419) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.row is None: + raise TProtocol.TProtocolException(message='Required field row is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.row) + 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 PartitionValuesResponse: + """ + Attributes: + - partitionValues + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'partitionValues', (TType.STRUCT,(PartitionValuesRow, PartitionValuesRow.thrift_spec)), None, ), # 1 + ) + + def __init__(self, partitionValues=None,): + self.partitionValues = partitionValues + + 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.LIST: + self.partitionValues = [] + (_etype423, _size420) = iprot.readListBegin() + for _i424 in xrange(_size420): + _elem425 = PartitionValuesRow() + _elem425.read(iprot) + self.partitionValues.append(_elem425) + iprot.readListEnd() + 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('PartitionValuesResponse') + if self.partitionValues is not None: + oprot.writeFieldBegin('partitionValues', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.partitionValues)) + for iter426 in self.partitionValues: + iter426.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.partitionValues is None: + raise TProtocol.TProtocolException(message='Required field partitionValues is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.partitionValues) + 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 ResourceUri: """ Attributes: @@ -7958,11 +8289,11 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.resourceUris = [] - (_etype402, _size399) = iprot.readListBegin() - for _i403 in xrange(_size399): - _elem404 = ResourceUri() - _elem404.read(iprot) - self.resourceUris.append(_elem404) + (_etype430, _size427) = iprot.readListBegin() + for _i431 in xrange(_size427): + _elem432 = ResourceUri() + _elem432.read(iprot) + self.resourceUris.append(_elem432) iprot.readListEnd() else: iprot.skip(ftype) @@ -8007,8 +8338,8 @@ def write(self, oprot): if self.resourceUris is not None: oprot.writeFieldBegin('resourceUris', TType.LIST, 8) oprot.writeListBegin(TType.STRUCT, len(self.resourceUris)) - for iter405 in self.resourceUris: - iter405.write(oprot) + for iter433 in self.resourceUris: + iter433.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8252,11 +8583,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype409, _size406) = iprot.readListBegin() - for _i410 in xrange(_size406): - _elem411 = TxnInfo() - _elem411.read(iprot) - self.open_txns.append(_elem411) + (_etype437, _size434) = iprot.readListBegin() + for _i438 in xrange(_size434): + _elem439 = TxnInfo() + _elem439.read(iprot) + self.open_txns.append(_elem439) iprot.readListEnd() else: iprot.skip(ftype) @@ -8277,8 +8608,8 @@ def write(self, oprot): if self.open_txns is not None: oprot.writeFieldBegin('open_txns', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.open_txns)) - for iter412 in self.open_txns: - iter412.write(oprot) + for iter440 in self.open_txns: + iter440.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8346,10 +8677,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.SET: self.open_txns = set() - (_etype416, _size413) = iprot.readSetBegin() - for _i417 in xrange(_size413): - _elem418 = iprot.readI64() - self.open_txns.add(_elem418) + (_etype444, _size441) = iprot.readSetBegin() + for _i445 in xrange(_size441): + _elem446 = iprot.readI64() + self.open_txns.add(_elem446) iprot.readSetEnd() else: iprot.skip(ftype) @@ -8375,8 +8706,8 @@ def write(self, oprot): if self.open_txns is not None: oprot.writeFieldBegin('open_txns', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.open_txns)) - for iter419 in self.open_txns: - oprot.writeI64(iter419) + for iter447 in self.open_txns: + oprot.writeI64(iter447) oprot.writeSetEnd() oprot.writeFieldEnd() if self.min_open_txn is not None: @@ -8548,10 +8879,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype423, _size420) = iprot.readListBegin() - for _i424 in xrange(_size420): - _elem425 = iprot.readI64() - self.txn_ids.append(_elem425) + (_etype451, _size448) = iprot.readListBegin() + for _i452 in xrange(_size448): + _elem453 = iprot.readI64() + self.txn_ids.append(_elem453) iprot.readListEnd() else: iprot.skip(ftype) @@ -8568,8 +8899,8 @@ def write(self, oprot): if self.txn_ids is not None: oprot.writeFieldBegin('txn_ids', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.txn_ids)) - for iter426 in self.txn_ids: - oprot.writeI64(iter426) + for iter454 in self.txn_ids: + oprot.writeI64(iter454) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8690,10 +9021,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype430, _size427) = iprot.readListBegin() - for _i431 in xrange(_size427): - _elem432 = iprot.readI64() - self.txn_ids.append(_elem432) + (_etype458, _size455) = iprot.readListBegin() + for _i459 in xrange(_size455): + _elem460 = iprot.readI64() + self.txn_ids.append(_elem460) iprot.readListEnd() else: iprot.skip(ftype) @@ -8710,8 +9041,8 @@ def write(self, oprot): if self.txn_ids is not None: oprot.writeFieldBegin('txn_ids', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.txn_ids)) - for iter433 in self.txn_ids: - oprot.writeI64(iter433) + for iter461 in self.txn_ids: + oprot.writeI64(iter461) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9006,11 +9337,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype437, _size434) = iprot.readListBegin() - for _i438 in xrange(_size434): - _elem439 = LockComponent() - _elem439.read(iprot) - self.component.append(_elem439) + (_etype465, _size462) = iprot.readListBegin() + for _i466 in xrange(_size462): + _elem467 = LockComponent() + _elem467.read(iprot) + self.component.append(_elem467) iprot.readListEnd() else: iprot.skip(ftype) @@ -9047,8 +9378,8 @@ def write(self, oprot): if self.component is not None: oprot.writeFieldBegin('component', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.component)) - for iter440 in self.component: - iter440.write(oprot) + for iter468 in self.component: + iter468.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -9746,11 +10077,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype444, _size441) = iprot.readListBegin() - for _i445 in xrange(_size441): - _elem446 = ShowLocksResponseElement() - _elem446.read(iprot) - self.locks.append(_elem446) + (_etype472, _size469) = iprot.readListBegin() + for _i473 in xrange(_size469): + _elem474 = ShowLocksResponseElement() + _elem474.read(iprot) + self.locks.append(_elem474) iprot.readListEnd() else: iprot.skip(ftype) @@ -9767,8 +10098,8 @@ def write(self, oprot): if self.locks is not None: oprot.writeFieldBegin('locks', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.locks)) - for iter447 in self.locks: - iter447.write(oprot) + for iter475 in self.locks: + iter475.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9983,20 +10314,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.aborted = set() - (_etype451, _size448) = iprot.readSetBegin() - for _i452 in xrange(_size448): - _elem453 = iprot.readI64() - self.aborted.add(_elem453) + (_etype479, _size476) = iprot.readSetBegin() + for _i480 in xrange(_size476): + _elem481 = iprot.readI64() + self.aborted.add(_elem481) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.nosuch = set() - (_etype457, _size454) = iprot.readSetBegin() - for _i458 in xrange(_size454): - _elem459 = iprot.readI64() - self.nosuch.add(_elem459) + (_etype485, _size482) = iprot.readSetBegin() + for _i486 in xrange(_size482): + _elem487 = iprot.readI64() + self.nosuch.add(_elem487) iprot.readSetEnd() else: iprot.skip(ftype) @@ -10013,15 +10344,15 @@ def write(self, oprot): if self.aborted is not None: oprot.writeFieldBegin('aborted', TType.SET, 1) oprot.writeSetBegin(TType.I64, len(self.aborted)) - for iter460 in self.aborted: - oprot.writeI64(iter460) + for iter488 in self.aborted: + oprot.writeI64(iter488) oprot.writeSetEnd() oprot.writeFieldEnd() if self.nosuch is not None: oprot.writeFieldBegin('nosuch', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.nosuch)) - for iter461 in self.nosuch: - oprot.writeI64(iter461) + for iter489 in self.nosuch: + oprot.writeI64(iter489) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10118,11 +10449,11 @@ def read(self, iprot): elif fid == 6: if ftype == TType.MAP: self.properties = {} - (_ktype463, _vtype464, _size462 ) = iprot.readMapBegin() - for _i466 in xrange(_size462): - _key467 = iprot.readString() - _val468 = iprot.readString() - self.properties[_key467] = _val468 + (_ktype491, _vtype492, _size490 ) = iprot.readMapBegin() + for _i494 in xrange(_size490): + _key495 = iprot.readString() + _val496 = iprot.readString() + self.properties[_key495] = _val496 iprot.readMapEnd() else: iprot.skip(ftype) @@ -10159,9 +10490,9 @@ def write(self, oprot): if self.properties is not None: oprot.writeFieldBegin('properties', TType.MAP, 6) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) - for kiter469,viter470 in self.properties.items(): - oprot.writeString(kiter469) - oprot.writeString(viter470) + for kiter497,viter498 in self.properties.items(): + oprot.writeString(kiter497) + oprot.writeString(viter498) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10596,11 +10927,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype474, _size471) = iprot.readListBegin() - for _i475 in xrange(_size471): - _elem476 = ShowCompactResponseElement() - _elem476.read(iprot) - self.compacts.append(_elem476) + (_etype502, _size499) = iprot.readListBegin() + for _i503 in xrange(_size499): + _elem504 = ShowCompactResponseElement() + _elem504.read(iprot) + self.compacts.append(_elem504) iprot.readListEnd() else: iprot.skip(ftype) @@ -10617,8 +10948,8 @@ def write(self, oprot): if self.compacts is not None: oprot.writeFieldBegin('compacts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.compacts)) - for iter477 in self.compacts: - iter477.write(oprot) + for iter505 in self.compacts: + iter505.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10699,10 +11030,10 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partitionnames = [] - (_etype481, _size478) = iprot.readListBegin() - for _i482 in xrange(_size478): - _elem483 = iprot.readString() - self.partitionnames.append(_elem483) + (_etype509, _size506) = iprot.readListBegin() + for _i510 in xrange(_size506): + _elem511 = iprot.readString() + self.partitionnames.append(_elem511) iprot.readListEnd() else: iprot.skip(ftype) @@ -10736,8 +11067,8 @@ def write(self, oprot): if self.partitionnames is not None: oprot.writeFieldBegin('partitionnames', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partitionnames)) - for iter484 in self.partitionnames: - oprot.writeString(iter484) + for iter512 in self.partitionnames: + oprot.writeString(iter512) oprot.writeListEnd() oprot.writeFieldEnd() if self.operationType is not None: @@ -11036,11 +11367,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.events = [] - (_etype488, _size485) = iprot.readListBegin() - for _i489 in xrange(_size485): - _elem490 = NotificationEvent() - _elem490.read(iprot) - self.events.append(_elem490) + (_etype516, _size513) = iprot.readListBegin() + for _i517 in xrange(_size513): + _elem518 = NotificationEvent() + _elem518.read(iprot) + self.events.append(_elem518) iprot.readListEnd() else: iprot.skip(ftype) @@ -11057,8 +11388,8 @@ def write(self, oprot): if self.events is not None: oprot.writeFieldBegin('events', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.events)) - for iter491 in self.events: - iter491.write(oprot) + for iter519 in self.events: + iter519.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11182,20 +11513,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.filesAdded = [] - (_etype495, _size492) = iprot.readListBegin() - for _i496 in xrange(_size492): - _elem497 = iprot.readString() - self.filesAdded.append(_elem497) + (_etype523, _size520) = iprot.readListBegin() + for _i524 in xrange(_size520): + _elem525 = iprot.readString() + self.filesAdded.append(_elem525) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.filesAddedChecksum = [] - (_etype501, _size498) = iprot.readListBegin() - for _i502 in xrange(_size498): - _elem503 = iprot.readString() - self.filesAddedChecksum.append(_elem503) + (_etype529, _size526) = iprot.readListBegin() + for _i530 in xrange(_size526): + _elem531 = iprot.readString() + self.filesAddedChecksum.append(_elem531) iprot.readListEnd() else: iprot.skip(ftype) @@ -11212,15 +11543,15 @@ def write(self, oprot): if self.filesAdded is not None: oprot.writeFieldBegin('filesAdded', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.filesAdded)) - for iter504 in self.filesAdded: - oprot.writeString(iter504) + for iter532 in self.filesAdded: + oprot.writeString(iter532) oprot.writeListEnd() oprot.writeFieldEnd() if self.filesAddedChecksum is not None: oprot.writeFieldBegin('filesAddedChecksum', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.filesAddedChecksum)) - for iter505 in self.filesAddedChecksum: - oprot.writeString(iter505) + for iter533 in self.filesAddedChecksum: + oprot.writeString(iter533) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11374,10 +11705,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionVals = [] - (_etype509, _size506) = iprot.readListBegin() - for _i510 in xrange(_size506): - _elem511 = iprot.readString() - self.partitionVals.append(_elem511) + (_etype537, _size534) = iprot.readListBegin() + for _i538 in xrange(_size534): + _elem539 = iprot.readString() + self.partitionVals.append(_elem539) iprot.readListEnd() else: iprot.skip(ftype) @@ -11410,8 +11741,8 @@ def write(self, oprot): if self.partitionVals is not None: oprot.writeFieldBegin('partitionVals', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionVals)) - for iter512 in self.partitionVals: - oprot.writeString(iter512) + for iter540 in self.partitionVals: + oprot.writeString(iter540) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11598,12 +11929,12 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype514, _vtype515, _size513 ) = iprot.readMapBegin() - for _i517 in xrange(_size513): - _key518 = iprot.readI64() - _val519 = MetadataPpdResult() - _val519.read(iprot) - self.metadata[_key518] = _val519 + (_ktype542, _vtype543, _size541 ) = iprot.readMapBegin() + for _i545 in xrange(_size541): + _key546 = iprot.readI64() + _val547 = MetadataPpdResult() + _val547.read(iprot) + self.metadata[_key546] = _val547 iprot.readMapEnd() else: iprot.skip(ftype) @@ -11625,9 +11956,9 @@ def write(self, oprot): if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.MAP, 1) oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.metadata)) - for kiter520,viter521 in self.metadata.items(): - oprot.writeI64(kiter520) - viter521.write(oprot) + for kiter548,viter549 in self.metadata.items(): + oprot.writeI64(kiter548) + viter549.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -11697,10 +12028,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype525, _size522) = iprot.readListBegin() - for _i526 in xrange(_size522): - _elem527 = iprot.readI64() - self.fileIds.append(_elem527) + (_etype553, _size550) = iprot.readListBegin() + for _i554 in xrange(_size550): + _elem555 = iprot.readI64() + self.fileIds.append(_elem555) iprot.readListEnd() else: iprot.skip(ftype) @@ -11732,8 +12063,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter528 in self.fileIds: - oprot.writeI64(iter528) + for iter556 in self.fileIds: + oprot.writeI64(iter556) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: @@ -11807,11 +12138,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype530, _vtype531, _size529 ) = iprot.readMapBegin() - for _i533 in xrange(_size529): - _key534 = iprot.readI64() - _val535 = iprot.readString() - self.metadata[_key534] = _val535 + (_ktype558, _vtype559, _size557 ) = iprot.readMapBegin() + for _i561 in xrange(_size557): + _key562 = iprot.readI64() + _val563 = iprot.readString() + self.metadata[_key562] = _val563 iprot.readMapEnd() else: iprot.skip(ftype) @@ -11833,9 +12164,9 @@ def write(self, oprot): if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.MAP, 1) oprot.writeMapBegin(TType.I64, TType.STRING, len(self.metadata)) - for kiter536,viter537 in self.metadata.items(): - oprot.writeI64(kiter536) - oprot.writeString(viter537) + for kiter564,viter565 in self.metadata.items(): + oprot.writeI64(kiter564) + oprot.writeString(viter565) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -11896,10 +12227,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype541, _size538) = iprot.readListBegin() - for _i542 in xrange(_size538): - _elem543 = iprot.readI64() - self.fileIds.append(_elem543) + (_etype569, _size566) = iprot.readListBegin() + for _i570 in xrange(_size566): + _elem571 = iprot.readI64() + self.fileIds.append(_elem571) iprot.readListEnd() else: iprot.skip(ftype) @@ -11916,8 +12247,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter544 in self.fileIds: - oprot.writeI64(iter544) + for iter572 in self.fileIds: + oprot.writeI64(iter572) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12023,20 +12354,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype548, _size545) = iprot.readListBegin() - for _i549 in xrange(_size545): - _elem550 = iprot.readI64() - self.fileIds.append(_elem550) + (_etype576, _size573) = iprot.readListBegin() + for _i577 in xrange(_size573): + _elem578 = iprot.readI64() + self.fileIds.append(_elem578) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.metadata = [] - (_etype554, _size551) = iprot.readListBegin() - for _i555 in xrange(_size551): - _elem556 = iprot.readString() - self.metadata.append(_elem556) + (_etype582, _size579) = iprot.readListBegin() + for _i583 in xrange(_size579): + _elem584 = iprot.readString() + self.metadata.append(_elem584) iprot.readListEnd() else: iprot.skip(ftype) @@ -12058,15 +12389,15 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter557 in self.fileIds: - oprot.writeI64(iter557) + for iter585 in self.fileIds: + oprot.writeI64(iter585) oprot.writeListEnd() oprot.writeFieldEnd() if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.metadata)) - for iter558 in self.metadata: - oprot.writeString(iter558) + for iter586 in self.metadata: + oprot.writeString(iter586) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: @@ -12174,10 +12505,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype562, _size559) = iprot.readListBegin() - for _i563 in xrange(_size559): - _elem564 = iprot.readI64() - self.fileIds.append(_elem564) + (_etype590, _size587) = iprot.readListBegin() + for _i591 in xrange(_size587): + _elem592 = iprot.readI64() + self.fileIds.append(_elem592) iprot.readListEnd() else: iprot.skip(ftype) @@ -12194,8 +12525,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter565 in self.fileIds: - oprot.writeI64(iter565) + for iter593 in self.fileIds: + oprot.writeI64(iter593) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12424,11 +12755,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.functions = [] - (_etype569, _size566) = iprot.readListBegin() - for _i570 in xrange(_size566): - _elem571 = Function() - _elem571.read(iprot) - self.functions.append(_elem571) + (_etype597, _size594) = iprot.readListBegin() + for _i598 in xrange(_size594): + _elem599 = Function() + _elem599.read(iprot) + self.functions.append(_elem599) iprot.readListEnd() else: iprot.skip(ftype) @@ -12445,8 +12776,8 @@ def write(self, oprot): if self.functions is not None: oprot.writeFieldBegin('functions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.functions)) - for iter572 in self.functions: - iter572.write(oprot) + for iter600 in self.functions: + iter600.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12498,10 +12829,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype576, _size573) = iprot.readListBegin() - for _i577 in xrange(_size573): - _elem578 = iprot.readI32() - self.values.append(_elem578) + (_etype604, _size601) = iprot.readListBegin() + for _i605 in xrange(_size601): + _elem606 = iprot.readI32() + self.values.append(_elem606) iprot.readListEnd() else: iprot.skip(ftype) @@ -12518,8 +12849,8 @@ def write(self, oprot): if self.values is not None: oprot.writeFieldBegin('values', TType.LIST, 1) oprot.writeListBegin(TType.I32, len(self.values)) - for iter579 in self.values: - oprot.writeI32(iter579) + for iter607 in self.values: + oprot.writeI32(iter607) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12748,10 +13079,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tblNames = [] - (_etype583, _size580) = iprot.readListBegin() - for _i584 in xrange(_size580): - _elem585 = iprot.readString() - self.tblNames.append(_elem585) + (_etype611, _size608) = iprot.readListBegin() + for _i612 in xrange(_size608): + _elem613 = iprot.readString() + self.tblNames.append(_elem613) iprot.readListEnd() else: iprot.skip(ftype) @@ -12778,8 +13109,8 @@ def write(self, oprot): if self.tblNames is not None: oprot.writeFieldBegin('tblNames', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.tblNames)) - for iter586 in self.tblNames: - oprot.writeString(iter586) + for iter614 in self.tblNames: + oprot.writeString(iter614) oprot.writeListEnd() oprot.writeFieldEnd() if self.capabilities is not None: @@ -12839,11 +13170,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tables = [] - (_etype590, _size587) = iprot.readListBegin() - for _i591 in xrange(_size587): - _elem592 = Table() - _elem592.read(iprot) - self.tables.append(_elem592) + (_etype618, _size615) = iprot.readListBegin() + for _i619 in xrange(_size615): + _elem620 = Table() + _elem620.read(iprot) + self.tables.append(_elem620) iprot.readListEnd() else: iprot.skip(ftype) @@ -12860,8 +13191,8 @@ def write(self, oprot): if self.tables is not None: oprot.writeFieldBegin('tables', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.tables)) - for iter593 in self.tables: - iter593.write(oprot) + for iter621 in self.tables: + iter621.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() diff --git a/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb b/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb index 5342451..8f550e8 100644 --- a/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ b/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -1735,6 +1735,73 @@ class DropPartitionsRequest ::Thrift::Struct.generate_accessors self end +class PartitionValuesRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + DBNAME = 1 + TBLNAME = 2 + PARTITIONKEYS = 3 + APPLYDISTINCT = 4 + FILTER = 5 + PARTITIONORDER = 6 + ASCENDING = 7 + MAXPARTS = 8 + + FIELDS = { + DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbName'}, + TBLNAME => {:type => ::Thrift::Types::STRING, :name => 'tblName'}, + PARTITIONKEYS => {:type => ::Thrift::Types::LIST, :name => 'partitionKeys', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}}, + APPLYDISTINCT => {:type => ::Thrift::Types::BOOL, :name => 'applyDistinct', :default => true, :optional => true}, + FILTER => {:type => ::Thrift::Types::STRING, :name => 'filter', :optional => true}, + PARTITIONORDER => {:type => ::Thrift::Types::LIST, :name => 'partitionOrder', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}, :optional => true}, + ASCENDING => {:type => ::Thrift::Types::BOOL, :name => 'ascending', :default => true, :optional => true}, + MAXPARTS => {:type => ::Thrift::Types::I64, :name => 'maxParts', :default => -1, :optional => true} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field dbName is unset!') unless @dbName + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tblName is unset!') unless @tblName + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partitionKeys is unset!') unless @partitionKeys + end + + ::Thrift::Struct.generate_accessors self +end + +class PartitionValuesRow + include ::Thrift::Struct, ::Thrift::Struct_Union + ROW = 1 + + FIELDS = { + ROW => {:type => ::Thrift::Types::LIST, :name => 'row', :element => {:type => ::Thrift::Types::STRING}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field row is unset!') unless @row + end + + ::Thrift::Struct.generate_accessors self +end + +class PartitionValuesResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + PARTITIONVALUES = 1 + + FIELDS = { + PARTITIONVALUES => {:type => ::Thrift::Types::LIST, :name => 'partitionValues', :element => {:type => ::Thrift::Types::STRUCT, :class => ::PartitionValuesRow}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partitionValues is unset!') unless @partitionValues + end + + ::Thrift::Struct.generate_accessors self +end + class ResourceUri include ::Thrift::Struct, ::Thrift::Struct_Union RESOURCETYPE = 1 diff --git a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 7cdfc86..2e22eaf 100644 --- a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -1016,6 +1016,23 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_names failed: unknown result') end + def get_partition_values(request) + send_get_partition_values(request) + return recv_get_partition_values() + end + + def send_get_partition_values(request) + send_message('get_partition_values', Get_partition_values_args, :request => request) + end + + def recv_get_partition_values() + result = receive_message(Get_partition_values_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_values failed: unknown result') + end + def get_partitions_ps(db_name, tbl_name, part_vals, max_parts) send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts) return recv_get_partitions_ps() @@ -3349,6 +3366,19 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_partition_names', seqid) end + def process_get_partition_values(seqid, iprot, oprot) + args = read_args(iprot, Get_partition_values_args) + result = Get_partition_values_result.new() + begin + result.success = @handler.get_partition_values(args.request) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::NoSuchObjectException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_partition_values', seqid) + end + def process_get_partitions_ps(seqid, iprot, oprot) args = read_args(iprot, Get_partitions_ps_args) result = Get_partitions_ps_result.new() @@ -6732,6 +6762,42 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_partition_values_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQUEST = 1 + + FIELDS = { + REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::PartitionValuesRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_partition_values_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::PartitionValuesResponse}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_partitions_ps_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 4d68948..4ac9269 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -3726,6 +3726,17 @@ private static boolean is_partition_spec_grouping_enabled(Table table) { } @Override + public PartitionValuesResponse get_partition_values(PartitionValuesRequest request) throws MetaException { + String dbName = request.getDbName(); + String tblName = request.getTblName(); + List partCols = new ArrayList(); + partCols.add(request.getPartitionKeys().get(0)); + return getMS().listPartitionValues(dbName, tblName, request.getPartitionKeys(), + request.isApplyDistinct(), request.getFilter(), request.isAscending(), + request.getPartitionOrder(), request.getMaxParts()); + } + + @Override public void alter_partition(final String db_name, final String tbl_name, final Partition new_part) throws InvalidOperationException, MetaException, TException { diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 76b61cc..d0fd319 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -1324,6 +1324,12 @@ public Partition getPartition(String db_name, String tbl_name, } @Override + public PartitionValuesResponse listPartitionValues(PartitionValuesRequest request) + throws MetaException, TException, NoSuchObjectException { + return client.get_partition_values(request); + } + + @Override public Partition getPartitionWithAuthInfo(String db_name, String tbl_name, List part_vals, String user_name, List group_names) throws MetaException, UnknownTableException, NoSuchObjectException, 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 e7ead6b..a28c510 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -26,7 +26,6 @@ import java.util.Map.Entry; import org.apache.hadoop.hive.common.ObjectPair; -import org.apache.hadoop.hive.common.StatsSetupConst; import org.apache.hadoop.hive.common.ValidTxnList; import org.apache.hadoop.hive.common.classification.InterfaceAudience; import org.apache.hadoop.hive.common.classification.InterfaceAudience.Public; @@ -77,6 +76,8 @@ import org.apache.hadoop.hive.metastore.api.OpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; +import org.apache.hadoop.hive.metastore.api.PartitionValuesRequest; +import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse; import org.apache.hadoop.hive.metastore.api.PrimaryKeysRequest; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; @@ -557,6 +558,9 @@ public PartitionSpecProxy listPartitionSpecs(String dbName, String tableName, in List part_vals, short max_parts) throws MetaException, TException, NoSuchObjectException; + public PartitionValuesResponse listPartitionValues(PartitionValuesRequest request) + throws MetaException, TException, NoSuchObjectException; + /** * Get number of partitions matching specified filter * @param dbName the database name diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index 5cb9395..d16d2a3 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -96,6 +96,8 @@ import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; +import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse; +import org.apache.hadoop.hive.metastore.api.PartitionValuesRow; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; @@ -2243,6 +2245,250 @@ public Partition getPartitionWithAuth(String dbName, String tblName, return pns; } + private String extractPartitionKey(FieldSchema key, List pkeys) { + StringBuilder buffer = new StringBuilder(256); + + assert pkeys.size() >= 1; + + String partKey = "/" + key.getName() + "="; + + // Table is partitioned by single key + if (pkeys.size() == 1 && (pkeys.get(0).getName().matches(key.getName()))) { + buffer.append("partitionName.substring(partitionName.indexOf(\"") + .append(key.getName()).append("=\") + ").append(key.getName().length() + 1) + .append(")"); + + // First partition key - anything between key= and first / + } else if ((pkeys.get(0).getName().matches(key.getName()))) { + + buffer.append("partitionName.substring(partitionName.indexOf(\"") + .append(key.getName()).append("=\") + ").append(key.getName().length() + 1).append(", ") + .append("partitionName.indexOf(\"/\")") + .append(")"); + + // Last partition key - anything between /key= and end + } else if ((pkeys.get(pkeys.size() - 1).getName().matches(key.getName()))) { + buffer.append("partitionName.substring(partitionName.indexOf(\"") + .append(partKey).append("\") + ").append(partKey.length()) + .append(")"); + + // Intermediate key - anything between /key= and the following / + } else { + + buffer.append("partitionName.substring(partitionName.indexOf(\"") + .append(partKey).append("\") + ").append(partKey.length()).append(", ") + .append("partitionName.indexOf(\"/\", partitionName.indexOf(\"").append(partKey) + .append("\") + 1))"); + } + LOG.info("Query for Key:" + key.getName() + " is :" + buffer); + return buffer.toString(); + } + + @Override + public PartitionValuesResponse listPartitionValues(String dbName, String tableName, List cols, + boolean applyDistinct, String filter, boolean ascending, + List order, long maxParts) throws MetaException { + + dbName = dbName.toLowerCase().trim(); + tableName = tableName.toLowerCase().trim(); + try { + if (filter == null || filter.isEmpty()) { + PartitionValuesResponse response = + getDistinctValuesForPartitionsNoTxn(dbName, tableName, cols, applyDistinct, ascending, maxParts); + LOG.info("Number of records fetched: " + response.getPartitionValues().size()); + return response; + } else { + PartitionValuesResponse response = + extractPartitionNamesByFilter(dbName, tableName, filter, cols, ascending, applyDistinct, maxParts); + if (response != null && response.getPartitionValues() != null) { + LOG.info("Number of records fetched with filter: " + response.getPartitionValues().size()); + } + return response; + } + } catch (Exception t) { + LOG.error("Exception in ORM", t); + throw new MetaException("Error retrieving partition values: " + t); + } finally { + } + } + + private PartitionValuesResponse extractPartitionNamesByFilter(String dbName, String tableName, String filter, + List cols, boolean ascending, boolean applyDistinct, long maxParts) + throws MetaException, NoSuchObjectException { + + LOG.info("Database: " + dbName + " Table:" + tableName + " filter\"" + filter + "\" cols:" + cols); + List partitionResults = new ArrayList(); + List partitionNames = null; + List partitions = null; + Table tbl = getTable(dbName, tableName); + try { + // Get partitions by name - ascending or descending + partitionNames = getPartitionNamesByFilter(dbName, tableName, filter, ascending, maxParts); + } catch (MetaException e) { + LOG.warn("Querying by partition names failed, trying out with partition objects, filter:" + filter); + } + + if (partitionNames == null) { + partitions = getPartitionsByFilter(dbName, tableName, filter, (short) maxParts); + } + + if (partitions != null) { + partitionNames = new ArrayList(partitions.size()); + for (Partition partition : partitions) { + // Check for NULL's just to be safe + if (tbl.getPartitionKeys() != null && partition.getValues() != null) { + partitionNames.add(Warehouse.makePartName(tbl.getPartitionKeys(), partition.getValues())); + } + } + } + + if (partitionNames == null && partitions == null) { + throw new MetaException("Cannot obtain list of partitions by filter:\"" + filter + + "\" for " + dbName + ":" + tableName); + } + + if (!ascending) { + Collections.sort(partitionNames, Collections.reverseOrder()); + } + + // Return proper response + PartitionValuesResponse response = new PartitionValuesResponse(); + response.setPartitionValues(new ArrayList(partitionNames.size())); + LOG.info("Converting responses to Partition values for items:" + partitionNames.size()); + for (String partName : partitionNames) { + ArrayList vals = new ArrayList(tbl.getPartitionKeys().size()); + for (FieldSchema key : tbl.getPartitionKeys()) { + vals.add(null); + } + PartitionValuesRow row = new PartitionValuesRow(); + Warehouse.makeValsFromName(partName, vals); + for (String value : vals) { + row.addToRow(value); + } + response.addToPartitionValues(row); + } + return response; + } + + private List getPartitionNamesByFilter(String dbName, String tableName, + String filter, boolean ascending, long maxParts) + throws MetaException { + + boolean success = false; + List partNames = new ArrayList(); + try { + openTransaction(); + LOG.debug("Executing getPartitionNamesByFilter"); + dbName = dbName.toLowerCase(); + tableName = tableName.toLowerCase(); + + MTable mtable = getMTable(dbName, tableName); + if( mtable == null ) { + // To be consistent with the behavior of listPartitionNames, if the + // table or db does not exist, we return an empty list + return partNames; + } + Map params = new HashMap(); + String queryFilterString = makeQueryFilterString(dbName, mtable, filter, params); + Query query = pm.newQuery( + "select partitionName from org.apache.hadoop.hive.metastore.model.MPartition " + + "where " + queryFilterString); + + if (maxParts >= 0) { + //User specified a row limit, set it on the Query + query.setRange(0, maxParts); + } + + LOG.debug("Filter specified is " + filter + "," + + " JDOQL filter is " + queryFilterString); + LOG.debug("Parms is " + params); + + String parameterDeclaration = makeParameterDeclarationStringObj(params); + query.declareParameters(parameterDeclaration); + if (ascending) { + query.setOrdering("partitionName ascending"); + } else { + query.setOrdering("partitionName descending"); + } + query.setResult("partitionName"); + + Collection names = (Collection) query.executeWithMap(params); + partNames = new ArrayList(); + for (Iterator i = names.iterator(); i.hasNext();) { + partNames.add((String) i.next()); + } + + LOG.debug("Done executing query for getPartitionNamesByFilter"); + success = commitTransaction(); + LOG.debug("Done retrieving all objects for getPartitionNamesByFilter, size:" + partNames.size()); + query.closeAll(); + } finally { + if (!success) { + rollbackTransaction(); + } + } + return partNames; + } + + private PartitionValuesResponse getDistinctValuesForPartitionsNoTxn(String dbName, String tableName, List cols, + boolean applyDistinct, boolean ascending, long maxParts) + throws MetaException { + + try { + openTransaction(); + Query q = pm.newQuery("select partitionName from org.apache.hadoop.hive.metastore.model.MPartition " + + "where table.database.name == t1 && table.tableName == t2 "); + q.declareParameters("java.lang.String t1, java.lang.String t2"); + + // TODO: Ordering seems to affect the distinctness, needs checking, disabling. +/* + if (ascending) { + q.setOrdering("partitionName ascending"); + } else { + q.setOrdering("partitionName descending"); + } +*/ + if (maxParts > 0) { + q.setRange(0, maxParts); + } + StringBuilder partValuesSelect = new StringBuilder(256); + if (applyDistinct) { + partValuesSelect.append("DISTINCT "); + } + List partitionKeys = getTable(dbName, tableName).getPartitionKeys(); + for (FieldSchema key : cols) { + partValuesSelect.append(extractPartitionKey(key, partitionKeys)).append(", "); + } + partValuesSelect.setLength(partValuesSelect.length() - 2); + LOG.info("Columns to be selected from Partitions: " + partValuesSelect); + q.setResult(partValuesSelect.toString()); + + PartitionValuesResponse response = new PartitionValuesResponse(); + response.setPartitionValues(new ArrayList()); + if (cols.size() > 1) { + List results = (List) q.execute(dbName, tableName); + for (Object[] row : results) { + PartitionValuesRow rowResponse = new PartitionValuesRow(); + for (Object columnValue : row) { + rowResponse.addToRow((String) columnValue); + } + response.addToPartitionValues(rowResponse); + } + } else { + List results = (List) q.execute(dbName, tableName); + for (Object row : results) { + PartitionValuesRow rowResponse = new PartitionValuesRow(); + rowResponse.addToRow((String) row); + response.addToPartitionValues(rowResponse); + } + } + q.closeAll(); + return response; + } finally { + commitTransaction(); + } + } + private List getPartitionNamesNoTxn(String dbName, String tableName, short max) { List pns = new ArrayList(); dbName = HiveStringUtils.normalizeIdentifier(dbName); diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java index 5b40835..639a1d8 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java @@ -28,11 +28,11 @@ import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.hive.common.classification.InterfaceStability; -import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId; import org.apache.hadoop.hive.metastore.api.Database; +import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.FileMetadataExprType; import org.apache.hadoop.hive.metastore.api.Function; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; @@ -47,6 +47,7 @@ import org.apache.hadoop.hive.metastore.api.NotificationEventResponse; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; +import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; @@ -197,6 +198,10 @@ public abstract void alterTable(String dbname, String name, Table newTable) public abstract List listPartitionNames(String db_name, String tbl_name, short max_parts) throws MetaException; + public abstract PartitionValuesResponse listPartitionValues(String db_name, String tbl_name, + List cols, boolean applyDistinct, String filter, boolean ascending, + List order, long maxParts) throws MetaException; + public abstract List listPartitionNamesByFilter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException; diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java index ecddb8a..9e30600 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java @@ -23,6 +23,7 @@ import org.apache.commons.lang.StringUtils; import org.apache.hadoop.hive.common.ObjectPair; +import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.conf.Configuration; @@ -647,6 +648,11 @@ public int getTableCount() throws MetaException { } @Override + public PartitionValuesResponse listPartitionValues(String db_name, String tbl_name, List cols, boolean applyDistinct, String filter, boolean ascending, List order, long maxParts) throws MetaException { + throw new UnsupportedOperationException(); + } + + @Override public List listPartitionNamesByFilter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException { // TODO needs to wait until we support pushing filters into HBase. diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java index 275797e..2babda2 100644 --- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java +++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java @@ -26,11 +26,11 @@ import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.conf.Configuration; -import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId; import org.apache.hadoop.hive.metastore.api.Database; +import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.FileMetadataExprType; import org.apache.hadoop.hive.metastore.api.Function; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; @@ -45,6 +45,7 @@ import org.apache.hadoop.hive.metastore.api.NotificationEventResponse; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; +import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; @@ -263,6 +264,11 @@ public void alterTable(String dbName, String name, Table newTable) } @Override + public PartitionValuesResponse listPartitionValues(String db_name, String tbl_name, List cols, boolean applyDistinct, String filter, boolean ascending, List order, long maxParts) throws MetaException { + return null; + } + + @Override public List listPartitionNamesByFilter(String dbName, String tblName, String filter, short maxParts) throws MetaException { return objectStore.listPartitionNamesByFilter(dbName, tblName, filter, maxParts); diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java index 7f1784e..52391be 100644 --- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java +++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java @@ -27,11 +27,11 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hive.conf.HiveConf; -import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId; import org.apache.hadoop.hive.metastore.api.Database; +import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.FileMetadataExprType; import org.apache.hadoop.hive.metastore.api.Function; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; @@ -46,6 +46,7 @@ import org.apache.hadoop.hive.metastore.api.NotificationEventResponse; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; +import org.apache.hadoop.hive.metastore.api.PartitionValuesResponse; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; @@ -271,6 +272,11 @@ public void alterTable(String dbname, String name, Table newTable) throws Invali } @Override + public PartitionValuesResponse listPartitionValues(String db_name, String tbl_name, List cols, boolean applyDistinct, String filter, boolean ascending, List order, long maxParts) throws MetaException { + return null; + } + + @Override public List listPartitionNamesByFilter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException {